]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
[powerpc] Use __builtin_{mffs,mtfsf}
[thirdparty/glibc.git] / ChangeLog
1 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
2
3 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4 asm with builtin.
5 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
6 Likewise.
7 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
8 (_GET_SI_FPSCR): Likewise.
9 (_SET_SI_FPSCR): Likewise.
10
11 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12
13 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
14 clang 2.8.
15 (signbit): Use builtin for clang 3.3.
16 (isinf): Use builtin for clang 3.7.
17
18 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19
20 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
21
22 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
23
24 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
25 quote in printf.
26
27 2019-03-25 Mike Crowe <mac@mcrowe.com>
28
29 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
30 pthread_rwlock_timedrdlock with calls to
31 pthread_rwlock_timedwrlock to ensure that the latter is tested
32 too. Use new function name in diagnostic messages too.
33
34 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
35 (do_test) Use libsupport test macros rather than hand-coded
36 conditionals and error messages. Ensure that sem_init returns zero
37 rather than not -1. Use <support/test-driver.c> rather than
38 test-skeleton.c.
39
40 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
41 test macros rather than hand-coded conditionals and error messages.
42 Use <support/test-driver.c> rather than test-skeleton.c.
43
44 2019-03-25 Joseph Myers <joseph@codesourcery.com>
45
46 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
47
48 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
49 (NT_MIPS_MSA): Likewise.
50
51 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
52
53 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
54 * benchtests/README: Update description.
55 * benchtests/bench-timing.h: Default to hp-timing.
56 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
57 HP_TIMING_PRINT): Remove.
58 (HP_TIMING_NOW): Add generic implementation.
59 (hp_timing_t): Change to uint64_t.
60
61 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
62 HP_TIMING_INLINE.
63 * nptl/descr.h: Likewise.
64 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
65 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
66 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
67 Abstract hp-timing usage with RTLD_* macros.
68 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
69 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
70 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
71 HP_TIMING_NONAVAIL): Likewise.
72 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
73 Likewise.
74 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
75 HP_SMALL_TIMING_AVAIL): Likewise.
76 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
77 HP_SMALL_TIMING_AVAIL): Likewise.
78 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
79 HP_SMALL_TIMING_AVAIL): Likewise.
80 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
81 HP_SMALL_TIMING_AVAIL): Likewise.
82 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
83 Likewise.
84 * sysdeps/generic/hp-timing-common.h: Update comment with
85 HP_TIMING_AVAIL removal.
86
87 * include/random-bits.h: New file.
88 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
89 (__res_context_mkquery): Remove usage hp-timing usage and replace with
90 random_bits.
91 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
92 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
93 Likewise.
94
95 * include/libc-internal.h (__get_clockfreq): Remove prototype.
96 * rt/Makefile (clock-routines): Remove get_clockfreq.
97 * rt/get_clockfreq.c: Remove file.
98 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
99 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
100 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
101 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
102 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
103
104 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
105 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
106 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
107 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
108 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
109
110 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
111 pthread_clock_settime.
112 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
113 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
114 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
115 * elf/rtld.c (_dl_start_final): Likewise.
116 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
117 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
118 Remove.
119 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
120 (_dl_cpuclock_offset): Remove.
121 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
122 cpuclock_offset_ununsed.
123 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
124 cpuclock_offset set.
125 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
126 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
127 * nptl/pthread_clock_gettime.c: Remove file.
128 * nptl/pthread_clock_settime.c: Likewise.
129 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
130 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
131 and CLOCK_PROCESS_CPUTIME_ID support.
132 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
133 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
134 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
135 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
136 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
137 Likewise.
138 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
139
140 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
141
142 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
143 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
144 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
145 New defines.
146 * sysdeps/s390/memmem-arch13.S: New file.
147 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
148 if it is only used as fallback.
149 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
150 * sysdeps/s390/multiarch/ifunc-impl-list.c
151 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
152
153 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
154
155 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
156 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
157 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
158 New defines.
159 * sysdeps/s390/multiarch/ifunc-impl-list.c
160 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
161 * sysdeps/s390/strstr-arch13.S: New file.
162 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
163 if it is only used as fallback.
164 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
165
166 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
167
168 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
169 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
170 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
171 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
172 ifunc selector.
173 * sysdeps/s390/multiarch/ifunc-impl-list.c
174 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
175 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
176 S390_IS_ARCH13_MIE3): New defines.
177
178 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
179
180 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
181 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
182 * sysdeps/s390/configure.ac: Add checks for arch13 support.
183 * sysdeps/s390/configure: Regenerated.
184
185 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
186
187 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
188 Add vxe2, vxp, dflt, sort flags.
189 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
190 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
191 capabilities.
192 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
193 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
194 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
195 HWCAP_S390_DFLT): Define.
196
197 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
198
199 [BZ #24372]
200 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
201 of compiler warning.
202 * locale/programs/ld-collate.c (collate_output): Likewise.
203
204 2019-03-21 DJ Delorie <dj@redhat.com>
205
206 [BZ #24372]
207 * iconv/iconvconfig.c (write_output): Replace floating point math
208 with integer math to avoid imprecise results.
209 * locale/programs/ld-collate.c (collate_output): Likewise.
210
211 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
212
213 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
214 Add HWCAP_S390_VX and HWCAP_S390_VXE.
215
216 2019-03-20 mansayk <6688000@gmail.com>
217
218 [BZ #24296]
219 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
220 (abday): Likewise, but remove the trailing dots.
221
222 2019-03-19 Joseph Myers <joseph@codesourcery.com>
223
224 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
225 macro.
226 (HWCAP_PACA): Likewise.
227 (HWCAP_PACG): Likewise.
228 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
229 Increase to 32.
230 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
231
232 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
233
234 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
235 should be handled.
236
237 2019-03-15 Joseph Myers <joseph@codesourcery.com>
238
239 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
240 version to 5.0.
241 (old_getpagesize): New syscall.
242
243 2019-03-15 Felix Yan <felixonmars@archlinux.org>
244
245 [BZ #24293]
246 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
247 * localedata/locales/cmn_TW (era): Likewise.
248 * localedata/locales/hak_TW (era): Likewise.
249 * localedata/locales/lzh_TW (era): Likewise.
250 * localedata/locales/nan_TW (era): Likewise.
251
252 2019-03-14 Florian Weimer <fweimer@redhat.com>
253
254 Remove obsolete, never-implemented XSI STREAMS declarations.
255 * manual/terminal.texi (Allocation): Remove portability note and
256 adjust example.
257 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
258 _SC_STREAMS.
259 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
260 * sysdeps/unix/inet/Subdirs (streams): Remove.
261 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
262 (conformtest-headers-UNIX98): Likewise.
263 (conformtest-headers-XOPEN2K): Likewise.
264 (conformtest-headers-POSIX2008): Likewise.
265 * posix/compat-streams.c: New file.
266 * posix/Makefile (routines): Add it.
267 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
268 getpmsg, isastream, putmsg, putpmsg.
269 (GLIBC_2.30): New section.
270 * bits/stropts.h: Remove file.
271 * bits/xtitypes.h: Likewise.
272 * conform/data/stropts.h-data: Likewise.
273 * include/stropts.h: Likewise.
274 * include/sys/stropts.h: Likewise.
275 * include/xtitypes.h: Likewise.
276 * streams/Makefile: Likewise.
277 * streams/fattach.c: Likewise.
278 * streams/fdetach.c: Likewise.
279 * streams/getmsg.c: Likewise.
280 * streams/getpmsg.c: Likewise.
281 * streams/isastream.c: Likewise.
282 * streams/putmsg.c: Likewise.
283 * streams/putpmsg.c: Likewise.
284 * streams/stropts.h: Likewise.
285 * streams/sys/stropts.h: Likewise.
286 * sysdeps/ia64/bits/xtitypes.h: Likewise.
287 * sysdeps/s390/bits/xtitypes.h: Likewise.
288 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
289 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
290 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
291 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
292 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
293 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
294 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
295 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
296 * sysdeps/x86/bits/xtitypes.h: Likewise.
297
298 2019-03-14 Florian Weimer <fweimer@redhat.com>
299
300 * nss/tst-nss-files-alias-truncated.c (do_test): Load
301 libnss_files.
302 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
303 but not with libnss_files.
304 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
305
306 2019-03-14 Zack Weinberg <zackw@panix.com>
307
308 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
309 Specify encoding="utf-8" when opening headers to check.
310
311 2019-03-13 Joseph Myers <joseph@codesourcery.com>
312
313 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
314 version to 5.0.
315 (Context.checkout_tar): Handle variable major version for Linux
316 kernel.
317
318 2019-03-13 Florian Weimer <fweimer@redhat.com>
319
320 [BZ #24047]
321 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
322
323 2019-03-13 Zack Weinberg <zackw@panix.com>
324
325 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
326 Move to stdlib.
327 * include/inttypes.h: Adjust to match.
328 * include/stdint.h: New wrapper.
329
330 2019-03-13 Zack Weinberg <zackw@panix.com>
331
332 * scripts/check-obsolete-constructs.py: New test script.
333 * scripts/check-installed-headers.sh: Remove tests for
334 obsolete typedefs, superseded by check-obsolete-constructs.py.
335 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
336 as a special test. Update commentary.
337 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
338 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
339 Update commentary.
340 * posix/sys/types.h (__u_intN_t): Remove.
341 (u_int8_t): Typedef using __uint8_t.
342 (u_int16_t): Typedef using __uint16_t.
343 (u_int32_t): Typedef using __uint32_t.
344 (u_int64_t): Typedef using __uint64_t.
345
346 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
347
348 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
349 call _dl_procinfo.
350 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
351 Ignore types other than AT_HWCAP.
352 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
353 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
354 Likewise.
355 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
356 in the case of falling back to generic output mechanism.
357 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
358 Likewise.
359
360 2019-03-12 Florian Weimer <fweimer@redhat.com>
361
362 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
363
364 2019-03-12 Florian Weimer <fweimer@redhat.com>
365
366 [BZ #24047]
367 resolv: Enable full ICMP errors for UDP DNS sockets
368 * resolv/res_enable_icmp.c: New file.
369 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
370 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
371 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
372 socket.
373
374 2019-03-11 Mao Han <han_mao@c-sky.com>
375
376 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
377 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
378
379 2019-03-11 Mao Han <han_mao@c-sky.com>
380
381 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
382 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
383 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
384
385 2019-03-11 Mao Han <han_mao@c-sky.com>
386
387 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
388 directly.
389 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
390 definition.
391
392 2019-03-11 Mao Han <han_mao@c-sky.com>
393
394 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
395 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
396 in mcontext_t
397
398 2019-03-08 Mike FABIAN <mfabian@redhat.com>
399
400 [BZ #24307]
401 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
402 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
403 Unicode 12.0.0.
404 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
405 * localedata/unicode-gen/PropList.txt: Likewise.
406 * localedata/unicode-gen/UnicodeData.txt: Likewise.
407 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
408 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
409 * localedata/charmaps/UTF-8: Regenerate.
410 * localedata/locales/i18n_ctype: Likewise.
411 * localedata/locales/tr_TR: Likewise.
412 * localedata/locales/translit_circle: Likewise.
413 * localedata/locales/translit_cjk_compat: Likewise.
414 * localedata/locales/translit_combining: Likewise.
415 * localedata/locales/translit_compat: Likewise.
416 * localedata/locales/translit_font: Likewise.
417 * localedata/locales/translit_fraction: Likewise.
418
419 2019-03-07 Joseph Myers <joseph@codesourcery.com>
420
421 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
422 than after operators.
423 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
424 (setitimer_locked): Likewise.
425 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
426 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
427 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
428 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
429 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
430 (PPC_CPU_SUPPORTED): Likewise.
431 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
432 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
433 (stat_overflow): Likewise.
434 (statfs_overflow): Likewise.
435 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
436 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
437 (eq_ttyname_r): Likewise.
438 (run_chroot_tests): Likewise.
439
440 2019-03-07 Florian Weimer <fweimer@redhat.com>
441
442 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
443 header check.
444
445 2019-03-07 Martin Liska <mliska@suse.cz>
446
447 * math/Makefile: Change location where math-vector-fortran.h is
448 installed.
449 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
450 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
451 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
452 * scripts/check-installed-headers.sh: Skip Fortran header files.
453 * scripts/check-wrapper-headers.py: Likewise.
454
455 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
456
457 * nptl/nptl-init.c (__have_futex_clock_realtime,
458 __have_futex_clock_realtime): Remove definition.
459 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
460 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
461 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
462 __ASSUME_FUTEX_CLOCK_REALTIME support.
463 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
464 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
465 * sysdeps/unix/sysv/linux/kernel-features.h
466 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
467 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
468 Adjust comment.
469
470 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
471
472 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
473 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
474 __GI___wcscpy and wcscpy.
475
476 2019-03-04 Florian Weimer <fweimer@redhat.com>
477
478 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
479 declaration.
480 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
481 defined.
482
483 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
484
485 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
486 * sysdeps/s390/s390-32/sysdep.h: Likewise.
487
488 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
489
490 [BZ #24162]
491 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
492 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
493
494 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
495
496 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
497 tests.
498 (do_test): Likewise.
499 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
500 (do_test_call_varg): Likewise.
501 (do_test_call_rarg): Likewise.
502 * sysdeps/ieee754/ldbl-opt/Makefile
503 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
504 tst-nldbl-error.
505 ($(objpfx)tst-nldbl-warn.c): New rule.
506 ($(objpfx)tst-nldbl-error.c): Likewise.
507 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
508 New variables.
509
510 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
511
512 [BZ #23984]
513 * include/bits/error-ldbl.h: New file.
514 * include/error.h: Include stdarg.h. Declare internal functions
515 __error_internal and __error_at_line_internal.
516 * misc/Makefile (headers): Add bits/error-ldbl.h.
517 * misc/bits/error-ldbl.h: New file.
518 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
519 avoid the inclusion of bits/error.h.
520 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
521 and __nldbl_error_at_line.
522 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
523 (__nldbl_error, __ndlbl_error_at_line): New functions.
524 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
525 Redirect error and error_at_line.
526 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
528 Likewise.
529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
530 Likewise.
531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
532 Likewise.
533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
534 Likewise.
535 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
536 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
537 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
538
539 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
540
541 [BZ #23984]
542 * include/bits/err-ldbl.h: New file.
543 * include/err.h: Add prototypes for the internal functions:
544 __vwarnx_internal and __vwarn_internal.
545 * misc/Makefile (headers): Add bits/err-ldbl.h.
546 * misc/bits/err-ldbl.h: New file.
547 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
548 defined, i.e.: when -mlong-double-64 is in use.
549 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
550 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
551 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
552 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
553 (VA_CALL): New macro.
554 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
555 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
556 functions.
557 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
558 declare prototypes for the new functions.
559 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
561 Likewise.
562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
563 Likewise.
564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
565 Likewise.
566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
567 Likewise.
568 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
569 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
570 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
571
572 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
573
574 * sysdeps/ieee754/ldbl-opt/Makefile
575 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
576 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
577 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
578
579 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
580
581 [BZ #23983]
582 * argp/Makefile (headers): Add bits/argp-ldbl.h.
583 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
584 * argp/bits/argp-ldbl.h: New file.
585 * include/argp.h: Include stdarg.h. Add prototypes for internal
586 functions: __argp_error_internal and __argp_failure_internal.
587 * include/bits/argp-ldbl.h: New file.
588 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
589 __nldbl_argp_error and __nldbl_argp_failure.
590 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
591 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
592 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
593 Redirect argp_error and argp_failure calls.
594 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
596 Likewise.
597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
598 Likewise.
599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
600 Likewise.
601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
602 Likewise.
603 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
604 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
605 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
606
607 2019-03-01 Florian Weimer <fweimer@redhat.com>
608
609 [BZ #20419]
610 * elf/tst-big-note-lib.S: Create a syntactically valid note.
611 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
612 code, to avoid creating an ABI tag note.
613 (modules-names-nobuild): Add tst-big-note-lib.
614
615 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
616
617 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
618 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
619
620 2019-03-01 Florian Weimer <fweimer@redhat.com>
621
622 [BZ #20271]
623 * sysdeps/unix/sysv/linux/netlink_assert_response.c
624 (__netlink_assert_response): Add additional missing newlines.
625
626 2019-02-28 Joseph Myers <joseph@codesourcery.com>
627
628 * sysdeps/powerpc/powerpc32/dl-machine.c
629 (__elf_machine_fixup_plt): Use space before '('.
630 (__process_machine_rela): Likewise.
631 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
632 Likewise.
633 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
634 Likewise.
635 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
636 Likewise.
637 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
638 (pattern): Likewise.
639 (delta): Likewise.
640 (check_result): Likewise.
641 (check_excepts): Likewise.
642 (check_op): Likewise.
643 (fail_xr): Likewise.
644 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
645 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
646 (SCNHSZ): Likewise.
647 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
648 Likewise.
649 (ARGS): Likewise.
650 (__makecontext): Likewise.
651 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
652 Likewise.
653
654 2019-02-28 Florian Weimer <fweimer@redhat.com>
655
656 [BZ #23937]
657 elf: Add test with a local IFUNC resolver.
658 * elf/ifuncmain9.c: New file.
659 * elf/ifuncmain9pic.c: Likewise.
660 * elf/ifuncmain9picstatic.c: Likewise.
661 * elf/ifuncmain9pie.c: Likewise.
662 * elf/ifuncmain9static.c: Likewise.
663 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
664 ifuncmain9static, ifuncmain9picstatic.
665 * elf/Makefile [multi-arch && build-shared] (tests-internal):
666 Add ifuncmain9, ifuncmain9pic.
667 * elf/Makefile [multi-arch && build-shared && have-fpie]
668 (ifunc-pie-tests): Add ifuncmain9pie.
669 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
670 (CFLAGS-ifuncmain9picstatic.c): Likewise.
671 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
672
673 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
674
675 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
676 * configure: Regenerated.
677 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
678
679 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
680
681 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
682 symbol as __wcspcy instead of wcscpy.
683
684 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
685
686 * include/stdio.h (__renameat2): New hidden prototype.
687 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
688 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
689 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
690 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
691
692 2019-02-27 Joseph Myers <joseph@codesourcery.com>
693
694 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
695 if statement.
696
697 * benchtests/bench-strcpy.c (do_test): Use space before '('.
698 * benchtests/bench-string.h (cmdline_process_function): Likewise.
699 * benchtests/bench-strlen.c (do_test): Likewise.
700 (test_main): Likewise.
701 * catgets/gencat.c (read_old): Likewise.
702 * elf/cache.c (load_aux_cache): Likewise.
703 * iconvdata/bug-iconv8.c (do_test): Likewise.
704 * math/test-tgmath-ret.c (do_test): Likewise.
705 * nis/nis_call.c (rec_dirsearch): Likewise.
706 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
707 * nptl/tst-audit-threads.c (do_test): Likewise.
708 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
709 * nss/nss_test1.c (init): Likewise.
710 * nss/test-netdb.c (test_hosts): Likewise.
711 * posix/execvpe.c (maybe_script_execute): Likewise.
712 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
713 * stdio-common/tst-printf.c (do_test): Likewise.
714 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
715 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
716 * stdlib/qsort.c (STACK_SIZE): Likewise.
717 * stdlib/test-canon.c (do_test): Likewise.
718 * stdlib/tst-swapcontext1.c (do_test): Likewise.
719 * string/memcmp.c (OPSIZ): Likewise.
720 * string/test-strcpy.c (do_test): Likewise.
721 (do_random_tests): Likewise.
722 * string/test-strlen.c (do_test): Likewise.
723 (test_main): Likewise.
724 * string/test-strrchr.c (do_test): Likewise.
725 (do_random_tests): Likewise.
726 * string/tester.c (test_memrchr): Likewise.
727 (test_memchr): Likewise.
728 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
729 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
730 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
731 (read_encoded_value_with_base): Likewise.
732 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
733 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
734 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
735 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
736 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
737 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
738 Likewise.
739 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
740 Likewise.
741 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
742 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
743 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
744 Likewise.
745 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
746 Likewise.
747 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
748 Likewise.
749 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
750 Likewise.
751 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
752 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
753 (FP_XSTATE_MAGIC2_SIZE): Likewise.
754 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
755 * time/test_time.c (main): Likewise.
756
757 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
758
759 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
760
761 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
762 wmemcpy.
763
764 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
765 wmemcpy.
766
767 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
768
769 * include/wchar.h (__wcscpy): New prototype.
770 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
771 (__wcscpy): Route internal symbol to generic implementation.
772 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
773 Add internal __wcscpy alias.
774 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
775 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
776 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
777 * wcsmbs/wcscpy.c (wcscpy): Add
778 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
779 use generic implementation.
780 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
781
782 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
783 wmemset.
784
785 * sysdeps/m68k/wcpcpy.c: Remove file.
786 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
787
788 2019-02-26 Joseph Myers <joseph@codesourcery.com>
789
790 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
791 than after operators.
792 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
793 * sysdeps/mach/hurd/getcwd.c
794 (__hurd_canonicalize_directory_name_internal): Likewise.
795 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
796 (pthread_mutex_consistent): Likewise.
797 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
798 Likewise.
799 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
800 (__pthread_mutex_transfer_np): Likewise.
801 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
802 (__pthread_mutex_unlock): Likewise.
803 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
804 (mtx_owned_p): Likewise.
805 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
806 (pthread_mutexattr_getrobust): Likewise.
807 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
808 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
809 Likewise.
810 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
811 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
812 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
813 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
814 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
815 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
816 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
817 Likewise.
818 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
819 Likewise.
820 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
821 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
822 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
823 (____longjmp_chk): Likewise.
824 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
825 Likewise.
826 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
827 (INTERNAL_SYSCALL): Likewise.
828 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
829 (INTERNAL_SYSCALL): Likewise.
830 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
831 (__get_clockfreq_via_cpuinfo): Likewise.
832
833 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
834 comments.
835 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
836 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
837 (WORD_COPY_BWD): Likewise.
838 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
839 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
840 Likewise.
841 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
842 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
843 comment.
844 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
845
846 2019-02-25 Joseph Myers <joseph@codesourcery.com>
847
848 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
849 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
850 rather than after operators.
851 * elf/cache.c (print_cache): Likewise.
852 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
853 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
854 * hurd/hurdinit.c (_hurd_setproc): Likewise.
855 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
856 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
857 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
858 (reauth_proc): Likewise.
859 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
860 (__file_name_split_at): Likewise.
861 (__directory_name_split_at): Likewise.
862 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
863 * hurd/port2fd.c (_hurd_port2fd): Likewise.
864 * iconv/gconv_dl.c (do_print): Likewise.
865 * inet/netinet/in.h (struct sockaddr_in): Likewise.
866 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
867 * locale/setlocale.c (new_composite_name): Likewise.
868 * malloc/memusagestat.c (main): Likewise.
869 * misc/fstab.c (fstab_convert): Likewise.
870 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
871 Likewise.
872 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
873 (getgrent_next_file): Likewise.
874 (internal_getgrnam_r): Likewise.
875 (internal_getgrgid_r): Likewise.
876 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
877 Likewise.
878 (internal_getgrent_r): Likewise.
879 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
880 (getpwent_next_nss): Likewise.
881 (getpwent_next_file): Likewise.
882 (internal_getpwnam_r): Likewise.
883 (internal_getpwuid_r): Likewise.
884 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
885 Likewise.
886 (getspent_next_nss): Likewise.
887 (internal_getspnam_r): Likewise.
888 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
889 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
890 * string/strchr.c (STRCHR): Likewise.
891 * string/strchrnul.c (STRCHRNUL): Likewise.
892 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
893 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
894 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
895 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
896 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
897 Likewise.
898 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
899 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
900 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
901 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
902 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
903 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
904 (open_file): Likewise.
905 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
906 (pthread_mutexattr_setprotocol): Likewise.
907 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
908 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
909 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
910 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
911 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
912 Likewise.
913 (elf_machine_rela): Likewise.
914 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
915 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
916 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
917 * sysdeps/posix/rename.c (rename): Likewise.
918 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
919 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
920 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
921 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
922 * sysdeps/unix/grantpt.c (grantpt): Likewise.
923 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
924 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
925 Likewise.
926 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
927 Likewise.
928 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
929 * time/tzfile.c (__tzfile_compute): Likewise.
930
931 2019-02-22 Joseph Myers <joseph@codesourcery.com>
932
933 * benchtests/bench-memmem.c (simple_memmem): Break lines before
934 rather than after operators.
935 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
936 * crypt/md5.c (md5_finish_ctx): Likewise.
937 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
938 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
939 * elf/cache.c (load_aux_cache): Likewise.
940 * elf/dl-load.c (open_verify): Likewise.
941 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
942 * elf/readelflib.c (process_elf_file): Likewise.
943 * elf/rtld.c (dl_main): Likewise.
944 * elf/sprof.c (generate_call_graph): Likewise.
945 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
946 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
947 * hurd/dtable.c (reauth_dtable): Likewise.
948 * hurd/getdport.c (__getdport): Likewise.
949 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
950 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
951 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
952 Likewise.
953 * hurd/hurdioctl.c (fioctl): Likewise.
954 * hurd/hurdselect.c (_hurd_select): Likewise.
955 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
956 (STOPSIGS): Likewise.
957 * hurd/hurdstartup.c (_hurd_startup): Likewise.
958 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
959 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
960 * hurd/msgportdemux.c (msgport_server): Likewise.
961 * hurd/setauth.c (_hurd_setauth): Likewise.
962 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
963 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
964 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
965 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
966 * login/tst-utmp.c (do_check): Likewise.
967 (simulate_login): Likewise.
968 * mach/lowlevellock.h (lll_lock): Likewise.
969 (lll_trylock): Likewise.
970 * math/test-fenv.c (ALL_EXC): Likewise.
971 * math/test-fenvinline.c (ALL_EXC): Likewise.
972 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
973 * nis/nis_call.c (__do_niscall3): Likewise.
974 * nis/nis_callback.c (cb_prog_1): Likewise.
975 * nis/nis_defaults.c (searchaccess): Likewise.
976 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
977 * nis/nis_ismember.c (internal_ismember): Likewise.
978 * nis/nis_local_names.c (nis_local_principal): Likewise.
979 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
980 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
981 Likewise.
982 * nis/ypclnt.c (yp_match): Likewise.
983 (yp_first): Likewise.
984 (yp_next): Likewise.
985 (yp_master): Likewise.
986 (yp_order): Likewise.
987 * nscd/hstcache.c (cache_addhst): Likewise.
988 * nscd/initgrcache.c (addinitgroupsX): Likewise.
989 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
990 (internal_getpwuid_r): Likewise.
991 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
992 * posix/glob.h (__GLOB_FLAGS): Likewise.
993 * posix/regcomp.c (peek_token): Likewise.
994 (peek_token_bracket): Likewise.
995 (parse_expression): Likewise.
996 * posix/regexec.c (sift_states_iter_mb): Likewise.
997 (check_node_accept_bytes): Likewise.
998 * posix/tst-spawn3.c (do_test): Likewise.
999 * posix/wordexp-test.c (testit): Likewise.
1000 * posix/wordexp.c (parse_tilde): Likewise.
1001 (exec_comm): Likewise.
1002 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
1003 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
1004 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
1005 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
1006 * stdio-common/tst-fileno.c (do_test): Likewise.
1007 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
1008 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
1009 * stdlib/strtod_l.c (round_and_return): Likewise.
1010 (____STRTOF_INTERNAL): Likewise.
1011 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
1012 * string/strcspn.c (STRCSPN): Likewise.
1013 * string/test-memmem.c (simple_memmem): Likewise.
1014 * termios/tcsetattr.c (tcsetattr): Likewise.
1015 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
1016 * time/asctime.c (asctime_internal): Likewise.
1017 * time/strptime_l.c (__strptime_internal): Likewise.
1018 * time/sys/time.h (timercmp): Likewise.
1019 * time/tzfile.c (__tzfile_compute): Likewise.
1020
1021 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
1022
1023 [BZ #21915]
1024 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
1025
1026 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1027
1028 * argp/argp-help.c (__argp_error_internal): New function,
1029 renamed from __argp_error, but that takes a 'mode_flags'
1030 parameter to control the format of long double parameters.
1031 (__argp_error): Converted into a call __argp_error_internal.
1032 (__argp_failure_internal): New function, renamed from
1033 __argp_failure, but that takes a 'mode_flags' parameter.
1034 (__argp_failure): Converted into a call __argp_failure_internal.
1035 * misc/err.c (__vwarnx_internal): New function, renamed from
1036 vwarnx, but that takes a 'mode_flags' parameter.
1037 (vwarnx): Converted into a call to __vwarnx_internal.
1038 (__vwarn_internal): New function, renamed from vwarn, but that
1039 takes a 'mode_flags' parameter.
1040 (vwarn): Converted into a call to __vwarn_internal.
1041 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1042 call to __vfxprintf with 'mode_flags'.
1043 (__error_internal): New function, renamed from error, but that
1044 takes a 'mode_flags' parameter.
1045 (error): Converted into a call to __error_internal.
1046 (__error_at_line_internal): New function, renamed from
1047 error_at_line, but that takes a 'mode_flags' parameter.
1048 (error_at_line): Converted into a call to
1049 __error_at_line_internal.
1050 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1051 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1052 Likewise.
1053
1054 2019-02-20 Martin Liska <mliska@suse.cz>
1055
1056 * math/Makefile: Install math-vector-fortran.h.
1057 * bits/math-vector-fortran.h: New file.
1058 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1059
1060 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1061
1062 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1063 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1064
1065 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1066
1067 * nptl/pthread_mutex_trylock.c: Fix comment.
1068
1069 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1070
1071 * nptl/pthread_tryjoin.c: Fix comment.
1072
1073 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1074
1075 [BZ #24231]
1076 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1077 after R_SPARC_H34 case.
1078
1079 2019-02-18 Florian Weimer <fweimer@redhat.com>
1080
1081 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1082 (getanswer): Do not call Dprintf.
1083 (res_gethostbyname2_context): Likewise.
1084 (res_gethostbyaddr_context): Likewise.
1085
1086 2019-02-18 Florian Weimer <fweimer@redhat.com>
1087
1088 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1089 declaration.
1090 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1091 Remove definitions.
1092 * libio/stdfiles.c: Update comment.
1093 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1094 set _IO_stdin, _IO_stdout, _IO_stderr.
1095 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1096 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1097 inline function.
1098 (_IO_deallocate_file): New inline function.
1099 * libio/iolibio.h (_IO_vprintf): Remove definition.
1100 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1101 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1102 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1103 _IO_legacy_file.
1104 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1105 __builtin_expect. Use _IO_legacy_file.
1106
1107 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1108
1109 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1110 Initialize ctid with a known value and remove update of ctid
1111 after clone.
1112 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1113 as assumed current value of ctid_ptr.
1114
1115 2019-02-16 Florian Weimer <fweimer@redhat.com>
1116
1117 Check that non-sysdeps headers have wrapper headers.
1118 * scripts/check-wrapper-headers.py: New file.
1119 * Makefile (tests-special): Add check-wrapper-headers.out.
1120 (check-wrapper-headers.out): New target.
1121 * Rules (tests-special): Add check-wrapper-headers.out.
1122 (check-wrapper-headers.out): New target.
1123
1124 2019-02-16 Florian Weimer <fweimer@redhat.com>
1125
1126 Add missing header wrappers under include/.
1127 * include/ar.h: New file.
1128 * include/bits/mqueue2.h: Likewise.
1129 * include/bits/stdio.h: Likewise.
1130 * include/bits/stdio2.h: Likewise.
1131 * include/fstab.h: Likewise.
1132 * include/fts.h: Likewise.
1133 * include/lastlog.h: Likewise.
1134 * include/netinet/icmp6.h: Likewise.
1135 * include/netinet/igmp.h: Likewise.
1136 * include/netinet/ip6.h: Likewise.
1137 * include/re_comp.h: Likewise.
1138 * include/regexp.h: Likewise.
1139 * include/rpcsvc/bootparam.h: Likewise.
1140 * include/rpcsvc/yp_prot.h: Likewise.
1141 * include/sys/random.h: Likewise.
1142 * include/sys/stropts.h: Likewise.
1143 * include/sys/ttychars.h: Likewise.
1144 * include/sys/vfs.h: Likewise.
1145 * include/wait.h: Likewise.
1146
1147 2019-02-16 Florian Weimer <fweimer@redhat.com>
1148
1149 * nptl_db/proc_service.h: Move to ...
1150 * sysdeps/nptl/proc_service.h: ... here.
1151 * nptl_db/thread_db.h: Move to ...
1152 * sysdeps/nptl/thread_db.h: ... here.
1153 * nptl/descr.h: Include <thread_db.h>.
1154
1155 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1156
1157 * io/Makefile (tests): Add tst-lockf.
1158 * io/lockf.c (lockf): Use __fcntl and only define for
1159 !__OFF_T_MATCHES_OFF64_T.
1160 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1161 __OFF_T_MATCHES_OFF64_T case.
1162 * io/tst-lockf.c: New file.
1163 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1164 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1165 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1166 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1167 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1169 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1170 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1171 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1172
1173 2019-02-15 Florian Weimer <fweimer@redhat.com>
1174
1175 [BZ #24211]
1176 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1177 pd->result after the thread descriptor has been freed.
1178
1179 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1180
1181 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1182 from function return type.
1183
1184 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1185
1186 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1187
1188 * scripts/test_printers_common.py: Set TERM to a known harmless
1189 value.
1190
1191 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1192
1193 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1194 (xdr_u_int): Likewise.
1195 (xdr_enum): Likewise.
1196 (xdr_bytes): Reword fall-through comment.
1197 (xdr_string): Likewise.
1198
1199 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1200
1201 [BZ #2421]
1202 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1203 (tests): Add tst-join8 tst-join9.
1204 * nptl/lll_timedwait_tid.c: Remove file.
1205 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1206 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1207 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1208 * nptl/pthread_join_common.c (timedwait_tid): New function.
1209 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1210 is set.
1211 * nptl/tst-join5.c (thread_join): New function.
1212 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1213 check.
1214 * nptl/tst-join8.c: New file.
1215 * nptl/tst-join9.c: Likewise.
1216 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1217 lll_futex_timed_wait_cancel): Add generic macros.
1218 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1219 Remove definitions.
1220 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1221 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1222 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1223 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1224 Remove function.
1225 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1226 Likewise.
1227 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1228 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1229 (lll_futex_timed_wait_cancel): New macro.
1230
1231 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1232
1233 * benchtests/Makefile: Add malloc-simple benchmark.
1234 * benchtests/bench-malloc-simple.c: New benchmark.
1235
1236 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1237
1238 * benchtests/bench-memmove.c (do_one_test): Remove unused
1239 ORIG_SRC.
1240 (do_test): Adjust.
1241 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1242 ORIG_SRC.
1243 (do_test): Adjust.
1244
1245 2019-01-13 Jim Wilson <jimw@sifive.com>
1246
1247 [BZ #24040]
1248 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1249 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1250 (func): New.
1251 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1252 call func directly.
1253 * nptl/Makefile (tests): Add tst-unwind-thread.
1254 (CFLAGS-tst-unwind-thread.c): Define.
1255 * nptl/tst-unwind-thread.c: New file.
1256 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1257 as undefined.
1258
1259 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1260
1261 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1262 comment wording.
1263 * nis/nis_call.c (__do_niscall3): Likewise.
1264
1265 * catgets/gencat.c (normalize_line): Use braces around empty
1266 'else' body.
1267 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1268 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1269 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1270 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1271 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1272 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1273 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1274 definition.
1275
1276 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1277 execlp returns.
1278
1279 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1280
1281 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1282 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1283 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1284 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1285 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1286 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1287 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1288 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1289 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1290 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1291 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1292 * benchtests/bench-bcopy.c: Delete file.
1293 * benchtests/bench-bzero.c: Likewise.
1294 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1295 (simple_memccpy): Remove.
1296 (generic_memccpy): Add function.
1297 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1298 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1299 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1300 (generic_mempcpy): Add new function.
1301 * benchtests/bench-memset.c (simple_bzero): Remove.
1302 (builtin_bzero): Remove.
1303 (builtin_memset): Remove.
1304 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1305 (generic_rawmemchr): Add new function.
1306
1307 2019-02-12 Florian Weimer <fweimer@redhat.com>
1308
1309 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1310
1311 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1312
1313 [BZ #24122]
1314 * elf/Makefile (tests): Add tst-audit13.
1315 (modules-names): Add tst-audit13mod1.
1316 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1317 rule.
1318 * elf/tst-audit13.c: New file.
1319 * elf/tst-audit13mod1.c: Likewise.
1320
1321 2019-02-12 Florian Weimer <fweimer@redhat.com>
1322
1323 [BZ #24122]
1324 * elf/rtld.c (unload_audit_module): New function.
1325 (report_audit_module_load_error): Likewise.
1326 (load_audit_module): Likewise. Extracted from dl_main. Call
1327 _dl_close if the laversion symbol cannot be found. Use early
1328 returns for error handling. Add malloc error check. Check for a
1329 zero return value from la_version. Remove spurious comment about
1330 static TLS initialization. Remove useless casts.
1331 (notify_audit_modules_of_loaded_object): New function. Extracted
1332 from dl_main.
1333 (load_audit_module): Likewise.
1334 (dl_main): Call load_audit_modules.
1335
1336 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1337
1338 * elf/dl-exception.c (_dl_exception_create_format): Add
1339 fall-through comments.
1340 * elf/ldconfig.c (parse_conf_include): Likewise.
1341 * elf/rtld.c (print_statistics): Likewise.
1342 * locale/programs/charmap.c (parse_charmap): Likewise.
1343 * misc/mntent_r.c (__getmntent_r): Likewise.
1344 * posix/wordexp.c (parse_arith): Likewise.
1345 (parse_backtick): Likewise.
1346 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1347 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1348 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1349
1350 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1351
1352 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1353 Use float instead of double.
1354
1355 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1356
1357 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1358
1359 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1360
1361 * sysdeps/powerpc/bits/mathinline.h: Remove.
1362
1363 2019-02-08 Florian Weimer <fweimer@redhat.com>
1364
1365 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1366 * math/bits/math-finite.h: Move to ...
1367 * bits/math-finite.h: ... here.
1368
1369 2019-02-08 Florian Weimer <fweimer@redhat.com>
1370
1371 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1372 * bits/unistd_ext.h: here.
1373
1374 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1375
1376 [BZ #21915]
1377 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1378 * nss/tst-nss-files-hosts-long.c: New file.
1379 * nss/tst-nss-files-hosts-long.root: New directory.
1380 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1381 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1382
1383 2019-02-08 Florian Weimer <fweimer@redhat.com>
1384
1385 * include/bits/unistd_ext.h: Remove file.
1386 * posix/bits/unistd_ext.h: Move to ...
1387 * sysdeps/generic/bits/unistd_ext.h: ... here.
1388
1389 2019-02-08 Florian Weimer <fweimer@redhat.com>
1390
1391 * include/bits/unistd_ext.h: New file.
1392
1393 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1394
1395 * time/tst-strftime2.c: Use array_length macros instead of magic
1396 numbers.
1397
1398 2019-02-08 Florian Weimer <fweimer@redhat.com>
1399
1400 [BZ #24161]
1401 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1402 argument.
1403 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1404 locking if the new do_locking argument is true.
1405 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1406 __run_fork_handlers.
1407
1408 2019-02-08 Florian Weimer <fweimer@redhat.com>
1409
1410 [BZ #6399]
1411 Linux: Add gettid system call wrapper.
1412 * posix/Makefile (headers): Add bits/unistd_ext.h.
1413 * posix/bits/unistd_ext.h: New file.
1414 * posix/unistd.h: Include it.
1415 * manual/process.texi (Process Identification): Document gettid.
1416 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1417 tst-gettid, tst-gettid-kill.
1418 (tst-gettid): Link with $(shared-thread-library).
1419 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1420 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1421 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1422 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1423 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1424 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1425 Add gettid.
1426 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1427 Likewise.
1428 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1429 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1430 Likewise.
1431 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1432 Likewise.
1433 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1434 Likewise.
1435 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1436 Likewise.
1437 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1438 Likewise.
1439 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1442 Likewise.
1443 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1444 (GLIBC_2.30): Likewise.
1445 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1446 (GLIBC_2.30): Likewise.
1447 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1448 (GLIBC_2.30): Likewise.
1449 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1450 (GLIBC_2.30): Likewise.
1451 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1452 Likewise.
1453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1454 (GLIBC_2.30): Likewise.
1455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1456 (GLIBC_2.30): Likewise.
1457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1458 (GLIBC_2.30): Likewise.
1459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1460 (GLIBC_2.30): Likewise.
1461 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1462 Likewise.
1463 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1464 Likewise.
1465 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1466 Likewise.
1467 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1468 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1469 Likewise.
1470 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1471 Likewise.
1472 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1473 Likewise.
1474 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1475 Likewise.
1476 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1477
1478 2019-02-08 Florian Weimer <fweimer@redhat.com>
1479
1480 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1481 compatibility symbols.
1482
1483 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1484
1485 [BZ #24180]
1486 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1487 Add compiler barriers and comments.
1488
1489 2019-02-07 Florian Weimer <fweimer@redhat.com>
1490
1491 * include/array_length.h (array_length): Do not use a statement
1492 expression and _Static_assert, so that array_length can be used at
1493 file scope and as a constant expression.
1494
1495 2019-02-07 Florian Weimer <fweimer@redhat.com>
1496
1497 * support/xdlfcn.h (xdlmopen): Declare.
1498 * support/xdlmopen.c: New file.
1499 * support/Makefile (libsupport-routines): Add xdlmopen.
1500
1501 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1502
1503 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1504 before return type, without separate inline.
1505 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1506 * elf/dl-tunables.h (tunable_is_name): Likewise.
1507 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1508 (do_set_top_pad): Likewise.
1509 (do_set_mmap_threshold): Likewise.
1510 (do_set_mmaps_max): Likewise.
1511 (do_set_mallopt_check): Likewise.
1512 (do_set_perturb_byte): Likewise.
1513 (do_set_arena_test): Likewise.
1514 (do_set_arena_max): Likewise.
1515 (do_set_tcache_max): Likewise.
1516 (do_set_tcache_count): Likewise.
1517 (do_set_tcache_unsorted_limit): Likewise.
1518 * nis/nis_subr.c (count_dots): Likewise.
1519 * nptl/allocatestack.c (advise_stack_range): Likewise.
1520 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1521 (do_sin): Likewise.
1522 (reduce_sincos): Likewise.
1523 (do_sincos): Likewise.
1524 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1525 (do_set_elision_enable): Likewise.
1526 (TUNABLE_CALLBACK_FNDECL): Likewise.
1527
1528 2019-02-06 Florian Weimer <fweimer@redhat.com>
1529
1530 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1531 (xdlsym): Use dlerror to detect a NULL symbol.
1532
1533 2019-02-06 Florian Weimer <fweimer@redhat.com>
1534
1535 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1536 <stap-probe.h>.
1537 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1538
1539 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1540
1541 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1542
1543 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1544
1545 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1546 __wmemcmp and weak alias to wmemcmp.
1547
1548 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1549
1550 [BZ #23403]
1551 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1552 TLS_TCB_AT_TP tls variant.
1553 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1554 Add alignment checks.
1555 * support/Makefile (libsupport-routines): Add xposix_memalign and
1556 xpthread_setstack.
1557 * support/support.h: Add xposix_memalign.
1558 * support/xthread.h: Add xpthread_attr_setstack.
1559 * support/xposix_memalign.c: New File.
1560 * support/xpthread_attr_setstack.c: Likewise.
1561
1562 2019-02-05 Florian Weimer <fweimer@redhat.com>
1563
1564 [BZ #24164]
1565 arm: Use "nr" constraint for Systemtap probes, to avoid the
1566 compiler using memory operands for constants, due to the "o"
1567 alternative in the default "nor" constraint.
1568 * include/stap-probe.h [USE_STAP_PROBE]: Include
1569 <stap-probe-machine.h>
1570 * sysdeps/generic/stap-probe-machine.h: New file.
1571 * sysdeps/arm/stap-probe-machine.h: Likewise.
1572
1573 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1574
1575 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1576 with 0, not tcache->entries[tc_idx].
1577
1578 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1579 once.
1580
1581 2019-02-04 Andreas Schwab <schwab@suse.de>
1582
1583 [BZ #16976]
1584 [BZ #17396]
1585 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1586 looking up collating elements match against (wide) character
1587 sequence instead of name. Correct alignment adjustment.
1588 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1589 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1590 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1591 (LOCALES): Add cs_CZ.ISO-8859-2.
1592 * posix/tst-fnmatch4.c: New file.
1593 * posix/tst-fnmatch5.c: New file.
1594 * include/wchar.h (__wmemcmp): Declare.
1595 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1596 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1597 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1598 * sysdeps/s390/wmemcmp.c: Likewise.
1599
1600 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1601
1602 [BZ #24155]
1603 CVE-2019-7309
1604 * NEWS: Updated for CVE-2019-7309.
1605 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1606 upper 32 bits of RDX register for x32. Use unsigned Jcc
1607 instructions, instead of signed.
1608 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1609 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1610
1611 2019-02-04 Florian Weimer <fweimer@redhat.com>
1612
1613 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1614 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1615 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1616 Likewise.
1617 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1618 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1619 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1620 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1621 Likewise.
1622 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1623 Likewise.
1624 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1625 Likewise.
1626 (posix_spawn_file_actions_addopen): Likewise.
1627 (posix_spawn_file_actions_addclose): Likewise.
1628 (posix_spawn_file_actions_adddup2): Likewise.
1629 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1630 qualifiers.
1631 (posix_spawn_file_actions_addfchdir_np): Likewise.
1632
1633 2019-02-04 David Newall <glibc@davidnewall.com>
1634
1635 elf: Implement --preload option for the dynamic linker.
1636 * elf/rtld.c (preloadarg): New variable.
1637 (handle_preload_list): Pass through “where” argument to
1638 do_preload.
1639 (dl_main): Handle "--preload" and add second call to
1640 handle_preload_list.
1641 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1642 (tst-rtld-preload-OBJS): Set variable.
1643 (tst-rtld-preload.out): New target.
1644 * elf/tst-rtld-preload.sh: New file.
1645
1646 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1647
1648 * Makefile (testrun.sh): Exit in case of incorrect argument.
1649
1650 2019-02-04 Florian Weimer <fweimer@redhat.com>
1651
1652 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1653 alignment gaps.
1654
1655 2019-02-03 Florian Weimer <fweimer@redhat.com>
1656
1657 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1658 implicit overflow checks.
1659
1660 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1661
1662 * stdlib/isomac.c: Include <unistd.h>.
1663
1664 2019-02-03 Florian Weimer <fweimer@redhat.com>
1665
1666 * include/time.h (__tzfile_default): Use int, not long int, for
1667 the GMT offsets.
1668 * time/tzfile.c (struct ttinfo): Change type of the offset member
1669 to int.
1670 (__tzfile_read): Remove useless cast.
1671 (__tzfile_default): Adjust prototype.
1672 * time/tzset.c (tz_rule): Change type of the offset member to int.
1673 (parse_offset): Change the type of the sign variable to int.
1674
1675 2019-02-03 Florian Weimer <fweimer@redhat.com>
1676
1677 [BZ #24153]
1678 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1679 * libio/getchar.c (getchar): Likewise.
1680 * libio/getchar_u.c (getchar_unlocked): Likewise.
1681 * libio/getwchar.c (getwchar): Likewise.
1682 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1683 * libio/iogets.c (_IO_gets): Likewise.
1684 * libio/vscanf.c (_IO_vscanf): Likewise.
1685 * libio/vwscanf.c (__vwscanf): Likewise.
1686 * libio/tst-bz24153.c: New file.
1687 * libio/Makefile (tests): Add it.
1688
1689 2019-02-02 Florian Weimer <fweimer@redhat.com>
1690
1691 [BZ #14829]
1692 * manual/resource.texi (Basic Scheduling Functions): Add
1693 portability note. Change process to task throughout the section.
1694 Remove incorrect comment about sched_yield as it affects
1695 tasks/threads, not entire processes.
1696 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1697 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1698
1699 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1700
1701 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1702 * configure: Regenerated.
1703 * manual/install.texi (Tools for Compilation): Update minimum GCC
1704 version.
1705 * INSTALL: Regenerated.
1706
1707 2019-02-01 Florian Weimer <fweimer@redhat.com>
1708
1709 * support/support_test_compare_string.c
1710 (support_test_compare_string): Use "string" in error message.
1711 * support/tst-test_compare_string.c (do_test): Adjust.
1712
1713 2019-02-01 Florian Weimer <fweimer@redhat.com>
1714
1715 * support/support_format_address_family.c
1716 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1717
1718 2019-02-01 Florian Weimer <fweimer@redhat.com>
1719
1720 * manual/socket.texi (Internet Address Formats): Clarify the byte
1721 order of struct sockaddr_in, struct sockaddr_in6. Document
1722 sin6_flowinfo and sin6_scope_id.
1723
1724 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1725
1726 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1727 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1728 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1729 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1730 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1731 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1732
1733 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1734
1735 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1736 [!MEMCHR](MEMCHR): Set to __memchr.
1737 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1738 Add memchr_generic and memchr_nosimd.
1739 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1740 (__libc_ifunc_impl_list): Add memchr ifuncs.
1741 * sysdeps/aarch64/multiarch/memchr.c: New file.
1742 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1743 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1744
1745 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1746
1747 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1748 Add memset_emag.
1749 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1750 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1751 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1752 Add IS_EMAG check for ifunc dispatch.
1753 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1754 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1755
1756 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1757
1758 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1759 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1760 Add emag.
1761 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1762 New macro.
1763
1764 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1765
1766 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1767
1768 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1769
1770 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1771 syscall-template file.
1772
1773 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1774 Torvald Riegel <triegel@redhat.com>
1775 Rik Prohaska <prohaska7@gmail.com>
1776
1777 [BZ# 23844]
1778 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1779 tst-rwlock-trywrlock-stall.
1780 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1781 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1782 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1783 Set __wrphase_fute to 1 only if we started the write phase.
1784 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1785 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1786 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1787 * support/xpthread_rwlock_destroy.c: New file.
1788 * support/xthread.h: Declare xpthread_rwlock_destroy.
1789
1790 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1791
1792 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1793 version to 4.0.2.
1794
1795 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1796
1797 [BZ #24051]
1798 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1799 * libio/fileops.c (_IO_new_file_underflow): Likewise
1800 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1801 * libio/putchar.c (putchar): Likewise.
1802 * libio/putchar_u.c (putchar_unlocked): Likewise.
1803 * libio/putwchar.c (putchar): Likewise.
1804 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1805 * libio/tst-bz24051.c: New test.
1806 * libio/Makefile (tests): Add tst-bz24051
1807
1808 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1809
1810 CVE-2019-9169
1811 regex: fix read overrun [BZ #24114]
1812 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1813 https://debbugs.gnu.org/34140
1814 * posix/regexec.c (proceed_next_node):
1815 Do not read past end of input buffer.
1816
1817 2019-01-31 Florian Weimer <fweimer@redhat.com>
1818
1819 [BZ #24059]
1820 * nss/nss_files/files-alias.c (get_next_alias): Handle
1821 continuation line without newline at the end.
1822 * nss/tst-nss-files-alias-truncated.c: New file.
1823 * nss/Makefile [$(build-shared)] (tests): Add
1824 tst-nss-files-alias-truncated.
1825 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1826 * support/namespace.h (struct support_chroot_configuration): Add
1827 aliases member.
1828 (struct support_chroot): Add path_aliases member.
1829 * support/support_chroot.c (support_chroot_create): Handle
1830 aliases.
1831 (support_chroot_free): Free path_aliases.
1832
1833 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1834
1835 * version.h (RELEASE): Set to "development".
1836 (VERSION): Set to "2.29.9000".
1837 * NEWS: Add section for 2.30.
1838
1839 * version.h (RELEASE): Set to "stable".
1840 (VERSION): Set to "2.29".
1841 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1842
1843 * NEWS: Add the list of bugs fixed in 2.29.
1844 * manual/contrib.texi: Update contributors list with some more
1845 names.
1846 * manual/install.texi: Update latest versions of packages
1847 tested.
1848 * INSTALL: Regenerated.
1849
1850 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1851
1852 * po/be.po: Update translations.
1853 * po/bg.po: Likewise.
1854 * po/ca.po: Likewise.
1855 * po/cs.po: Likewise.
1856 * po/da.po: Likewise.
1857 * po/de.po: Likewise.
1858 * po/el.po: Likewise.
1859 * po/eo.po: Likewise.
1860 * po/es.po: Likewise.
1861 * po/fi.po: Likewise.
1862 * po/fr.po: Likewise.
1863 * po/gl.po: Likewise.
1864 * po/hr.po: Likewise.
1865 * po/hu.po: Likewise.
1866 * po/ia.po: Likewise.
1867 * po/id.po: Likewise.
1868 * po/it.po: Likewise.
1869 * po/ja.po: Likewise.
1870 * po/ko.po: Likewise.
1871 * po/lt.po: Likewise.
1872 * po/nb.po: Likewise.
1873 * po/nl.po: Likewise.
1874 * po/pl.po: Likewise.
1875 * po/pt_BR.po: Likewise.
1876 * po/ru.po: Likewise.
1877 * po/rw.po: Likewise.
1878 * po/sk.po: Likewise.
1879 * po/sl.po: Likewise.
1880 * po/sv.po: Likewise.
1881 * po/tr.po: Likewise.
1882 * po/uk.po: Likewise.
1883 * po/vi.po: Likewise.
1884 * po/zh_CN.po: Likewise.
1885 * po/zh_TW.po: Likewise.
1886
1887 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1888
1889 [BZ #24130]
1890 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1891 of $f3 register on $y_is_neg path.
1892
1893 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1894
1895 [BZ #24110]
1896 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1897 sigaltstack.ss_flags.
1898
1899 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1900
1901 [BZ #23758]
1902 * manual/time.texi (strftime): Document "%Ey".
1903 * time/strftime_l.c (__strftime_internal): Set the default width
1904 padding with zero of "%Ey" to 2.
1905
1906 [BZ #24096]
1907 * manual/time.texi (strftime): Document "%EC" and "%EY".
1908 * time/Makefile (tests): Add tst-strftime2.
1909 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1910 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1911 override padding for "%Ey".
1912 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1913 "%Ey" in the subformat as if decorated with that flag.
1914 * time/tst-strftime2.c: New file.
1915
1916 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1917
1918 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1919 are not defined.
1920
1921 [BZ #24122]
1922 * elf/Makefile (tests): Add tst-audit13.
1923 (modules-names): Add tst-audit13mod1.
1924 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1925 rule.
1926 * elf/rtld.c (dl_main): Handle invalid audit module version.
1927 * elf/tst-audit13.c: New file.
1928 * elf/tst-audit13mod1.c: Likewise.
1929
1930 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1931
1932 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1933 returned by __hurd_at_flags.
1934 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1935 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1936 directly instead of __hurd_file_name_lookup.
1937
1938 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1939
1940 * scripts/build-many-glibcs.py (Context.checkout): Default
1941 binutils version to 2.32 branch.
1942
1943 2019-01-21 Florian Weimer <fweimer@redhat.com>
1944
1945 [BZ #20018]
1946 CVE-2016-10739
1947 resolv: Reject trailing characters in host names
1948 * include/arpa/inet.h (__inet_aton_exact): Declare.
1949 (inet_aton): Remove hidden prototype. No longer used internally.
1950 * nscd/gai.c (__inet_aton): Do not define.
1951 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1952 * nss/digits_dots.c (__inet_aton): Likewise.
1953 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1954 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1955 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1956 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1957 (tst-resolv-trailing): Likewise.
1958 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1959 libc.
1960 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1961 Make static. Add endp parameter.
1962 (__inet_aton_exact): New function.
1963 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1964 (__inet_addr): Call inet_aton_end.
1965 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1966 not just IPv6. Call __inet_aton_exact.
1967 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1968 (tests): Make const. Add additional test cases with trailing
1969 characters.
1970 (do_test): Use array_length.
1971 * resolv/tst-inet_aton_exact.c: New file.
1972 * resolv/tst-resolv-trailing.c: Likewise.
1973 * resolv/tst-resolv-nondecimal.c: Likewise.
1974 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1975
1976 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1977
1978 [BZ# 24097]
1979 CVE-2019-6488
1980 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1981 Clear the upper 32 bits of RSI register.
1982 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1983 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1984 and tst-size_t-wcsnlen.
1985 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1986 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1987
1988 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 [BZ# 24097]
1991 CVE-2019-6488
1992 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1993 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1994 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1995 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1996 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1997
1998 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1999
2000 [BZ# 24097]
2001 CVE-2019-6488
2002 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
2003 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2004 * sysdeps/x86_64/strcmp.S: Likewise.
2005 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
2006 tst-size_t-strncmp and tst-size_t-wcsncmp.
2007 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
2008 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
2009 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
2010
2011 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2012
2013 [BZ# 24097]
2014 CVE-2019-6488
2015 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
2016 RDX_LP for length. Clear the upper 32 bits of RDX register.
2017 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
2018 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
2019 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
2020 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
2021
2022 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2023
2024 [BZ# 24097]
2025 CVE-2019-6488
2026 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
2027 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
2028 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
2029 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
2030
2031 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2032
2033 [BZ# 24097]
2034 CVE-2019-6488
2035 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2036 length. Clear the upper 32 bits of RDX register.
2037 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2038 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2039 Likewise.
2040 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2041 Likewise.
2042 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2043 tst-size_t-wmemchr.
2044 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2045
2046 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2047
2048 [BZ# 24097]
2049 CVE-2019-6488
2050 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2051 length. Clear the upper 32 bits of RDX register.
2052 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2053 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2054 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2055 tst-size_t-wmemcmp.
2056 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2057 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2058
2059 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2060
2061 [BZ# 24097]
2062 CVE-2019-6488
2063 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2064 upper 32 bits of RDX register.
2065 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2066 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2067 tst-size_t-wmemchr.
2068 * sysdeps/x86_64/x32/test-size_t.h: New file.
2069 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2070 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2071
2072 2019-01-18 Florian Weimer <fweimer@redhat.com>
2073
2074 [BZ #24112]
2075 resolv: Do not send queries for non-host-names in nss_dns.
2076 * resolv/nss_dns/dns-host.c (check_name): New function.
2077 (_nss_dns_gethostbyname2_r): Use it.
2078 (_nss_dns_gethostbyname_r): Likewise.
2079 (_nss_dns_gethostbyname4_r): Likewise.
2080
2081 2019-01-21 Florian Weimer <fweimer@redhat.com>
2082
2083 * resolv/inet_addr.c: Reformat to GNU style.
2084 (__inet_addr, __inet_aton): Update comment.
2085
2086 2019-01-18 Florian Weimer <fweimer@redhat.com>
2087
2088 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2089 ("malloc: Use current (C11-style) atomics for fastbin access").
2090 This commit introduces a substantial performance regression on
2091 POWER and Aarch64.
2092 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2093 (REMOVE_FB): Define.
2094 (_int_malloc): Use it and reindent.
2095 (_int_free): Use CAS loop with
2096 catomic_compare_and_exchange_val_rel.
2097 (malloc_consolidate): Use atomic_exchange_acq.
2098
2099
2100 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2101
2102 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2103 -Wl,-z,now.
2104 (LDFLAGS-tst-minsigstksz-2): Likewise.
2105 (LDFLAGS-tst-minsigstksz-3): Likewise.
2106 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2107 (LDFLAGS-tst-minsigstksz-4): Likewise.
2108
2109 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2110
2111 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2112 than "alternate".
2113
2114 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2115
2116 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2117
2118 2019-01-16 Zack Weinberg <zackw@panix.com>
2119
2120 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2121 (xget_sigstack_location): New test support functions.
2122 * support/xsigstack.c: New file, implementing them.
2123 * support/tst-xsigstack.c: New test for them.
2124 * support/Makefile: Update.
2125
2126 * signal/tst-minsigstksz-1.c
2127 * signal/tst-minsigstksz-2.c
2128 * signal/tst-minsigstksz-3.c
2129 * signal/tst-minsigstksz-3a.c
2130 * signal/tst-minsigstksz-4.c: New tests.
2131 * signal/Makefile: Run them.
2132
2133 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2134
2135 * po/libc.pot: Regenerate.
2136
2137 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2138
2139 * math/libm-test-fma.inc (fma_test_data): Set
2140 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2141
2142 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2143
2144 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2145 (do_test): Changed __vector __int128_t to __vector unsigned int.
2146
2147 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2148
2149 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2150 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2151 stpcpy-avx2 and stpncpy-avx2.
2152 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2153 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2154 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2155 and __stpncpy_avx2.
2156 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2157 ifunc-strcpy.h}: rename header for a more generic name.
2158 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2159 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2160 AVX unaligned load is fast and vzeroupper is preferred.
2161 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2162 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2163 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2164 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2165 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2166 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2167
2168 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2169
2170 * argp/argp-help.c: Fix typo in comment.
2171 * misc/sys/cdefs.h: Likewise.
2172 * posix/regexec.c (sift_states_iter_mb): Likewise.
2173 * socket/sockatmark.c: Likewise.
2174 * socket/sys/socket.h: Likewise.
2175 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2176 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2177 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2178 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2179 * sysdeps/unix/sockatmark.c: Likewise.
2180 * time/strptime_l.c: Likewise.
2181
2182 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2183
2184 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2185 missing space after the cast of "_NL_CURRENT".
2186
2187 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2188
2189 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2190 ifdef to fix read of VSCR.
2191 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2192 tst-ucontext-ppc64-vscr.c to test list.
2193 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2194
2195 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2196
2197 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2198 fall-through.
2199
2200 2019-01-09 Jim Wilson <jimw@sifive.com>
2201
2202 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2203
2204 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2205
2206 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2207 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2208 __memcpy_falkor for ares.
2209 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2210 Add new define.
2211 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2212 Add ares cpu.
2213
2214 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2215
2216 [BZ #24066]
2217 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2218 4_FP_W_TYPEs are used for IEEE quad precision.
2219 * soft-fp/extendhftf2.c: Likewise.
2220 * soft-fp/extendsftf2.c: Likewise.
2221 * soft-fp/extendxftf2.c: Likewise.
2222 * soft-fp/trunctfdf2.c: Likewise.
2223 * soft-fp/trunctfhf2.c: Likewise.
2224 * soft-fp/trunctfsf2.c: Likewise.
2225 * soft-fp/trunctfxf2.c: Likewise.
2226 * sysdeps/alpha/ots_cvttx.c: Likewise.
2227 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2228 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2229 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2230 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2231 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2232 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2233 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2234 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2235 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2236 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2237 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2238 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2239 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2240 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2241 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2242 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2243 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2244
2245 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2246
2247 [BZ #24024]
2248 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2249 code with -fmath-errno.
2250 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2251 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2252 * string/test-strerror-errno.c: New file.
2253
2254 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2255
2256 [BZ #24046]
2257 * localedata/locales/en_US (date_fmt): Add, set to
2258 "%a %d %b %Y %r %Z".
2259
2260 2019-01-07 Florian Weimer <fweimer@redhat.com>
2261
2262 [BZ #24063]
2263 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2264 instead of @var{errno}.
2265 (Parsing of Integers): Likewise.
2266 (Parsing of Floats): Likewise.
2267 * manual/filesys.texi (Working with Directory Trees): Likewise.
2268 (Temporary Files): Likewise.
2269 * manual/job.texi (Terminal Access Functions): Likewise.
2270 * manual/llio.texi (Synchronizing I/O): Likewise.
2271 * manual/math.texi (SVID Random): Likewise.
2272 * manual/message.texi (The catgets Functions): Likewise.
2273 (Translation with gettext): Likewise.
2274 (Locating gettext catalog): Likewise.
2275 (Charset conversion in gettext): Likewise.
2276 * manual/nss.texi (NSS Module Function Internals): Likewise.
2277 * manual/search.texi (Hash Search Function): Likewise.
2278 * manual/setjmp.texi (System V contexts): Likewise.
2279 * manual/time.texi (Sleeping): Likewise.
2280 * manual/users.texi (Lookup User): Likewise.
2281 (Lookup Group): Likewise.
2282
2283 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2284
2285 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2286 fix typo.
2287
2288 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2289
2290 [BZ #19444]
2291 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2292 __builtin_unreachable for default case in switch.
2293 (__ieee754_yn): Likewise.
2294 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2295 (__ieee754_ynl): Likewise.
2296 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2297 (__ieee754_ynl): Likewise.
2298 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2299 (__ieee754_ynl): Likewise.
2300
2301 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2302
2303 * manual/maint.texi: Use @{ and @}.
2304
2305 2019-01-04 Florian Weimer <fweimer@redhat.com>
2306
2307 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2308 function.
2309 (do_in_chroot_1): Call it.
2310 (run_chroot_tests):
2311 Improve error reporting in case it is not possible to create a
2312 collision for the PTY name required by the test.
2313
2314 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2315
2316 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2317 lll_wait_tid with timeout.
2318 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2319 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2320 futex_reltimed_wait_cancelable for cancelabla mode.
2321 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2322 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2323 macros.
2324 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2325 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2326 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2327 SYSCALL_CANCEL_NCS): New macro.
2328 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2329 (lll_timedwait_tid): Remove macro.
2330 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2331 Likewise.
2332 (lll_timedwait_tid): Likewise.
2333 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2334 Likewise.
2335 (lll_timedwait_tid): Likewise.
2336 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2337 Likewise.
2338 (lll_timedwait_tid): Likewise.
2339 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2340 Use INTERNAL_SYSCALL_CANCEL.
2341 * sysdeps/unix/sysv/linux/futex-internal.h
2342 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2343 instead of __pthread_{enable,disable}_asynccancel.
2344 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2345 (lll_futex_wait_cancel): New macro.
2346
2347 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2348 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2349
2350 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2351 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2352
2353 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2354 in backtrace analysis.
2355 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2356 side-effects.
2357 (tf_send): Likewise.
2358
2359 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2360 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2361 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2362 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2363 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2364 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2365 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2366 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2367 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2368 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2369 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2370 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2371 Likewise.
2372 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2373 tst-cancel-wrappers.sh.
2374 (generated): Remove tst-cancel-wrappers.out.
2375 (tst-cancel-wrappers.out): Remove rule.
2376 * nptl/tst-cancel-wrappers.sh: Remove file.
2377
2378 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2379
2380 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2381 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2382 Update.
2383
2384 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2385
2386 [BZ #23640]
2387 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2388 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2389 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2390 close-on-exec reset for adddup2 file action.
2391 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2392
2393 2019-01-03 Zack Weinberg <zackw@panix.com>
2394
2395 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2396 parameter. Only use deprecated scanf when __USE_GNU is defined
2397 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2398 than 201103L, whichever is relevant for the language being compiled.
2399
2400 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2401 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2402 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2403 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2404 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2405
2406 * libio/iovsscanf.c
2407 * libio/fwscanf.c
2408 * libio/iovswscanf.c
2409 * libio/swscanf.c
2410 * libio/vscanf.c
2411 * libio/vwscanf.c
2412 * libio/wscanf.c
2413 * stdio-common/fscanf.c
2414 * stdio-common/scanf.c
2415 * stdio-common/vfscanf.c
2416 * stdio-common/vfwscanf.c
2417 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2418 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2419 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2420 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2421 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2422 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2423 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2424 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2425 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2426 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2427 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2428 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2429 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2430 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2431 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2432
2433 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2434 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2435 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2436 not sscanf.
2437 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2438 with a preprocessor macro.
2439
2440 * stdio-common/bug21.c, stdio-common/scanf14.c:
2441 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2442 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2443 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2444 to xscanf, xfscanf, xsscanf.
2445
2446 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2447 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2448 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2449 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2450 xfscanf, xsscanf.
2451 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2452 override feature selection macros or provide definitions of u_char etc.
2453 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2454 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2455 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2456 with -std=gnu89.
2457
2458 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2459
2460 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2461 bits/termios-misc.h.
2462 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2463 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2464 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2465 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2466 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2467 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2468
2469 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2470 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2471 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2472 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2473 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2474 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2475 termios-misc.h.
2476 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2477 (sysdep_headers): Add termios-misc.h.
2478
2479 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2480 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2481 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2482
2483 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2484 termios-tcflow.h.
2485 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2486 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2487 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2488 TCSAFLUSH): Move to termios-tcflow.h.
2489 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2490 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2491 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2492 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2493
2494 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2495 termios-c_lflag.h.
2496 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2497 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2498 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2499 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2500 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2501 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2502 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2503 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2504 Likewise.
2505 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2506 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2507 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2508 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2509
2510 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2511 termios-c_cflag.h.
2512 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2513 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2514 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2515 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2516 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2517 termios-c_cflag.h.
2518 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2519 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2520 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2521 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2522
2523 [BZ #23783]
2524 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2525 termios-baud.h.
2526 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2527 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2528 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2529 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2530 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2531 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2532 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2533 __MAX_BAUD): Move to termios-baud.h.
2534 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2535 * sysdeps/unix/sysv/linux/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 (sysdep_routines): Add
2541 termios-c_oflag.h.
2542 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2543 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2544 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2545 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2546 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2547 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2548 termios-c_oflag.h.
2549 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2550 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2551 FFR1): Likewise.
2552 [USE_MISC] (XTABS): Likewise.
2553 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2554 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2555 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2556 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2557
2558 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2559 termios-c_iflag.h.
2560 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2561 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2562 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2563 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2564 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2565 IUTF8): Move to termios-c_iflag.h.
2566 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2567 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2568 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2569 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2570
2571 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2572 termios-cc.h.
2573 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2574 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2575 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2576 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2577 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2578 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2579 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2580 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2581 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2582 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2583 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2584 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2585
2586 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2587 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2588 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2589 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2590 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2591 termios-struct.h.
2592 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2593 termios-struct.h.
2594 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2595 Likewise.
2596 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2597 Likewise.
2598 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2599 Likewise.
2600 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2601 Likewise.
2602 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2603 _HAVE_C_OSPEED): Define.
2604 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2605 _HAVE_C_OSPEED): Likewise.
2606 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2607 _HAVE_C_OSPEED): Likewise.
2608 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2609 (cfsetospeed): Check for define value instead of existence.
2610 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2611 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2612 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2613 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2614 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2615
2616 [BZ #17783]
2617 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2618 Define.
2619 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2620 (TIOCSER_TEMT): Likewise.
2621 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2622 (TEOCSER_TEMT): Likewise.
2623
2624 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2625
2626 [BZ #24011]
2627 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2628
2629 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2630
2631 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2632
2633 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2634
2635 * sysdeps/htl/pt-barrierattr-setpshared.c
2636 (pthread_barrierattr_setpshared): Add stub warning.
2637 * sysdeps/htl/pt-condattr-setpshared.c
2638 (pthread_condattr_setpshared): Likewise.
2639 * sysdeps/htl/pt-mutexattr-setpshared.c
2640 (pthread_mutexattr_setpshared): Likewise.
2641 * sysdeps/htl/pt-rwlockattr-setpshared.c
2642 (pthread_rwlockattr_setpshared): Likewise.
2643 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2644 (pthread_mutexattr_setpshared): Likewise.
2645
2646 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2647
2648 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2649 constants to match with Linux 4.20.
2650
2651 * sysdeps/mips/mips32/libm-test-ulps: Update.
2652 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2653
2654 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2655
2656 [BZ #24034]
2657 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2658 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2659 than __typeof (...) for the a_ptr variable.
2660
2661 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2662
2663 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2664 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2665 * libio/Makefile (tests): Add tst-sprintf-ub and
2666 tst-sprintf-chk-ub.
2667 (CFLAGS-tst-sprintf-ub.c): New variable.
2668 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2669 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2670 destination buffer and check for overflows in fortified mode.
2671 * libio/libioP.h (PRINTF_CHK): New macro.
2672 * libio/tst-sprintf-chk-ub.c: New file.
2673 * libio/tst-sprintf-ub.c: Likewise.
2674
2675 2019-01-02 Florian Weimer <fweimer@redhat.com>
2676
2677 [BZ #24018]
2678 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2679 failure.
2680
2681 2019-01-02 Florian Weimer <fweimer@redhat.com>
2682
2683 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2684
2685 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2686
2687 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2688 macro.
2689
2690 * sysdeps/unix/sysv/linux/netpacket/packet.h
2691 (PACKET_IGNORE_OUTGOING): New macro.
2692
2693 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2694 macro.
2695
2696 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2697 version to 4.20.
2698 (riscv_flush_icache): New syscall.
2699
2700 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2701 trailing whitespace removed.
2702 * scripts/config.guess: Update to version 2019-01-01.
2703 * scripts/config.sub: Update to version 2019-01-01.
2704 * scripts/move-if-change: Update from gnulib.
2705
2706 * NEWS: Update copyright dates.
2707 * catgets/gencat.c (print_version): Likewise.
2708 * csu/version.c (banner): Likewise.
2709 * debug/catchsegv.sh: Likewise.
2710 * debug/pcprofiledump.c (print_version): Likewise.
2711 * debug/xtrace.sh (do_version): Likewise.
2712 * elf/ldconfig.c (print_version): Likewise.
2713 * elf/ldd.bash.in: Likewise.
2714 * elf/pldd.c (print_version): Likewise.
2715 * elf/sotruss.sh: Likewise.
2716 * elf/sprof.c (print_version): Likewise.
2717 * iconv/iconv_prog.c (print_version): Likewise.
2718 * iconv/iconvconfig.c (print_version): Likewise.
2719 * locale/programs/locale.c (print_version): Likewise.
2720 * locale/programs/localedef.c (print_version): Likewise.
2721 * login/programs/pt_chown.c (print_version): Likewise.
2722 * malloc/memusage.sh (do_version): Likewise.
2723 * malloc/memusagestat.c (print_version): Likewise.
2724 * malloc/mtrace.pl: Likewise.
2725 * manual/libc.texinfo: Likewise.
2726 * nptl/version.c (banner): Likewise.
2727 * nscd/nscd.c (print_version): Likewise.
2728 * nss/getent.c (print_version): Likewise.
2729 * nss/makedb.c (print_version): Likewise.
2730 * posix/getconf.c (main): Likewise.
2731 * scripts/test-installation.pl: Likewise.
2732 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2733
2734 * All files with FSF copyright notices: Update copyright dates
2735 using scripts/update-copyrights.
2736 * locale/programs/charmap-kw.h: Regenerated.
2737 * locale/programs/locfile-kw.h: Likewise.
2738
2739 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2740
2741 * timezone/zdump.c: Update from tzcode 2018i.
2742 * timezone/zic.c: Likewise.
2743
2744 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2745
2746 regex: improve Gnulib port to AIX
2747 From the glibc point of view, this removes duplicate macro
2748 definitions and is obviously safe.
2749 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2750 * posix/regex_internal.h:
2751 (__attribute__, __attribute_warn_unused_result__):
2752 Remove; already defined elsewhere.
2753
2754 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2755
2756 [BZ #24027]
2757 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2758 copying operation. (ncopies had the wrong type, resulting in an
2759 integer wraparound and too few elements being copied.)
2760
2761 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2762
2763 [BZ #24022]
2764 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2765 <asm/syscalls.h> exists with __has_include__ before including it.
2766
2767 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2768
2769 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2770 version to 4.20.
2771
2772 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2773
2774 * hurd/lookup-retry: Include <unistd.h>.
2775 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2776 Release it on return. Handle "pid" magical lookup retry.
2777
2778 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2779
2780 [BZ #10496]
2781 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2782 (t_fmt_ampm): Likewise.
2783 * localedata/locales/aa_ER (t_fmt): Likewise.
2784 (t_fmt_ampm): Likewise.
2785 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2786 (t_fmt_ampm): Likewise.
2787 * localedata/locales/aa_ET (t_fmt): Likewise.
2788 (t_fmt_ampm): Likewise.
2789 * localedata/locales/am_ET (t_fmt): Likewise.
2790 (t_fmt_ampm): Likewise.
2791 * localedata/locales/byn_ER (t_fmt): Likewise.
2792 (t_fmt_ampm): Likewise.
2793 * localedata/locales/om_ET (t_fmt): Likewise.
2794 (t_fmt_ampm): Likewise.
2795 * localedata/locales/sid_ET (t_fmt): Likewise.
2796 (t_fmt_ampm): Likewise.
2797 * localedata/locales/so_DJ (t_fmt): Likewise.
2798 (t_fmt_ampm): Likewise.
2799 * localedata/locales/so_ET (t_fmt): Likewise.
2800 (t_fmt_ampm): Likewise.
2801 * localedata/locales/so_SO (t_fmt): Likewise.
2802 (t_fmt_ampm): Likewise.
2803 * localedata/locales/ti_ER (t_fmt): Likewise.
2804 (t_fmt_ampm): Likewise.
2805 * localedata/locales/ti_ET (t_fmt): Likewise.
2806 (t_fmt_ampm): Likewise.
2807 * localedata/locales/tig_ER (t_fmt): Likewise.
2808 (t_fmt_ampm): Likewise.
2809 * localedata/locales/wal_ET (t_fmt): Likewise.
2810 (t_fmt_ampm): Likewise.
2811
2812 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2813 * localedata/locales/ar_IN (t_fmt): Likewise.
2814 * localedata/locales/bhb_IN (t_fmt): Likewise.
2815 * localedata/locales/bho_IN (t_fmt): Likewise.
2816 * localedata/locales/bi_VU (t_fmt): Likewise.
2817 * localedata/locales/bn_BD (t_fmt): Likewise.
2818 * localedata/locales/bn_IN (t_fmt): Likewise.
2819 * localedata/locales/brx_IN (t_fmt): Likewise.
2820 * localedata/locales/doi_IN (t_fmt): Likewise.
2821 * localedata/locales/en_HK (t_fmt): Likewise.
2822 (t_fmt_ampm): Likewise.
2823 * localedata/locales/en_IN (t_fmt): Likewise.
2824 * localedata/locales/en_PH (t_fmt): Likewise.
2825 * localedata/locales/gu_IN (t_fmt): Likewise.
2826 * localedata/locales/hi_IN (t_fmt): Likewise.
2827 * localedata/locales/hif_FJ (t_fmt): Likewise.
2828 * localedata/locales/hne_IN (t_fmt): Likewise.
2829 * localedata/locales/kn_IN (t_fmt): Likewise.
2830 * localedata/locales/kok_IN (t_fmt): Likewise.
2831 * localedata/locales/ks_IN (t_fmt): Likewise.
2832 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2833 * localedata/locales/mag_IN (t_fmt): Likewise.
2834 * localedata/locales/mai_IN (t_fmt): Likewise.
2835 * localedata/locales/mjw_IN (t_fmt): Likewise.
2836 * localedata/locales/ml_IN (t_fmt): Likewise.
2837 * localedata/locales/mni_IN (t_fmt): Likewise.
2838 * localedata/locales/mr_IN (t_fmt): Likewise.
2839 * localedata/locales/ms_MY (t_fmt): Likewise.
2840 * localedata/locales/pa_IN (t_fmt): Likewise.
2841 * localedata/locales/raj_IN (t_fmt): Likewise.
2842 * localedata/locales/sa_IN (t_fmt): Likewise.
2843 * localedata/locales/sat_IN (t_fmt): Likewise.
2844 * localedata/locales/sd_IN (t_fmt): Likewise.
2845 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2846 * localedata/locales/tcy_IN (t_fmt): Likewise.
2847 * localedata/locales/the_NP (t_fmt): Likewise.
2848 * localedata/locales/to_TO (t_fmt): Likewise.
2849 * localedata/locales/ur_IN (t_fmt): Likewise.
2850
2851 * localedata/locales/hif_FJ (d_t_fmt): Set to
2852 "%A %d %b %Y %I:%M:%S %p".
2853 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2854
2855 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2856 * localedata/locales/ar_BH (t_fmt): Likewise.
2857 * localedata/locales/ar_DZ (t_fmt): Likewise.
2858 * localedata/locales/ar_EG (t_fmt): Likewise.
2859 * localedata/locales/ar_IQ (t_fmt): Likewise.
2860 * localedata/locales/ar_JO (t_fmt): Likewise.
2861 * localedata/locales/ar_KW (t_fmt): Likewise.
2862 * localedata/locales/ar_LB (t_fmt): Likewise.
2863 * localedata/locales/ar_LY (t_fmt): Likewise.
2864 * localedata/locales/ar_OM (t_fmt): Likewise.
2865 * localedata/locales/ar_QA (t_fmt): Likewise.
2866 * localedata/locales/ar_SD (t_fmt): Likewise.
2867 * localedata/locales/ar_SS (t_fmt): Likewise.
2868 * localedata/locales/ar_SY (t_fmt): Likewise.
2869 * localedata/locales/ar_TN (t_fmt): Likewise.
2870 * localedata/locales/ar_YE (t_fmt): Likewise.
2871
2872 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2873 (t_fmt_ampm): Likewise.
2874 * localedata/locales/gez_ET (t_fmt): Likewise.
2875 (t_fmt_ampm): Likewise.
2876
2877 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2878 (t_fmt_ampm): Likewise.
2879 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2880
2881 * localedata/locales/zh_HK (t_fmt):
2882 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2883
2884 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2885 because this locale does not use the 12-hour clock.
2886 (t_fmt): Set to "%Z %H:%M:%S".
2887 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2888
2889 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2890 because this locale does not use the 12-hour clock.
2891 (t_fmt): Set to "%H:%M:%S %Z".
2892 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2893
2894 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2895 because this locale does not use the 12-hour clock.
2896 (t_fmt): Set to "%T".
2897 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2898 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2899
2900 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2901 because this locale does not use the 12-hour clock.
2902 (t_fmt): Set to "%H:%M:%S %Z".
2903 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2904
2905 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2906 because this locale does not use the 12-hour clock.
2907 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2908 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2909
2910 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2911
2912 [BZ #10496]
2913 [BZ #23724]
2914 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2915 (t_fmt_ampm): Likewise.
2916 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2917 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2918 (d_fmt): Set to "%-d.%-m.%y".
2919
2920 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2921
2922 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2923 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2924 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2925 Likewise.
2926 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2927 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2928 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2929 function.
2930 * support/blob_repeat.c (check_mul_overflow_size_t,
2931 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2932
2933 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2934
2935 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2936
2937 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2938
2939 regex: simplify Gnulib port
2940 This simplifies the code, by removing stuff intended for porting
2941 to Gnulib but no longer needed there.
2942 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2943 uses of libc_hidden_def, weak_alias.
2944 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2945 _Restrict_ except for public-facing headers.
2946 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2947 Remove; already defined elsewhere.
2948 * posix/regex.c, posix/regex_internal.h:
2949 Use __GNUC_PREREQ instead of rolling our own.
2950 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2951
2952 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2953
2954 * benchtests/bench-strlen.c (generic_strlen): New function.
2955 (memchr_strlen): New function.
2956
2957 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2958
2959 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2960 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2961 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2962
2963 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2964
2965 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2966
2967 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2968
2969 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2970 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2971 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2972 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2973 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2974 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2975 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2976
2977 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2978
2979 [BZ #24023]
2980 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2981 PLT reference in libc.so.
2982 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2983 _Q_lltoq and _Q_qtod PLT references in libc.so.
2984
2985 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2986
2987 * benchtests/bench-memchr.c: Cleanup defines.
2988 * benchtests/bench-memcmp.c: Likewise.
2989 * benchtests/bench-memset.c: Likewise.
2990 * benchtests/bench-memset-large.c: Likewise.
2991 * benchtests/bench-memset-walk.c: Likewise.
2992 * benchtests/bench-stpcpy.c: Likewise.
2993 * benchtests/bench-stpncpy.c: Likewise.
2994 * benchtests/bench-strcat.c: Likewise.
2995 * benchtests/bench-strchr.c: Likewise.
2996 * benchtests/bench-strcmp.c: Likewise.
2997 * benchtests/bench-strcpy.c: Likewise.
2998 * benchtests/bench-strcspn.c: Likewise.
2999 * benchtests/bench-string.h: Likewise.
3000 * benchtests/bench-strlen.c: Likewise.
3001 * benchtests/bench-strncat.c: Likewise.
3002 * benchtests/bench-strncmp.c: Likewise.
3003 * benchtests/bench-strncpy.c: Likewise.
3004 * benchtests/bench-strnlen.c: Likewise.
3005 * benchtests/bench-strpbrk.c: Likewise.
3006 * benchtests/bench-strrchr.c: Likewise.
3007 * benchtests/bench-strspn.c: Likewise.
3008
3009 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3010
3011 * stdlib/longlong.h: Update from GCC.
3012
3013 [BZ #23993]
3014 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
3015 * configure: Regenerated.
3016 * manual/install.texi (Tools for Compilation): Update minimum GCC
3017 version.
3018 * INSTALL: Regenerated.
3019
3020 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
3021
3022 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
3023
3024 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
3025
3026 * malloc/malloc.c (mremap_chunk): Additional checks.
3027
3028 2018-12-21 Mao Han <han_mao@c-sky.com>
3029
3030 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3031 * scripts/build-many-glibcs.py: Add C-SKY targets.
3032 * sysdeps/csky/Implies: New file.
3033 * sysdeps/csky/Makefile: Likewise.
3034 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3035 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3036 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3037 * sysdeps/csky/abiv2/memcmp.S: Likewise.
3038 * sysdeps/csky/abiv2/memcpy.S: Likewise.
3039 * sysdeps/csky/abiv2/memmove.S: Likewise.
3040 * sysdeps/csky/abiv2/memset.S: Likewise.
3041 * sysdeps/csky/abiv2/setjmp.S: Likewise.
3042 * sysdeps/csky/abiv2/start.S: Likewise.
3043 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3044 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3045 * sysdeps/csky/abiv2/strlen.S: Likewise.
3046 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3047 * sysdeps/csky/abort-instr.h: Likewise.
3048 * sysdeps/csky/atomic-machine.h: Likewise.
3049 * sysdeps/csky/bits/endian.h: Likewise.
3050 * sysdeps/csky/bits/fenv.h: Likewise.
3051 * sysdeps/csky/bits/link.h: Likewise.
3052 * sysdeps/csky/bits/setjmp.h: Likewise.
3053 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3054 * sysdeps/csky/bsd-setjmp.S: Likewise.
3055 * sysdeps/csky/configure: Likewise.
3056 * sysdeps/csky/configure.ac: Likewise.
3057 * sysdeps/csky/dl-machine.h: Likewise.
3058 * sysdeps/csky/dl-procinfo.c: Likewise.
3059 * sysdeps/csky/dl-procinfo.h: Likewise.
3060 * sysdeps/csky/dl-sysdep.h: Likewise.
3061 * sysdeps/csky/dl-tls.h: Likewise.
3062 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3063 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3064 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3065 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3066 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3067 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3068 * sysdeps/csky/fpu/fegetround.c: Likewise.
3069 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3070 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3071 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3072 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3073 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3074 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3075 * sysdeps/csky/fpu/fesetround.c: Likewise.
3076 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3077 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3078 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3079 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3080 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3081 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3082 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3083 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3084 * sysdeps/csky/fpu_control.h: Likewise.
3085 * sysdeps/csky/gccframe.h: Likewise.
3086 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3087 * sysdeps/csky/ldsodefs.h: Likewise.
3088 * sysdeps/csky/libc-tls.c: Likewise.
3089 * sysdeps/csky/linkmap.h: Likewise.
3090 * sysdeps/csky/machine-gmon.h: Likewise.
3091 * sysdeps/csky/memusage.h: Likewise.
3092 * sysdeps/csky/nofpu/Implies: Likewise.
3093 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3094 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3095 * sysdeps/csky/nptl/Makefile: Likewise.
3096 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3097 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3098 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3099 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3100 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3101 * sysdeps/csky/nptl/tls.h: Likewise.
3102 * sysdeps/csky/preconfigure: Likewise.
3103 * sysdeps/csky/sfp-machine.h: Likewise.
3104 * sysdeps/csky/sotruss-lib.c: Likewise.
3105 * sysdeps/csky/stackinfo.h: Likewise.
3106 * sysdeps/csky/sysdep.h: Likewise.
3107 * sysdeps/csky/tininess.h: Likewise.
3108 * sysdeps/csky/tst-audit.h: Likewise.
3109 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3110 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3111 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3112 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3113 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3114 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3115 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3116 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3117 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3118 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3119 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3120 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3121 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3122 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3123 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3124 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3125 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3126 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3127 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3128 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3129 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3130 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3131 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3132 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3133 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3134 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3135 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3136 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3137 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3138 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3139 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3140 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3141 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3142 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3143 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3144 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3145 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3146 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3147 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3148 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3149 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3150 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3151 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3152 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3153
3154 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3155
3156 * include/time.h (__difftime64): Add.
3157 * time/difftime.c (subtract): convert to 64-bit time.
3158 * time/difftime.c (__difftime64): Add.
3159 * time/difftime.c (__difftime): Wrap around __difftime64.
3160
3161 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3162
3163 * manual/examples/add.c: Remove redundant "if not".
3164 * manual/examples/argp-ex1.c: Likewise.
3165 * manual/examples/argp-ex2.c: Likewise.
3166 * manual/examples/argp-ex3.c: Likewise.
3167 * manual/examples/argp-ex4.c: Likewise.
3168 * manual/examples/atexit.c: Likewise.
3169 * manual/examples/db.c: Likewise.
3170 * manual/examples/dir.c: Likewise.
3171 * manual/examples/dir2.c: Likewise.
3172 * manual/examples/execinfo.c: Likewise.
3173 * manual/examples/filecli.c: Likewise.
3174 * manual/examples/filesrv.c: Likewise.
3175 * manual/examples/fmtmsgexpl.c: Likewise.
3176 * manual/examples/genpass.c: Likewise.
3177 * manual/examples/inetcli.c: Likewise.
3178 * manual/examples/inetsrv.c: Likewise.
3179 * manual/examples/isockad.c: Likewise.
3180 * manual/examples/longopt.c: Likewise.
3181 * manual/examples/memopen.c: Likewise.
3182 * manual/examples/memstrm.c: Likewise.
3183 * manual/examples/mkdirent.c: Likewise.
3184 * manual/examples/mkfsock.c: Likewise.
3185 * manual/examples/mkisock.c: Likewise.
3186 * manual/examples/mygetpass.c: Likewise.
3187 * manual/examples/pipe.c: Likewise.
3188 * manual/examples/popen.c: Likewise.
3189 * manual/examples/rprintf.c: Likewise.
3190 * manual/examples/search.c: Likewise.
3191 * manual/examples/select.c: Likewise.
3192 * manual/examples/setjmp.c: Likewise.
3193 * manual/examples/sigh1.c: Likewise.
3194 * manual/examples/sigusr.c: Likewise.
3195 * manual/examples/stpcpy.c: Likewise.
3196 * manual/examples/strdupa.c: Likewise.
3197 * manual/examples/strftim.c: Likewise.
3198 * manual/examples/subopt.c: Likewise.
3199 * manual/examples/swapcontext.c: Likewise.
3200 * manual/examples/termios.c: Likewise.
3201 * manual/examples/testopt.c: Likewise.
3202 * manual/examples/testpass.c: Likewise.
3203 * manual/examples/timeval_subtract.c: Likewise.
3204
3205 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3206
3207 * sysdeps/x86/fpu/math_private.h: New file.
3208 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3209
3210 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3211 definition.
3212 (cosh): Likewise.
3213 (tanh): Likewise.
3214
3215 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3216
3217 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3218 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3219 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3220 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3221 fields.
3222 (_dl_show_auxv): Give a special treatment to
3223 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3224 and AT_L3_CACHEGEOMETRY.
3225 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3226 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3227 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3228 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3229
3230 2018-12-19 Andreas Schwab <schwab@suse.de>
3231
3232 * nscd/connections.c (check_use): Don't abort on invalid len.
3233
3234 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3235
3236 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3237 values in the 64bit value cases.
3238
3239 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3240
3241 * include/time.h
3242 (__ctime64_r): Add.
3243 * time/ctime_r.c
3244 (__ctime64_r): Add.
3245 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3246
3247 * include/time.h
3248 (__ctime64): Add.
3249 * time/gmtime.c
3250 (__ctime64): Add.
3251 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3252
3253 * include/time.h
3254 (__gmtime64_r): Add.
3255 * time/gmtime.c
3256 (__gmtime64_r): Add.
3257 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3258
3259 * include/time.h
3260 (__gmtime64): Add.
3261 * time/gmtime.c
3262 (__gmtime64): Add.
3263 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3264
3265 * include/time.h
3266 (__localtime64_r): Add.
3267 * time/localtime.c
3268 (__localtime64_r): Add.
3269 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3270
3271 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3272
3273 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3274 kernel_sigction definition.
3275
3276 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3277
3278 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3279
3280 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3281 __syscall_rt_sigaction.
3282 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3283 (kernel_sigaction): Use Linux generic defintion.
3284 (STUB): Define.
3285 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3286 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3287 (__syscall_rt_sigaction): Remove implementation.
3288 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3289 hidden.
3290 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3291 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3292 INTERNAL_SYSCALL): Remove definitions.
3293 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3294 action and signal set size.
3295 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3296 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3297
3298 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3299 James Clarke <jrtc27@jrtc27.com>
3300
3301 [BZ #23967]
3302 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3303 Define if SA_RESTORER is defined.
3304 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3305 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3306 already defined.
3307 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3308 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3309 definitions.
3310 (HAS_SA_RESTORER): Define.
3311 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3312 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3313 (HAS_SA_RESTORER): Define.
3314 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3315 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3316 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3317 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3318 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3319
3320 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3321
3322 * sysdeps/unix/sysv/linux/kernel-features.h
3323 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3324 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3325 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3326 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3327 (__ASSUME_ST_INO_64_BIT): Likewise.
3328 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3329 <kernel-features.h>.
3330 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3331 Remove conditional code.
3332 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3333 <kernel-features.h>.
3334 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3335 Remove conditional code.
3336 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3337 <kernel-features.h>.
3338 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3339 Remove conditional code.
3340 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3341 <kernel-features.h>.
3342 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3343 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3344
3345 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3346
3347 * sysdeps/s390/multiarch/ifunc-resolve.h
3348 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3349 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3350 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3351 Delete macro definition.
3352 (s390_libc_ifunc_init): Rename to
3353 s390_libc_ifunc_expr_stfle_init.
3354 * sysdeps/s390/bzero: Use
3355 s390_libc_ifunc_expr_stfle_init instead of
3356 s390_libc_ifunc_init.
3357 * sysdeps/s390/memcmp.c: Likewise.
3358 * sysdeps/s390/memcpy.c: Likewise.
3359 * sysdeps/s390/mempcpy.c: Likewise.
3360 * sysdeps/s390/memset.c: Likewise.
3361
3362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3363
3364 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3365 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3366
3367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3368
3369 * sysdeps/s390/multiarch/Makefile
3370 (sysdep_routines): Remove wmemcmp variants.
3371 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3372 * sysdeps/s390/multiarch/ifunc-impl-list.c
3373 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3374 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3375 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3376 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3377 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3378 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3379 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3380 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3381
3382 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3383
3384 * sysdeps/s390/multiarch/Makefile
3385 (sysdep_routines): Remove wmemset variants.
3386 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3387 * sysdeps/s390/multiarch/ifunc-impl-list.c
3388 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3389 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3390 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3391 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3392 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3393 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3394 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3395 * sysdeps/s390/ifunc-wmemset.h: New file.
3396
3397 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3398
3399 * sysdeps/s390/multiarch/Makefile
3400 (sysdep_routines): Remove wmemchr variants.
3401 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3402 * sysdeps/s390/multiarch/ifunc-impl-list.c
3403 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3404 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3405 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3406 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3407 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3408 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3409 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3410 * sysdeps/s390/ifunc-wmemchr.h: New file.
3411
3412 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3413
3414 * sysdeps/s390/multiarch/Makefile
3415 (sysdep_routines): Remove wcscspn variants.
3416 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3417 * sysdeps/s390/multiarch/ifunc-impl-list.c
3418 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3419 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3420 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3421 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3422 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3423 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3424 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3425 * sysdeps/s390/ifunc-wcscspn.h: New file.
3426
3427 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3428
3429 * sysdeps/s390/multiarch/Makefile
3430 (sysdep_routines): Remove wcspbrk variants.
3431 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3432 * sysdeps/s390/multiarch/ifunc-impl-list.c
3433 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3434 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3435 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3436 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3437 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3438 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3439 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3440 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3441
3442 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3443
3444 * sysdeps/s390/multiarch/Makefile
3445 (sysdep_routines): Remove wcsspn variants.
3446 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3447 * sysdeps/s390/multiarch/ifunc-impl-list.c
3448 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3449 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3450 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3451 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3452 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3453 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3454 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3455 * sysdeps/s390/ifunc-wcsspn.h: New file.
3456
3457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3458
3459 * sysdeps/s390/multiarch/Makefile
3460 (sysdep_routines): Remove wcsrchr variants.
3461 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3462 * sysdeps/s390/multiarch/ifunc-impl-list.c
3463 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3464 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3465 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3466 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3467 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3468 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3469 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3470 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3471
3472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3473
3474 * sysdeps/s390/multiarch/Makefile
3475 (sysdep_routines): Remove wcschrnul variants.
3476 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3477 * sysdeps/s390/multiarch/ifunc-impl-list.c
3478 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3479 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3480 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3481 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3482 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3483 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3484 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3485 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3486
3487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3488
3489 * sysdeps/s390/multiarch/Makefile
3490 (sysdep_routines): Remove wcschr variants.
3491 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3492 * sysdeps/s390/multiarch/ifunc-impl-list.c
3493 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3494 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3495 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3496 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3497 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3498 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3499 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3500 * sysdeps/s390/ifunc-wcschr.h: New file.
3501
3502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3503
3504 * sysdeps/s390/multiarch/Makefile
3505 (sysdep_routines): Remove wcsncmp variants.
3506 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3507 * sysdeps/s390/multiarch/ifunc-impl-list.c
3508 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3509 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3510 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3511 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3512 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3513 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3514 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3515 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3516
3517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3518
3519 * sysdeps/s390/multiarch/Makefile
3520 (sysdep_routines): Remove wcscmp variants.
3521 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3522 * sysdeps/s390/multiarch/ifunc-impl-list.c
3523 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3524 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3525 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3526 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3527 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3528 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3529 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3530 * sysdeps/s390/ifunc-wcscmp.h: New file.
3531
3532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3533
3534 * sysdeps/s390/multiarch/Makefile
3535 (sysdep_routines): Remove wcsncat variants.
3536 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3537 * sysdeps/s390/multiarch/ifunc-impl-list.c
3538 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3539 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3540 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3541 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3542 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3543 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3544 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3545 * sysdeps/s390/ifunc-wcsncat.h: New file.
3546
3547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3548
3549 * sysdeps/s390/multiarch/Makefile
3550 (sysdep_routines): Remove wcscat variants.
3551 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3552 * sysdeps/s390/multiarch/ifunc-impl-list.c
3553 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3554 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3555 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3556 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3557 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3558 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3559 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3560 * sysdeps/s390/ifunc-wcscat.h: New file.
3561
3562 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3563
3564 * sysdeps/s390/multiarch/Makefile
3565 (sysdep_routines): Remove wcpncpy variants.
3566 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3567 * sysdeps/s390/multiarch/ifunc-impl-list.c
3568 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3569 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3570 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3571 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3572 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3573 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3574 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3575 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3576
3577 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3578
3579 * sysdeps/s390/multiarch/Makefile
3580 (sysdep_routines): Remove wcsncpy variants.
3581 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3582 * sysdeps/s390/multiarch/ifunc-impl-list.c
3583 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3584 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3585 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3586 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3587 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3588 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3589 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3590 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3591
3592 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3593
3594 * sysdeps/s390/multiarch/Makefile
3595 (sysdep_routines): Remove wcpcpy variants.
3596 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3597 * sysdeps/s390/multiarch/ifunc-impl-list.c
3598 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3599 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3600 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3601 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3602 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3603 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3604 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3605 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3606
3607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3608
3609 * sysdeps/s390/multiarch/Makefile
3610 (sysdep_routines): Remove wcscpy variants.
3611 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3612 * sysdeps/s390/multiarch/ifunc-impl-list.c
3613 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3614 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3615 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3616 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3617 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3618 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3619 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3620 * sysdeps/s390/ifunc-wcscpy.h: New file.
3621
3622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3623
3624 * sysdeps/s390/multiarch/Makefile
3625 (sysdep_routines): Remove wcsnlen variants.
3626 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3627 * sysdeps/s390/multiarch/ifunc-impl-list.c
3628 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3629 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3630 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3631 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3632 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3633 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3634 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3635 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3636
3637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3638
3639 * sysdeps/s390/multiarch/Makefile
3640 (sysdep_routines): Remove wcslen variants.
3641 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3642 * sysdeps/s390/multiarch/ifunc-impl-list.c
3643 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3644 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3645 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3646 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3647 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3648 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3649 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3650 * sysdeps/s390/ifunc-wcslen.h: New file.
3651
3652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3653
3654 * sysdeps/s390/multiarch/Makefile
3655 (sysdep_routines): Remove memrchr variants.
3656 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3657 * sysdeps/s390/multiarch/ifunc-impl-list.c
3658 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3659 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3660 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3661 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3662 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3663 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3664 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3665 * sysdeps/s390/ifunc-memrchr.h: New file.
3666
3667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3668
3669 * sysdeps/s390/multiarch/Makefile
3670 (sysdep_routines): Remove memccpy variants.
3671 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3672 * sysdeps/s390/multiarch/ifunc-impl-list.c
3673 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3674 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3675 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3676 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3677 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3678 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3679 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3680 * sysdeps/s390/ifunc-memccpy.h: New file.
3681
3682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3683
3684 * sysdeps/s390/multiarch/Makefile
3685 (sysdep_routines): Remove rawmemchr variants.
3686 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3687 * sysdeps/s390/multiarch/ifunc-impl-list.c
3688 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3689 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3690 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3691 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3692 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3693 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3694 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3695 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3696
3697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3698
3699 * sysdeps/s390/multiarch/Makefile
3700 (sysdep_routines): Remove memchr variants.
3701 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3702 * sysdeps/s390/multiarch/ifunc-impl-list.c
3703 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3704 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3705 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3706 * sysdeps/s390/multiarch/memchr.c: Move to ...
3707 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3708 * sysdeps/s390/ifunc-memchr.h: New file.
3709 * sysdeps/s390/s390-64/memchr.S: Move to ...
3710 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3711 for 31/64bit and ifunc handling.
3712 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3713 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3714 * sysdeps/s390/s390-32/memchr.S: Likewise.
3715
3716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3717
3718 * sysdeps/s390/multiarch/Makefile
3719 (sysdep_routines): Remove strcspn variants.
3720 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3721 * sysdeps/s390/multiarch/ifunc-impl-list.c
3722 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3723 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3724 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3725 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3726 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3727 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3728 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3729 * sysdeps/s390/ifunc-strcspn.h: New file.
3730
3731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3732
3733 * sysdeps/s390/multiarch/Makefile
3734 (sysdep_routines): Remove strpbrk variants.
3735 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3736 * sysdeps/s390/multiarch/ifunc-impl-list.c
3737 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3738 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3739 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3740 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3741 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3742 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3743 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3744 * sysdeps/s390/ifunc-strpbrk.h: New file.
3745
3746 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3747
3748 * sysdeps/s390/multiarch/Makefile
3749 (sysdep_routines): Remove strspn variants.
3750 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3751 * sysdeps/s390/multiarch/ifunc-impl-list.c
3752 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3753 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3754 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3755 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3756 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3757 * sysdeps/s390/multiarch/strspn.c: Move to ...
3758 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3759 * sysdeps/s390/ifunc-strspn.h: New file.
3760
3761 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3762
3763 * sysdeps/s390/multiarch/Makefile
3764 (sysdep_routines): Remove strrchr variants.
3765 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3766 * sysdeps/s390/multiarch/ifunc-impl-list.c
3767 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3768 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3769 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3770 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3771 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3772 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3773 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3774 * sysdeps/s390/ifunc-strrchr.h: New file.
3775
3776 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3777
3778 * sysdeps/s390/multiarch/Makefile
3779 (sysdep_routines): Remove strchrnul variants.
3780 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3781 * sysdeps/s390/multiarch/ifunc-impl-list.c
3782 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3783 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3784 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3785 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3786 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3787 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3788 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3789 * sysdeps/s390/ifunc-strchrnul.h: New file.
3790
3791 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3792
3793 * sysdeps/s390/multiarch/Makefile
3794 (sysdep_routines): Remove strchr variants.
3795 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3796 * sysdeps/s390/multiarch/ifunc-impl-list.c
3797 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3798 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3799 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3800 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3801 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3802 * sysdeps/s390/multiarch/strchr.c: Move to ...
3803 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3804 * sysdeps/s390/ifunc-strchr.h: New file.
3805
3806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3807
3808 * sysdeps/s390/multiarch/Makefile
3809 (sysdep_routines): Remove strncmp variants.
3810 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3811 * sysdeps/s390/multiarch/ifunc-impl-list.c
3812 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3813 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3814 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3815 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3816 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3817 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3818 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3819 * sysdeps/s390/ifunc-strncmp.h: New file.
3820
3821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3822
3823 * sysdeps/s390/multiarch/Makefile
3824 (sysdep_routines): Remove strcmp variants.
3825 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3826 * sysdeps/s390/multiarch/ifunc-impl-list.c
3827 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3828 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3829 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3830 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3831 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3832 * sysdeps/s390/ifunc-strcmp.h: New file.
3833 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3834 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3835 for 31/64bit and ifunc handling.
3836 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3837 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3838 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3839
3840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3841
3842 * sysdeps/s390/multiarch/Makefile
3843 (sysdep_routines): Remove strncat variants.
3844 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3845 * sysdeps/s390/multiarch/ifunc-impl-list.c
3846 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3847 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3848 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3849 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3850 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3851 * sysdeps/s390/multiarch/strncat.c: Move to ...
3852 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3853 * sysdeps/s390/ifunc-strncat.h: New file.
3854
3855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3856
3857 * sysdeps/s390/multiarch/Makefile
3858 (sysdep_routines): Remove strcat variants.
3859 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3860 * sysdeps/s390/multiarch/ifunc-impl-list.c
3861 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3862 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3863 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3864 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3865 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3866 * sysdeps/s390/multiarch/strcat.c: Move to ...
3867 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3868 * sysdeps/s390/ifunc-strcat.h: New file.
3869
3870 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3871
3872 * sysdeps/s390/multiarch/Makefile
3873 (sysdep_routines): Remove stpncpy variants.
3874 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3875 * sysdeps/s390/multiarch/ifunc-impl-list.c
3876 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3877 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3878 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3879 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3880 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3881 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3882 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3883 * sysdeps/s390/ifunc-stpncpy.h: New file.
3884
3885 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3886
3887 * sysdeps/s390/multiarch/Makefile
3888 (sysdep_routines): Remove strncpy variants.
3889 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3890 * sysdeps/s390/multiarch/ifunc-impl-list.c
3891 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3892 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3893 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3894 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3895 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3896 * sysdeps/s390/ifunc-strncpy.h: New file.
3897 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3898 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3899 and adjust ifunc handling.
3900 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3901 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3902 and adjust ifunc handling.
3903 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3904 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3905
3906 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3907
3908 * sysdeps/s390/multiarch/Makefile
3909 (sysdep_routines): Remove stpcpy variants.
3910 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3911 * sysdeps/s390/multiarch/ifunc-impl-list.c
3912 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3913 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3914 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3915 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3916 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3917 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3918 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3919 * sysdeps/s390/ifunc-stpcpy.h: New file.
3920
3921 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3922
3923 * sysdeps/s390/multiarch/Makefile
3924 (sysdep_routines): Remove strcpy variants.
3925 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3926 * sysdeps/s390/multiarch/ifunc-impl-list.c
3927 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3928 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3929 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3930 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3931 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3932 * sysdeps/s390/ifunc-strcpy.h: New file.
3933 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3934 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3935 for 31/64bit and ifunc handling.
3936 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3937 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3938 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3939
3940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3941
3942 * sysdeps/s390/multiarch/Makefile
3943 (sysdep_routines): Remove strnlen variants.
3944 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3945 * sysdeps/s390/multiarch/ifunc-impl-list.c
3946 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3947 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3948 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3949 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3950 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3951 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3952 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3953 * sysdeps/s390/ifunc-strnlen.h: New file.
3954
3955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3956
3957 * sysdeps/s390/multiarch/Makefile
3958 (sysdep_routines): Remove strlen variants.
3959 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3960 * sysdeps/s390/multiarch/ifunc-impl-list.c
3961 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3962 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3963 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3964 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3965 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3966 * sysdeps/s390/multiarch/strlen.c: Move to ...
3967 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3968 * sysdeps/s390/ifunc-strlen.h: New file.
3969
3970 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3971
3972 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3973 * sysdeps/s390/multiarch/ifunc-impl-list.c
3974 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3975 * sysdeps/s390/ifunc-memmem.h: New file.
3976 * sysdeps/s390/memmem.c: Likewise.
3977 * sysdeps/s390/memmem-c.c: Likewise.
3978 * sysdeps/s390/memmem-vx.c: Likewise.
3979
3980 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3981
3982 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3983 * sysdeps/s390/multiarch/ifunc-impl-list.c
3984 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3985 * sysdeps/s390/ifunc-strstr.h: New file.
3986 * sysdeps/s390/strstr.c: Likewise.
3987 * sysdeps/s390/strstr-c.c: Likewise.
3988 * sysdeps/s390/strstr-vx.c: Likewise.
3989
3990 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3991
3992 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3993 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3994 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3995 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3996 New defines.
3997 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3998 * sysdeps/s390/memmove-c.c: New file.
3999 * sysdeps/s390/memmove.c: Likewise.
4000 * sysdeps/s390/multiarch/ifunc-impl-list.c
4001 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
4002
4003 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4004
4005 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
4006 * sysdeps/s390/configure.ac: Add check for z13 support.
4007 * sysdeps/s390/configure: Regenerated.
4008
4009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4010
4011 * sysdeps/s390/memcopy.h: New file.
4012
4013 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4014
4015 * sysdeps/s390/s390-32/bcopy.S: Remove.
4016 * sysdeps/s390/s390-64/bcopy.S: Likewise.
4017
4018 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4019
4020 * sysdeps/s390/ifunc-memcpy.h: New File.
4021 * sysdeps/s390/memcpy.S: Move to ...
4022 * sysdeps/s390/memcpy-z900.S ... here.
4023 Move implementations from memcpy-s390x.s to here.
4024 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
4025 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4026 Remove memcpy/mempcpy variants.
4027 * sysdeps/s390/Makefile (sysdep_routines):
4028 Add memcpy/mempcpy variants.
4029 * sysdeps/s390/multiarch/ifunc-impl-list.c
4030 (__libc_ifunc_impl_list): Adjust ifunc variants for
4031 memcpy and mempcpy.
4032 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4033 to ...
4034 * sysdeps/s390/memcpy.c: ... here.
4035 Adjust ifunc variants for memcpy.
4036 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4037 * sysdeps/s390/mempcpy.c: ... here.
4038 Adjust ifunc variants for mempcpy.
4039 * sysdeps/s390/mempcpy.S: Delete file.
4040
4041 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4042
4043 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4044 * sysdeps/s390/memcpy.S: ... here.
4045 Adjust to be usable for 31/64bit.
4046 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4047 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4048 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4049 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4050 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4051 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4052 Adjust to be usable for 31/64bit.
4053 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4054 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4055 * sysdeps/s390/multiarch/memcpy.c: ... here.
4056 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4057
4058 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4059
4060 * sysdeps/s390/ifunc-memcmp.h: New File.
4061 * sysdeps/s390/memcmp.S: Move to ...
4062 * sysdeps/s390/memcmp-z900.S ... here.
4063 Move implementations from memcmp-s390x.s to here.
4064 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4065 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4066 Remove memcmp variants.
4067 * sysdeps/s390/Makefile (sysdep_routines):
4068 Add memcmp variants.
4069 * sysdeps/s390/multiarch/ifunc-impl-list.c
4070 (__libc_ifunc_impl_list): Adjust ifunc variants for
4071 memcmp.
4072 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4073 to ...
4074 * sysdeps/s390/memcmp.c: ... here.
4075 Adjust ifunc variants for memcmp.
4076
4077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4078
4079 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4080 * sysdeps/s390/memcmp.S: ... here.
4081 Adjust to be usable for 31/64bit.
4082 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4083 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4084 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4085 Remove memcmp.
4086 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4087 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4088 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4089 Adjust to be usable for 31/64bit.
4090 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4091 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4092 * sysdeps/s390/multiarch/memcmp.c: ... here.
4093 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4094
4095 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4096
4097 * sysdeps/s390/s390-32/bzero.S: Delete file.
4098 * sysdeps/s390/s390-64/bzero.S: Likewise.
4099 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4100 * sysdeps/s390/bzero.c: New file.
4101 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4102 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4103 * sysdeps/s390/multiarch/ifunc-impl-list.c
4104 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4105
4106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4107
4108 * sysdeps/s390/ifunc-memset.h: New File.
4109 * sysdeps/s390/memset.S: Move to ...
4110 * sysdeps/s390/memset-z900.S ... here.
4111 Move implementations from memset-s390x.s to here.
4112 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4113 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4114 Remove memset variants.
4115 * sysdeps/s390/Makefile (sysdep_routines):
4116 Add memset variants.
4117 * sysdeps/s390/multiarch/ifunc-impl-list.c
4118 (__libc_ifunc_impl_list): Adjust ifunc variants for
4119 memset.
4120 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4121 to ...
4122 * sysdeps/s390/memset.c: ... here.
4123 Adjust ifunc variants for memset.
4124
4125 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4126
4127 * sysdeps/s390/s390-64/memset.S: Move to ...
4128 * sysdeps/s390/memset.S: ... here.
4129 Adjust to be usable for 31/64bit.
4130 * sysdeps/s390/s390-32/memset.S: Delete File.
4131 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4132 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4133 Remove memset.
4134 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4135 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4136 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4137 Adjust to be usable for 31/64bit.
4138 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4139 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4140 * sysdeps/s390/multiarch/memset.c: ... here.
4141 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4142
4143 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4144
4145 * sysdeps/s390/multiarch/ifunc-resolve.h
4146 (s390_libc_ifunc_init, s390_libc_ifunc,
4147 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4148
4149 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4150
4151 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4152 * sysdeps/s390/configure.ac: Add check for z10 support.
4153 * sysdeps/s390/configure: Regenerated.
4154
4155 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4156
4157 * sysdeps/i386/atomic-machine.h: Merged with ...
4158 * sysdeps/x86_64/atomic-machine.h: To ...
4159 * sysdeps/x86/atomic-machine.h: This. New file.
4160
4161 2018-12-18 Florian Weimer <fweimer@redhat.com>
4162
4163 Rewrite locale/gen-translit.pl in Python.
4164 * locale/Makefile (generated): Add C-translit.h.
4165 (before-compile): Add $(objpfx)C-translit.h.
4166 (C-translit.h): Move to $(objpfx). Create target directory.
4167 Build using Python script.
4168 * locale/gen-translit.py: New file.
4169 * locale/gen-translit.pl: Remove file.
4170 * locale/C-translit.h.in: Change comment character to '#' for
4171 easier parsing without a C preprocessor.
4172 * locale/C-translit.h: Remove generated file.
4173 * manual/install.texi (Tools for Compilation): Do not mention
4174 C-translit.h.
4175 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4176 Remove locale/C-translit.h.
4177 * scripts/update-copyrights: Likewise.
4178 * INSTALL: Regenerate.
4179
4180 2018-12-18 Florian Weimer <fweimer@redhat.com>
4181
4182 [BZ #23995]
4183 * localedata/locales/bi_VU: Remove executable bit from file.
4184
4185 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4186
4187 * include/time.h
4188 (__localtime64): Add.
4189 * manual/maint.texi: Document Y2038 symbol handling.
4190 * time/localtime.c
4191 (__localtime64): Add.
4192 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4193
4194 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4195
4196 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4197 Do not clobber r12.
4198
4199 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4200 to allow extra macros from first or second sources.
4201 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4202 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4203 (tests-special): Add $(objpfx)tst-mman-consts.out.
4204 ($(objpfx)tst-mman-consts.out): New makefile target.
4205
4206 2018-12-17 Mao Han <han_mao@c-sky.com>
4207
4208 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4209 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4210 without stat64 system call support.
4211 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4212 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4213 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4214 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4215 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4216 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4217 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4218 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4219 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4220 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4221 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4222
4223 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4224
4225 regex: fix storage-exhaustion error
4226 [BZ #18040]
4227 * posix/regexec.c (get_subexp):
4228 Do not continue if storage is exhausted.
4229
4230 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4231
4232 regex: fix heap-use-after-free error
4233 [BZ #18040]
4234 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4235 https://debbugs.gnu.org/32592
4236 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4237 call extend_buffers which reallocates the re_string_t internal buffer.
4238 Local variable 'buf' was not updated in such case, resulting in
4239 use-after-free.
4240 * posix/regexec.c (get_subexp): Update 'buf' after call to
4241 get_subexp_sub.
4242
4243 2018-12-15 Florian Weimer <fweimer@redhat.com>
4244
4245 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4246 (minimum_stride_size): Use it.
4247 (support_blob_repeat_allocate): Likewise.
4248
4249 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4250
4251 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4252 definition.
4253 (acosh): Likewise.
4254 (atanh): Likewise.
4255
4256 2018-12-14 Florian Weimer <fweimer@redhat.com>
4257
4258 * manual/process.texi (Process Creation Concepts): Remove
4259 documentation of process (ID) lifetime. List more process
4260 creation functions. Reference Process Identification section.
4261 (Process Identification): Add information about process ID
4262 lifetime. Describe Linux thread/task IDs.
4263 * manual/signal.texi (Signaling Another Process): Mention that the
4264 signal is always sent to the process.
4265
4266 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4267
4268 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4269 and tst-ldbl-efgcvt.
4270 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4271 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4272 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4273 (fcvt_tests, output_error, output_r_error, do_test): Use the
4274 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4275 select the type of floating-point variables and arguments; to
4276 produce extra tests for double and conversion specifiers for
4277 printf; and to set the names of called functions.
4278 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4279 in tst-efgcvt-template.c.
4280 * misc/tst-ldbl-efgcvt.c: Likewise.
4281
4282 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4283
4284 * nss/Makefile (tst-nss-test3.out): New rule.
4285
4286 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4287
4288 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4289 clobber sp.
4290
4291 2018-12-13 fanjinke <fanjinke@hygon.cn>
4292
4293 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4294 "HygonGenuine".
4295
4296 2018-12-13 Andreas Schwab <schwab@suse.de>
4297
4298 [BZ #23861]
4299 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4300 (__pthread_rwlock_rdlock_full): Update expected value for
4301 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4302 * nptl/tst-rwlock-pwn.c: New file.
4303 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4304
4305 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4306
4307 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4308 definition.
4309
4310 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4311
4312 * benchtests/scripts/compare_bench.py (do_compare): write to
4313 stderr in casestat is not present.
4314 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4315 stderr in case timings field is not present. Also string showing
4316 the output filename goes into the stderr.
4317
4318 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4319
4320 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4321 and ZeroDivisorError exceptions.
4322 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4323 argument to loop through user provided statistics.
4324 * benchtests/scripts/compare_bench.py (main): Include the --stats
4325 argument.
4326
4327 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4328
4329 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4330 instead of return.
4331
4332 2018-12-12 Florian Weimer <fweimer@redhat.com>
4333
4334 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4335 clause to copyright header.
4336
4337 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4338
4339 [BZ #23614]
4340 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4341 registers saved in the stack frame.
4342 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4343 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4344
4345 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4346
4347 * include/bits/monetary-ldbl.h: New file.
4348 * include/bits/printf-ldbl.h: Likewise.
4349 * include/bits/stdio-ldbl.h: Likewise.
4350 * include/bits/stdlib-ldbl.h: Likewise.
4351 * include/bits/syslog-ldbl.h: Likewise.
4352 * include/bits/wchar-ldbl.h: Likewise.
4353
4354 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4355
4356 * libio/libio.h: Remove redirection for _IO_vfprintf.
4357
4358 2018-12-11 Andreas Schwab <schwab@suse.de>
4359
4360 * Makerules: Remove all references to abilist-pattern.
4361 (update-all-abi): Simplify find expression.
4362
4363 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4364
4365 [BZ #23961]
4366 * math/auto-libm-test-in: Add new test case.
4367 * math/auto-libm-test-out-pow: Regenerated.
4368 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4369
4370 2018-12-10 DJ Delorie <dj@redhat.com>
4371
4372 [BZ #23948]
4373 * support/test-container.c: Move postclean step to before we
4374 change namespaces.
4375
4376 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4377
4378 * scripts/gen-as-const.py (main): Handle --python option.
4379 * scripts/gen-py-const.awk: Remove.
4380 * Makerules (py-const-script): Use gen-as-const.py.
4381 ($(py-const)): Likewise.
4382 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4383 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4384 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4385 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4386 ~PTHREAD_MUTEX_NO_ELISION_NP.
4387 * manual/README.pretty-printers: Update reference to
4388 gen-py-const.awk.
4389
4390 * scripts/glibcextract.py: New file.
4391 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4392 or tempfile. Import glibcexctract.
4393 (compute_c_consts): Remove. Moved to glibcextract.py.
4394 (gen_test): Update reference to compute_c_consts.
4395 (main): Likewise.
4396 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4397 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4398 * sysdeps/unix/sysv/linux/Makefile
4399 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4400 Redirect stderr as well as stdout.
4401
4402 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4403
4404 [BZ #19767]
4405 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4406 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4407 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4408 ALWAYS_USE_VSYSCALL.
4409 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4410 ALWAYS_USE_VSYSCALL.
4411 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4412 ALWAYS_USE_VSYSCALL.
4413
4414 2018-12-10 Florian Weimer <fweimer@redhat.com>
4415
4416 [BZ #23972]
4417 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4418 offset instead of count for clarity. Fix typo in comment.
4419 (__old_getdents64): Keep track of previous offset. Use it to call
4420 handle_overflow.
4421 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4422 that d_off is never zero.
4423
4424 2018-12-10 Andreas Schwab <schwab@suse.de>
4425
4426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4427 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4429 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4430 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4431
4432 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4433
4434 * timezone/private.h: Update from tzcode 2018g.
4435 * timezone/tzfile.h: Likewise.
4436 * timezone/tzselect.ksh: Likewise.
4437 * timezone/zdump.c: Likewise.
4438 * timezone/zic.c: Likewise.
4439
4440 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4441
4442 [BZ #23490]
4443 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4444 (do_test): Adjust buffer size and fix format.
4445
4446 2018-12-07 DJ Delorie <dj@redhat.com>
4447
4448 [BZ #23907]
4449 * malloc/tst-tcfree3.c: New.
4450 * malloc/Makefile: Add it.
4451
4452 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4453
4454 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4455
4456 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4457
4458 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4459 used as a mask for the mode argument of __vfscanf_internal and
4460 __vfwscanf_internal.
4461 * stdio-common/vfscanf-internal.c
4462 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4463 (__strtof128_internal): Define to __wcstof128_internal.
4464 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4465 __strtof128_internal or __wcstof128_internal when the format of
4466 long double is the same as _Float128.
4467
4468 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4469
4470 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4471 * posix/confstr.c (confstr): Rename to __confstr.
4472 (__confstr): Add hidden def.
4473 (confstr): Add weak alias for __confstr.
4474 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4475 confstr.
4476
4477 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4478
4479 * NEWS: Mention getcpu.
4480 * include/sched.h (__getcpu): New libc_hidden_proto.
4481 * manual/resource.texi: Document getcpu.
4482 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4483 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4484 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4485 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4486 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4487 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4488 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4489 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4490 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4491 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4492 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4493 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4494 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4495 Likewise.
4496 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4497 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4498 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4500 Likewise.
4501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4502 Likewise.
4503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4504 Likewise.
4505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4506 Likewise.
4507 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4508 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4509 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4510 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4511 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4512 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4513 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4514 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4515 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4516 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4517 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4518 Also check getcpu.
4519
4520 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4521
4522 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4523 functions.
4524 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4525
4526 2018-12-07 Florian Weimer <fweimer@redhat.com>
4527
4528 [BZ #17405]
4529 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4530 * posix/Versions (GLIBC_2.29): Export
4531 posix_spawn_file_actions_addfchdir_np.
4532 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4533 * posix/spawn_faction_destroy.c
4534 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4535 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4536 and the field action.fchdir_action.
4537 * posix/tst-spawn-chdir.c (add_chdir): New function.
4538 (do_test): Add do_fchdir loop. Call add_chdir.
4539 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4540 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4541 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4542 posix_spawn_file_actions_addfchdir_np.
4543 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4544 Likewise.
4545 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4546 Likewise.
4547 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4548 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4549 Likewise.
4550 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4551 Likewise.
4552 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4553 Likewise.
4554 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4555 Likewise.
4556 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4557 Likewise.
4558 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4559 Likewise.
4560 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4561 (GLIBC_2.29): Likewise.
4562 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4563 (GLIBC_2.29): Likewise.
4564 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4565 (GLIBC_2.29): Likewise.
4566 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4567 (GLIBC_2.29): Likewise.
4568 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4569 Likewise.
4570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4571 (GLIBC_2.29): Likewise.
4572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4573 (GLIBC_2.29): Likewise.
4574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4575 (GLIBC_2.29): Likewise.
4576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4577 (GLIBC_2.29): Likewise.
4578 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4579 Likewise.
4580 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4581 Likewise.
4582 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4583 Likewise.
4584 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4585 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4586 Likewise.
4587 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4588 Likewise.
4589 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4590 Likewise.
4591 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4592 Likewise.
4593
4594 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4595
4596 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4597 trailing whitespace removed.
4598 * scripts/config.guess: Update to version 2018-11-28.
4599 * scripts/config.sub: Update to version 2018-11-28.
4600 * scripts/install-sh: Update to version 2018-03-11.20.
4601 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4602 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4603
4604 2018-12-07 Florian Weimer <fweimer@redhat.com>
4605
4606 [BZ #23927]
4607 CVE-2018-19591
4608 * inet/tst-if_index-long.c: New file.
4609 * inet/Makefile (tests): Add tst-if_index-long.
4610
4611 2018-12-07 Florian Weimer <fweimer@redhat.com>
4612
4613 * support/check.h (support_record_failure_is_failed): Declare.
4614 * support/descriptors.h: New file.
4615 * support/support_descriptors.c: Likewise.
4616 * support/tst-support_descriptors.c: Likewise.
4617 * support/support_record_failure.c
4618 (support_record_failure_is_failed): New function.
4619 * support/Makefile (libsupport-routines): Add support_descriptors.
4620 (tests): Add tst-support_descriptors.
4621
4622 2018-12-05 Zack Weinberg <zackw@panix.com>
4623 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4624
4625 * stdio-common/vfprintf-internal.c
4626 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4627 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4628 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4629 and __no_long_double.
4630 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4631 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4632 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4633 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4634 and __nldbl_*syslog* functions.
4635 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4636 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4637 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4638 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4639 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4640 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4641 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4642 (__nldbl_vwprintf, __nldbl_wprintf):
4643 Directly call the appropriate __v*printf_internal routine, passing
4644 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4645 variable names.
4646 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4647 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4648 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4649 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4650 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4651 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4652 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4653 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4654 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4655 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4656 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4657 (__nldbl_syslog, __nldbl_vsyslog):
4658 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4659 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4660 appropriate.
4661 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4662 appropriate.
4663
4664 2018-12-05 Zack Weinberg <zackw@panix.com>
4665 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4666
4667 [BZ #11319]
4668 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4669 Moved here from debug/vsprintf_chk.c.
4670 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4671 and completion logic for the strfile to match exactly what
4672 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4673 _IO_str_init_static_internal instead of maxlen-1.
4674 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4675 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4676 __vsprintf_internal.
4677
4678 * debug/vsprintf_chk.c (__vsprintf_chk)
4679 * debug/sprintf_chk.c (__sprintf_chk):
4680 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4681 'flags' argument is positive, and slen as maxlen. No need to lock
4682 the FILE and/or construct a temporary FILE. Minimize and normalize
4683 header inclusions and variable names. Do not libc_hidden_def anything.
4684
4685 * debug/asprintf_chk.c (__asprintf_chk)
4686 * debug/dprintf_chk.c (__dprintf_chk)
4687 * debug/fprintf_chk.c (__fprintf_chk)
4688 * debug/fwprintf_chk.c (__fwprintf_chk)
4689 * debug/printf_chk.c (__printf_chk)
4690 * debug/snprintf_chk.c (__snprintf_chk)
4691 * debug/swprintf_chk.c (__swprintf_chk)
4692 * debug/vasprintf_chk.c (__vasprintf_chk)
4693 * debug/vdprintf_chk.c (__vdprintf_chk)
4694 * debug/vfprintf_chk.c (__vfprintf_chk)
4695 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4696 * debug/vprintf_chk.c (__vprintf_chk)
4697 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4698 * debug/vswprintf_chk.c (__vswprintf_chk)
4699 * debug/vwprintf_chk.c (__vwprintf_chk)
4700 * debug/wprintf_chk.c (__wprintf_chk):
4701 Directly call the corresponding vxxprintf_internal function, passing
4702 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4703 the FILE and/or construct a temporary FILE. Minimize and normalize
4704 header inclusions and variable names. Do not libc_hidden_def anything.
4705
4706 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4707 __obstack_vprintf_internal.
4708 (__obstack_vprintf_chk): Convert into a wrapper that calls
4709 __obstack_vprintf_internal (these two functions already had the
4710 same code) and move to new file...
4711 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4712 file.
4713 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4714 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4715 * debug/Makefile (routines): Add vobprintf_chk.
4716
4717 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4718 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4719 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4720 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4721 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4722 (__nldbl___obstack_vfprintf_chk):
4723 Directly call the corresponding vxxprintf_internal function,
4724 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4725 duplicate comparison of slen with 0 or maxlen from the corresponding
4726 non-__nldbl function.
4727
4728 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4729 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4730 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4731 Remove libc_hidden_proto.
4732
4733 * stdio-common/vfprintf-internal.c
4734 (__vfprintf_internal, __vfwprintf_internal):
4735 Do not check _IO_FLAGS2_FORTIFY.
4736 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4737 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4738 a comment explaining why it has the maxlen argument.
4739 (_IO_acquire_lock_clear_flags2_fct): Remove.
4740 (_IO_acquire_lock_clear_flags2): Remove.
4741 (_IO_release_lock): Remove conditional statement which will
4742 now never execute.
4743 (_IO_acquire_lock): Remove variable which is now unused.
4744 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4745 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4746
4747 * stdio-common/Makefile (tests): Add tst-bz11319 and
4748 tst-bz11319-fortify2.
4749 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4750 * stdio-common/tst-bz11319-fortify2.c: New file.
4751 * stdio-common/tst-bz11319.c: Likewise.
4752
4753 2018-12-05 Zack Weinberg <zackw@panix.com>
4754 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4755
4756 * misc/syslog.c: Include libioP.h, not iolibio.h.
4757 (__vsyslog_internal): New function with the former body of
4758 __vsyslog_chk; takes mode_flags argument same as
4759 __v*printf_internal. Call __vfprintf_internal directly.
4760
4761 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4762 Remove libc_hidden_def.
4763 (__syslog, __syslog_chk): Use __vsyslog_internal.
4764 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4765
4766 * include/sys/syslog.h: Add multiple inclusion guard.
4767 Add prototype for __vsyslog_internal.
4768 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4769
4770 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4771 Use __vsyslog_internal.
4772
4773 2018-12-05 Zack Weinberg <zackw@panix.com>
4774 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4775
4776 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4777 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4778 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4779 New functions.
4780 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4781 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4782
4783 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4784 Include wctype.h here if COMPILE_WPRINTF is defined.
4785 Define __vfprintf_internal or __vfwprintf_internal, depending
4786 on COMPILE_WPRINTF.
4787 Temporarily, on entry to this function, update mode_flags
4788 according to the environmental settings corresponding to
4789 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4790 Throughout, check mode_flags instead of __ldbl_is_dbl and
4791 _IO_FLAGS2_FORTIFY on the destination FILE.
4792 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4793 Include vfprintf-internal.c. Don't include wctype.h.
4794 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4795 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4796 and vfprintf.
4797 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4798 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4799 and vfwprintf.
4800 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4801
4802 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4803 and add mode_flags argument; use __vfprintf_internal.
4804 (__vdprintf): New function. Alias vdprintf to this.
4805 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4806 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4807 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4808 (__obstack_printf): Use __obstack_printf_internal.
4809 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4810 public aliases __vsnprintf and vsnprintf.
4811 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4812 called internally.
4813 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4814 public aliases _IO_vsprintf and vsprintf.
4815 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4816 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4817 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4818 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4819 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4820
4821 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4822 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4823 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4824 * stdio-common/printf.c: Use __vfprintf_internal.
4825
4826 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4827 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4828 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4829
4830 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4831 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4832 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4833 __vfwprintf_internal.
4834
4835 * libio/libio.h: Remove libc_hidden_proto and declaration for
4836 _IO_vfprintf.
4837 Remove declaration of _IO_vfwprintf.
4838 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4839 _IO_vsprintf.
4840 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4841 _IO_obstack_printf.
4842 * include/stdio.h: Add prototype for __vasprintf.
4843 (__vsnprintf): Remove declaration, because there are no more
4844 internal calls.
4845 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4846 declaration, because there are no more internal calls.
4847
4848 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4849 __vsnprintf_internal, instead of _IO_vsnprintf.
4850 * argp/argp-help.c (__argp_error, __argp_failure): Use
4851 __vasprintf_internal, instead of _IO_vasprintf.
4852 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4853 redefine, because there are no more internal calls.
4854
4855 2018-12-05 Zack Weinberg <zackw@panix.com>
4856 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4857
4858 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4859 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4860 Include libio/strfile.h instead of libioP.h.
4861 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4862 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4863 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4864 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4865 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4866 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4867 necessary. Do not set __no_long_double. Normalize variable names.
4868 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4869 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4870 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4871 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4872 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4873 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4874 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4875 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4876 Do not set __no_long_double. Normalize variable names.
4877
4878 2018-12-05 Zack Weinberg <zackw@panix.com>
4879 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4880
4881 * stdio-common/isoc99_scanf.c
4882 * stdio-common/isoc99_fscanf.c
4883 * stdio-common/isoc99_sscanf.c
4884 * stdio-common/isoc99_vscanf.c
4885 * stdio-common/isoc99_vfscanf.c
4886 * stdio-common/isoc99_vsscanf.c
4887 * wcsmbs/isoc99_wscanf.c
4888 * wcsmbs/isoc99_fwscanf.c
4889 * wcsmbs/isoc99_swscanf.c
4890 * wcsmbs/isoc99_vwscanf.c
4891 * wcsmbs/isoc99_vfwscanf.c
4892 * wcsmbs/isoc99_vswscanf.c:
4893 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4894 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4895 No need to lock and unlock the FILE passed to that function.
4896
4897 * stdio-common/vfscanf-internal.c
4898 (__vfscanf_internal, __vfwscanf_internal):
4899 Don't look at _IO_FLAGS2_SCANF_STD.
4900 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4901 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4902 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4903
4904 2018-12-05 Zack Weinberg <zackw@panix.com>
4905 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4906
4907 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4908 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4909 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4910 * libio/strfile.h: Add multiple inclusion guard.
4911 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4912
4913 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4914 consistency with the other version of this file.
4915 (ldbl_compat_symbol): New macro.
4916 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4917 New macro.
4918
4919 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4920 Define __vfscanf_internal or __vfwscanf_internal, depending on
4921 COMPILE_WSCANF; don't define any other public symbols.
4922 Remove errval and code to set errp.
4923 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4924 as the mode_flags argument.
4925 (encode_error, conv_error, input_error): Don't set errval.
4926 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4927 Include vfscanf-internal.c.
4928 * stdio-common/vfscanf.c: New file defining the public entry
4929 point vfscanf, which calls __vfscanf_internal.
4930 * stdio-common/vfwscanf.c: New file defining the public entry
4931 point vfwscanf, which calls __vfwscanf_internal.
4932
4933 * stdio-common/iovfscanf.c: New file.
4934 * stdio-common/iovfwscanf.c: Likewise.
4935
4936 * stdio-common/Makefile (routines): Add vfscanf-internal,
4937 vfwscanf-internal, iovfscanf, iovfwscanf.
4938 * stdio-common/Versions: Mention GLIBC_2.29, so that
4939 it can be used in SHLIB_COMPAT expressions.
4940 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4941 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4942 Call __vfscanf_internal, instead of _IO_vfscanf.
4943 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4944 _IO_vfscanf.
4945 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4946 _IO_vfwscanf.
4947
4948 * libio/iovsscanf.c: Clean up includes, when possible. Use
4949 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4950 __vfscanf_internal or __vfwscanf_internal directly.
4951 * libio/iovswscanf.c: Likewise.
4952 * libio/swscanf.c: Likewise.
4953 * libio/vscanf.c: Likewise.
4954 * libio/vwscanf.c: Likewise.
4955 * libio/wscanf.c: Likewise.
4956 * stdio-common/isoc99_fscanf.c: Likewise.
4957 * stdio-common/isoc99_scanf.c: Likewise.
4958 * stdio-common/isoc99_sscanf.c: Likewise.
4959 * stdio-common/isoc99_vfscanf.c: Likewise.
4960 * stdio-common/isoc99_vscanf.c: Likewise.
4961 * stdio-common/isoc99_vsscanf.c: Likewise.
4962 * stdio-common/scanf.c: Likewise.
4963 * stdio-common/sscanf.c: Likewise.
4964 * wcsmbs/isoc99_fwscanf.c: Likewise.
4965 * wcsmbs/isoc99_swscanf.c: Likewise.
4966 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4967 * wcsmbs/isoc99_vswscanf.c: Likewise.
4968 * wcsmbs/isoc99_vwscanf.c: Likewise.
4969 * wcsmbs/isoc99_wscanf.c: Likewise.
4970
4971 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4972
4973 * include/time.h
4974 (__tz_compute): Replace time_t with __time64_t.
4975 (__tz_convert): Replace time_t* with __time64_t.
4976 (__offtime): Replace time_t* with __time64_t.
4977 * time/gmtime.c
4978 (__gmtime_r): Adjust call to __tz_convert.
4979 (gmtime): Likewise.
4980 * time/localtime.c
4981 (__localtime_r): Likewise.
4982 (localtime): Likewise.
4983 * time/offtime.c: Replace time_t with __time64_t.
4984 * time/tzset.c: Likewise.
4985
4986 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4987
4988 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4989 dynamic linker unless [$(run-built-tests) = yes].
4990
4991 2018-12-03 DJ Delorie <dj@delorie.com>
4992
4993 * support/test-container.c (check_for_unshare_hints): New.
4994 (main): Call it if unshare fails. Add support for "su" scriptlet
4995 command.
4996
4997 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4998
4999 * scripts/gen-as-const.py (compute_c_consts): Take an argument
5000 'START' to indicate that start text should be output.
5001 (gen_test): Likewise.
5002 (main): Generate 'START' for first symbol or '--' line, or at end
5003 of input if not previously generated.
5004
5005 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
5006
5007 [BZ #19767]
5008 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
5009 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
5010 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
5011 ALWAYS_USE_VSYSCALL.
5012
5013 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5014
5015 [BZ #23913]
5016 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
5017 new_argv by one.
5018
5019 2018-12-03 Carlos O'Donell <carlos@redhat.com>
5020
5021 [BZ #23923]
5022 * locale/programs/localedef.c: Declare boolean hard_links default true.
5023 (options): Add --no-hard-links option.
5024 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
5025 * locale/programs/localedef.h: Declare prototype for hard_links.
5026 * locale/programs/locfile.c (write_locale_data): Don't use hard
5027 links if hard_links is false.
5028
5029 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
5030
5031 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5032 cpu_features_basic.
5033 (__cache_sysconf): Likewise.
5034 (init_cacheinfo): Likewise.
5035 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5036 populate COMMON_CPUID_INDEX_80000007 and
5037 COMMON_CPUID_INDEX_80000008.
5038 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5039 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5040 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
5041 (init_cpu_features): Use _Static_assert on
5042 index_arch_Fast_Unaligned_Load.
5043 __get_cpuid_registers and __get_arch_feature. Updated for
5044 cpu_features_basic. Set stepping in cpu_features.
5045 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5046 (FEATURE_INDEX_2): New.
5047 (FEATURE_INDEX_MAX): Changed to enum.
5048 (COMMON_CPUID_INDEX_D_ECX_1): New.
5049 (COMMON_CPUID_INDEX_80000007): Likewise.
5050 (COMMON_CPUID_INDEX_80000008): Likewise.
5051 (cpuid_registers): Likewise.
5052 (cpu_features_basic): Likewise.
5053 (CPU_FEATURE_USABLE): Likewise.
5054 (bit_arch_XXX_Usable): Likewise.
5055 (cpu_features): Use cpuid_registers and cpu_features_basic.
5056 (bit_arch_XXX): Reweritten.
5057 (bit_cpu_XXX): Likewise.
5058 (index_cpu_XXX): Likewise.
5059 (reg_XXX): Likewise.
5060 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5061 <support/check.h>.
5062 (CHECK_CPU_FEATURE): New.
5063 (CHECK_CPU_FEATURE_USABLE): Likewise.
5064 (cpu_kinds): Likewise.
5065 (do_test): Print vendor, family, model and stepping. Check
5066 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5067 (TEST_FUNCTION): Removed.
5068 Include <support/test-driver.c> instead of
5069 "../../test-skeleton.c".
5070 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5071 Check POPCNT instead of POPCOUNT.
5072 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5073
5074 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5075
5076 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5077 there is no element in `consts'.
5078
5079 2018-12-01 Florian Weimer <fweimer@redhat.com>
5080
5081 * support/support_capture_subprocess.c
5082 (support_capture_subprocess): Check that pipe descriptors have
5083 expected values. Close original pipe descriptors in subprocess.
5084
5085 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5086
5087 [BZ #23032]
5088 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5089 attr with __pthread_default_barrierattr.
5090 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5091 attr with __pthread_default_condattr.
5092 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5093 attr with __pthread_default_mutexattr.
5094 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5095 attr with __pthread_default_rwlockattr.
5096
5097 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5098
5099 * manual/tunables.texi (POSIX Thread Tunables): New node.
5100 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5101 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5102 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5103 __pthread_tunables_init.
5104 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5105 (max_adaptive_count): Define.
5106 * nptl/pthread_mutex_conf.c: New file.
5107 * nptl/pthread_mutex_conf.h: New file.
5108 * sysdeps/generic/adaptive_spin_count.h: New file.
5109 * sysdeps/nptl/dl-tunables.list: New file.
5110 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5111 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5112 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5113 Likewise.
5114
5115 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5116
5117 [BZ #20544]
5118 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5119 * stdlib/on_exit.c (__on_exit): Likewise.
5120 * stdlib/Makefile (tests): Add tst-bz20544.
5121 * stdlib/tst-bz20544.c: New test.
5122
5123 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5124
5125 [BZ #19767]
5126 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5127 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5128 New.
5129
5130 2018-11-30 Florian Weimer <fweimer@redhat.com>
5131
5132 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5133 Extend error logging.
5134 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5135 symbol.
5136
5137 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5138
5139 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5140 __sigismember instead of sigismember.
5141 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5142 cancel_handler): New definitions.
5143 (do_system): Use posix_spawn instead of fork and execl and remove
5144 reentracy code.
5145 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5146 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5147 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5148 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5149 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5150 * sysdeps/unix/sysv/linux/system.c: Likewise.
5151
5152 [BZ #22834]
5153 [BZ #17490]
5154 * NEWS: Add new semantic for atfork with popen and system.
5155 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5156 fork and execl.
5157
5158 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5159
5160 [BZ #23690]
5161 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5162 modification order when accessing reloc_result->addr.
5163 * include/link.h (reloc_result): Add field init.
5164 * nptl/Makefile (tests): Add tst-audit-threads.
5165 (modules-names): Add tst-audit-threads-mod1 and
5166 tst-audit-threads-mod2.
5167 Add rules to build tst-audit-threads.
5168 * nptl/tst-audit-threads-mod1.c: New file.
5169 * nptl/tst-audit-threads-mod2.c: Likewise.
5170 * nptl/tst-audit-threads.c: Likewise.
5171 * nptl/tst-audit-threads.h: Likewise.
5172
5173 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5174
5175 * scripts/gen-as-const.py: New file.
5176 * scripts/gen-as-const.awk: Remove.
5177 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5178 gen-as-const.py.
5179 ($(objpfx)test-as-const-%.c): Likewise.
5180
5181 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 * elf/dl-exception.c: Include <_itoa.h>.
5184
5185 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5186
5187 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5188 returned by __f_setlk.
5189
5190 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5191 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5192
5193 * elf/Makefile (tests-internal): Add tst-create_format1.
5194 * elf/dl-exception.c (_dl_exception_create_format): Support
5195 %x, %lx and %zx.
5196 * elf/tst-create_format1.c: New file.
5197
5198 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5199
5200 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5201 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5202 gnulib.)
5203 * argp/argp-help.c (__argp_failure): Likewise.
5204
5205 2018-11-29 Mao Han <han_mao@c-sky.com>
5206
5207 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5208 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5209 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5210 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5211 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5212 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5213 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5214 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5215 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5216 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5217 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5218 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5219 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5220 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5221 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5222 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5223 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5224 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5225 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5226 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5227 (R_CKCORE_TLS_TPOFF32): New defines.
5228
5229 2018-11-29 Florian Weimer <fweimer@redhat.com>
5230
5231 * posix/Makefile (before-compile): Remove testcases.h and
5232 ptestcases.h.
5233 (generated): Add testcases.h and ptestcases.h.
5234 (testcases.h, ptestcases.h): Move to $(objpfx).
5235 (runtests.o): Add dependency on testcases.h.
5236 (runptests.o): Add dependency on ptestcases.h.
5237 * posix/testcases.h, posix/ptestcases.h: Remove files.
5238 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5239 not touch posix/testcases.h and posix/ptestcases.h.
5240
5241 2018-11-28 Florian Weimer <fweimer@redhat.com>
5242
5243 support: Add signal support to support_capture_subprocess_check.
5244 * support/capture_subprocess.h (support_capture_subprocess_check):
5245 Adjust comment and rename parameter.
5246 * support/support_capture_subprocess_check.c
5247 (print_actual_status): New function.
5248 (support_capture_subprocess_check): Support negative
5249 status_or_signal. Call print_actual_status.
5250 * support/tst-support_capture_subprocess.c (do_test): Call
5251 support_capture_subprocess_check.
5252 * libio/tst-vtables-common.c (termination_status)
5253 (init_termination_status): Remove.
5254 (check_for_termination): Adjust support_capture_subprocess_check
5255 call.
5256 (do_test): Remove call to init_termination_status.
5257
5258 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5259
5260 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5261 source directory instead of a copy.
5262 (CommandList.create_copy_dir): Remove.
5263
5264 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5265
5266 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5267
5268 2018-11-28 Florian Weimer <fweimer@redhat.com>
5269
5270 * support/support.h (support_quote_string): Do not use str
5271 parameter name.
5272
5273 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5274
5275 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5276 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5277
5278 2018-11-27 Florian Weimer <fweimer@redhat.com>
5279
5280 * support/support.h (support_quote_string): Declare.
5281 * support/support_quote_string.c: New file.
5282 * support/tst-support_quote_string.c: Likewise.
5283 * support/Makefile (libsupport-routines): Add
5284 support_quote_string.
5285 (tests): Add tst-support_quote_string.
5286
5287 2018-11-27 Florian Weimer <fweimer@redhat.com>
5288
5289 [BZ #23927]
5290 CVE-2018-19591
5291 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5292 descriptor leak in case of ENODEV error.
5293
5294 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5295
5296 [BZ #19767]
5297 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5298 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5299 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5300
5301 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5302
5303 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5304 Error for unknown lines.
5305
5306 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5307
5308 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5309 Touch additional files.
5310
5311 2018-11-26 Florian Weimer <fweimer@redhat.com>
5312
5313 [BZ #23907]
5314 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5315 double-frees.
5316
5317 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5318
5319 [BZ #19767]
5320 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5321 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5322 SHARED. Include sysdep.h.
5323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5324 ALWAYS_USE_VSYSCALL.
5325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5326 ALWAYS_USE_VSYSCALL.
5327
5328 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5329
5330 [BZ #19767]
5331 * nptl/Makefile (tests-static): Add tst-cond11-static.
5332 (tests): Likewise.
5333 * nptl/tst-cond11-static.c: New File.
5334 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5335 tst-affinity-static.
5336 (tests): Likewise.
5337 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5338 instead of SHARED.
5339 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5340 (USE_VSYSCALL): Likewise.
5341 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5342 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5343 instead of SHARED.
5344 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5345 SHARED.
5346 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5347 New.
5348
5349 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5350
5351 [BZ #23915]
5352 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5353 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5354 Undefine.
5355
5356 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5357
5358 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5359 (tst-cet-legacy-1a-ARGS): New.
5360 ($(objpfx)tst-cet-legacy-1a): New target.
5361 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5362
5363 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5364
5365 * conform/conformtest.py (CompileSubTest.__init__): Set
5366 self.run_early to False.
5367 (ExecuteSubTest.__init__): Likewise.
5368 (HeaderTests.run): Try running all non-optional, non-XFAILed
5369 compilation tests in a single execution of the compiler.
5370
5371 * conform/conformtest.py (CompileSubTest): New class.
5372 (ExecuteSubTest): Likewise.
5373 (ElementTest.run): Rename to gen_subtests. Append tests to
5374 self.subtests instead of running them.
5375 (ConstantTest.run): Likewise.
5376 (SymbolTest.run): Likewise.
5377 (TypeTest.run): Likewise.
5378 (TagTest.run): Likewise.
5379 (FunctionTest.run): Likewise.
5380 (VariableTest.run): Likewise.
5381 (MacroFunctionTest.run): Likewise.
5382 (MacroStrTest.run): Likewise.
5383 (HeaderTests.handle_test_line): Generate subtests for tests.
5384 (HeaderTests.run): Run subtests for tests.
5385
5386 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5387
5388 * math/Versions (GLIBC_2.29): Add pow.
5389 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5390 symbol.
5391 * math/w_pow.c: New file.
5392 * sysdeps/i386/fpu/w_pow.c: New file.
5393 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5394 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5395 and add necessary aliases.
5396 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5397 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5398 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5399 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5400 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5401 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5402 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5403 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5404 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5405 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5406 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5407 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5408 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5409 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5410 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5415 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5416 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5417 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5418 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5419 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5420 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5421 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5422 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5423 __pow.
5424 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5425 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5426 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5427
5428 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5429
5430 * math/Versions (GLIBC_2.29): Add log2.
5431 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5432 symbol.
5433 * math/w_log2.c: New file.
5434 * sysdeps/i386/fpu/w_log2.c: New file.
5435 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5436 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5437 and add necessary aliases.
5438 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5439 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5440 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5441 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5442 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5443 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5445 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5446 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5447 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5448 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5449 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5450 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5451 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5452 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5457 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5458 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5459 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5460 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5461 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5462 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5463 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5464
5465 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5466
5467 * math/Versions (GLIBC_2.29): Add log.
5468 * math/w_log_compat.c (__log_compat): Change to versioned compat
5469 symbol.
5470 * math/w_log.c: New file.
5471 * sysdeps/i386/fpu/w_log.c: New file.
5472 * sysdeps/ia64/fpu/e_log.S: Update.
5473 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5474 and add necessary aliases.
5475 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5476 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5477 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5478 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5479 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5480 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5481 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5482 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5483 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5484 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5485 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5486 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5487 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5488 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5489 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5494 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5495 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5496 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5497 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5498 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5499 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5500 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5501 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5502 __log.
5503 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5504 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5505 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5506 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5507
5508 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5509
5510 * math/Versions (GLIBC_2.29): Add exp and exp2.
5511 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5512 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5513 * math/w_exp_compat.c (__exp_compat): Likewise.
5514 * math/w_exp.c: New file.
5515 * math/w_exp2.c: New file.
5516 * sysdeps/i386/fpu/w_exp.c: New file.
5517 * sysdeps/i386/fpu/w_exp2.c: New file.
5518 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5519 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5520 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5521 and add necessary aliases.
5522 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5523 and add necessary aliases.
5524 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5525 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5526 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5527 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5528 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5529 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5530 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5531 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5532 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5533 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5534 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5535 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5536 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5537 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5538 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5539 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5540 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5545 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5546 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5547 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5548 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5549 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5550 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5551 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5552 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5553 (__ieee754_exp): Rename to __exp.
5554 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5555 (__ieee754_exp): Rename to __exp.
5556 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5557 (__ieee754_exp): Rename to __exp.
5558 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5559 __exp.
5560 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5561
5562 2018-11-20 DJ Delorie <dj@redhat.com>
5563
5564 * malloc/malloc.c (tcache_entry): Add key field.
5565 (tcache_put): Set it.
5566 (tcache_get): Likewise.
5567 (_int_free): Check for double free in tcache.
5568 * malloc/tst-tcfree1.c: New.
5569 * malloc/tst-tcfree2.c: New.
5570 * malloc/Makefile: Run the new tests.
5571 * manual/probes.texi: Document memory_tcache_double_free probe.
5572
5573 * dlfcn/dlerror.c (check_free): Prevent double frees.
5574
5575 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5576
5577 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5578
5579 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5580
5581 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5582 in tests. Use names for format arguments.
5583 (ConstantTest.run): Likewise.
5584 (SymbolTest.run): Likewise.
5585 (TypeTest.run): Likewise.
5586 (TagTest.run): Likewise.
5587 (FunctionTest.run): Likewise.
5588 (VariableTest.run): Likewise.
5589 (MacroFunctionTest.run): Likewise.
5590 (MacroStrTest.run): Likewise.
5591 (HeaderTests.__init__): Set self.num_tests.
5592 (HeaderTests.handle_test_line): Set test.num. Increment
5593 self.num_tests.
5594
5595 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5596
5597 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5598 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5599 SEEK_SET.
5600
5601 2018-11-19 Mao Han <han_mao@c-sky.com>
5602
5603 * scripts/config.guess: Update to version 2018-08-29.
5604 * scripts/config.sub: Update to version 2018-08-29.
5605
5606 2018-11-19 Florian Weimer <fweimer@redhat.com>
5607
5608 support: Print timestamps in timeout handler.
5609 * support/support_test_main.c (print_timestamp): New function.
5610 (signal_handler): Use it to print the termination time and the
5611 time of the last write to standard output.
5612
5613 2018-11-16 Zack Weinberg <zackw@panix.com>
5614 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5615
5616 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5617 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5618 argument.
5619 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5620 and add flags argument. Check flags instead of __ldbl_is_dbl when
5621 deciding whether to set is_long_double.
5622 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5623 passing zero for flags argument.
5624 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5625
5626 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5627 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5628 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5629 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5630 variable names. Remove libc_hidden_def/libc_hidden_proto from
5631 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5632 longer called from within the library.
5633 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5634 for __nldbl___vstrfmon_l, declare it explicitly.
5635
5636 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5637
5638 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5639
5640 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5641 macros
5642 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5643 F_SETLK64, F_SETLKW64, respectively.
5644 * sysdeps/mach/hurd/f_setlk.c: New file.
5645 * sysdeps/mach/hurd/f_setlk.h: New file.
5646 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5647 f_setlk.
5648 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5649 (__libc_fcntl): Move non-flock operations to...
5650 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5651 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5652
5653 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5654
5655 mktime: DEBUG_MKTIME cleanup
5656 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5657 And it’s no longer needed now that glibc and Gnulib both have
5658 their own testing mechanisms for mktime.
5659 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5660
5661 mktime: fix non-EOVERFLOW errno handling
5662 [BZ#23789]
5663 mktime was not properly reporting failures when the underlying
5664 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5665 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5666 The problem could happen on non-glibc platforms, with Gnulib.
5667 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5668 (tm_diff): ... this simpler function, which does not change errno.
5669 All callers changed to deal with errno themselves.
5670 (ranged_convert, __mktime_internal): Return failure immediately if
5671 the underlying function reports any failure other than EOVERFLOW.
5672 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5673 gap code fails.
5674
5675 mktime: fix bug with Y2038 DST transition
5676 [BZ#23789]
5677 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5678 mishandle a DST transition that jumps over the Y2038 boundary.
5679 No such DST transitions are known so this is only a theoretical
5680 bug, but we might as well do things right.
5681
5682 mktime: make more room for overflow
5683 [BZ#23789]
5684 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5685 This is so that we can add tm_diff results to a previous guess,
5686 which will be useful in a later patch.
5687
5688 mktime: simplify offset guess
5689 [BZ#23789]
5690 * time/mktime.c (__mktime_internal): Omit excess precision.
5691
5692 mktime: new test for mktime failure
5693 [BZ#23789]
5694 Based on a test suggested by Albert Aribaud in:
5695 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5696 * time/Makefile (tests): Add bug-mktime4.
5697 * time/bug-mktime4.c: New file.
5698
5699 mktime: fix EOVERFLOW bug
5700 [BZ#23789]
5701 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5702 Include libc-config.h, not config.h, for __set_errno.
5703 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5704
5705 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5706
5707 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5708 __attribute_copy__ to copy attributes from name. Drop static qualifier
5709 to avoid warnings about leaf attribute not having effect on static
5710 functions.
5711
5712 2018-11-13 Florian Weimer <fweimer@redhat.com>
5713
5714 * malloc/malloc.c (fastbin_push_entry): New function.
5715 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5716 (REMOVE_FB): Remove macro.
5717 (_int_malloc): Use fastbin_pop_entry and reindent.
5718 (_int_free): Use fastbin_push_entry.
5719 (malloc_consolidate): Use atomic_exchange_acquire.
5720
5721 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5722
5723 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5724 alias attribute, not with strong_alias.
5725
5726 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5727 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5728 with additional parameter thread.
5729 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5730 in terms of __hidden_ver2.
5731 (hidden_tls_def): New macro.
5732 (libc_hidden_tls_def): Likewise.
5733 (rtld_hidden_tls_def): Likewise.
5734 (libm_hidden_tls_def): Likewise.
5735 (libmvec_hidden_tls_def): Likewise.
5736 (libresolv_hidden_tls_def): Likewise.
5737 (librt_hidden_tls_def): Likewise.
5738 (libdl_hidden_tls_def): Likewise.
5739 (libnss_files_hidden_tls_def): Likewise.
5740 (libnsl_hidden_tls_def): Likewise.
5741 (libnss_nisplus_hidden_tls_def): Likewise.
5742 (libutil_hidden_tls_def): Likewise.
5743 (libutil_hidden_tls_def): Likweise.
5744 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5745 libc_hidden_tls_def.
5746 (__sim_disabled_exceptions_thread): Likewise.
5747 (__sim_round_mode_thread): Likewise.
5748
5749 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5750 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5751 copy attributes from name.
5752
5753 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5754
5755 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5756 Use __attribute_copy__ to copy attributes from name.
5757
5758 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5759 with __hidden_ver1 call.
5760 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5761 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5762 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5763 (__cosf): Do not declare here.
5764 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5765 (__sincosf): Do not declare here.
5766 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5767 (__sinf): Do not declare here.
5768
5769 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5770 (__BIG_ENDIAN): Likewise.
5771 (__BYTE_ORDER): Likewise.
5772 (strong_alias): Likewise.
5773 (_strong_alias): Likewise.
5774
5775 2018-11-12 Florian Weimer <fweimer@redhat.com>
5776
5777 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5778 function. Move after the definition of in_smallbin_range. Do not
5779 use __builtin_expect for paths that lead to a noreturn function.
5780 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5781 because it is unclear whether this is in fact an unlikely
5782 condition.
5783 (_int_malloc, _int_free): Adjust.
5784 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5785 variables.
5786 * malloc/arena.c (heap_trim): Likewise.
5787
5788 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5789
5790 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5791 it, free it if needed.
5792 (reauthenticate): Test and use ccwdir.
5793 (child_init_port): In non-resetids case, test and use ccwdir.
5794 (child_chdir): New nested function to set ccwdir.
5795 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5796 * hurd/hurd/port.h (_hurd_port_move): New function.
5797 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5798 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5799 * hurd/Versions (_hurd_port_move): Export function.
5800 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5801 symbol.
5802 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5803 of dtablesize for allocating dtable_cloexec.
5804
5805 2018-11-09 Martin Sebor <msebor@redhat.com>
5806
5807 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5808 it's already defined.
5809 (_strong_alias): Use __attribute_copy__.
5810 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5811 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5812 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5813 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5814 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5815 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5816 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5817 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5818 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5819 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5820 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5821 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5822 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5823 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5824 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5825 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5826 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5827 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5828 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5829
5830 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5831
5832 * misc/tst-efgcvt.c: Include support/check.h and
5833 support/test-driver.c. Do not include test-skeleton.c.
5834 (error_count): Remove.
5835 (output_error): Replace increments to error_count with calls to
5836 support_record_failure.
5837 (output_r_error): Likewise.
5838 (special): Likewise.
5839 (do_test): Unconditionally return zero.
5840 (TEST_FUNCTION): Remove.
5841
5842 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5843
5844 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5845 not $(@D)/scratch.
5846 ($(linknamespace-header-tests)): Likewise.
5847
5848 * conform/conformtest.py: New file.
5849 * conform/conformtest.pl: Remove.
5850 * conform/GlibcConform.pm: Likewise.
5851 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5852 (KEYWORDS_C99): Likewise.
5853 (KEYWORDS): Likewise.
5854 * conform/Makefile ($(conformtest-header-tests)): Use
5855 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5856 option. Use --header instead of --headers.
5857 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5858 function entries.
5859 * conform/data/spawn.h-data: Likewise.
5860 * conform/data/fcntl.h-data (openat): Add space after function
5861 name.
5862 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5863 (wcscasecmp_l): Likewise.
5864 * conform/data/termios.h-data (c_cc): Add space after element
5865 name.
5866
5867 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5868
5869 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5870 instead of manually comparing and reporting mismatching strings.
5871 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5872 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5873
5874 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5875
5876 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5877 __ASSUME_SOCKETCALL.
5878 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5879 (__ASSUME_SOCKETCALL): Remove.
5880 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5881 (__ASSUME_SOCKETCALL): Likewise.
5882 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5883 (__ASSUME_SOCKETCALL): Likewise.
5884 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5885 (__ASSUME_SOCKETCALL): Likewise.
5886 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5887 (__ASSUME_SOCKETCALL): Likewise.
5888 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5889 (__ASSUME_SOCKETCALL): Likewise.
5890 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5891 (__ASSUME_SOCKETCALL): Likewise.
5892
5893 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5894
5895 [BZ #23509]
5896 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5897 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5898 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5899 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5900 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5901 lc_unknown.
5902
5903 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5904
5905 [BZ #17630]
5906 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5907
5908 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5909
5910 [BZ #23867]
5911 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5912 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5913 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5914 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5915
5916 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5917
5918 * support/support_test_compare_string.c
5919 (support_test_compare_string): Fix printf format.
5920
5921 2018-11-07 Florian Weimer <fweimer@redhat.com>
5922
5923 Implement TEST_COMPARE_STRING.
5924 * support/check.h (TEST_COMPARE_STRING): Define.
5925 (support_test_compare_string): Declare.
5926 * support/Makefile (libsupport-routines): Add
5927 support_test_compare_string.
5928 (tests): Add tst-test_compare_string.
5929 * support/support_test_compare_string.c: New file.
5930 * support/tst-test_compare_string.c: Likewise.
5931
5932 2018-11-07 Andreas Schwab <schwab@suse.de>
5933
5934 [BZ #23864]
5935 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5936 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5937 Undef.
5938
5939 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5940
5941 [BZ #23862]
5942 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5943 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5944 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5945 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5946 Likewise.
5947
5948 2018-11-06 Florian Weimer <fweimer@redhat.com>
5949
5950 [BZ #17405]
5951 * posix/Makefile (routines): Add spawn_faction_addchdir.
5952 (tests): Add tst-spawn-chdir.
5953 * posix/Versions (GLIBC_2.29): Add
5954 posix_spawn_file_actions_addchdir_np.
5955 * posix/spawn_faction_addchdir.c: New file.
5956 * posix/spawn_faction_destroy.c
5957 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5958 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5959 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5960 chdir_action.
5961 * posix/tst-spawn-chdir.c: New file.
5962 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5963 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5964 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5965 posix_spawn_file_actions_addchdir_np.
5966 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5967 Likewise.
5968 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5969 Likewise.
5970 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5971 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5972 Likewise.
5973 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5974 Likewise.
5975 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5976 Likewise.
5977 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5978 Likewise.
5979 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5980 Likewise.
5981 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5982 Likewise.
5983 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5984 (GLIBC_2.29): Likewise.
5985 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5986 (GLIBC_2.29): Likewise.
5987 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5988 (GLIBC_2.29): Likewise.
5989 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5990 (GLIBC_2.29): Likewise.
5991 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5992 Likewise.
5993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5994 (GLIBC_2.29): Likewise.
5995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5996 (GLIBC_2.29): Likewise.
5997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5998 (GLIBC_2.29): Likewise.
5999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6000 (GLIBC_2.29): Likewise.
6001 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6002 Likewise.
6003 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6004 Likewise.
6005 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6006 Likewise.
6007 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6008 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6009 Likewise.
6010 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6011 Likewise.
6012 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6013 Likewise.
6014 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6015 Likewise.
6016
6017 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6018
6019 * misc/Makefile (tests): Add tst-ldbl-error.
6020 * misc/tst-ldbl-error.c: New file.
6021
6022 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6023
6024 * misc/Makefile (tests): Add tst-ldbl-warn.
6025 * misc/tst-ldbl-warn.c: New file.
6026
6027 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6028
6029 * argp/Makefile (tests): Add tst-ldbl-argp.
6030 * argp/tst-ldbl-argp.c: New file.
6031
6032 2018-11-05 Arjun Shankar <arjun@redhat.com>
6033
6034 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6035 __gconv_path_elem and call __gconv_get_path unconditionally.
6036
6037 2018-11-05 Andreas Schwab <schwab@suse.de>
6038
6039 [BZ #22927]
6040 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6041 creating the first helper thread failed.
6042
6043 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6044
6045 * sysdeps/mach/hurd/msync.c: New file.
6046
6047 2018-11-02 Florian Weimer <fweimer@redhat.com>
6048
6049 * support/shell-container.c (copy_func): Call
6050 support_copy_file_range instead of copy_file_range to support
6051 cross-device copies.
6052
6053 2018-11-02 Florian Weimer <fweimer@redhat.com>
6054
6055 * support/test-container.c: Include <libc-pointer-arith.h> for
6056 ALIGN_UP.
6057
6058 2018-11-01 Zong Li <zong@andestech.com>
6059
6060 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6061 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6062 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6063 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6064
6065 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6066 variable to avoid overlap arguments.
6067
6068 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6069
6070 * posix/bug-regex22.c (main): Use puts with distinct error
6071 messages for unexpected success of re_compile_pattern, not printf
6072 with NULL argument to %s.
6073
6074 * stdio-common/bug22.c: Include <libc-diag.h>.
6075 (do_test): Disable -Wformat-overflow= warnings around fprintf
6076 calls outputting more than INT_MAX characters.
6077 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6078 around printf call with NULL %s argument.
6079
6080 [BZ #23848]
6081 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6082 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6083 Undefine.
6084 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6085 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6086 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6087 (__ASSUME_SENDTO_SYSCALL): Likewise.
6088 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6089 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6090 [!__arch64__].
6091 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6092 (__ASSUME_CONNECT_SYSCALL): Likewise.
6093 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6094 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6095 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6096 Define.
6097 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6098 Likewise.
6099 [__LINUX_KERNEL_VERSION >= 0x040400]
6100 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6101 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6102 Remove.
6103 (listen): Likewise.
6104 (setsockopt): Likewise.
6105
6106 2018-11-01 Fredrik Noring <noring@nocrew.org>
6107
6108 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6109 with the ISA override.
6110
6111 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6112
6113 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6114 #endif.
6115
6116 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6117
6118 * manual/errno.texi (EIEIO): Document how translators should
6119 translate the error message.
6120 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6121 printing trailing whitespaces refused by git.
6122 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6123 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6124 * hurd/Makefile (user-interfaces): Add pci.
6125
6126 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6127
6128 * conform/linknamespace.py: New file.
6129 * conform/linknamespace.pl: Remove file.
6130 * conform/Makefile ($(linknamespace-header-tests)): Use
6131 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6132 option.
6133
6134 2018-10-30 Florian Weimer <fweimer@redhat.com>
6135
6136 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6137 memory leaks.
6138
6139 2018-10-30 Florian Weimer <fweimer@redhat.com>
6140
6141 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6142
6143 2018-10-30 Florian Weimer <fweimer@redhat.com>
6144
6145 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6146 support_blob_repeat.
6147
6148 2018-10-30 Florian Weimer <fweimer@redhat.com>
6149
6150 Avoid spurious test failures in stdlib/test-bz22786.
6151 * support/Makefile (libsupport-routines): Add blob_repeat.
6152 (tests): Add tst-support_blob_repeat.
6153 * support/blob_repeat.h: New file.
6154 * support/blob_repeat.c: Likewise.
6155 * support/tst-support_blob_repeat.c: Likewise.
6156 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6157 support_blob_repeat_allocate.
6158
6159 2018-10-30 Andreas Schwab <schwab@suse.de>
6160
6161 [BZ #23125]
6162 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6163 Don't use tail call.
6164 * elf/tst-unwind-main.c: New file.
6165 * elf/Makefile (tests): Add tst-unwind-main.
6166 (CFLAGS-tst-unwind-main.c): Define.
6167
6168 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6169
6170 [BZ #23791]
6171 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6172 n_cs_precedes to 0.
6173 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6174
6175 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6176
6177 * conform/glibcconform.py: Do not import shutil.
6178 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6179 of mkdtemp.
6180
6181 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6182 critic_missing for versions before 3.4.
6183 * configure: Regenerated.
6184 * manual/install.texi (Tools for Compilation): Document
6185 requirement for Python to build glibc.
6186 * INSTALL: Regenerated.
6187 * Rules [PYTHON]: Make code unconditional.
6188 * benchtests/Makefile [PYTHON]: Likewise.
6189 * conform/Makefile [PYTHON]: Likewise.
6190 * manual/Makefile [PYTHON]: Likewise.
6191 * math/Makefile [PYTHON]: Likewise.
6192
6193 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6194
6195 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6196 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6197 answer to interrupt_operation, return EIEIO instead of EINTR.
6198 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6199 _hurd_intr_rpc_msg_about_to global point to start of controlled
6200 assembly snippet. Make it check canceled flag.
6201 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6202 the _hurd_intr_rpc_msg_about_to point.
6203 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6204 issue, remove cancel flag check.
6205
6206 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6207
6208 * scripts/build-many-glibcs.py: Remove compatibility for missing
6209 os.cpu_count and re.fullmatch.
6210
6211 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6212
6213 [BZ #23822]
6214 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6215 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6216 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6217
6218 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6219
6220 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6221 macro.
6222
6223 2018-10-25 Florian Weimer <fweimer@redhat.com>
6224
6225 [BZ #23562]
6226 [BZ #23821]
6227 XFAIL siginfo_t si_band conform test on sparc64.
6228 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6229 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6230 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6231 (conformtest-xfail-conds): Add sparc64-linux.
6232 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6233 sparc64.
6234 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6235
6236 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6237
6238 * elf/elf.h (NT_MIPS_DSP): New macro.
6239 (NT_MIPS_FP_MODE): Likewise.
6240
6241 2018-10-25 Zong Li <zong@andestech.com>
6242
6243 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6244 name by adding the file extension (.so).
6245
6246 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6247
6248 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6249 (test-xfail-ISO11/threads.h/linknamespace,
6250 test-xfail-ISO11/threads.h/conform): Add.
6251
6252 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6253
6254 * math/gen-libm-test.py: Import os.
6255 (ALL_FLOATS_MANUAL): New constant.
6256 (ALL_FLOATS_SUFFIX): Likewise.
6257 (Ulps.all_functions): New function.
6258 (real_all_ulps): Likewise.
6259 (generate_err_table_sub): Likewise.
6260 (generate_err_table): Likewise.
6261 (main): Handle -s and -m options.
6262 * manual/libm-err-tab.pl: Remove.
6263 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6264 instead of libm-err-tab.pl.
6265 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6266 != no].
6267 * manual/install.texi (Tools for Compilation): Document
6268 requirement for Python to build manual.
6269 * INSTALL: Regenerated.
6270
6271 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6272
6273 * bits/time64.h: New file.
6274 * include/time.h: Replace internal_time_t with __time64_t.
6275 * posix/bits/types (__time64_t): Add.
6276 * stdlib/Makefile: Add bits/time64.h to includes.
6277 * time/tzfile.c: Replace internal_time_t with __time64_t.
6278
6279 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6280
6281 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6282 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6283 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6284 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6285 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6286 prototype.
6287 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6288 * posix/spawn_faction_addclose.c
6289 (__posix_spawn_file_actions_addclose): Add hidden definition.
6290 * posix/spawn_faction_adddup2.c
6291 (__posix_spawn_file_actions_adddup2): Likewise.
6292 * posix/spawn_faction_destroy.c
6293 (__posix_spawn_file_actions_destroy): Likewise.
6294 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6295 Likewise.
6296 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6297 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6298 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6299 Likewise.
6300 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6301 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6302 Likewise.
6303
6304 2018-10-24 Andreas Schwab <schwab@suse.de>
6305
6306 [BZ #18093]
6307 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6308 format cache.
6309 * elf/cache.c (print_cache): Likewise.
6310
6311 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6312
6313 * bits/timesize.h: New file.
6314 * stdlib/Makefile (headers): Add bits/timesize.h.
6315 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6316 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6317 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6318 (__SEM_PAD_AFTER_TIME): Likewise.
6319 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6320 (__SHM_PAD_AFTER_TIME): Likewise.
6321 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6322 (__MSQ_PAD_BEFORE_TIME): Likewise.
6323 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6324 (__SEM_PAD_BEFORE_TIME): Likewise.
6325 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6326 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6327 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6328 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6329 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6330 (__MSQ_PAD_BEFORE_TIME): Likewise.
6331 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6332 (__SEM_PAD_BEFORE_TIME): Likewise.
6333 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6334 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6335 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6336 (__MSQ_PAD_BEFORE_TIME): Likewise.
6337 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6338 (__SEM_PAD_BEFORE_TIME): Likewise.
6339 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6340 (__SHM_PAD_BEFORE_TIME): Likewise.
6341 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6342 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6343 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6344
6345 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6346
6347 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6348 USE_RDTSCP is defined.
6349 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6350 USE_RDTSCP is defined.
6351
6352 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6353
6354 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6355 defined.
6356
6357 [BZ #23709]
6358 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6359 independently of other flags.
6360
6361 2018-10-23 Florian Weimer <fweimer@redhat.com>
6362
6363 * time/tst-mktime2.c (N_STRINGS): Remove.
6364 (set_timezone): New function.
6365 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6366 (mktime_test1): Report localtime failure and check errno value.
6367 Use TEST_COMPARE.
6368 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6369 (do_test): Remove alarm call. Use set_timezone and array_length.
6370
6371 2018-10-23 Andreas Schwab <schwab@suse.de>
6372
6373 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6374 (__start_context): Use END instead of PSEUDO_END.
6375
6376 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6377
6378 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6379 version to 4.19.
6380
6381 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6382 version to 4.19.
6383
6384 [BZ #23793]
6385 * wcsmbs/c32rtomb.c: New file.
6386 * wcsmbs/mbrtoc32.c: Likewise.
6387 * wcsmbs/tst-c32-state.c: Likewise.
6388 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6389 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6390 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6391 (tests): Add tst-c32-state.
6392 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6393 $(gen-locales).
6394
6395 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6396
6397 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6398 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6399
6400 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6401
6402 [BZ #23794]
6403 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6404 pair and return 0 in that case, and use saved character to
6405 interpret following character.
6406 * wcsmbs/tst-c16-surrogate.c: New file.
6407 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6408 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6409 Depend on $(gen-locales)
6410
6411 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6412
6413 [BZ #23562]
6414 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6415 (struct siginfo_t): Use correct type for si_band.
6416
6417 2018-10-19 Florian Weimer <fweimer@redhat.com>
6418
6419 [BZ #23689]
6420 * resource/bits/types/struct_rusage.h (struct rusage): Update
6421 comment on struct. Remove extraneous field comment.
6422
6423 2018-10-18 David S. Miller <davem@davemloft.net>
6424
6425 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6426 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6427 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6428 sysdep_routines in subdir elf.
6429 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6430 version for __vdso_clock_gettime.
6431 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6432 Define.
6433 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6434 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6435
6436 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6437
6438 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6439
6440 * sysdeps/i386/init-arch.h: Removed.
6441 * sysdeps/i386/i586/init-arch.h: Likewise.
6442 * sysdeps/i386/i686/init-arch.h: Likewise.
6443 * sysdeps/i386/i686/hp-timing.h: Likewise.
6444 * sysdeps/x86_64/hp-timing.h: Likewise.
6445 * sysdeps/i386/isa.h: New file.
6446 * sysdeps/i386/i586/isa.h: Likewise.
6447 * sysdeps/i386/i686/isa.h: Likewise.
6448 * sysdeps/x86_64/isa.h: Likewise.
6449 * sysdeps/x86/hp-timing.h: New file.
6450 * sysdeps/x86/init-arch.h: Include <isa.h>.
6451
6452 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6453
6454 * math/libm-test-pow.inc (pow_test_data): Do not allow
6455 divide-by-zero exception for pow(+/- 0, -Inf).
6456
6457 2018-10-17 Zack Weinberg <zackw@panix.com>
6458
6459 * manual/job.texi (Job Control is Optional): Remove node, as
6460 job control has not been optional in quite some time.
6461 (Job Control): Mention briefly that systems older than
6462 POSIX.1-2001 might not support job control.
6463 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6464 defined on systems conforming to POSIX.1-2001.
6465
6466 2018-10-17 Arjun Shankar <arjun@redhat.com>
6467
6468 [BZ #22062]
6469 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6470 indentation.
6471 * (__gconv_read_conf): Mark function static.
6472 * (once): New static variable.
6473 * (__gconv_load_conf): New function.
6474 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6475 * iconv/gconv_db.c (once): Remove static variable.
6476 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6477 __gconv_read_conf.
6478 * (__gconv_find_transform): Likewise.
6479 * iconv/tst-iconv-mt.c: New test.
6480 * iconv/Makefile: Add tst-iconv_mt.
6481
6482 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6483
6484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6485 bits/shm-pad.h.
6486 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6487 (shmatt_t): Define as __syscall_ulong_t.
6488 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6489 and [__SHM_PAD_AFTER_TIME].
6490 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6491 Define shm_segsz and associated padding based on
6492 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6493 Use __syscall_ulong_t instead of unsigned long int.
6494 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6495 unsigned long int.
6496 [__USE_MISC] (struct shm_info): Likewise.
6497 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6498 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6499 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6500 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6501 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6502 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6503 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6504 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6505 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6506 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6507 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6508
6509 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6510 bits/shmlba.h.
6511 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6512 (SHMLBA): Remove macro.
6513 (__getpagesize): Remove function declaration.
6514 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6515 <bits/shmlba.h>.
6516 (SHMLBA): Remove macro.
6517 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6518 <bits/shmlba.h>.
6519 (SHMLBA): Remove macro.
6520 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6521 <bits/shmlba.h>.
6522 (SHMLBA): Remove macro.
6523 (__getpagesize): Remove function declaration.
6524 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6525 <bits/shmlba.h>.
6526 (SHMLBA): Remove macro.
6527 (__getshmlba): Remove function declaration.
6528 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6529 (SHMLBA): Remove macro.
6530 (__getpagesize): Remove function declaration.
6531 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6532 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6533 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6534 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6535 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6536 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6537 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6538 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6539 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6540 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6541
6542 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6543
6544 [BZ #23275]
6545 * nptl/tst-mutex10.c: New File.
6546 * nptl/Makefile (tests): Add tst-mutex10.
6547 (tst-mutex10-ENV): New variable.
6548 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6549 Ensure that elision path is used if elision is available.
6550 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6551 Likewise.
6552 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6553 Likewise.
6554 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6555 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6556 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6557 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6558 Likewise.
6559 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6560 (__pthread_mutex_cond_lock_adjust): Likewise.
6561 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6562 Likewise.
6563 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6564 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6565 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6566 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6567 Add comments.
6568 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6569 Use atomic_load_relaxed and atomic_store_relaxed.
6570 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6571 Use atomic_store_relaxed.
6572
6573 2018-10-17 Andreas Schwab <schwab@suse.de>
6574
6575 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6576 * crypt/badsalttest.c (TIMEOUT): Likewise.
6577 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6578 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6579 * io/test-lfs.c (TIMEOUT): Likewise.
6580 * libio/tst-atime.c (TIMEOUT): Likewise.
6581 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6582 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6583 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6584 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6585 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6586 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6587 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6588 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6589 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6590 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6591 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6592 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6593 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6594 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6595 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6596 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6597 * nptl/tst-once2.c (TIMEOUT): Likewise.
6598 * nptl/tst-once3.c (TIMEOUT): Likewise.
6599 * nptl/tst-once4.c (TIMEOUT): Likewise.
6600 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6601 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6602 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6603 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6604 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6605 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6606 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6607 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6608 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6609 * posix/tst-chmod.c (TIMEOUT): Likewise.
6610 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6611 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6612 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6613 * posix/tst-regex2.c (TIMEOUT): Likewise.
6614 * posix/tst-waitid.c (TIMEOUT): Likewise.
6615 * rt/tst-aio.c (TIMEOUT): Likewise.
6616 * rt/tst-aio10.c (TIMEOUT): Likewise.
6617 * rt/tst-aio4.c (TIMEOUT): Likewise.
6618 * rt/tst-aio5.c (TIMEOUT): Likewise.
6619 * rt/tst-aio6.c (TIMEOUT): Likewise.
6620 * rt/tst-aio64.c (TIMEOUT): Likewise.
6621 * rt/tst-aio7.c (TIMEOUT): Likewise.
6622 * rt/tst-aio9.c (TIMEOUT): Likewise.
6623 * rt/tst-clock.c (TIMEOUT): Likewise.
6624 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6625 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6626 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6627 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6628 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6629 * rt/tst-timer4.c (TIMEOUT): Likewise.
6630 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6631 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6632 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6633 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6634 * time/tst-ftime.c (TIMEOUT): Likewise.
6635 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6636
6637 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6638
6639 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6640 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6641 for thunderX2.
6642
6643 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6644
6645 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6646 bits/sem-pad.h.
6647 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6648 instead of <bits/wordsize.h>.
6649 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6650 and [__SEM_PAD_AFTER_TIME].
6651 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6652 __syscall_ulong_t instead of unsigned long int.
6653 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6654 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6655 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6656 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6657 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6658 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6659 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6660 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6661 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6662 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6663 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6664
6665 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6666
6667 regex: simplify by using intprops.h
6668 [BZ#23744]
6669 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6670 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6671 intprops.h defines them.
6672
6673 regex: __builtin_expect → __glibc_unlikely
6674 [BZ#23744]
6675 This refactoring was prompted by a problem when the regex code is
6676 used as part of Gnulib and when the builder’s compiler does not grok
6677 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6678 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6679 Although this refactoring does not fix the problem directly,
6680 we might as well have Gawk use the now-preferred glibc style for when
6681 __builtin_expect is unavailable.
6682 * posix/regex_internal.h (BE): Remove.
6683 All uses replaced by __glibc_unlikely or __glibc_likely.
6684
6685 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6686
6687 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6688 bits/msq-pad.h.
6689 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6690 instead of <bits/wordsize.h>.
6691 (msgqnum_t): Define as __syscall_ulong_t.
6692 (msglen_t): Likewise.
6693 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6694 and [__MSQ_PAD_AFTER_TIME].
6695 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6696 __syscall_ulong_t instead of unsigned long int.
6697 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6698 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6699 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6700 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6701 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6702 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6703 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6704 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6705 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6706 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6707 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6708
6709 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6710
6711 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6712 (struct shmid_ds): Condition padding after time fields on
6713 [__WORDSIZE == 32].
6714 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6715 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6716 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6717
6718 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6719 (struct semid_ds): Condition padding after time fields on
6720 [__WORDSIZE == 32].
6721 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6722 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6723 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6724 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6725
6726 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6727 (struct msqid_ds): Condition padding after time fields on
6728 [__WORDSIZE == 32].
6729 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6730 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6731 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6732 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6733
6734 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6735
6736 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6737
6738 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6739
6740 * libio/tst-readline.c (TIMEOUT): Define.
6741
6742 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6743
6744 mktime fix for Gnulib + coreutils
6745 [BZ#23745]
6746 This fix affects only Gnulib. Problem discovered when
6747 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6748 * time/mktime.c:
6749 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6750 Do not define since it is not used. Defining an unused static
6751 function prompts a warning from GCC when Coreutils is configured
6752 with --enable-gcc-warnings.
6753
6754 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6755
6756 * benchtests/scripts/compare_bench.py (main): set float type on
6757 threshold argument.
6758
6759 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6760
6761 [BZ #23740]
6762 * localedata/locales/kl_GL (mon): Update, the relative case.
6763 (alt_mon): Add, fill with month names in the nominative case.
6764 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6765 (d_fmt): Set to "%b %d %Y".
6766
6767 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6768
6769 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6770 <bits/mman-linux.h>.
6771 (PROT_READ): Don't define here.
6772 (PROT_WRITE): Likewise.
6773 (PROT_EXEC): Likewise.
6774 (PROT_NONE): Likewise.
6775 (PROT_GROWSDOWN): Likewise.
6776 (PROT_GROWSUP): Likewise.
6777 (MAP_SHARED): Likewise.
6778 (MAP_PRIVATE): Likewise.
6779 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6780 [__USE_MISC] (MAP_FILE): Likewise.
6781 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6782 [__USE_MISC] (MAP_ANON): Likewise.
6783 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6784 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6785 (MCL_CURRENT): Likewise.
6786 (MCL_FUTURE): Likewise.
6787 (MCL_ONFAULT): Likewise.
6788 [__USE_MISC] (MADV_NORMAL): Likewise.
6789 [__USE_MISC] (MADV_RANDOM): Likewise.
6790 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6791 [__USE_MISC] (MADV_WILLNEED): Likewise.
6792 [__USE_MISC] (MADV_DONTNEED): Likewise.
6793 [__USE_MISC] (MADV_FREE): Likewise.
6794 [__USE_MISC] (MADV_REMOVE): Likewise.
6795 [__USE_MISC] (MADV_DONTFORK): Likewise.
6796 [__USE_MISC] (MADV_DOFORK): Likewise.
6797 [__USE_MISC] (MADV_HWPOISON): Likewise.
6798 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6799 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6800 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6801 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6802 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6803 (__MAP_ANONYMOUS): New macro.
6804 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6805 <bits/mman-linux.h> inclusion.
6806 (MAP_FIXED): Likewise.
6807 (MS_SYNC): Likewise.
6808 (MS_ASYNC): Likewise.
6809 (MS_INVALIDATE): Likewise.
6810 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6811 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6812 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6813 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6814 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6815 [__USE_MISC] (MADV_DODUMP): Likewise.
6816 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6817 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6818
6819 [BZ #23735]
6820 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6821 Define.
6822 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6823 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6824 Add test-nldbl-redirect.
6825 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6826 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6827 $(objpfx)libnldbl_nonshared.a.
6828
6829 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6830
6831 * support/support.h (support_objdir_elf_ldso): New variable.
6832 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6833 * support/Makefile (CFLAGS-support_paths.c): Add definition
6834 for OBJDIR_ELF_LDSO_PATH.
6835 * support/test-container.c (main): Search for the ld.so
6836 which is also used by the testsuite.
6837
6838 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6839
6840 [BZ #20209]
6841 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6842 should be "sap" rather than "sab".
6843 (day): Fix spelling of Sunday, should be "sapaat" rather than
6844 "sabaat".
6845
6846 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6847
6848 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6849
6850 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6851
6852 [BZ #19444]
6853 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6854 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6855 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6856
6857 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6858
6859 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6860
6861 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6862
6863 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6864 Add -mrtm.
6865 (CFLAGS-elision-unlock.c): Likewise.
6866 (CFLAGS-elision-timed.c): Likewise.
6867 (CFLAGS-elision-trylock.c): Likewise.
6868 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6869
6870 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6871
6872 [BZ #21037]
6873 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6874 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6875 new fd_to_filename interface.
6876 * libio/freopen64.c (freopen64): Likewise.
6877 * libio/tst-memstream.h: New file.
6878 * libio/tst-memstream4.c: Likewise.
6879 * libio/tst-wmemstream4.c: Likewise.
6880 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6881 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6882 and remove internal dynamic allocation.
6883
6884 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6885
6886 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6887 (MREMAP_MAYMOVE): Do not define here.
6888 [__USE_GNU] (MREMAP_FIXED): Likewise.
6889 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6890 (MREMAP_MAYMOVE): Define here instead.
6891 [__USE_GNU] (MREMAP_FIXED): Likewise.
6892 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6893 (MREMAP_MAYMOVE): Remove.
6894 [__USE_GNU] (MREMAP_FIXED): Likewise.
6895
6896 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6897
6898 * math/fromfp.h: Do not include <math_private.h>.
6899 * math/s_cacosh_template.c: Likewise.
6900 * math/s_casin_template.c: Likewise.
6901 * math/s_casinh_template.c: Likewise.
6902 * math/s_ccos_template.c: Likewise.
6903 * math/s_cproj_template.c: Likewise.
6904 * math/s_fdim_template.c: Likewise.
6905 * math/s_fmaxmag_template.c: Likewise.
6906 * math/s_fminmag_template.c: Likewise.
6907 * math/s_iseqsig_template.c: Likewise.
6908 * math/s_ldexp_template.c: Likewise.
6909 * math/s_nextdown_template.c: Likewise.
6910 * math/w_log1p_template.c: Likewise.
6911 * math/w_scalbln_template.c: Likewise.
6912 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6913 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6914 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6915 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6916 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6917 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6918 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6919 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6920 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6921 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6922 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6923 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6924 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6925 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6926 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6927 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6928 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6929 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6930 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6931 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6932 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6933 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6934 * sysdeps/ieee754/k_standardf.c: Likewise.
6935 * sysdeps/ieee754/k_standardl.c: Likewise.
6936 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6937 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6938 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6939 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6940 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6941 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6942 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6943 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6944 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6945 * sysdeps/ieee754/s_signgam.c: Likewise.
6946 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6947 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6948 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6949 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6950 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6951 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6952 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6953 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6954 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6955 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6956 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6957 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6958 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6959 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6960 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6961 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6962 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6963 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6964 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6965 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6966 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6967 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6968 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6969 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6970 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6971 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6972 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6973 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6974 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6975 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6976 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6977 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6978 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6979 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6980 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6981 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6982 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6983 <math_private.h>.
6984 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6985
6986 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6987
6988 [BZ #23716]
6989 * sysdeps/i386/dl-cet.c: Removed.
6990 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6991 prototype.
6992 (_dl_runtime_profile_shstk): Likewise.
6993 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6994 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6995
6996 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6997
6998 [BZ #23579]
6999 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
7000 do_test_with_invalid_iov): New tests.
7001 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
7002 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
7003 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
7004 errno is ENOSYS.
7005 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7006 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7007 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7008
7009 2018-09-27 Joseph Myers <joseph@codesourcery.com>
7010
7011 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7012 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
7013 (MATH_REDIRECT_BINARY_ARGS): New macro.
7014 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7015 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
7016 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
7017 header inclusion.
7018 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
7019 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7020 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
7021 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7022 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7023 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7024 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
7026 Likewise.
7027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
7028 Likewise.
7029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
7030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7031 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7032 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7034 Likewise.
7035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7036 Likewise.
7037 * sysdeps/generic/math_private_calls.h
7038 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7039 Do not declare and define as an inline function.
7040 * math/divtc3.c (__divtc3): Use copysign functions instead of
7041 __copysign variants.
7042 * math/multc3.c (__multc3): Likewise.
7043 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7044 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7045 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7046 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7047 Likewise.
7048 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7049 (__ieee754_yn): Likewise.
7050 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7051 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7052 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7053 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7054 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7055 (__sin): Likewise.
7056 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7057 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7058 Likewise.
7059 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7060 Likewise.
7061 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7062 Likewise.
7063 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7064 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7065 Likewise.
7066 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7067 (__ieee754_ynf): Likewise.
7068 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7069 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7070 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7071 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7072 Likewise.
7073 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7074 (__ieee754_ynl): Likewise.
7075 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7076 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7077 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7078 Likewise.
7079 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7080 (__ieee754_ynl): Likewise.
7081 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7082 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7083 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7084 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7085 Likewise.
7086 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7087 (__ieee754_ynl)
7088 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7089 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7090 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7091 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7092 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7093
7094 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7095 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7096 using MATH_REDIRECT.
7097 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7098 header inclusion.
7099 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7100 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7101 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7102 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7103 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7104 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7105 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7110 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7111 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7112 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7113 (round): Redirect to __round.
7114 (__roundl): Call round instead of __round.
7115 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7116 Remove macro.
7117 [_ARCH_PWR5X] (__roundf): Likewise.
7118 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7119 functions instead of __round variants.
7120 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7121 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7122 Likewise.
7123 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7124 Likewise.
7125 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7126 Likewise.
7127 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7128 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7129 __lroundl.
7130 (__ieee754_expl): Call roundl instead of __roundl.
7131
7132 2018-09-27 Andreas Schwab <schwab@suse.de>
7133
7134 [BZ #23717]
7135 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7136 (do_test): Make st1 static.
7137
7138 2018-09-26 Andreas Schwab <schwab@suse.de>
7139
7140 [BZ #23707]
7141 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7142 * elf/Makefile (tests): Add tst-unwind-ctor.
7143 (modules-names): Add tst-unwind-ctor-lib.
7144 ($(objpfx)tst-unwind-ctor): Depend on
7145 $(objpfx)tst-unwind-ctor-lib.so.
7146
7147 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7148
7149 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7150 file. Most contents moved from ....
7151 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7152 and include <bits/mman-map-flags-generic.h>.
7153 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7154 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7155 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7156 <bits/mman-map-flags-generic.h>.
7157 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7158 macros defined in <bits/mman-map-flags-generic.h>.
7159 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7160 <bits/mman-map-flags-generic.h>.
7161 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7162 defined in <bits/mman-map-flags-generic.h>.
7163
7164 2018-09-26 Andreas Schwab <schwab@suse.de>
7165
7166 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7167 output.
7168
7169 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7170 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7171 Fangrui Song <maskray@google.com>
7172
7173 [BZ #20480]
7174 * config.make.in (have-textrel_ifunc): New define.
7175 * configure.ac: Add check if linker supports textrel relocation with
7176 ifunc.
7177 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7178 tst-ifunc-textrel.
7179 (CFLAGS-tst-ifunc-textrel.c): New rule.
7180 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7181 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7182 * elf/tst-ifunc-textrel.c: New file.
7183
7184 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7185
7186 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7187 <bits/procfs-prregset.h>.
7188 (prgregset_t): Define using __prgregset_t.
7189 (prfpregset_t): Define using __prfpregset_t.
7190 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7191 (sysdep_headers): Add bits/procfs-prregset.h.
7192 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7193 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7194 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7195 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7196
7197 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7198 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7199 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7200 pr_uid and pr_gid.
7201 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7202 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7203 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7204 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7205 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7206 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7207 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7208 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7209 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7210 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7211 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7212 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7213 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7214 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7215 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7216 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7217 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7218 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7219 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7220 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7221 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7222 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7223 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7224 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7225
7226 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7227 AArch64 version. Include <bits/procfs.h>.
7228 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7229 (sysdep_headers): Add bits/procfs.h.
7230 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7231 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7232 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7233 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7234 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7235 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7236 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7237 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7238 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7239 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7240 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7241 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7242 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7243 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7244 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7245 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7246 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7247
7248 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7249
7250 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7251 Use libsupport.
7252
7253 2018-09-25 Arjun Shankar <arjun@redhat.com>
7254
7255 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7256 (__gconv_max_path_elem_len): Likewise.
7257 (__gconv_nmodules): Likewise.
7258 (__gconv_get_path): Likewise.
7259 (path_elem): Move to ...
7260 * iconv/gconv_conf.c: ... here.
7261 (__gconv_get_path): Mark function static.
7262 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7263 * iconv/gconv_open.c: ... here.
7264
7265 2018-09-24 Andreas Schwab <schwab@suse.de>
7266
7267 * scripts/haveversions.awk: New file.
7268 * Makerules ($(common-objpfx)Versions.def)
7269 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7270 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7271 Move rules ...
7272 * Makeconfig ($(common-objpfx)Versions.def)
7273 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7274 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7275 ... here.
7276 ($(common-objpfx)Versions.mk): New rule. Include it.
7277 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7278 Emit error if build-obsolete-nsl = yes.
7279 * manual/install.texi (Configuring and compiling): Describe
7280 --enable-obsolete-nsl as unavaiable after version 2.28.
7281 * INSTALL: Regenerate.
7282
7283 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7284
7285 * NEWS: Add note about new TLE support on powerpc64le.
7286 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7287 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7288 __ununsed1.
7289 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7290 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7291 * sysdeps/powerpc/powerpc32/sysdep.h,
7292 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7293 ABORT_TRANSACTION): Remove macros.
7294 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7295 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7296 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7298 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7299 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7300 usage.
7301 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7302
7303 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7304
7305 [BZ #10425]
7306 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7307 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7308 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7309 which is the same as in it_IT.
7310 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7311 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7312
7313 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7314
7315 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7316 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7317 using MATH_REDIRECT.
7318 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7319 header inclusion.
7320 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7321 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7322 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7323 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7324 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7325 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7327 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7330 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7331 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7332 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7333 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7334 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7335 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7336 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7337 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7338 (ceil): Redirect to __ceil.
7339 (floor): Redirect to __floor.
7340 (trunc): Redirect to __trunc.
7341 (__truncl): Call trunc instead of __trunc.
7342 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7343 Remove macro.
7344 [_ARCH_PWR5X] (__truncf): Likewise.
7345 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7346 trunc functions instead of __trunc variants.
7347 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7348 Likewise.
7349 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7350 Likewise.
7351 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7352 Likewise.
7353 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7354 Likewise.
7355
7356 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7357 [__i586__ || __pentium__].
7358 [__i486__]: Handle explicitly.
7359 (HAS_CPUID): Define to 1 if above macros are undefined.
7360 (HAS_I586): Likewise.
7361 (HAS_I686): Likewise.
7362
7363 2018-09-20 Florian Weimer <fweimer@redhat.com>
7364
7365 * misc/tst-gethostid.c: New file.
7366 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7367 (tst-gethostid): Link with -ldl.
7368
7369 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7370
7371 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7372 value from gethostbyname_r.
7373
7374 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7375
7376 * stdlib/tst-setcontext9.c (f1): Rename to...
7377 (f1a): ... this.
7378 (f1b): New function implementing lower half of f1 in alternate stack.
7379
7380 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7381
7382 Fix mktime localtime offset confusion
7383 [BZ #23603]
7384 * include/time.h (__mktime_internal): The localtime offset is now
7385 of type long int instead of time_t. This is the longstanding type
7386 in glibc, and it is more than enough to represent difference
7387 between localtime and gmtime even if it is 32 bits and time_t is
7388 64. Changing it now will let us avoid an unnecessary change when
7389 time_t is widened to 64 bits on 32-bit platforms.
7390 * time/mktime-internal.h (mktime_offset_t): Now long int.
7391
7392 Merge mktime, timegm from upstream Gnulib
7393 [BZ #23603][BZ #16346]
7394 This fixes some obscure problems with integer overflow.
7395 Although it looks scary, it is almost all a byte-for-byte copy
7396 from Gnulib, and the Gnulib code has been tested reasonably well.
7397 * include/intprops.h: New file, copied from Gnulib.
7398 * include/verify.h, time/mktime-internal.h:
7399 New tiny files, simplified from Gnulib.
7400 * time/mktime.c: Copy from Gnulib. This has the following changes:
7401 Do not include config.h if DEBUG_MKTIME is nonzero.
7402 Include stdbool.h, intprops.h, verify.h.
7403 Include string.h only if needed.
7404 Include stdlib.h on MS-Windows.
7405 Include mktime-internal.h.
7406 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7407 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7408 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7409 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7410 simplify later conditionals; default the others to zero. Use
7411 these conditionals to express only the code needed on the current
7412 platform. In uses of these conditionals, explicitly spell out how
7413 _LIBC affects things, so it’s easier to review from a glibc
7414 viewpoint.
7415 (WRAPV): Remove; no longer needed now that we have
7416 systematic overflow checking.
7417 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7418 compartmentalize tzset issues. Move system-dependent tzsettish
7419 code here from mktime.
7420 (verify): Remove; now done by verify.h. All uses changed.
7421 (long_int): Use a more-conservative definition, to avoid
7422 integer overflow.
7423 (SHR): Remove, replacing with ...
7424 (shr): New function, which means we needn’t worry about side
7425 effects in args, and conversion analysis is simpler.
7426 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7427 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7428 (time_t_avg, time_t_add_ok): Remove.
7429 (mktime_min, mktime_max): New constants.
7430 (leapyear, isdst_differ): Use bool for booleans.
7431 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7432 Use long_int, not time_t, for mktime differences.
7433 (long_int_avg): New function, replacing time_t_avg.
7434 INT_ADD_WRAPV replaces time_t_add_ok.
7435 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7436 All uses changed.
7437 (convert_time): New function.
7438 (ranged_convert): Use it.
7439 (__mktime_internal): Last arg now points to mktime_offset_t, not
7440 time_t. All uses changed. This is a no-op on glibc, where
7441 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7442 offset guess. Directly check for integer overflow instead of
7443 using a heuristic that works only 99.9...% of the time.
7444 Access *OFFSET only once, to avoid an unlikely race if the
7445 compiler delays a load and if this cascades into a signed integer
7446 overflow.
7447 (mktime): Move tzsettish code to my_tzset, and move
7448 localtime_offset to within mktime so that it doesn’t
7449 need a separate ifdef.
7450 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7451 instead of localtime.
7452 * time/timegm.c: Copy from Gnulib. This has the following changes:
7453 Include mktime-internal.h.
7454 [!_LIBC]: Include config.h and time.h. Do not include
7455 timegm.h or time_r.h. Make __mktime_internal a macro,
7456 and include mktime-internal.h to get its declaration.
7457 (timegm): Temporary is now mktime_offset_t, not time_t.
7458 This affects only Gnulib.
7459
7460 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7461
7462 [BZ #23637]
7463 * string/test-strstr.c (pr23637): New function.
7464 (test_main): Add tests with longer needles.
7465 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7466 * string/strstr.c (AVAILABLE): Likewise.
7467
7468 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7469
7470 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7471
7472 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7473
7474 * NEWS: Mention pow improvements.
7475 * math/Makefile (type-double-routines): Add e_pow_log_data.
7476 * sysdeps/generic/math_private.h (__exp1): Remove.
7477 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7478 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7479 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7480 contraction.
7481 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7482 (exp_inline): Remove.
7483 (__ieee754_exp): Only single double input is handled.
7484 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7485 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7486 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7487 (__pow_log_data): Define.
7488 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7489 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7490 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7491 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7492 contraction.
7493 (CFLAGS-e_pow-fma4.c): Likewise.
7494
7495 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7496
7497 Simplify tzfile fstat failure code
7498 [BZ #21716]
7499 * time/tzfile.c (__tzfile_read): Simplify slightly.
7500
7501 Fix tzfile low-memory assertion failure
7502 [BZ #21716]
7503 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7504 when registering time zone abbreviations.
7505
7506 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7507
7508 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7509 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7510 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7511 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7512 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7513 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7514 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7515 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7516 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7517
7518 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7519 __ceil.
7520 (__ceill): Call ceil instead of __ceil.
7521 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7522 __floor.
7523 (__floorl): Call floor instead of __floor.
7524
7525 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7526
7527 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7528 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7529 using MATH_REDIRECT.
7530 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7531 header inclusion.
7532 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7533 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7534 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7535 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7536 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7537 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7538 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7539 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7540 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7541 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7544 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7545 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7546 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7547 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7548 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7549 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7550 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7551 Remove macro.
7552 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7553 functions instead of __ceil variants.
7554 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7555 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7556 Likewise.
7557 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7558 Likewise.
7559 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7560 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7561 Likewise.
7562 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7563 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7564
7565 [BZ #21286]
7566 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7567 constant.
7568 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7569 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7570 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7571 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7572 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7573 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7574 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7575 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7576 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7577 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7578 (ILL_BADIADDR): Remove constant.
7579 (TRAP_BRANCH): Likewise.
7580 (TRAP_HWBKPT): Likewise.
7581
7582 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7583
7584 [BZ #23656]
7585 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7586 Remove [_MIPS_SIM = _ABIN32] conditional case.
7587 (struct elf_prpsinfo): Likewise.
7588
7589 [BZ #23649]
7590 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7591 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7592 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7593 Likewise.
7594 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7595 elf_prpsinfo): Likewise.
7596 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7597 elf_prpsinfo): Likewise.
7598 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7599 Likewise.
7600
7601 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7602 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7603 using MATH_REDIRECT.
7604 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7605 header inclusion.
7606 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7607 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7608 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7609 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7610 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7611 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7612 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7613 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7614 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7615 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7616 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7617 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7618 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7619 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7620 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7621 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7622 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7623 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7624 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7627 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7628 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7629 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7630 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7631 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7632 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7633 __rint variants.
7634 * math/e_scalbf.c (invalid_fn): Likewise.
7635 * math/e_scalbl.c (invalid_fn): Likewise.
7636 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7637 Likewise.
7638 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7639 Likewise.
7640 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7641 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7642 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7643 Likewise.
7644 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7645 Likewise.
7646 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7647 Likewise.
7648 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7649 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7650
7651 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7652 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7653 New macro.
7654 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7655 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7656 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7657 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7658 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7659 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7660 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7661 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7662 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7663 && !NO_MATH_REDIRECT] (floor): Likewise.
7664 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7665 header inclusion.
7666 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7667 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7668 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7669 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7670 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7671 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7672 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7673 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7674 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7675 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7678 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7679 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7680 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7681 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7682 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7683 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7684 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7685 Remove macro.
7686 [_ARCH_PWR5X] (__floorf): Likewise.
7687 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7688 inline function.
7689 [__SSE4_1__] (__floorf): Likewise.
7690 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7691 instead of __floor variants.
7692 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7693 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7694 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7695 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7696 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7697 * math/w_tgamma_compat.c (__tgamma): Likewise.
7698 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7699 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7700 * math/w_tgammal_compat.c (__tgammal): Likewise.
7701 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7702 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7703 Likewise.
7704 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7705 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7706 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7707 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7708 Likewise.
7709 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7710 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7711 Likewise.
7712 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7713 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7714 Likewise.
7715 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7716 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7717 Likewise.
7718 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7719 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7720 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7721 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7722 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7723 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7724
7725 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7726
7727 * elf/Makefile (modules-names-tests): New variable.
7728
7729 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7730
7731 * NEWS: Mention log2 improvements.
7732 * math/Makefile (type-double-routines): Add e_log2_data.
7733 * sysdeps/i386/fpu/e_log2_data.c: New file.
7734 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7735 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7736 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7737 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7738 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7739 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7740
7741 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7742
7743 * NEWS: Mention log improvement.
7744 * math/Makefile (type-double-routines): Add e_log_data.
7745 * sysdeps/i386/fpu/e_log_data.c: New file.
7746 * sysdeps/ia64/fpu/e_log_data.c: New file.
7747 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7748 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7749 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7750 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7751 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7752 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7753
7754 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7755 Xuepeng Guo <xuepeng.guo@intel.com>
7756
7757 [BZ #23606]
7758 * sysdeps/i386/start.S: Include <sysdep.h>
7759 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7760 enabled. Add cfi_undefined (eip).
7761
7762 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7763
7764 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7765 (MOVQ): Likewise.
7766 (EXTRACT_WORDS64): Likewise.
7767 (INSERT_WORDS64): Likewise.
7768 (GET_FLOAT_WORD): Likewise.
7769 (SET_FLOAT_WORD): Likewise.
7770
7771 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7772 argument.
7773 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7774 build, but not for second build if --full-gcc. Use
7775 --enable-languages=all for second build if --full-gcc.
7776 (get_parser): Add --full-gcc option.
7777 (main): Update call to Context.
7778
7779 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7780
7781 [BZ #10797]
7782 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7783 Single Quotation Mark).
7784 (thousands_sep): Likewise.
7785 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7786 * localedata/locales/it_IT (thousands_sep): Use ".".
7787 (grouping): Use "3;3".
7788
7789 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7790
7791 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7792 x86_64 and i686 configs using --enable-obsolete-rpc
7793 --enable-obsolete-nsl.
7794
7795 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7796
7797 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7798
7799 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7800
7801 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7802 Increment size of new_argv by one.
7803
7804 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7805
7806 [BZ #17426]
7807 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7808 * localedata/locales/ar_IN (d_fmt): Likewise.
7809 * localedata/locales/bhb_IN (d_fmt): Likewise.
7810 * localedata/locales/bho_IN (d_fmt): Likewise.
7811 * localedata/locales/bn_BD (d_fmt): Likewise.
7812 * localedata/locales/bn_IN (d_fmt): Likewise.
7813 * localedata/locales/doi_IN (d_fmt): Likewise.
7814 * localedata/locales/gu_IN (d_fmt): Likewise.
7815 * localedata/locales/hi_IN (d_fmt): Likewise.
7816 * localedata/locales/hne_IN (d_fmt): Likewise.
7817 * localedata/locales/kn_IN (d_fmt): Likewise.
7818 * localedata/locales/mag_IN (d_fmt): Likewise.
7819 * localedata/locales/mai_IN (d_fmt): Likewise.
7820 * localedata/locales/mjw_IN (d_fmt): Likewise.
7821 * localedata/locales/ml_IN (d_fmt): Likewise.
7822 * localedata/locales/mni_IN (d_fmt): Likewise.
7823 * localedata/locales/mr_IN (d_fmt): Likewise.
7824 * localedata/locales/pa_IN (d_fmt): Likewise.
7825 * localedata/locales/raj_IN (d_fmt): Likewise.
7826 * localedata/locales/sat_IN (d_fmt): Likewise.
7827 * localedata/locales/sd_IN (d_fmt): Likewise.
7828 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7829 * localedata/locales/ta_IN (d_fmt): Likewise.
7830 * localedata/locales/ta_LK (d_fmt): Likewise.
7831 * localedata/locales/tcy_IN (d_fmt): Likewise.
7832 * localedata/locales/ur_IN (d_fmt): Likewise.
7833
7834 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7835 * localedata/locales/ks_IN (d_fmt): Likewise.
7836 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7837
7838 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7839 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7840 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7841 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7842
7843 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7844
7845 * NEWS: Mention exp and exp2 improvements.
7846 * math/Makefile (libm-support): Remove t_exp.
7847 (type-double-routines): Add math_err and e_exp_data.
7848 * sysdeps/aarch64/libm-test-ulps: Update.
7849 * sysdeps/arm/libm-test-ulps: Update.
7850 * sysdeps/i386/fpu/e_exp_data.c: New file.
7851 * sysdeps/i386/fpu/math_err.c: New file.
7852 * sysdeps/i386/fpu/t_exp.c: Remove.
7853 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7854 * sysdeps/ia64/fpu/math_err.c: New file.
7855 * sysdeps/ia64/fpu/t_exp.c: Remove.
7856 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7857 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7858 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7859 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7860 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7861 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7862 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7863 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7864 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7865 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7866 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7867 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7868 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7869 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7870 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7871 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7872
7873 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7874
7875 * sysdeps/alpha/fpu/math_private.h: Remove.
7876
7877 * sysdeps/generic/math_private.h
7878 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7879 Move this inline function ....
7880 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7881 * include/math.h [!_ISOMAC]: To here....
7882
7883 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7884
7885 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7886 code ....
7887 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7888 * include/fenv.h [!_ISOMAC]: ... to here.
7889 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7890 (feraiseexcept): Likewise.
7891 * math/fromfp.h: Do not include <fenv_private.h>.
7892 * math/s_cexp_template.c: Likewise.
7893 * math/s_csin_template.c: Likewise.
7894 * math/s_csinh_template.c: Likewise.
7895 * math/s_ctan_template.c: Likewise.
7896 * math/s_ctanh_template.c: Likewise.
7897 * math/s_iseqsig_template.c: Likewise.
7898 * math/w_acos_compat.c: Likewise.
7899 * math/w_acosf_compat.c: Likewise.
7900 * math/w_acosl_compat.c: Likewise.
7901 * math/w_asin_compat.c: Likewise.
7902 * math/w_asinf_compat.c: Likewise.
7903 * math/w_asinl_compat.c: Likewise.
7904 * math/w_j0_compat.c: Likewise.
7905 * math/w_j0f_compat.c: Likewise.
7906 * math/w_j0l_compat.c: Likewise.
7907 * math/w_j1_compat.c: Likewise.
7908 * math/w_j1f_compat.c: Likewise.
7909 * math/w_j1l_compat.c: Likewise.
7910 * math/w_jn_compat.c: Likewise.
7911 * math/w_jnf_compat.c: Likewise.
7912 * math/w_log10_compat.c: Likewise.
7913 * math/w_log10f_compat.c: Likewise.
7914 * math/w_log10l_compat.c: Likewise.
7915 * math/w_log2_compat.c: Likewise.
7916 * math/w_log2f_compat.c: Likewise.
7917 * math/w_log2l_compat.c: Likewise.
7918 * math/w_log_compat.c: Likewise.
7919 * math/w_logf_compat.c: Likewise.
7920 * math/w_logl_compat.c: Likewise.
7921 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7922 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7923 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7924 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7925 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7926 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7927 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7928 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7929 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7930 * sysdeps/ieee754/k_standardl.c: Likewise.
7931 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7932 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7933 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7934 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7935 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7936 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7937 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7938 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7939 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7940 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7941 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7942 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7943 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7944 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7945 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7946 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7947 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7948 * math/w_ilogb_template.c: Include <fenv.h> instead of
7949 <fenv_private.h>.
7950 * math/w_llogb_template.c: Likewise.
7951 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7952 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7953
7954 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7955
7956 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7957 * math/fromfp.h: Include <fenv_private.h>.
7958 * math/math-narrow.h: Likewise.
7959 * math/s_cexp_template.c: Likewise.
7960 * math/s_csin_template.c: Likewise.
7961 * math/s_csinh_template.c: Likewise.
7962 * math/s_ctan_template.c: Likewise.
7963 * math/s_ctanh_template.c: Likewise.
7964 * math/s_iseqsig_template.c: Likewise.
7965 * math/w_acos_compat.c: Likewise.
7966 * math/w_acosf_compat.c: Likewise.
7967 * math/w_acosl_compat.c: Likewise.
7968 * math/w_asin_compat.c: Likewise.
7969 * math/w_asinf_compat.c: Likewise.
7970 * math/w_asinl_compat.c: Likewise.
7971 * math/w_ilogb_template.c: Likewise.
7972 * math/w_j0_compat.c: Likewise.
7973 * math/w_j0f_compat.c: Likewise.
7974 * math/w_j0l_compat.c: Likewise.
7975 * math/w_j1_compat.c: Likewise.
7976 * math/w_j1f_compat.c: Likewise.
7977 * math/w_j1l_compat.c: Likewise.
7978 * math/w_jn_compat.c: Likewise.
7979 * math/w_jnf_compat.c: Likewise.
7980 * math/w_llogb_template.c: Likewise.
7981 * math/w_log10_compat.c: Likewise.
7982 * math/w_log10f_compat.c: Likewise.
7983 * math/w_log10l_compat.c: Likewise.
7984 * math/w_log2_compat.c: Likewise.
7985 * math/w_log2f_compat.c: Likewise.
7986 * math/w_log2l_compat.c: Likewise.
7987 * math/w_log_compat.c: Likewise.
7988 * math/w_logf_compat.c: Likewise.
7989 * math/w_logl_compat.c: Likewise.
7990 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7991 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7992 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7993 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7994 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7995 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7996 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7997 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7998 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7999 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8000 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8001 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8002 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
8003 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8004 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8005 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8006 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8007 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8008 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8009 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8010 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8011 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8012 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8013 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8014 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8015 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8016 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8017 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
8018 * sysdeps/ieee754/float128/float128_private.h: Likewise.
8019 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8020 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8021 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8022 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8023 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8024 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8025 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8026 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8027 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8028 * sysdeps/ieee754/k_standardl.c: Likewise.
8029 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8030 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8031 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8032 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8033 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8034 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8035 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8036 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8037 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8038 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8039 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8040 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8041 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8042 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8043 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8044 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8045 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8046 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8047 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8048 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8049 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8050 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8051 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8052 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8053 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8054 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8055 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8056 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8057 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8058 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8059 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8060 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8061 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8062 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8063 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8064 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8065 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8066 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8067 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8068 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8069 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8070 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8071 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8072 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8073 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8074 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8075 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8076 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8077 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8078 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8079 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8080 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8081 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8082 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8083 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8084 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8085 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8086 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8087 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8088 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8089 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8090 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8091 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8092 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8093 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8094 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8095 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8096 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8097 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8098 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8099 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8100
8101 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8102
8103 [BZ #20271]
8104 * include/stdio.h (__libc_fatal): Mention newline in comment.
8105 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8106 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8107 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8108 * nss/nsswitch.c (__nss_next2): Likewise.
8109 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8110 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8111 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8112 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8113 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8114 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8115 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8116 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8117 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8118 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8119 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8120 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8121 (__netlink_assert_response): Likewise.
8122
8123 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8124
8125 * conform/glibcconform.py: New file.
8126 * conform/list-header-symbols.py: Likewise.
8127 * conform/list-header-symbols.pl: Remove.
8128 * conform/Makefile (tests-special): Only add linknamespace tests
8129 if [PYTHON].
8130 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8131
8132 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8133
8134 [BZ #23597]
8135 * support/Makefile (libsupport-routines): Add
8136 support_copy_file_range and xcopy_file_range.
8137 * support/support.h: Include <sys/types.h>.
8138 (support_copy_file_range): New prototype.
8139 * support/support_copy_file_range.c: New file. Copied and
8140 modified from io/copy_file_range-compat.c.
8141 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8142 instead of copy_file_range.
8143 * support/xcopy_file_range.c: New file.
8144 * support/xunistd.h (xcopy_file_range): New prototype.
8145
8146 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8147
8148 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8149 xpthread_create and xpthread_join.
8150
8151 2018-08-30 Florian Weimer <fweimer@redhat.com>
8152
8153 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8154
8155 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8156
8157 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8158 if malloc fails.
8159
8160 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8161
8162 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8163 and minus_oflow as non-finite.
8164
8165 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8166
8167 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8168 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8169 moved to fenv_private.h except for ...
8170 (TOINT_INTRINSICS): Kept in math_private.h.
8171 (roundtoint): Likewise.
8172 (converttoint): Likewise.
8173 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8174 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8175 * sysdeps/arm/math_private.h: Remove.
8176 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8177 ....
8178 * sysdeps/generic/math_private.h: ... this file. Include
8179 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8180 Include <fenv_private.h>. Remove functions and macros moved to
8181 fenv_private.h.
8182 * sysdeps/i386/fpu/math_private.h: Remove.
8183 * sysdeps/mips/math_private.h: Move to ....
8184 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8185 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8186 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8187 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8188 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8189 * sysdeps/powerpc/fpu/math_private.h: Do not include
8190 <fenv_private.h>.
8191 * sysdeps/riscv/rvf/math_private.h: Move to ....
8192 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8193 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8194 <fenv_private.h>.
8195 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8196 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8197 * sysdeps/sparc/fpu/math_private.h: Remove.
8198 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8199 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8200 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8201 <fenv_private.h>.
8202 * sysdeps/x86_64/fpu/math_private.h: Do not include
8203 <sysdeps/i386/fpu/fenv_private.h>.
8204
8205 2018-08-28 Florian Weimer <fweimer@redhat.com>
8206
8207 [BZ #23578]
8208 * posix/tst-regcomp-truncated.c: New file.
8209 * posix/Makefile (tests): Add it.
8210 (tst-regcomp-truncated.out): Depend on generated locales.
8211
8212 2018-08-28 Florian Weimer <fweimer@redhat.com>
8213
8214 * support/test-container.c (main): Treat unshare failure with
8215 EPERM as an unsupported test.
8216
8217 2018-08-28 Florian Weimer <fweimer@redhat.com>
8218
8219 [BZ #23520]
8220 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8221 * nscd/netgroupcache.c
8222 (addgetnetgrentX): Add tofreep parameter. Do not free
8223 heap-allocated buffer.
8224 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8225 (addgetnetgrentX_ignore): New function.
8226 (addgetnetgrent): Call it.
8227 (readdgetnetgrent): Likewise.
8228
8229 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8230
8231 * string/memmem.c: Use memcmp for first match.
8232
8233 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8234
8235 [BZ #17426]
8236 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8237
8238 2018-08-27 DJ Delorie <dj@redhat.com>
8239
8240 * support/Makefile (others): Don't list programs explicitly as a
8241 dependency of "others".
8242
8243 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8244
8245 * sysdeps/generic/math-tests-trap-force.h: New file.
8246 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8247 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8248 * sysdeps/powerpc/math-tests.h: Remove file.
8249 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8250
8251 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8252 Torvald Riegel <triegel@redhat.com>
8253
8254 [BZ #23538]
8255 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8256 Update r to include the set wake-request flag if waiters are
8257 remaining after spinning.
8258
8259 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8260
8261 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8262
8263 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8264
8265 [BZ #23578]
8266 regex: fix uninitialized memory access
8267 I introduced this bug into gnulib in commit
8268 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8269 eventually it was merged into glibc. The bug was found by
8270 project-repo <bugs@feusi.co> and reported here:
8271 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8272 Diagnosis and draft fix reported by Assaf Gordon here:
8273 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8274 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8275 * posix/regex_internal.c (build_wcs_upper_buffer):
8276 Fix bug when mbrtowc returns 0.
8277
8278 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8279
8280 * po/be.po: Update translation.
8281
8282 2018-08-24 DJ Delorie <dj@delorie.com>
8283
8284 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8285 $(libunwind).
8286
8287 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8288
8289 [BZ #23400]
8290 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8291 create temporary files in source tree.
8292
8293 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8294
8295 * sysdeps/generic/math-tests-trap.h: New file.
8296 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8297 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8298 * sysdeps/aarch64/math-tests.h: Remove file.
8299 * sysdeps/arm/math-tests.h: Likewise.
8300 * sysdeps/riscv/math-tests.h: Likewise.
8301 * sysdeps/aarch64/math-tests-trap.h: New file.
8302 * sysdeps/arm/math-tests-trap.h: Likewise.
8303 * sysdeps/riscv/math-tests-trap.h: Likewise.
8304
8305 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8306
8307 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8308 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8309 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8310 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8311 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8312 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8313 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8314 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8315 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8316 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8317 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8318 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8319 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8320 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8321 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8322 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8323 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8324 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8325
8326 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8327
8328 * sysdeps/generic/math-tests-exceptions.h: New file.
8329 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8330 (EXCEPTION_TESTS_float): Do not define here.
8331 (EXCEPTION_TESTS_double): Likewise.
8332 (EXCEPTION_TESTS_long_double): Likewise.
8333 (EXCEPTION_TESTS_float128): Likewise.
8334 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8335 Likewise.
8336 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8337 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8338 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8339 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8340 * sysdeps/mips/math-tests.h: Likewise.
8341 * sysdeps/nios2/math-tests.h: Likewise.
8342 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8343 (EXCEPTION_TESTS_float): Do not define here.
8344 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8345 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8346 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8347
8348 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8349
8350 * NEWS: Move optimized sinf entry to 2.29.
8351
8352 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8353
8354 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8355
8356 2018-08-22 DJ Delorie <dj@redhat.com>
8357
8358 * Makefile (testroot.pristine): New rules to initialize the
8359 test-in-container "testroot".
8360 * Makerules (all-testsuite): Add tests-container.
8361 * Rules (tests-expected): Add tests-container.
8362 (binaries-all-tests): Likewise.
8363 (tests-container): New, run these tests in the testroot container.
8364 * support/Makefile (others): Add *-container, support_paths.c,
8365 xmkdirp, and links-dso-program.
8366 * support/links-dso-program-c.c: New.
8367 * support/links-dso-program.cc: New.
8368 * support/test-container.c: New.
8369 * support/shell-container.c: New.
8370 * support/echo-container.c: New.
8371 * support/true-container.c: New.
8372 * support/xmkdirp.c: New.
8373 * support/xsymlink.c: New.
8374 * support/support_paths.c: New.
8375 * support/support.h: Add support paths prototypes.
8376 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8377
8378 * nss/tst-nss-test3.c: Convert to test-in-container.
8379 * nss/tst-nss-test3.root/: New.
8380
8381 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8382
8383 regex: port Gnulib code to z/OS POSIX environment
8384 Problem reported by Arnold Robbins in:
8385 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8386 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8387 Undef.
8388
8389 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8390
8391 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8392 (ROUNDING_TESTS_double): Remove.
8393 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8394 (ROUNDING_TESTS_double): Remove.
8395 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8396 (ROUNDING_TESTS_double): Remove.
8397 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8398 (ROUNDING_TESTS_float): Remove.
8399 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8400 (ROUNDING_TESTS_float): Remove.
8401 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8402 (ROUNDING_TESTS_float): Remove.
8403 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8404 !TEST_MATHVEC here.
8405 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8406 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8407
8408 * sysdeps/generic/math-tests-rounding.h: New file.
8409 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8410 (ROUNDING_TESTS_float): Do not define here.
8411 (ROUNDING_TESTS_double): Likewise.
8412 (ROUNDING_TESTS_long_double): Likewise.
8413 (ROUNDING_TESTS_float128): Likewise.
8414 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8415 (ROUNDING_TESTS_double): Undefine before defining.
8416 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8417 (ROUNDING_TESTS_double): Undefine before defining.
8418 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8419 (ROUNDING_TESTS_double): Undefine before defining.
8420 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8421 (ROUNDING_TESTS_float): Undefine before defining.
8422 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8423 (ROUNDING_TESTS_float): Undefine before defining.
8424 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8425 (ROUNDING_TESTS_float): Undefine before defining.
8426 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8427 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8428 not define here.
8429 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8430 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8431 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8432 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8433 (ROUNDING_TESTS_float): Do not define here.
8434 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8435 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8436 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8437 (ROUNDING_TESTS_float): Likewise.
8438 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8439 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8440 * sysdeps/mips/math-tests.h [__mips_soft_float]
8441 (ROUNDING_TESTS_float): Likewise.
8442 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8443 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8444 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8445 (ROUNDING_TESTS_double): Likewise.
8446 (ROUNDING_TESTS_long_double): Likewise.
8447
8448 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8449
8450 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8451 (PF_XDP): New macro.
8452 (AF_XDP): New macro.
8453 (SOL_XDP): New macro.
8454
8455 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8456
8457 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8458 (TCP_INQ): Likewise.
8459 (TCP_CM_INQ): Likewise.
8460 (TCP_REPAIR_ON): Likewise.
8461 (TCP_REPAIR_OFF): Likewise.
8462 (TCP_REPAIR_OFF_NO_WP): Likewise.
8463 (struct tcp_zerocopy_receive): New type.
8464
8465 2018-08-21 Florian Weimer <fweimer@redhat.com>
8466
8467 * support/support.h (support_descriptor_supports_holes): Declare.
8468 * support/Makefile (libsupport-routines): Add
8469 support_descriptor_supports_holes.
8470 * support/support_descriptor_supports_holes.c: New file.
8471 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8472 and stop testing if holes are not supported.
8473 * io/test-lfs.c (do_prepare): Likewise.
8474 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8475 Likewise.
8476 * timezone/tst-tzset.c (create_tz_file): Likewise.
8477 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8478 variable.
8479 (do_prepare): Set it.
8480 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8481
8482 2018-08-21 Florian Weimer <fweimer@redhat.com>
8483
8484 [BZ #17248]
8485 * Makeconfig (+cflags): Do not sort (and deduplicate).
8486
8487 2018-08-21 Florian Weimer <fweimer@redhat.com>
8488
8489 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8490 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8491
8492 2018-08-20 Florian Weimer <fweimer@redhat.com>
8493
8494 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8495 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8496
8497 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8498
8499 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8500 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8501 and ssi_arch members.
8502
8503 * elf/elf.c (NT_VMCOREDD): New macro.
8504 (AT_MINSIGSTKSZ): Likewise.
8505
8506 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8507
8508 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8509 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8510 s_cosf-ppc64 and s_cosf-power8.
8511 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8512 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8513 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8514 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8521 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8522 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8523
8524 2018-08-17 Florian Weimer <fweimer@redhat.com>
8525
8526 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8527
8528 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8529
8530 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8531
8532 2018-08-16 Florian Weimer <fweimer@redhat.com>
8533
8534 * configure.ac: Add --with-nonshared-cflags option.
8535 * config.make.in (extra-nonshared-cflags): Set variable.
8536 * Makeconfig (CFLAGS-.oS): Use it.
8537 * manual/install.texi (Configuring and compiling): Document
8538 --with-nonshared-cflags.
8539 * configure: Regenerate.
8540 * INSTALL: Likewise.
8541
8542 2018-08-16 Florian Weimer <fweimer@redhat.com>
8543
8544 * Makeconfig (ASFLAGS): Always append required assembler flags.
8545
8546 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8547
8548 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8549 (malloc_consolidate): Likewise.
8550
8551 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8552
8553 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8554
8555 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8556
8557 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8558 every strlen call.
8559
8560 * benchtests/bench-strlen.c: Print performance numbers in json.
8561
8562 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8563
8564 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8565 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8566 only for little endian.
8567 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8568 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8569 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8570 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8571 Add check for little endian.
8572 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8573 (__strcmp_power9): Add check for little endian.
8574 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8575 Add check for little endian.
8576 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8577 (__strncmp_power9): Add check for little endian.
8578 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8579 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8580 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8581 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8582 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8583
8584 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8585
8586 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8587 [!STRLEN](STRLEN): Set to __strlen.
8588 * sysdeps/aarch64/multiarch/strlen.c: New file.
8589 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8590 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8591 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8592 (__libc_ifunc_impl_list): Add strlen.
8593 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8594 strlen_generic and strlen_asimd.
8595
8596 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8597
8598 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8599 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8600 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8601
8602 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8603
8604 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8605
8606 2018-08-14 Florian Weimer <fweimer@redhat.com>
8607
8608 [BZ #23519]
8609 * include/stdio.h (__vfxprintf): Declare.
8610 * stdio-common/fxprintf.c (__vfxprintf): New function.
8611 (__fxprintf): Call it.
8612 * misc/err.c (convert_and_print): Remove function.
8613 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8614 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8615 * misc/Makefile (tests): Add tst-warn-wide.
8616 * misc/tst-warn-wide.c: New file.
8617
8618 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8619 Szabolcs Nagy <szabolcs.nagy@arm.com>
8620
8621 * NEWS: Mention sinf, cosf, sincosf.
8622 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8623 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8624 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8625 constants rather than including generic sincosf.h.
8626 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8627 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8628 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8629 (reduced_cos): Remove.
8630 (sinf_poly): New function.
8631 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8632
8633 2018-08-14 Florian Weimer <fweimer@redhat.com>
8634
8635 [BZ #23521]
8636 [BZ #23522]
8637 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8638 processing, bail out if no room, and close the stream before
8639 returning ERANGE.
8640 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8641 (tst-nss-files-alias-leak): Link with libdl.
8642 (tst-nss-files-alias-leak.out): Depend on nss_files.
8643
8644 * nss/tst-nss-files-alias-leak.c: New file.
8645
8646 2018-08-14 Florian Weimer <fweimer@redhat.com>
8647
8648 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8649 server_user, stat_user.
8650
8651 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8652
8653 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8654 version to 4.18.
8655 (io_pgetevents): New syscall.
8656 (rseq): Likewise.
8657
8658 * manual/install.texi (Configuring and compiling): Do not list
8659 tools used for testing pretty printers here.
8660 (Tools for Compilation): List Python, PExpect and GDB here.
8661 Update descriptions of uses of Perl and Python.
8662 * INSTALL: Regenerate.
8663
8664 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8665 version to 4.18.
8666
8667 2018-08-13 Florian Weimer <fweimer@redhat.com>
8668
8669 * misc/error.c (error): Add missing va_end call.
8670 (error_at_line): Likewise.
8671
8672 2018-08-13 Florian Weimer <fweimer@redhat.com>
8673
8674 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8675
8676 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8677
8678 * benchtests/scripts/benchout.schema.json (properties): Add
8679 new properties.
8680
8681 * benchtests/bench-skeleton.c (main): Add duration and
8682 iterations attributes.
8683
8684 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8685
8686 regex: Gnulib unibyte RRI uses bytes not chars
8687 Adjust the non-glibc code to agree with what Gawk needs for
8688 rational range interpretation (RRI) for regular expression ranges.
8689 In unibyte locales, Gawk wants ranges to use the underlying byte
8690 rather than the character code point. This change does not affect
8691 glibc proper.
8692 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8693 In unibyte locales, use the byte value rather than
8694 running it through btowc.
8695
8696 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8697
8698 * sysdeps/generic/math-tests-snan.h: New file.
8699 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8700 (SNAN_TESTS_float): Do not define here.
8701 (SNAN_TESTS_double): Likewise.
8702 (SNAN_TESTS_long_double): Likewise.
8703 (SNAN_TESTS_float128): Likewise.
8704 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8705 * sysdeps/i386/fpu/math-tests.h: Remove file.
8706 * sysdeps/ia64/math-tests-snan.h: New file.
8707 * sysdeps/ia64/math-tests.h: Remove file.
8708 * sysdeps/x86/math-tests.h: Likewise.
8709 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8710
8711 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8712 Szabolcs Nagy <szabolcs.nagy@arm.com>
8713
8714 * math/Makefile: Add s_sincosf_data.c.
8715 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8716 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8717 (sincosf_poly): Likewise.
8718 (reduce_small): Likewise.
8719 (reduce_large): Likewise.
8720 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8721 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8722 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8723 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8724
8725 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8726 Szabolcs Nagy <szabolcs.nagy@arm.com>
8727
8728 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8729 (converttoint): Use lround.
8730 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8731 document the semantics when TOINT_INTRINSICS is set.
8732 (converttoint): Likewise.
8733 (TOINT_RINT): Remove.
8734 (TOINT_SHIFT): Remove.
8735 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8736 path.
8737
8738 2018-08-10 Florian Weimer <fweimer@redhat.com>
8739
8740 [BZ #23497]
8741 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8742 function.
8743 (__old_getdents64): Use getdents64. Convert entries without
8744 moving them.
8745 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8746 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8747 tst-readdir64-compat.
8748
8749 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8750
8751 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8752 Fix unwind.
8753
8754 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8755
8756 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8757 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8758 code to s390x-mcount.h and #include it.
8759 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8760 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8761 (__fentry__): Add.
8762
8763 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8764
8765 * stdlib/Versions: Remove __fentry__.
8766 * sysdeps/i386/Versions: Add __fentry__.
8767 * sysdeps/x86_64/Versions: Add __fentry__.
8768
8769 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8770
8771 * sysdeps/s390/Makefile: Register the new tests.
8772 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8773 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8774 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8775 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8776 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8777 * sysdeps/s390/tst-dl-runtime.c: New file.
8778
8779 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8780
8781 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8782 Do not clobber R0.
8783
8784 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8785
8786 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8787 Do not clobber R0.
8788
8789 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8790
8791 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8792 Do not clobber R0.
8793
8794 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8795
8796 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8797 Do not clobber R0.
8798
8799 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8800
8801 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8802 Use symbolic offsets for stack variables.
8803
8804 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8805
8806 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8807 Use symbolic offsets for stack variables.
8808
8809 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8810
8811 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8812 Use symbolic offsets for stack variables.
8813
8814 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8815
8816 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8817 Use symbolic offsets for stack variables.
8818
8819 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8820
8821 * math/gen-libm-test.py: New file.
8822 * math/gen-libm-test.pl: Remove.
8823 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8824 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8825 gen-libm-test.pl.
8826 ($(libm-test-c-noauto-obj)): Likewise.
8827 ($(libm-test-c-auto-obj)): Likewise.
8828 ($(libm-test-c-narrow-obj)): Likewise.
8829 (regen-ulps): Likewise.
8830 * math/README.libm-test: Update references to gen-libm-test.pl.
8831 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8832 referencing gen-libm-test.pl.
8833 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8834 * math/libm-test-support.c: Likewise.
8835 * math/libm-test-support.h: Likewise.
8836 * sysdeps/generic/libm-test-ulps: Likewise.
8837
8838 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8839
8840 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8841 Fix value.
8842
8843 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8844
8845 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8846 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8847
8848 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8849
8850 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8851 symbols.
8852 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8853 __pthread_setspecific): Add hidden proto.
8854 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8855 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8856
8857 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8858
8859 * benchtests/bench-string.h (buf1_size, buf2_size): New
8860 variables.
8861 (init_sizes): New function.
8862 (test_init): Use it.
8863 (alloc_buf, exit_error): New functions.
8864 (alloc_bufs): Use ALLOC_BUF.
8865 (realloc_bufs): Remove.
8866 * benchtests/bench-memcmp.c (do_test): Adjust.
8867 * benchtests/bench-memset-large.c (do_test): Likewise.
8868 * benchtests/bench-memset-walk.c (do_test): Likewise.
8869 * benchtests/bench-memset.c (do_test): Likewise.
8870 * benchtests/bench-strncmp.c (do_test): Likewise.
8871
8872 2018-08-06 Andreas Schwab <schwab@suse.de>
8873
8874 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8875 of CONST_THREAD_AREA.
8876
8877 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8878
8879 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8880 (STATE_SAVE_MASK): Likewise.
8881 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8882 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8883 (STATE_SAVE_MASK): Likewise.
8884 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8885 instead of <cpu-features.h>.
8886
8887 2018-08-03 DJ Delorie <dj@redhat.com>
8888
8889 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8890 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8891
8892 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8893
8894 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8895
8896 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8897 after TEST_* calls.
8898 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8899 * math/libm-test-logb.inc (logb_test_data): Likewise.
8900
8901 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8902
8903 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8904 * string/strstr.c (AVAILABLE): Likewise.
8905
8906 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8907
8908 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8909 <init-arch.h>.
8910 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8911 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8912 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8913
8914 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8915
8916 * po/be.po: Update translation.
8917
8918 * po/be.po: Update translation.
8919
8920 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8921
8922 * sysdeps/x86/cpu-features-offsets.sym
8923 (rtld_global_ro_offsetof): Removed.
8924 (CPU_FEATURES_SIZE): Likewise.
8925 (CPUID_OFFSET): Likewise.
8926 (CPUID_SIZE): Likewise.
8927 (CPUID_EAX_OFFSET): Likewise.
8928 (CPUID_EBX_OFFSET): Likewise.
8929 (CPUID_ECX_OFFSET): Likewise.
8930 (CPUID_EDX_OFFSET): Likewise.
8931 (FAMILY_OFFSET): Likewise.
8932 (MODEL_OFFSET): Likewise.
8933 (FEATURE_OFFSET): Likewise.
8934 (FEATURE_SIZ): Likewise.
8935 (COMMON_CPUID_INDEX_1): Likewise.
8936 (COMMON_CPUID_INDEX_7): Likewise.
8937 (FEATURE_INDEX_1): Likewise.
8938 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8939
8940 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8941
8942 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8943 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8944 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8945 (install-locales): Depend on install-locale-archive.
8946 (install-locale-archive): Define.
8947 (install-locale-files): Define.
8948 (build-one-locale): Define macro.
8949 * manual/install.texi (Running make install): Document.
8950 * manual/INSTALL: Regenerate.
8951
8952 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8953
8954 * benchtests/scripts/compare_strings.py: Import traceback.
8955 (parse_file): Pretty-print error.
8956
8957 * NEWS: Mention the change.
8958 * elf/dl-tunables.list: Rename tune namespace to cpu.
8959 * sysdeps/powerpc/dl-tunables.list: Likewise.
8960 * sysdeps/x86/dl-tunables.list: Likewise.
8961 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8962 cpu.name.
8963 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8964 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8965 * manual/README.tunables: Likewise.
8966 * manual/tunables.texi: Likewise.
8967 * sysdeps/powerpc/cpu-features.c: Likewise.
8968 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8969 (init_cpu_features): Likewise.
8970 * sysdeps/x86/cpu-features.c: Likewise.
8971 * sysdeps/x86/cpu-features.h: Likewise.
8972 * sysdeps/x86/cpu-tunables.c: Likewise.
8973 * sysdeps/x86_64/Makefile: Likewise.
8974 * sysdeps/x86/dl-cet.c: Likewise.
8975
8976 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8977
8978 [BZ #23479]
8979 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8980 [__mips_hard_float].
8981 (FE_UNDERFLOW): Likewise.
8982 (FE_OVERFLOW): Likewise.
8983 (FE_DIVBYZERO): Likewise.
8984 (FE_INVALID): Likewise.
8985 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8986 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8987 (FE_UPWARD): Likewise.
8988 (FE_DOWNWARD): Likewise.
8989 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8990 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8991 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8992 [__mips_hard_float].
8993 (FP_ROUNDMODE): Likewise.
8994 (FP_RND_NEAREST): Likewise.
8995 (FP_RND_ZERO): Likewise.
8996 (FP_RND_PINF): Likewise.
8997 (FP_RND_MINF): Likewise.
8998 (FP_EX_INVALID): Likewise.
8999 (FP_EX_OVERFLOW): Likewise.
9000 (FP_EX_UNDERFLOW): Likewise.
9001 (FP_EX_DIVZERO): Likewise.
9002 (FP_EX_INEXACT): Likewise.
9003 (FP_INIT_ROUNDMODE): Likewise.
9004 * sysdeps/mips/nofpu/fesetenv.c: New file.
9005 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
9006
9007 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9008
9009 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
9010 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
9011 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
9012 conditional on [FE_UPWARD].
9013
9014 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
9015
9016 regex: fix memory leak in Gnulib
9017 Problem and fix reported by Assaf Gordon in:
9018 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
9019 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
9020 range_ends members too, as they are defined in 'struct
9021 re_charset_t' even if not _LIBC. This affects only Gnulib.
9022
9023 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
9024
9025 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
9026 ...
9027 (get_common_indices): This.
9028 (init_cpu_features): Updated.
9029
9030 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9031
9032 * sysdeps/generic/math-tests-snan-payload.h: New file.
9033 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9034 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9035 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9036 * sysdeps/generic/math-tests.h: Include
9037 <math-tests-snan-payload.h>.
9038 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9039 * sysdeps/hppa/math-tests.h: Remove file.
9040 * sysdeps/mips/math-tests.h [!__mips_nan2008]
9041 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9042 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9043 Likewise.
9044
9045 * sysdeps/generic/math-tests-snan-cast.h: New file.
9046 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9047 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9048 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9049 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9050
9051 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9052
9053 * version.h (RELEASE): Set to "development".
9054 (VERSION): Set to "2.28.9000".
9055 * NEWS (2.29): New section.
9056
9057 * version.h (RELEASE): Set to "stable".
9058 (VERSION): Set to "2.28".
9059 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9060 * NEWS: Add the list of bugs fixed in 2.28.
9061
9062 * po/ca.po: Update to latest version.
9063 * po/cs.po: Likewise
9064 * po/da.po: Likewise
9065 * po/el.po: Likewise
9066 * po/eo.po: Likewise
9067 * po/es.po: Likewise
9068 * po/fi.po: Likewise
9069 * po/fr.po: Likewise
9070 * po/gl.po: Likewise
9071 * po/hu.po: Likewise
9072 * po/ia.po: Likewise
9073 * po/id.po: Likewise
9074 * po/it.po: Likewise
9075 * po/ja.po: Likewise
9076 * po/ko.po: Likewise
9077 * po/lt.po: Likewise
9078 * po/nb.po: Likewise
9079 * po/nl.po: Likewise
9080 * po/pt_BR.po: Likewise
9081 * po/ru.po: Likewise
9082 * po/rw.po: Likewise
9083 * po/sk.po: Likewise
9084 * po/sl.po: Likewise
9085 * po/tr.po: Likewise
9086 * po/zh_CN.po: Likewise
9087 * po/zh_TW.po: Likewise
9088
9089 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9090
9091 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9092 initialization...
9093 (init): ... before initializing libpthread.
9094
9095 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9096 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9097 (__mach_setup_tls): ... new function.
9098 (mach_setup_tls): New alias.
9099 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9100 __mach_setup_thread.
9101 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9102 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9103 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9104 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9105
9106 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9107
9108 * manual/install.texi: Update versions.
9109 * INSTALL: Regenerate.
9110
9111 * manual/contrib.texi (Contributors): Update contributions.
9112
9113 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9114
9115 * po/be.po: Update translations.
9116
9117 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9118
9119 * sysdeps/sh/libm-test-ulps: Update.
9120
9121 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9122
9123 * po/bg.po: Update translations.
9124 * po/de.po: Likewise.
9125 * po/hr.po: Likewise.
9126 * po/pt_BR.po: Likewise.
9127 * po/sv.po: Likewise.
9128 * po/vi.po: Likewise.
9129
9130 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9131
9132 [BZ #23467]
9133 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9134 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9135 (CFLAGS-tst-cet-property-1.o): New.
9136 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9137 ($(objpfx)tst-cet-property-2): Likewise.
9138 ($(objpfx)tst-cet-property-2.out): Likewise.
9139 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9140 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9141 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9142 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9143 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9144
9145 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9146
9147 [BZ #23458]
9148 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9149
9150 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9151
9152 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9153 __sbrk): Do not set attribute_hidden.
9154 * sysdeps/mach/hurd/not-errno.h: New file.
9155 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9156 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9157
9158 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9159
9160 * po/uk.po: Update translations.
9161 * po/cs.po: Likewise.
9162 * po/pl.po: Likewise.
9163
9164 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9165
9166 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9167 parse beyond the note end.
9168
9169 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9170
9171 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9172 kernel does not support OFD locks.
9173 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9174
9175 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9176
9177 * sysdeps/mach/hurd/Versions (libc): Make __access and
9178 __access_noerrno external so they can override the ld symbols.
9179 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9180 __writev, __open64, __access_noerrno extern so they can be overrided.
9181 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9182 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9183
9184 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9185
9186 * po/libc.pot: Regenerate.
9187
9188 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9189
9190 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9191
9192 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9193
9194 [BZ #23459]
9195 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9196 function.
9197 (init_cpu_features): Call get_extended_indices for both Intel
9198 and AMD CPUs.
9199 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9200 Remove "for AMD" comment.
9201
9202 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9203
9204 [BZ # 23456]
9205 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9206 COMMON_CPUID_INDEX_80000001.
9207
9208 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9209
9210 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9211 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9212
9213 2018-07-26 Florian Weimer <fweimer@redhat.com>
9214
9215 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9216 aliases for symbols not in the implementation namespace.
9217
9218 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9219
9220 [BZ #23393]
9221 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9222 lowercase in LATIN script.
9223 * localedata/Makefile (test-input): Add en_US.UTF-8.
9224 * localedata/en_US.UTF-8.in: New file.
9225 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9226 and restore old tests.
9227 * posix/tst-regexloc.c (do_test): Add back range expression test.
9228
9229 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9230
9231 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9232
9233 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9234
9235 * nptl/threads.h: Move to ...
9236 * sysdeps/nptl/threads.h: ... here.
9237 * sysdeps/hurd/stdc-predef.h: New file.
9238
9239 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9240
9241 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9242 tst-cet-setcontext-1 if CET is enabled.
9243 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9244 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9245
9246 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9247
9248 * include/threads.h: Move to ...
9249 * sysdeps/nptl/threads.h: ... here.
9250 * sysdeps/htl/threads.h: New file.
9251 * conform/Makefile (linknamespace-libs-ISO11): Use
9252 static-thread-library instead of linking libpthread.
9253 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9254
9255 2018-07-25 Florian Weimer <fweimer@redhat.com>
9256
9257 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9258 nanoseconds into seconds.
9259 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9260 (do_test): Likewise.
9261 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9262 (do_test): Likewise. Avoid nanosecond overflow and spurious
9263 timeouts due to system load.
9264 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9265 (child_wait): Increment it.
9266 (do_test): Wait as long as necessary until all expected threads
9267 have arrived.
9268
9269 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9270 H.J. Lu <hongjiu.lu@intel.com>
9271
9272 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9273 __ssp.
9274 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9275 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9276 (__push___start_context): New.
9277 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9278 <asm/prctl.h>.
9279 (__getcontext): Record the current shadow stack base. Save the
9280 caller's shadow stack pointer and base.
9281 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9282 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9283 (__push___start_context): New prototype.
9284 (__makecontext): Call __push___start_context to allocate a new
9285 shadow stack, push __start_context onto the new stack as well
9286 as the new shadow stack.
9287 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9288 <asm/prctl.h>.
9289 (__setcontext): Restore the target shadow stack.
9290 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9291 <asm/prctl.h>.
9292 (__swapcontext): Record the current shadow stack base. Save
9293 the caller's shadow stack pointer and base. Restore the target
9294 shadow stack.
9295 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9296 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9297 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9298
9299 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9300
9301 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9302 tst-setcontext8 and tst-setcontext9.
9303 * stdlib/tst-setcontext6.c: New file.
9304 * stdlib/tst-setcontext7.c: Likewise.
9305 * stdlib/tst-setcontext8.c: Likewise.
9306 * stdlib/tst-setcontext9.c: Likewise.
9307
9308 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9309
9310 * stdlib/Makefile ((tests): Add tst-setcontext5.
9311 * stdlib/tst-setcontext5.c: New file.
9312
9313 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9314
9315 * stdlib/Makefile (tests): Add tst-setcontext4.
9316 * stdlib/tst-setcontext4.c: New file.
9317
9318 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9319
9320 * stdlib/Makefile (tests): Add tst-swapcontext1.
9321 * stdlib/tst-swapcontext1.c: New test.
9322
9323 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9324
9325 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9326 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9327 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9328 and tst-cet-legacy-4c.
9329 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9330 and tst-cet-legacy-mod-4.
9331 (CFLAGS-tst-cet-legacy-2.c): New.
9332 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9333 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9334 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9335 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9336 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9337 ($(objpfx)tst-cet-legacy-1): Likewise.
9338 ($(objpfx)tst-cet-legacy-2): Likewise.
9339 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9340 ($(objpfx)tst-cet-legacy-2a): Likewise.
9341 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9342 ($(objpfx)tst-cet-legacy-4): Likewise.
9343 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9344 ($(objpfx)tst-cet-legacy-4a): Likewise.
9345 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9346 (tst-cet-legacy-4a-ENV): Likewise.
9347 ($(objpfx)tst-cet-legacy-4b): Likewise.
9348 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9349 (tst-cet-legacy-4b-ENV): Likewise.
9350 ($(objpfx)tst-cet-legacy-4c): Likewise.
9351 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9352 (tst-cet-legacy-4c-ENV): Likewise.
9353 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9354 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9355 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9356 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9357 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9358 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9359 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9360 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9361 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9362 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9363 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9364
9365 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9366
9367 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9368 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9369 with ssp_base.
9370 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9371 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9372 with ssp_base.
9373
9374 2018-07-25 Andreas Schwab <schwab@suse.de>
9375
9376 [BZ #23442]
9377 * locale/weightwc.h (findidx): Handle the case where usrc is a
9378 prefix of cp but one character too short.
9379
9380 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9381
9382 * NEWS: Add ISO C threads addition.
9383
9384 2018-07-24 Florian Weimer <fweimer@redhat.com>
9385
9386 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9387 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9388 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9389 4.13.
9390
9391 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9392
9393 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9394 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9395 <sys/prctl.h> and <asm/prctl.h>.
9396 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9397 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9398 and <asm/prctl.h>.
9399 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9400 ARCH_CET_LEGACY_BITMAP.
9401 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9402 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9403 * sysdeps/x86/libc-start.c: Include <startup.h>.
9404
9405 2018-07-24 Florian Weimer <fweimer@redhat.com>
9406
9407 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9408 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9409
9410 2018-07-24 Rical Jasan <rj@2c3t.io>
9411 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9412 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9413
9414 [BZ #14092]
9415 * manual/debug.texi: Update adjacent chapter name.
9416 * manual/probes.texi: Likewise.
9417 * manual/threads.texi (ISO C Threads): New section.
9418 (POSIX Threads): Convert to a section.
9419
9420 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9421 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9422
9423 [BZ# 14092]
9424 * nptl/Makefile (tests): Add new test files.
9425 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9426 * nptl/tst-cnd-basic.c: Likewise.
9427 * nptl/tst-cnd-broadcast.c: Likewise.
9428 * nptl/tst-cnd-timedwait.c: Likewise.
9429 * nptl/tst-mtx-basic.c: Likewise.
9430 * nptl/tst-mtx-recursive.c: Likewise.
9431 * nptl/tst-mtx-timedlock.c: Likewise.
9432 * nptl/tst-mtx-trylock.c: Likewise.
9433 * nptl/tst-thrd-basic.c: Likewise.
9434 * nptl/tst-thrd-detach.c: Likewise.
9435 * nptl/tst-thrd-sleep.c: Likewise.
9436 * nptl/tst-tss-basic.c: Likewise.
9437
9438 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9439
9440 [BZ #14092]
9441 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9442 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9443 symbols.
9444 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9445 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9446 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9447 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9448 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9449 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9450 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9451 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9452 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9453 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9454 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9455 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9457 Likewise.
9458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9459 Likewise.
9460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9461 Likewise.
9462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9463 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9464 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9465 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9466 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9467 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9468 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9469 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9472 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9473 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9474 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9475 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9476 Likewise.
9477 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9479 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9480 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9481 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9482 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9483 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9484 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9485 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9486 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9487 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9488 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9489 ikewise.
9490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9492 Likewise.
9493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9494 Likewise.
9495 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9496 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9497 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9498 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9499 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9500 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9501 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9502 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9503
9504 [BZ #14092]
9505 * conform/data/threads.h-data (thread_local): New macro.
9506 (TSS_DTOR_ITERATIONS): Likewise.
9507 (tss_t): New type.
9508 (tss_dtor_t): Likewise.
9509 (tss_create): New function.
9510 (tss_get): Likewise.
9511 (tss_set): Likewise.
9512 (tss_delete): Likewise.
9513 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9514 tss_get, and tss_set objects.
9515 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9516 * nptl/tss_create.c: New file.
9517 * nptl/tss_delete.c: Likewise.
9518 * nptl/tss_get.c: Likewise.
9519 * nptl/tss_set.c: Likewise.
9520 * sysdeps/nptl/threads.h (thread_local): New define.
9521 (TSS_DTOR_ITERATIONS): Likewise.
9522 (tss_t): New typedef.
9523 (tss_dtor_t): Likewise.
9524 (tss_create): New prototype.
9525 (tss_get): Likewise.
9526 (tss_set): Likewise.
9527 (tss_delete): Likewise.
9528
9529 [BZ #14092]
9530 * conform/data/threads.h-data (cnd_t): New type.
9531 (cnd_init): New function.
9532 (cnd_signal): Likewise.
9533 (cnd_broadcast): Likewise.
9534 (cnd_wait): Likewise.
9535 (cnd_timedwait): Likewise.
9536 (cnd_destroy): Likewise.
9537 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9538 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9539 object.
9540 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9541 * nptl/cnd_broadcast.c: New file.
9542 * nptl/cnd_destroy.c: Likewise.
9543 * nptl/cnd_init.c: Likewise.
9544 * nptl/cnd_signal.c: Likewise.
9545 * nptl/cnd_timedwait.c: Likewise.
9546 * nptl/cnd_wait.c: Likewise.
9547 * sysdeps/nptl/threads.h (cnd_t): New type.
9548 (cnd_init): New prototype.
9549 (cnd_signa): Likewise.
9550 (cnd_broadcast): Likewise.
9551 (cnd_wait): Likewise.
9552 (cnd_timedwait): Likewise.
9553 (cnd_destroy): Likewise.
9554
9555 [BZ #14092]
9556 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9557 (once_flag): New type.
9558 (call_once): New function.
9559 * nptl/Makefile (libpthread-routines): Add call_once object.
9560 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9561 * nptl/call_once.c: New file.
9562 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9563 (once_flag): New type.
9564 (call_once): New prototype.
9565
9566 [BZ #14092]
9567 * conform/data/threads.h-data (mtx_plain): New constant.
9568 (mtx_recursive): Likewise.
9569 (mtx_timed): Likewise.
9570 (mtx_t): New type.
9571 (mtx_init): New function.
9572 (mtx_lock): Likewise.
9573 (mtx_timedlock): Likewise.
9574 (mtx_trylock): Likewise.
9575 (mtx_unlock): Likewise.
9576 (mtx_destroy): Likewise.
9577 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9578 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9579 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9580 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9581 * nptl/mtx_destroy.c: New file.
9582 * nptl/mtx_init.c: Likewise.
9583 * nptl/mtx_lock.c: Likewise.
9584 * nptl/mtx_timedlock.c: Likewise.
9585 * nptl/mtx_trylock.c: Likewise.
9586 * nptl/mtx_unlock.c: Likewise.
9587 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9588 (mtx_recursive): Likewise.
9589 (mtx_timed): Likewise.
9590 (mtx_t): New type.
9591 (mtx_init): New prototype.
9592 (mtx_lock): Likewise.
9593 (mtx_timedlock): Likewise.
9594 (mtx_trylock): Likewise.
9595 (mtx_unlock): Likewise.
9596 (mtx_destroy): Likewise.
9597
9598 [BZ #14092]
9599 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9600 (linknamespace-libs-ISO11): Add libpthread.a.
9601 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9602 functions.
9603 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9604 * nptl/Makefile (headers): Add threads.h.
9605 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9606 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9607 thrd_yield.
9608 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9609 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9610 thrd_join, thrd_sleep, and thrd_yield symbols.
9611 * nptl/descr.h (struct pthread): Add c11 field.
9612 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9613 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9614 routine with expected function prototype.
9615 (__pthread_create_2_1): Add C11 threads check based on attribute
9616 value.
9617 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9618 * nptl/thrd_create.c: New file.
9619 * nptl/thrd_current.c: Likewise.
9620 * nptl/thrd_detach.c: Likewise.
9621 * nptl/thrd_equal.c: Likewise.
9622 * nptl/thrd_exit.c: Likewise.
9623 * nptl/thrd_join.c: Likewise.
9624 * nptl/thrd_priv.h: Likewise.
9625 * nptl/thrd_sleep.c: Likewise.
9626 * nptl/thrd_yield.c: Likewise.
9627 * include/threads.h: Likewise.
9628
9629 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9630
9631 * bits/indirect-return.h: New file.
9632 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9633 * sysdeps/x86/bits/indirect-return.h: Likewise.
9634 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9635 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9636 (swapcontext): Add __INDIRECT_RETURN.
9637 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9638 (prepare_test_buffer): Use it.
9639
9640 2018-07-24 Andreas Schwab <schwab@suse.de>
9641
9642 [BZ #23448]
9643 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9644 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9645
9646 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9647
9648 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9649 Redefine if shadow stack is enabled.
9650 (SYSCALL_ERROR_LABEL): Likewise.
9651 (__vfork): Pop shadow stack and jump back to to caller directly
9652 when shadow stack is in use.
9653 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9654 Redefine if shadow stack is enabled.
9655 (SYSCALL_ERROR_LABEL): Likewise.
9656 (__vfork): Pop shadow stack and jump back to to caller directly
9657 when shadow stack is in use.
9658
9659 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9660
9661 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9662 enabled.
9663 (foo): Likewise.
9664 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9665 (foo): Likewise.
9666
9667 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9668
9669 * scripts/build-many-glibcs.py (Context.checkout): Default
9670 binutils version to 2.31 branch.
9671
9672 2018-07-20 Zong Li <zong@andestech.com>
9673
9674 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9675 URL of gcc's tarball.
9676
9677 2018-07-20 Florian Weimer <fweimer@redhat.com>
9678
9679 [BZ #23396]
9680 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9681 not compare an extra byte after the end of the weights.
9682
9683 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9684
9685 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9686 to 1.
9687 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9688 hidden prototypes.
9689 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9690 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9691 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9692 list of libraries whose stack executability is expected.
9693 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9694 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9695 variable.
9696 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9697 libc.so libpthread.so.
9698
9699 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9700
9701 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9702 SOCK_NONBLOCK.
9703 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9704 and SOCK_NONBLOCK.
9705 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9706 implement __pipe2.
9707 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9708
9709 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9710
9711 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9712 library to improve command line parsing.
9713 (__main__): make schema file as optional parameter (--schema),
9714 defaulting to benchtests/scripts/benchout.schema.json.
9715 (main): move out of the parsing stuff to __main_  and leave it
9716 only as caller of main comparison functions.
9717
9718 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9719
9720 * NEWS: Add a note for Intel CET status.
9721 * manual/install.texi: Likewise.
9722 * INSTALL: Regenerated.
9723
9724 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9725
9726 [BZ #23140]
9727 * localedata/locales/oc_FR (mon): Rename to...
9728 (alt_mon): This, then update October (typo fix).
9729 (mon): New content (genitive case, month names preceded by
9730 "de" or "d’").
9731
9732 [BZ #23422]
9733 * localedata/locales/oc_FR (abday): Update all items.
9734 (day): Update Wednesday and Saturday (typo fixes).
9735 (abmon): Update all items, except May.
9736 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9737 (LC_IDENTIFICATION): Bump the revision number and date.
9738 Keep the "category" entries in alphabetic order.
9739 (LC_ADDRESS): Remove no longer needed comment.
9740 (LC_COLLATE): Use “copy "ca_ES"”.
9741 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9742 "name_mrs".
9743
9744 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9745
9746 * grp/tst_fgetgrent.c: Include <unistd.h>.
9747 (main): Use mkstemp instead of tmpnam.
9748 * io/test-utime.c (main): Likewise.
9749 * posix/annexc.c (macrofile): Change to modifiable array.
9750 (main): Remove macrofile here.
9751 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9752 macrofile here.
9753 (check_header): Do not remove macrofile here.
9754 * posix/bug-getopt1.c: Include <stdlib.h>.
9755 (do_test): Use mkstemp instead of tmpnam.
9756 * posix/bug-getopt2.c: Include <stdlib.h>.
9757 (do_test): Use mkstemp instead of tmpnam.
9758 * posix/bug-getopt3.c: Include <stdlib.h>.
9759 (do_test): Use mkstemp instead of tmpnam.
9760 * posix/bug-getopt4.c: Include <stdlib.h>.
9761 (do_test): Use mkstemp instead of tmpnam.
9762 * posix/bug-getopt5.c: Include <stdlib.h>.
9763 (do_test): Use mkstemp instead of tmpnam.
9764 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9765 (main): Use mkstemp instead of tmpnam.
9766 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9767 (main): Use mkstemp instead of tmpnam.
9768 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9769 (main): use mkstemp instead of tmpnam.
9770 * stdlib/isomac.c (macrofile): Change to modifiable array.
9771 (main): Remove macrofile here.
9772 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9773 macrofile here.
9774 (check_header): Do not remove macrofile here.
9775
9776 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9777
9778 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9779 glibc.tune.x86_shstk.
9780
9781 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9782
9783 * NEWS: Mention --enable-cet.
9784 * manual/install.texi: Document --enable-cet.
9785 * INSTALL: Regenerated.
9786
9787 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9788
9789 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9790 Add _CET_NOTRACK before indirect jump to jump table.
9791
9792 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9793
9794 * sysdeps/i386/i686/multiarch/memset-sse2-rep.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/strcat-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/multiarch/strcpy-sse2.S
9807 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9808 to jump table.
9809
9810 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9811
9812 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9813 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9814 to jump table.
9815
9816 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9817
9818 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9819 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9820 to jump table.
9821 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9822
9823 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9824
9825 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9826 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9827 to jump table.
9828
9829 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9830
9831 * sysdeps/i386/i686/multiarch/memset-sse2.S
9832 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9833 to jump table.
9834
9835 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9836
9837 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9838 indirect jump to jump table.
9839
9840 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9841
9842 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9843 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9844 to jump table.
9845 (MEMCPY): Likewise.
9846
9847 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9848
9849 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9850 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9851 to jump table.
9852 (MEMCPY): Likewise.
9853
9854 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9855
9856 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9857 _CET_NOTRACK before indirect jump to jump table.
9858
9859 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9860
9861 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9862 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9863 to jump table.
9864
9865 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9866
9867 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9868 indirect jump to jump table.
9869
9870 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9871
9872 [BZ #22241]
9873 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9874 (LOCALES): Likewise.
9875 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9876 * localedata/locales/sah_RU: New file.
9877 * localedata/sah_RU.UTF-8.in: New file.
9878
9879 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9880
9881 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9882 "sysdep.h".
9883 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9884 _CET_ENDBR to indirect jump targets and adjust jump destination
9885 for _CET_ENDBR.
9886 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9887 "sysdep.h".
9888 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9889 _CET_ENDBR to indirect jump targets and adjust jump destination
9890 for _CET_ENDBR.
9891 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9892 "sysdep.h".
9893 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9894 _CET_ENDBR to indirect jump targets and adjust jump destination
9895 for _CET_ENDBR.
9896
9897 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9898
9899 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9900 _CET_ENDBR.
9901
9902 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9903
9904 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9905 _CET_ENDBR.
9906 (_dl_tlsdesc_undefweak): Likewise.
9907 (_dl_tlsdesc_dynamic): Likewise.
9908 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9909 (_dl_tlsdesc_resolve_rel): Likewise.
9910 (_dl_tlsdesc_resolve_rela): Likewise.
9911 (_dl_tlsdesc_resolve_hold): Likewise.
9912 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9913 (_dl_tlsdesc_undefweak): Likewise.
9914 (_dl_tlsdesc_dynamic): Likewise.
9915 (_dl_tlsdesc_resolve_rela): Likewise.
9916 (_dl_tlsdesc_resolve_hold): Likewise.
9917
9918 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9919
9920 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9921 (_fini): Likewise.
9922 * sysdeps/x86_64/crti.S (_init): Likewise.
9923 (_fini): Likewise.
9924
9925 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9926
9927 [BZ #23140]
9928 * localedata/locales/os_RU (mon): Rename to...
9929 (alt_mon): This.
9930 (mon): Import from CLDR (genitive case).
9931
9932 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9935 cet-tunables.h> when CET is enabled.
9936
9937 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9938
9939 [BZ #21598]
9940 * configure.ac: Add --enable-cet.
9941 * configure: Regenerated.
9942 * elf/Makefille (all-built-dso): Add a comment.
9943 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9944 Include <dl-prop.h>.
9945 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9946 segment.
9947 * elf/dl-open.c: Include <dl-prop.h>.
9948 (dl_open_worker): Call _dl_open_check.
9949 * elf/rtld.c: Include <dl-prop.h>.
9950 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9951 _rtld_main_check.
9952 * sysdeps/generic/dl-prop.h: New file.
9953 * sysdeps/i386/dl-cet.c: Likewise.
9954 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9955 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9956 * sysdeps/x86/cet-tunables.h: Likewise.
9957 * sysdeps/x86/check-cet.awk: Likewise.
9958 * sysdeps/x86/configure: Likewise.
9959 * sysdeps/x86/configure.ac: Likewise.
9960 * sysdeps/x86/dl-cet.c: Likewise.
9961 * sysdeps/x86/dl-procruntime.c: Likewise.
9962 * sysdeps/x86/dl-prop.h: Likewise.
9963 * sysdeps/x86/libc-start.h: Likewise.
9964 * sysdeps/x86/link_map.h: Likewise.
9965 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9966 _CET_ENDBR.
9967 (_dl_runtime_profile): Likewise.
9968 (_dl_runtime_resolve_shstk): New.
9969 (_dl_runtime_profile_shstk): Likewise.
9970 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9971 if CET is enabled.
9972 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9973 (CFLAGS-.os): Likewise.
9974 (CFLAGS-.op): Likewise.
9975 (CFLAGS-.oS): Likewise.
9976 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9977 is enabled.
9978 (tests-special): Add $(objpfx)check-cet.out.
9979 (cet-built-dso): New.
9980 (+$(cet-built-dso:=.note)): Likewise.
9981 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9982 ($(objpfx)check-cet.out): New.
9983 (generated): Add check-cet.out.
9984 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9985 <cet-tunables.h>.
9986 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9987 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9988 (init_cpu_features): Call get_cet_status to check CET status
9989 and update dl_x86_feature_1 with CET status. Call
9990 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9991 (set_x86_shstk). Disable and lock CET in libc.a.
9992 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9993 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9994 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9995 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9996 (_CET_ENDBR): Define if not defined.
9997 (ENTRY): Add _CET_ENDBR.
9998 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9999 x86_shstk.
10000 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
10001 _CET_ENDBR.
10002 (_dl_runtime_profile): Likewise.
10003
10004 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
10005
10006 [BZ #21895]
10007 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
10008 restore r2 on longjmp.
10009 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
10010 test list.
10011 Added rules to build test tst-setjmp-bug21895-static.
10012 Added module setjmp-bug21895 and rules to build a shared object from it.
10013 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
10014 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
10015
10016 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
10017
10018 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
10019 * benchtests/bench-strstr.c: Likewise.
10020 * string/memmem.c (FASTSEARCH): Define.
10021 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
10022 Add support for FASTSEARCH.
10023 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
10024 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
10025 (FASTSEARCH): Define.
10026 * string/test-strcasestr.c: Rename __strnlen to strnlen.
10027 * string/test-strstr.c: Likewise.
10028
10029 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
10030
10031 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10032 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10033
10034 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10035 H.J. Lu <hongjiu.lu@intel.com>
10036
10037 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10038 (__longjmp): Restore shadow stack pointer if shadow stack is
10039 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10040 isn't defined for __longjmp_cancel.
10041 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10042 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10043 and SHADOW_STACK_POINTER_OFFSET is defined.
10044 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10045 (setjmp): Save shadow stack pointer if shadow stack is enabled
10046 and SHADOW_STACK_POINTER_OFFSET is defined.
10047 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10048 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10049 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10050 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10051 <jmp_buf-ssp.h>.
10052 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10053 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10054 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10055 Remove jmp_buf-ssp.sym.
10056 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10057 <jmp_buf-ssp.h>.
10058 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10059 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10060 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10061 jmp_buf-ssp.sym.
10062 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10063 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10064 (__longjmp): Restore shadow stack pointer if shadow stack is
10065 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10066 isn't defined for __longjmp_cancel.
10067 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10068 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10069 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10070
10071 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10072
10073 [BZ #22563]
10074 * nptl/pthread_create.c: Include <tls-setup.h>.
10075 (__pthread_create_2_1): Call tls_setup_tcbhead.
10076 * sysdeps/generic/tls-setup.h: New file.
10077 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10078 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10079 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10080 Likewise.
10081 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10082 to feature_1.
10083 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10084 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10085 (X86_FEATURE_1_SHSTK): Likewise.
10086 (CET_ENABLED): Likewise.
10087 (IBT_ENABLED): Likewise.
10088 (SHSTK_ENABLED): Likewise.
10089
10090 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10091
10092 [BZ #23208]
10093 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10094 (LOCALES): Likewise.
10095 * localedata/dsb_DE.UTF-8.in: New file.
10096 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10097
10098 2018-07-12 Florian Weimer <fweimer@redhat.com>
10099
10100 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10101 __mprotect, not mprotect.
10102
10103 2018-07-11 Florian Weimer <fweimer@redhat.com>
10104
10105 * io/Makefile (headers): Add bits/statx.h.
10106
10107 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10108
10109 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10110 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10111 and headers.
10112 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10113 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10114 for utf8_gen.py
10115
10116 2018-07-10 Florian Weimer <fweimer@redhat.com>
10117
10118 * io/Makefile (routines): Add statx.
10119 (tests-internal): Add tst-statx.
10120 * io/Versions (GLIBC_2.28): Export statx.
10121 * io/bits/statx.h: New file.
10122 * io/sys/stat.h [__USE_GNU]: Include it.
10123 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10124 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10125 Define.
10126 * io/statx.c: New file.
10127 * io/statx_generic.: Likewise.
10128 * io/tst-statx.: Likewise.
10129 * include/bits/statx.h: Likewise.
10130 * sysdeps/unix/sysv/linux/kernel-features.h
10131 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10132 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10133 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10134 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10135 Undefine.
10136 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10137 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10138 * sysdeps/unix/sysv/linux/statx.c: New file.
10139 * manual/filesys.texi: Note that statx is undocumented.
10140 * sysdeps/**/libc*.abilist: Update.
10141
10142 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10143
10144 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10145 a kernel issue which lead to test failure in some cases.
10146
10147 2018-07-10 Florian Weimer <fweimer@redhat.com>
10148
10149 [BZ #23036]
10150 * posix/regexec.c (check_node_accept_bytes): When comparing
10151 weights, do not compare an extra byte after the end of the
10152 weights.
10153
10154 2018-07-10 Florian Weimer <fweimer@redhat.com>
10155
10156 * libio/readline.c: Fix copyright year.
10157 * libio/tst-readline.c Likewise.
10158 * nss/tst-nss-files-hosts-getent.c: Likewise.
10159
10160 2018-07-06 Florian Weimer <fweimer@redhat.com>
10161
10162 [BZ #18991]
10163 * nss/nss_files/files-XXX.c (internal_getent): Use
10164 __libc_readline_unlocked. Seek back to the start of the line if
10165 parsing failes with ERANGE.
10166 (get_contents_ret, get_contents): Remove.
10167 * nss/tst-nss-files-hosts-getent.c: New file.
10168 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10169 (tst-nss-files-hosts-getent): Link with -ldl.
10170
10171 2018-07-06 Florian Weimer <fweimer@redhat.com>
10172
10173 * include/stdio.h (__libc_readline_unlocked): Declare.
10174 (__ftello64, __fseeko64): Declare aliases.
10175 * libio/readline.c: New file.
10176 * libio/tst-readline.c: Likewise.
10177 (routines): Add readline.
10178 (tests-internal): Add tst-readlime.
10179 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10180 __libc_readline_unlocked.
10181 * libio/fseeko.c (__fseeko): Rename from fseeko.
10182 (fseeko): Add alias.
10183 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10184 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10185 (fseeko64): Add alias.
10186 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10187 * libio/ftello64.c (__ftello64): Rename from ftello64.
10188 (ftello64): Add alias.
10189
10190 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10191
10192 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10193 HWCAP_ATOMICS.
10194
10195 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10196
10197 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10198 Use dl_hwcap without masking.
10199 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10200 Remove HWCAP_CPUID.
10201
10202 2018-07-06 Florian Weimer <fweimer@redhat.com>
10203
10204 * conform/conformtest.pl (checknamespace): Escape literal braces
10205 in regular expressions.
10206
10207 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10208
10209 * sysdeps/x86/cpu-features.c (get_common_indeces):
10210 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10211 * sysdeps/x86/cpu-features.c (init_cpu_features):
10212 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10213
10214 2018-07-05 Florian Weimer <fweimer@redhat.com>
10215
10216 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10217 protector.
10218 (CFLAGS-elf-init.oS): Likewise.
10219
10220 2018-07-05 Florian Weimer <fweimer@redhat.com>
10221 Carlos O'Donell <carlos@redhat.com>
10222
10223 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10224 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10225 with stack protector enabled because there is no risk of infinite
10226 recursion.
10227
10228 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10229
10230 [BZ #19818]
10231 [BZ #23307]
10232 * libc-abis (ABSOLUTE): New ABI.
10233 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10234 * NEWS: Mention the new ABI.
10235
10236 2018-07-05 Florian Weimer <fweimer@redhat.com>
10237
10238 [BZ # 17662]
10239 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10240 (RENAME_WHITEOUT): Define.
10241 [__USE_GNU] (renameat2): Declare.
10242 * stdio-common/Makefile (routines): Add renameat2.
10243 (tests): Add tst-renameat2.
10244 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10245 * stdio-common/renameat2.c: New file.
10246 * stdio-common/tst-renameat2.c: Likewise.
10247 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10248 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10249 undocumented.
10250 * sysdeps/unix/sysv/linux/kernel-features.h
10251 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10252 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10253 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10254 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10255 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10256 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10257 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10258 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10259 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10260 * include/stdio.h (__renameat): Add alias for renameat.
10261 * stdio-common/renameat.c (__renameat): Rename from renameat.
10262 Add hidden definition and alias.
10263 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10264 * sysdeps/mach/hurd/renameat.c: Likewise.
10265 * sysdeps/**/libc*.abilist: Add renameat2.
10266
10267 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10268
10269 * posix/bug-regex33.c: Fix build after regex sync.
10270
10271 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10272
10273 [BZ #23164]
10274 * localedata/tst-langinfo-setlocale.c: New file.
10275 * localedata/tst-langinfo-setlocale-static.c: New file.
10276 * localedata/tst-langinfo-newlocale.c: New file.
10277 * localedata/tst-langinfo-newlocale-static.c: New file.
10278 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10279 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10280 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10281 (tests-static): Remove tst-langinfo-static. Add
10282 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10283 (tests-special): Remove $(objpfx)tst-langinfo.out,
10284 $(objpfx)tst-langinfo-static.out. Add
10285 $(objpfx)tst-langinfo-setlocale.out,
10286 $(objpfx)tst-langinfo-newlocale.out,
10287 $(objpfx)tst-langinfo-setlocale-static.out,
10288 $(objpfx)tst-langinfo-newlocale-static.out.
10289 ($(objpfx)tst-langinfo.out): Remove.
10290 ($(objpfx)tst-langinfo-static.out): Remove.
10291 ($(objpfx)tst-langinfo-newlocale.out): New target.
10292 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10293 (test-xfail-tst-langinfo-newlocale-static): Add.
10294 ($(objpfx)tst-langinfo-setlocale.out): New target.
10295 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10296 * localedata/tst-langinfo.c: Call test_locale.
10297 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10298 data.
10299
10300 2018-07-04 Florian Weimer <fweimer@redhat.com>
10301
10302 testrun.sh: Implement --tool=strace, --tool=valgrind
10303 * Makefile (testrun-script): Define variable.
10304 (testrun.sh): Use variable.
10305 * manual/install.texi (Tools for Compilation): make 4.0 or later
10306 is required.
10307 * configure.ac: Check for make 4.0 or later.
10308 * INSTALL: Regenerate.
10309 * configure: Likewise.
10310
10311 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10312
10313 [BZ #23233]
10314 [BZ #21163]
10315 [BZ #18986]
10316 [BZ #13762]
10317 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10318 * posix/PCRE.tests: Remove invalid test.
10319 * posix/bug-regex28.c: Fix expected values for used syntax.
10320 * posix/bug-regex37.c: New file.
10321 * posix/bug-regex38.c: Likewise.
10322 * posix/regcomp.c: Sync with gnulib.
10323 * posix/regex.c: Likewise.
10324 * posix/regex.h: Likewise.
10325 * posix/regex_internal.c: Likewise.
10326 * posix/regex_internal.h: Likewise.
10327 * posix/regexec.c: Likewise.
10328
10329 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10330
10331 [BZ #23308]
10332 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10333 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10334 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10335 * localedata/unicode-gen/PropList.txt: likewise.
10336 * localedata/unicode-gen/UnicodeData.txt: likewise.
10337 * localedata/charmaps/UTF-8: Regenerate.
10338 * localedata/locales/i18n_ctype: likewise.
10339 * localedata/locales/tr_TR: likewise.
10340 * localedata/locales/translit_circle: likewise.
10341 * localedata/locales/translit_cjk_compat: likewise.
10342 * localedata/locales/translit_combining: likewise.
10343 * localedata/locales/translit_compat: likewise.
10344 * localedata/locales/translit_font: likewise.
10345 * localedata/locales/translit_fraction: likewise.
10346
10347 2018-07-03 Florian Weimer <fweimer@redhat.com>
10348
10349 [BZ #23363]
10350 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10351 * stdio-common/tst-printf.sh: Adjust expected output.
10352 * LICENSES: Update.
10353
10354 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10355
10356 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10357 symbol.
10358
10359 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10360
10361 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10362 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10363 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10364 * stdio-common/tst-printfsz-islongdouble.c: New file.
10365 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10366 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10367 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10368 [subdir == stdio-common] (tests-internal): Add
10369 test-printf-size-ieee128, and test-printf-size-ibm128.
10370 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10371 (CFLAGS-test-printf-size-ibm128.c): New variables.
10372 [subdir == stdio-common] (tests-special): Add
10373 $(objpfx)test-printf-size-ieee128.out and
10374 $(objpfx)test-printf-size-ibm128.out.
10375 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10376 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10377 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10378 __printf_sizeieee128.
10379 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10380 New file.
10381 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10382 Likewise.
10383 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10384 Likewise.
10385
10386 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10387
10388 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10389 (exp2f_inline): Likewise.
10390 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10391 (__math_uflowf): Likewise.
10392 (__math_may_uflowf): Likewise.
10393 (__math_divzerof): Likewise.
10394 (__math_invalidf): Likewise.
10395 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10396 (__math_oflowf): Likewise.
10397 (__math_uflowf): Likewise.
10398 (__math_may_uflowf): Likewise.
10399 (__math_divzerof): Likewise.
10400 (__math_invalidf): Likewise.
10401
10402 2018-06-29 DJ Delorie <dj@redhat.com>
10403 Carlos O'Donell <carlos@redhat.com>
10404
10405 [BZ #23329]
10406 * include/libc-symbols.h: Comment the freeres framework.
10407 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10408 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10409 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10410 * dlfcn/dlerror.c: Include libc-symbols.h
10411 (__dlerror_main_freeres): New function.
10412 * dlfcn/dlfreeres.c: New file.
10413 * dlfcn/sdlfreeres.c: New file.
10414 * include/dlfcn.h: Declare __dlerror_main_freeres.
10415 * malloc/set-freeres.c: Declare __libdl_freeres, and
10416 __libpthread_freeres.
10417 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10418 the releavant libraries are loaded.
10419 * malloc/thread-freeres.c: Add comments.
10420 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10421 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10422 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10423 (__free_stacks): Rename to...
10424 (free_stacks): ...this. Mark static.
10425 (queue_stack): Call free_stacks.
10426 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10427 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10428 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10429 ptr_freeres element from struct.
10430 (pthread_functions): Remove .ptr_freeres from struct initializer.
10431 [SHARED] (nptl_freeres): Remove.
10432 * nptl/nptlfreeres.c: New file.
10433 * nptl/pthreadP.h
10434 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10435 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10436 attribute_hidden.
10437 (__free_stacks): Rename to...
10438 (__nptl_stacks_freeres): ...this.
10439 (__shm_directory_freeres): Declare.
10440 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10441 (__nptl_unwind_freeres): ...this.
10442 * resolv/res-close.c: Add comment.
10443 * resolv/resolv_conf.c: Include libc-symbols.h.
10444 * string/strerror_l.c: Include libc-symbols.h.
10445 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10446 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10447 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10448 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10449
10450 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10451
10452 * stdlib/tst-strfmon_l.c: Add tests for long double.
10453
10454 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10455
10456 [BZ #23208]
10457 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10458 * localedata/locales/dsb_DE: New file.
10459
10460 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10461
10462 [BZ #23140]
10463 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10464 genitive case).
10465 (alt_mon): New entry, import from CLDR (nominative case).
10466
10467 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10468
10469 [BZ #22996]
10470 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10471
10472 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10473
10474 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10475 Use vector registers.
10476
10477 * sysdeps/aarch64/multiarch/memmove_falkor.S
10478 (__memcpy_falkor): Use vector registers.
10479
10480 2018-06-29 Martin Sebor <msebor@redhat.com>
10481
10482 * manual/stdio.texi (Customizing Printf): Mention interaction
10483 with GCC built-ins.
10484
10485 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10486
10487 [BZ #23307]
10488 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10489 `st_value' is 0 if `st_shndx' is SHN_ABS.
10490 * elf/tst-absolute-zero.c: New file.
10491 * elf/tst-absolute-zero-lib.c: New file.
10492 * elf/tst-absolute-zero-lib.lds: New file.
10493 * elf/Makefile (tests): Add `tst-absolute-zero'.
10494 (modules-names): Add `tst-absolute-zero-lib'.
10495 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10496 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10497 ($(objpfx)tst-absolute-zero: New dependency.
10498
10499 2018-06-29 Zack Weinberg <zackw@panix.com>
10500
10501 * configure.ac: New command-line option --disable-crypt.
10502 Force --disable-nss-crypt when --disable-crypt is given, with a
10503 warning if it was explicitly enabled.
10504 * configure: Regenerate.
10505 * config.make.in: New boolean substitution variable $(build-crypt).
10506 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10507 when $(build-crypt).
10508 * manual/install.texi: Document --disable-crypt.
10509 * INSTALL: Regenerate.
10510
10511 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10512 which is never set.
10513 * conform/Makefile: Only include libcrypt.a in
10514 linknamespace-libs-xsi and linknamespace-libs-XPG4
10515 when $(build-crypt).
10516 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10517 USE_CRYPT to 1 when $(build-crypt).
10518 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10519 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10520 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10521
10522 2018-06-29 Zack Weinberg <zackw@panix.com>
10523
10524 * crypt/crypt.h, posix/unistd.h: Update comments and
10525 prototypes for crypt and crypt_r.
10526
10527 * manual/crypt.texi (Cryptographic Functions): New initial
10528 exposition.
10529 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10530 (Unpredictable Bytes): Improve initial exposition. Clarify error
10531 behavior of getentropy and getrandom.
10532 * manual/examples/genpass.c: Generate a salt using getentropy
10533 instead of the current time. Use hash $5$ (SHA-2-256).
10534 * manual/examples/testpass.c: Demonstrate validation against
10535 hashes generated with three different one-way functions.
10536
10537 * manual/intro.texi: crypt.texi does not need an overview
10538 anymore.
10539
10540 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10541 * manual/terminal.texi: Consistently refer to "passphrases"
10542 * instead of "passwords", and to the "user database" instead
10543 * of the "password database".
10544 * manual/users.texi: Similarly. Add notes about how actual
10545 passphrase hashes are now stored in the shadow database.
10546 Remove 20-year-old junk todo note.
10547
10548 2018-06-29 Zack Weinberg <zackw@panix.com>
10549
10550 * manual/crypt.texi: Use a normal top-level @node declaration.
10551 Move most of the introductory text to the 'crypt' section.
10552 Move the example programs below the @deftypefun for 'crypt_r'.
10553 Move the 'getpass' section...
10554 * manual/terminal.texi: ...here.
10555
10556 2018-06-29 Zack Weinberg <zackw@panix.com>
10557 Florian Weimer <fweimer@redhat.com>
10558
10559 * posix/unistd.h: Do not declare encrypt.
10560 (_XOPEN_CRYPT): Remove macro definition.
10561 (crypt): Declare only for _USE_MISC.
10562 * stdlib/stdlib.h: Do not declare setkey.
10563 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10564 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10565
10566 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10567 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10568 into compat symbols. Don't define initial_perm if it's not
10569 going to be used.
10570 * crypt/cert.c: Link explicitly with the expected versions for
10571 setkey and encrypt. If they are not available at all, mark
10572 the test as unsupported.
10573
10574 * sunrpc/des_crypt.c: Unconditionally block linkage with
10575 cbc_crypt and ecb_crypt for new binaries.
10576 * sunrpc/des_soft.c: Unconditionally block linkage with
10577 des_setparity for new binaries.
10578
10579 * manual/crypt.texi: Remove the entire "DES Encryption"
10580 section. Also remove the paragraph talking about FIPS 140-2
10581 from the introduction.
10582 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10583 of libgcrypt for "real" encryption, not DES.
10584 * manual/conf.texi (Constants for Sysconf): Mention that
10585 _XOPEN_CRYPT is no longer impelemented.
10586
10587 * conform/data/unistd.h-data: Remove crypt function declaration.
10588
10589 2018-06-29 Florian Weimer <fweimer@redhat.com>
10590
10591 [BZ #23351]
10592 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10593 (disallow_malloc_check): Remove variable.
10594 (__malloc_check_init): Adjust.
10595 (malloc_set_state): Update comment.
10596 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10597 declarations.
10598
10599 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10600
10601 [BZ #23140]
10602 * localedata/locales/ast_ES (mon): Rename to...
10603 (alt_mon): This.
10604 (mon): Import from CLDR (genitive case).
10605
10606 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10607 Jakub Sitnicki <jkbs@redhat.com>
10608
10609 [BZ #21812]
10610 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10611 on NLM_F_DUMP_INTR.
10612
10613 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10614
10615 * manual/llio.texi: Remove spurious space.
10616
10617 2018-06-28 Florian Weimer <fweimer@redhat.com>
10618
10619 [BZ #23349]
10620 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10621 _STRUCT_TIMESPEC.
10622
10623 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10624
10625 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10626 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10627 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10628 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10629 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10630 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10631 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10632
10633 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10634
10635 [BZ #23266]
10636 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10637 Copy and null-terminate entries that are not terminated, in
10638 addition to empty ones.
10639
10640 2018-06-27 Florian Weimer <fweimer@redhat.com>
10641
10642 [BZ #18023]
10643 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10644 (extend_alloca_account): Remove.
10645 * manual/stdio.texi (Variable Arguments Output): Update comment.
10646
10647 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10648
10649 * nptl/sockperf.c: Remove file.
10650
10651 2018-06-27 Florian Weimer <fweimer@redhat.com>
10652
10653 [BZ #18023]
10654 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10655 scratch_buffer instead of extend_alloca.
10656
10657 2018-06-27 Florian Weimer <fweimer@redhat.com>
10658
10659 [BZ #18023]
10660 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10661 scratch_buffer instead of extend_alloca. Update comments.
10662
10663 2018-06-27 Florian Weimer <fweimer@redhat.com>
10664
10665 [BZ #18023]
10666 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10667 instead of extend_alloca.
10668
10669 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10670
10671 [BZ #13888]
10672 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10673 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10674 /tmp.
10675 * scripts/test-installation.pl: Put temporary files in build
10676 directory, not /tmp.
10677 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10678 (CFLAGS-bug4.c): Likewise.
10679 (CFLAGS-bug5.c): Likewise.
10680 (CFLAGS-test-fseek.c): Likewise.
10681 (CFLAGS-test-popen.c): Likewise.
10682 (CFLAGS-test_rdwr.c): Likewise.
10683 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10684 /tmp.
10685 * stdio-common/bug4.c (main): Likewise.
10686 * stdio-common/bug5.c (main): Likewise.
10687 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10688 * stdio-common/test-popen.c (do_test): Likewise.
10689 * stdio-common/test_rdwr.c (main): Likewise.
10690
10691 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10692
10693 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10694 (sem_open): Set sem.newsem.pad to zero for valgrind.
10695
10696 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10697
10698 [BZ #20251]
10699 * NEWS: Mention fcntl64 addition.
10700 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10701 * login/utmp_file.c: Likewise.
10702 * sysdeps/posix/fdopendir.c: Likewise.
10703 * sysdeps/posix/opendir.c: Likewise.
10704 * sysdeps/unix/pt-fcntl.c: Likewise.
10705 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10706 __fcntl64_nocancel_adjusted): New prototype.
10707 (__fcntl_nocancel_adjusted): Remove prototype.
10708 * io/Makefile (routines): Add fcntl64.
10709 (CFLAGS-fcntl64.c): New rule.
10710 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10711 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10712 * io/fcntl.h (fcntl64): Add prototype and redirect if
10713 __USE_FILE_OFFSET64 is defined.
10714 * io/fcntl64.c: New file.
10715 * manual/llio.text: Add a note for which commands fcntl acts a
10716 cancellation point.
10717 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10718 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10719 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10720 New symbols.
10721 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10722 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10723 non-LFS case.
10724 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10725 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10726 to __fcntl64_nocancel.
10727 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10728 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10729 to __fcntl64_nocancel.
10730 * sysdeps/generic/not-cancel.h: Likewise.
10731 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10732 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10733 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10734 (fcntl64): New symbol.
10735 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10736 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10737 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10740 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10741 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10742 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10743 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10744 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10745 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10746 fcntl64): Likewise.
10747 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10748 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10749 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10750 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10751 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10752 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10753 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10754 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10755 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10757 Likewise.
10758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10759 Likewise.
10760 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10761 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10762 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10763
10764 2018-06-26 Florian Weimer <fweimer@redhat.com>
10765
10766 Run thread shutdown functions in an explicit order.
10767 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10768 definition.
10769 (__libc_thread_freeres): Call thread shutdown functions
10770 explicitly.
10771 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10772 * include/string.h (__strerror_thread_freeres): Declare.
10773 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10774 arena_thread_freeres. No longer static. Remove thread shutdown
10775 hook registration.
10776 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10777 Declare.
10778 * resolv/res-close.c (__res_thread_freeres): Renamed from
10779 res_thread_freeres. No longer static. Remove thread shutdown
10780 hook registration.
10781 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10782 * resolv/resolv_conf.c (freeres): Remove incorrect section
10783 attribute and use libc_freeres_fn.
10784 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10785 strerror_thread_freeres. No longer static. Remove thread
10786 shutdown hook registration.
10787 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10788 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10789 shutdown hook registration.
10790 * Makerules (shlib.lds): Do not provide section boundary symbols
10791 for __libc_thread_subfreeres.
10792 * manual/memory.texi (Basic Allocation): Update comment.
10793
10794 2018-06-26 Florian Weimer <fweimer@redhat.com>
10795
10796 Remove always-defined _RPC_THREAD_SAFE_ macro.
10797 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10798 Do not define _RPC_THREAD_SAFE_.
10799 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10800 conditional.
10801 * sunrpc/clnt_perr.c: Likewise.
10802 * sunrpc/clnt_raw.c: Likewise.
10803 * sunrpc/clnt_simp.c: Likewise.
10804 * sunrpc/key_call.c: Likewise.
10805 * sunrpc/rpc_common.c: Likewise.
10806 * sunrpc/rpc_main.c: Likewise.
10807 * sunrpc/rpc_thread.c: Likewise.
10808 * sunrpc/svc.c: Likewise.
10809 * sunrpc/svc_raw.c: Likewise.
10810 * sunrpc/svc_simple.c: Likewise.
10811 * sumrpc/svcauth_des.c: Likewise.
10812
10813 2018-06-26 Florian Weimer <fweimer@redhat.com>
10814
10815 * libio/Makefile (tests-internal): Add tst-vtables,
10816 tst-vtables-interposed.
10817 * libio/tst-vtables.c: New file.
10818 * libio/tst-vtables-common.c: Likewise.
10819 * libio/tst-vtables-interposed.c: Likewise.
10820
10821 2018-06-26 Florian Weimer <fweimer@redhat.com>
10822
10823 * support/support_test_main.c (support_test_main): Only call
10824 setvbuf if not disables.
10825 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10826 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10827
10828 2018-06-26 Florian Weimer <fweimer@redhat.com>
10829
10830 [BZ #23313]
10831 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10832
10833 2018-06-25 Florian Weimer <fweimer@redhat.com>
10834
10835 [BZ #18023]
10836 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10837 Use struct scratch_buffer instead of extend_alloca.
10838
10839 2018-06-25 Florian Weimer <fweimer@redhat.com>
10840
10841 [BZ #18023]
10842 * nss/getent.c (initgroups_keys): Use dynarray instead of
10843 extend_alloca.
10844
10845 2018-06-25 Florian Weimer <fweimer@redhat.com>
10846
10847 [BZ #18023]
10848 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10849 Use struct scratch_buffer instead of extend_alloca.
10850
10851 2018-06-25 Florian Weimer <fweimer@redhat.com>
10852
10853 [BZ #18023]
10854 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10855 back to malloc directly, without stack allocations.
10856
10857 2018-06-25 Florian Weimer <fweimer@redhat.com>
10858
10859 [BZ #18023]
10860 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10861 of extend_alloca.
10862
10863 2018-06-25 Florian Weimer <fweimer@redhat.com>
10864
10865 [BZ #18023]
10866 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10867 of extend_alloca.
10868 * nscd/hstcache.c (addhstbyX): Likewise.
10869 * nscd/pwdcache.c (addpwbyX): Likewise.
10870 * nscd/servicescache.c (addservbyX): Likewise.
10871
10872 2018-06-25 Florian Weimer <fweimer@redhat.com>
10873
10874 [BZ #18023]
10875 * nscd/connections.c (read_cmdline): New function.
10876 (restart): Use it. Update comment.
10877
10878 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10879
10880 [BZ #23140]
10881 * localedata/locales/csb_PL (mon): Rename to...
10882 (alt_mon): This.
10883 (abmon): Rename to...
10884 (ab_alt_mon): This.
10885 (mon): Add with proper genitive forms, copy from Wikipedia.
10886 (abmon): Likewise.
10887
10888 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10889
10890 [BZ #19485]
10891 * localedata/locales/csb_PL (mon): Fix typos:
10892 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10893 (yesstr): Add, value is "jo".
10894 (nostr): Add, value is "nié".
10895
10896 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10897
10898 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10899 all log1p and significand functions on m680x0.
10900 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10901 of s_significand.c..
10902 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10903 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10904 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10905 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10906 s_log1p.c and include it..
10907
10908 2018-06-21 Vincent Chen <vincentc@andestech.com>
10909
10910 * elf/elf.h (R_NDS32_NONE): New define.
10911 (R_NDS32_32_RELA): Likewise.
10912 (R_NDS32_COPY): Likewise.
10913 (R_NDS32_GLOB_DAT): Likewise.
10914 (R_NDS32_JUMP_SLOT): Likewise.
10915 (R_NDS32_RELATIVE): Likewise.
10916 (R_NDS32_TLS_TPOFF): Likewise.
10917 (R_NDS32_TLS_DESC): Likewise.
10918
10919 2018-06-21 Mark Wielaard <mark@klomp.org>
10920
10921 * elf/elf.h (R_BPF_MAP_FD): Removed.
10922 (R_BPF_64_64, R_BPF_64_32): New.
10923
10924 2018-06-21 Florian Weimer <fweimer@redhat.com>
10925
10926 [BZ #23253]
10927 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10928 Renamed from libc_feholdsetround_ctx.
10929 (default_libc_feresetround_ctx): Renamed from
10930 libc_feresetround_ctx.
10931 (default_libc_feholdsetround_noex_ctx): Renamed from
10932 libc_feholdsetround_noex_ctx.
10933 (default_libc_feresetround_noex_ctx): Renamed from
10934 libc_feresetround_noex_ctx.
10935 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10936 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10937 forwardning to the old implementations under the new names.
10938 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10939 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10940 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10941 (libc_feresetround_ctx): Forward to default implements for i386
10942 and MATH_SET_BOTH_ROUNDING_MODES.
10943 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10944 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10945
10946 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10947
10948 * string/tst-cmp.c: Include <libc-diag.h>.
10949 (strncmp_max): Disable -Wstringop-overflow= around call to
10950 strncmp.
10951 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10952 strncasecmp.
10953
10954 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10955 (main): Disable -Wunused-value around call to strpbrk.
10956 * string/bug-strspn1.c: Include <libc-diag.h>.
10957 (main): Disable -Wunused-value around call to strspn.
10958
10959 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10960 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10961
10962 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10963 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10964
10965 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10966
10967 * math/Makefile (libm-calls): Move s_significandF to...
10968 (gen-libm-calls): ... here.
10969 * math/s_significand_template.c: New file.
10970 * math/s_significand.c: Removed.
10971 * math/s_significandf.c: Removed.
10972 * math/s_significandl.c: Removed.
10973 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10974 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10975
10976 * math/e_exp2_template.c (declare_mgen_finite_alias,
10977 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10978 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10979 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10980
10981 2018-06-20 Florian Weimer <fweimer@redhat.com>
10982
10983 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10984
10985 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10986
10987 [BZ #23280]
10988 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10989 floating-point number to strtod functions rather than possibly
10990 negating result of those functions.
10991 * stdio-common/tst-scanf-round.c: New file.
10992 * stdio-common/Makefile (tests): Add tst-scanf-round.
10993 ($(objpfx)tst-scanf-round): Depend on $(libm).
10994
10995 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10996
10997 * sysdeps/mach/hurd/localplt.data: Move to...
10998 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10999 R_386_GLOB_DAT like on Linux i386.
11000
11001 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11002
11003 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
11004 (SHM_STAT_ANY): New macro.
11005 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
11006 (SHM_STAT_ANY): Likewise.
11007 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
11008 (SHM_STAT_ANY): Likewise.
11009 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
11010 (SHM_STAT_ANY): Likewise.
11011 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
11012 (SHM_STAT_ANY): Likewise.
11013 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
11014 (SHM_STAT_ANY): Likewise.
11015 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
11016 (SHM_STAT_ANY): Likewise.
11017 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
11018 (SHM_STAT_ANY): Likewise.
11019 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
11020 (SHM_STAT_ANY): Likewise.
11021 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
11022 (SHM_STAT_ANY): Likewise.
11023 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
11024 (SHM_STAT_ANY): Likewise.
11025 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
11026 (SHM_STAT_ANY): Likewise.
11027
11028 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
11029 (SEM_STAT_ANY): New macro.
11030 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11031 (SEM_STAT_ANY): Likewise.
11032 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11033 (SEM_STAT_ANY): Likewise.
11034 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11035 (SEM_STAT_ANY): Likewise.
11036 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11037 (SEM_STAT_ANY): Likewise.
11038 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11039 (SEM_STAT_ANY): Likewise.
11040 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11041 (SEM_STAT_ANY): Likewise.
11042 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11043 (SEM_STAT_ANY): Likewise.
11044 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11045 (SEM_STAT_ANY): Likewise.
11046 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11047 (SEM_STAT_ANY): Likewise.
11048
11049 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11050 (MSG_STAT_ANY): New macro.
11051 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11052 (MSG_STAT_ANY): Likewise.
11053 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11054 (MSG_STAT_ANY): Likewise.
11055 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11056 (MSG_STAT_ANY): Likewise.
11057 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11058 (MSG_STAT_ANY): Likewise.
11059 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11060 (MSG_STAT_ANY): Likewise.
11061 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11062 (MSG_STAT_ANY): Likewise.
11063 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11064 (MSG_STAT_ANY): Likewise.
11065 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11066 (MSG_STAT_ANY): Likewise.
11067 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11068 (MSG_STAT_ANY): Likewise.
11069
11070 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11071 (MAP_TYPE): Change value to 0x2b.
11072
11073 2018-06-18 Florian Weimer <fweimer@redhat.com>
11074
11075 [BZ #15722]
11076 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11077 socket with SOCK_CLOEXEC.
11078
11079 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11080
11081 [BZ #23303]
11082 * sysdeps/powerpc/powerpc64/le/Makefile
11083 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11084 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11085 (gnulib-tests): Also add $(f128-loader-link) for
11086 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11087
11088 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11089
11090 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11091 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11092 of sendfile.
11093 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11094 (sendfile64): New strong alias.
11095 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11096 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11097 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11098 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11099 attribute.
11100 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11101 ___pthread_get_cleanup_stack.
11102 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11103 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11104 * mach/shortcut.awk: Make syscall stubs include
11105 <mach-shortcuts-hidden.h> and add hidden definition.
11106 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11107 (__mach_msg): Add hidden prototype.
11108 * mach/msg.c: Include <mach.h>.
11109 (__mach_msg): Add hidden definition.
11110 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11111 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11112 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11113 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11114 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11115 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11116 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11117 prototype and definition.
11118 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11119 hidden target for _hurd_self_sigstate.
11120
11121 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11122
11123 [BZ #23007]
11124 * stdlib/tst-strtod-nan-sign-main.c: New file.
11125 * stdlib/tst-strtod-nan-sign.c: Likewise.
11126 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11127 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11128 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11129 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11130 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11131
11132 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11133
11134 [BZ #23007]
11135 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11136 appropriate sign.
11137
11138 2018-06-14 Florian Weimer <fweimer@redhat.com>
11139
11140 [BZ #23290]
11141 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11142 that the result stays within the ISO-8859-1 range.
11143 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11144 characters are defined in IBM273.
11145
11146 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11147
11148 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11149 __mach_task_self): Remove attribute_hidden.
11150
11151 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11152
11153 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11154 ignore -Wrestrict for one test.
11155
11156 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11157 Szabolcs Nagy <szabolcs.nagy@arm.com>
11158
11159 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11160
11161 2018-06-14 Florian Weimer <fweimer@redhat.com>
11162
11163 * scripts/update-abilist.sh: Accept empty list of files to patch.
11164
11165 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11166
11167 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11168 test-xfail-check-abi-libmachuser): Add.
11169 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11170 __libc_read and __libc_write to __read and __write.
11171 * sysdeps/hurd/include/hurd/port.h: New file.
11172 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11173 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11174 __thread_switch, __evc_wait): Move declarations to...
11175 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11176 attribute_hidden.
11177 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11178 use PLT to call _hurd_self_sigstate.
11179
11180 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11181
11182 [BZ #23279]
11183 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11184 MAX_EXP as overflowing.
11185 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11186 overflow flag.
11187 (round_str): Output also whether result overflows in each rounding
11188 mode.
11189 * stdlib/tst-strtod-round-data: Add more tests.
11190 * stdlib/tst-strtod-round-data.h: Regenerated.
11191 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11192 (TEST): Handle extra arguments for overflow flags.
11193 (struct test_overflow): New type.
11194 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11195 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11196 (test_in_one_mode): Take argument with overflow information.
11197 (do_test): Update calls to test_in_one_mode.
11198
11199 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11200
11201 * elf/dl-load (_dl_dst_substitute): Correct comment.
11202 (_dl_dst_count): Likewise.
11203
11204 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11205 lll_futex_timed_wait.
11206
11207 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11208
11209 [BZ #23277]
11210 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11211 attribute.
11212 * math/test-nan-const.c: New file.
11213 * math/Makefile (tests): Add test-nan-const.
11214 (CFLAGS-test-nan-const.c): New variable.
11215
11216 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11217
11218 * benchtests/scripts/compare_strings.py (process_results): Add
11219 funcs argument. Compare only functions which are selected.
11220 (main): Check if base function is among selected functions.
11221 Pass selected functions to process_results.
11222 (__main__): Add -f/--functions argument.
11223
11224 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11225 Hongbo Zhang <hongbo.zhang@linaro.org>
11226
11227 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11228 __memcpy_falkor for phecda core.
11229 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11230 __memmove_falkor for phecda core.
11231 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11232 __memset_falkor for phecda core.
11233 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11234 for phecda core.
11235 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11236 macro to identify phecda core.
11237
11238 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11239 Andreas Schwab <schwab@suse.de>
11240 Dmitry V. Levin <ldv@altlinux.org>
11241 Florian Weimer <fweimer@redhat.com>
11242
11243 [BZ #23102]
11244 [BZ #21942]
11245 [BZ #18018]
11246 [BZ #23259]
11247 CVE-2011-0536
11248 * elf/dl-dst.h: Remove DL_DST_COUNT.
11249 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11250 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11251 (is_dst): Comment. Support ELF gABI.
11252 (_dl_dst_count): Comment. Simplify and count DSTs.
11253 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11254 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11255 locals.
11256
11257 2018-06-12 Zack Weinberg <zackw@panix.com>
11258
11259 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11260 * sysdeps/unix/sysv/linux/dl-sysdep.c
11261 Include not-cancel.h. Use __close_nocancel instead of __close,
11262 __open64_nocancel instead of __open, __read_nocancel instead of
11263 __libc_read, and __write_nocancel instead of __libc_write.
11264
11265 * csu/check_fds.c (check_one_fd)
11266 * sysdeps/posix/fdopendir.c (__fdopendir)
11267 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11268 instead of __fcntl and/or __libc_fcntl.
11269
11270 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11271 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11272 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11273 Use __open64_nocancel instead of __open_nocancel.
11274
11275 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11276 hidden_proto declarations to the end and issue them if either
11277 IS_IN(libc) or IS_IN(rtld).
11278 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11279 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11280 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11281 read_nocancel, waitpid_nocancel, write_nocancel.
11282
11283 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11284 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11285 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11286
11287 * nptl/pt-fcntl.c: New file.
11288 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11289 (libpthread-routines): Add pt-fcntl.
11290 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11291 (__libc_fcntl): Remove attribute_hidden.
11292 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11293 __fcntl_nocancel_adjusted, not fcntl_common.
11294 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11295 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11296 to fcntl_nocancel.c.
11297 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11300 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11301
11302 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11303 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11304 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11305 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11306 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11307 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11308 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11309 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11310 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11311 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11312 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11313 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11314 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11315 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11316 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11317 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11318 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11319 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11320 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11321 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11322
11323 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11324 libpthread-routines.
11325 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11326 defines nothing.
11327
11328 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11329 __libc_read, and __write instead of __libc_write. Define
11330 __open64 in addition to __open.
11331
11332 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11333
11334 [BZ #23250]
11335 [BZ #10686]
11336 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11337 to _private_tm[3] and add __glibc_reserved2.
11338 Add _Static_assert of offset of __private_ss == 0x30.
11339 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11340 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11341
11342 2018-06-12 Florian Weimer <fweimer@redhat.com>
11343
11344 x86: Make strncmp usable from rtld.
11345 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11346 __strncmp_ia32 if in libc (and not in rtld).
11347 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11348 strncmp if not in libc (and not to __strncmp_sse2).
11349
11350 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11351
11352 [BZ #23140]
11353 * localedata/locales/gd_GB (mon): Rename to...
11354 (alt_mon): This.
11355 (mon): Import from CLDR (genitive case).
11356 * localedata/locales/hsb_DE (mon): Rename to...
11357 (alt_mon): This.
11358 (mon): Import from CLDR (genitive case).
11359 * localedata/locales/wa_BE (mon): Rename to...
11360 (alt_mon): This.
11361 (mon): Add, fill with the proper genitive forms, but CLDR data
11362 is incomplete; completed according to the comments in this file.
11363 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11364
11365 * localedata/locales/wa_BE (country_name): Reword
11366 "Beljike" -> "Beldjike".
11367
11368 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11369
11370 [BZ #23272]
11371 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11372 cases of non-finite arguments.
11373 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11374
11375 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11376
11377 [BZ #23174]
11378 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11379
11380 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11381
11382 [BZ #23264]
11383 * include/unistd.h (__execvpex): New prototype.
11384 * posix/Makefile (tests): Add tst-spawn4.
11385 (tests-internal): Add tst-spawn4-compat.
11386 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11387 * posix/tst-spawn4-compat.c: New file.
11388 * posix/tst-spawn4.c: Likewise.
11389 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11390 binaries as shell scripts.
11391 * sysdeps/posix/spawni.c (__spawni): Likewise.
11392
11393 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11394
11395 [BZ #23145]
11396 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11397 ($(all-built-dso:=.dynsym): New target.
11398 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11399 ($(objpfx)check-initfini.out): New target.
11400 (generated): Add check-initfini.out.
11401 * scripts/check-initfini.awk: New file.
11402 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11403 (_fini): Likewise.
11404 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11405 (_fini): Likewise.
11406 * sysdeps/arm/crti.S (_init): Mark as hidden.
11407 (_fini): Likewise.
11408 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11409 (_fini): Likewise.
11410 * sysdeps/i386/crti.S (_init): Mark as hidden.
11411 (_fini): Likewise.
11412 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11413 (_fini): Likewise.
11414 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11415 (_fini): Likewise.
11416 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11417 (_fini): Likewise.
11418 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11419 (_fini): Likewise.
11420 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11421 (_fini): Likewise.
11422 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11423 (_fini): Likewise.
11424 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11425 (_fini): Likewise.
11426 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11427 (_fini): Likewise.
11428 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11429 (_fini): Likewise.
11430 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11431 (_fini): Likewise.
11432 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11433 (_fini): Likewise.
11434 * sysdeps/sh/crti.S (_init): Mark as hidden.
11435 (_fini): Likewise.
11436 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11437 (_fini): Likewise.
11438 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11439 (_fini): Likewise.
11440
11441 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11442
11443 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11444 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11445 and TF redirection to KFtype and KF only when the default
11446 long double type is not the IEEE 128-bit floating point type.
11447
11448 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11449
11450 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11451 macro.
11452 (HWCAP_USCAT): Likewise.
11453 (HWCAP_ILRCPC): Likewise.
11454 (HWCAP_FLAGM): Likewise.
11455 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11456 Increase to 28.
11457 (_dl_aarch64_cap_flags): Add new flag names.
11458
11459 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11460 (MAP_FIXED_NOREPLACE): New macro.
11461 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11462 (MAP_FIXED_NOREPLACE): Likewise.
11463 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11464 (MAP_FIXED_NOREPLACE): Likewise.
11465 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11466 (MAP_FIXED_NOREPLACE): Likewise.
11467 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11468 (MAP_FIXED_NOREPLACE): Likewise.
11469 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11470 (MAP_FIXED_NOREPLACE): Likewise.
11471 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11472 (MAP_FIXED_NOREPLACE): Likewise.
11473 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11474 (MAP_FIXED_NOREPLACE): Likewise.
11475 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11476 (MAP_FIXED_NOREPLACE): Likewise.
11477 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11478 (MAP_FIXED_NOREPLACE): Likewise.
11479 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11480 (MAP_FIXED_NOREPLACE): Likewise.
11481 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11482 (MAP_FIXED_NOREPLACE): Likewise.
11483 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11484 (MAP_FIXED_NOREPLACE): Likewise.
11485 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11486 (MAP_FIXED_NOREPLACE): Likewise.
11487 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11488 (MAP_FIXED_NOREPLACE): Likewise.
11489
11490 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11491 version to 4.17.
11492
11493 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11494
11495 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11496 version to 4.17
11497
11498 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11499
11500 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11501 int.
11502 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11503
11504 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11505
11506 * benchtests/scripts/compare_string.py: (process_results) Catch
11507 exception in non-existent base_func and catch exception in
11508 non-existent attribute.
11509 (parse_file) Catch exception if input file does not exist.
11510
11511 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11512
11513 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11514 options to avoid diff calculation and omit header, respectively.
11515 (main): process --no-diff and --no-header
11516
11517 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11518 H.J. Lu <hongjiu.lu@intel.com>
11519
11520 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11521 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11522 wcsncmp-sse2.
11523 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11524 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11525 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11526 and __wcsncmp_sse2.
11527 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11528 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11529 AVX unaligned load is fast and vzeroupper is preferred.
11530 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11531 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11532 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11533 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11534 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11535 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11536 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11537 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11538 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11539 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11540 is undefined.
11541
11542 2018-06-01 Florian Weimer <fweimer@redhat.com>
11543
11544 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11545 configuring with --disable-multi-arch, building with
11546 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11547 Haswell-era CPU.
11548
11549 2018-06-01 Florian Weimer <fweimer@redhat.com>
11550
11551 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11552 results from building with “-march=x86-64 -mtune=generic
11553 -mfpmath=sse” and running on a Haswell-era CPU.
11554
11555 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11556
11557 [BZ #18473]
11558 * soft-fp/sqrttf2.c: Remove file.
11559 * soft-fp/sqrtdf2.c: Move to ....
11560 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11561 <shlib-compat.h>.
11562 (__sqrtdf2): Make conditional on
11563 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11564 symbol.
11565 * soft-fp/sqrtsf2.c: Move to ....
11566 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11567 <shlib-compat.h>.
11568 (__sqrtsf2): Make conditional on
11569 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11570 symbol.
11571 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11572 (gcc-double-routines): Remove sqrtdf2.
11573 (gcc-quad-routines): Remove sqrttf2.
11574 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11575 Do not filter out sqrtsf2 and sqrtdf2.
11576 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11577 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11578
11579 2018-06-01 Florian Weimer <fweimer@redhat.com>
11580
11581 * sysdeps/generic/libcidn.abilist: Remove file.
11582
11583 2018-06-01 Florian Weimer <fweimer@redhat.com>
11584
11585 [BZ #23236]
11586 * libio/strfile.h (struct _IO_str_fields): Rename members to
11587 discourage their use and add comment.
11588 (_IO_STR_DYNAMIC): Remove unused macro.
11589 * libio/strops.c (_IO_str_init_static_internal): Do not use
11590 callback pointers. Call malloc and free.
11591 (_IO_str_overflow): Do not use callback pointers. Call malloc
11592 and free.
11593 (enlarge_userbuf): Likewise.
11594 (_IO_str_finish): Call free.
11595 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11596 _allocate_buffer_unused.
11597 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11598 and free.
11599 (enlarge_userbuf): Likewise.
11600 (_IO_wstr_finish): Call free.
11601 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11602 _allocate_buffer_unused, _free_buffer_unused.
11603 * libio/memstream.c (__open_memstream): Likewise.
11604 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11605 * libio/wmemstream.c (open_wmemstream): Likewise.
11606
11607 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11608
11609 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11610 AMD Ryzen 7 1800X.
11611
11612 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11613
11614 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11615 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11616 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11617 New file.
11618 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11619 Likewise.
11620 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11621
11622 2018-05-29 Florian Weimer <fweimer@redhat.com>
11623
11624 * support/Makefile (libsupport-routines): Add
11625 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11626 xpthread_barrierattr_setpshared.
11627 * support/xpthread_barrierattr_destroy.c: New file.
11628 * support/xpthread_barrierattr_init.c: Likewise.
11629 * support/xpthread_barrierattr_setpshared.c: Likewise.
11630
11631 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11632
11633 [BZ #23206]
11634 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11635 _r_debug and update DT_DEBUG for debugger.
11636
11637 2018-05-29 Florian Weimer <fweimer@redhat.com>
11638
11639 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11640 (tst-strtod5i.out): Likewise.
11641
11642 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11643
11644 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11645 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11646 (sparc64-quad-routines): New variable. Moved from ....
11647 [$(subdir) = soft-fp] (sysdep_routines): Add
11648 $(sparc64-quad-routines). Moved from ....
11649 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11650 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11651 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11652 moved from ....
11653 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11654 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11655 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11656 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11657 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11658 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11659 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11660 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11661 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11662 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11663 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11664 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11665 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11666 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11667 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11668 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11669 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11670 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11671 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11672 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11673 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11674 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11675 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11676 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11677 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11678 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11679 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11680 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11681 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11682 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11683 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11684 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11685 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11686 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11687 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11688 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11689 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11690 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11691 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11692 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11693 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11694 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11695 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11696 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11697 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11698 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11699 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11700 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11701 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11702 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11703 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11704 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11705 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11706 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11707 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11708 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11709 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11710 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11711
11712 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11713 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11714 (sparc32-quad-routines): New variable. Moved from ....
11715 [$(subdir) = soft-fp] (sysdep_routines): Add
11716 $(sparc32-quad-routines). Moved from ....
11717 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11718 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11719 moved from ....
11720 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11721 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11722 * sysdeps/sparc/sparc32/q_add.c: ... here.
11723 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11724 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11725 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11726 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11727 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11728 * sysdeps/sparc/sparc32/q_div.c: ... here.
11729 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11730 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11731 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11732 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11733 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11734 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11735 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11736 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11737 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11738 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11739 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11740 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11741 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11742 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11743 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11744 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11745 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11746 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11747 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11748 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11749 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11750 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11751 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11752 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11753 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11754 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11755 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11756 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11757 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11758 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11759 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11760 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11761 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11762 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11763 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11764 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11765 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11766 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11767 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11768 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11769 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11770 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11771 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11772 * sysdeps/sparc/sparc32/q_util.c: ... here.
11773 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11774 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11775 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11776 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11777
11778 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11779 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11780
11781 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11782 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11783 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11784 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11785
11786 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11787
11788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11789 powerpc/soft-fp.
11790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11791 Likewise.
11792 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11793 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11794
11795 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11796
11797 [BZ #23171]
11798 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11799 double version.
11800
11801 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11802
11803 * sysdeps/sh/Implies: Remove sh/soft-fp.
11804 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11805 * sysdeps/sh/sfp-machine.h: ... here.
11806
11807 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11808
11809 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11810 (__mempcpy_erms): Skip zero length.
11811 (__memmove_erms): Likewise.
11812 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11813 (__memset_erms): Likewise.
11814
11815 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11816
11817 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11818 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11819 Add functions moved from ....
11820 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11821 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11822 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11823 from ....
11824 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11825 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11826 * sysdeps/alpha/e_sqrtl.c: ... here.
11827 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11828 * sysdeps/alpha/local-soft-fp.h: ... here.
11829 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11830 * sysdeps/alpha/ots_add.c: ... here.
11831 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11832 * sysdeps/alpha/ots_cmp.c: ... here.
11833 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11834 * sysdeps/alpha/ots_cmpe.c: ... here.
11835 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11836 * sysdeps/alpha/ots_cvtqux.c: ... here.
11837 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11838 * sysdeps/alpha/ots_cvtqx.c: ... here.
11839 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11840 * sysdeps/alpha/ots_cvttx.c: ... here.
11841 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11842 * sysdeps/alpha/ots_cvtxq.c: ... here.
11843 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11844 * sysdeps/alpha/ots_cvtxt.c: ... here.
11845 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11846 * sysdeps/alpha/ots_div.c: ... here.
11847 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11848 * sysdeps/alpha/ots_mul.c: ... here.
11849 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11850 * sysdeps/alpha/ots_nintxq.c: ... here.
11851 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11852 * sysdeps/alpha/ots_sub.c: ... here.
11853 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11854 * sysdeps/alpha/sfp-machine.h: ... here.
11855
11856 2018-05-23 Florian Weimer <fweimer@redhat.com>
11857
11858 [BZ #19728]
11859 [BZ #19729]
11860 [BZ #22247]
11861 CVE-2016-6261
11862 CVE-2016-6263
11863 CVE-2017-14062
11864 Switch to extern IDNA implementation (libidn2).
11865 * libidn: Remove subdirectory.
11866 * LICENSES: Do not mention licensing conditions for the removed
11867 libidn code.
11868 * config.h.in (HAVE_LIBIDN): Remove.
11869 * include/dlfcn.h (__libc_dlopen): Update comment.
11870 * include/idna.h: Remove file.
11871 * inet/Makefile (routines): Add idna.
11872 (tests-static, tests-internal): Add tst-idna_name_classify.
11873 (LOCALES): Generate locales for tests.
11874 (tst-idna_name_classify.out): Depend on generated locales.
11875 * inet/idna_name_classify.c: New file.
11876 * inet/tst-idna_name_classify.c: Likewise.
11877 * inet/net-internal.h (__idna_to_dns_encoding)
11878 (__idna_from_dns_encoding): Declare.
11879 * inet/net-internal.h (enum idna_name_classification): Define.
11880 (__idna_name_classify): Declare.
11881 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11882 __idna_from_dns_encoding.
11883 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11884 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11885 name as a fallback in case of encoding errors.
11886 (getnameinfo): Use DEPRECATED_NI_IDN.
11887 * inet/idna.c: New file.
11888 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11889 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11890 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11891 (modules-names): Add tst-no-libidn2.
11892 (extra-test-objs): Add tst-no-libidn2.os.
11893 (LDFLAGS-tst-no-libidn2.so): Set soname.
11894 (LOCALES): Set, and generate locales.
11895 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11896 (tst-resolv-ai_idn-latin1): Likewise.
11897 (tst-resolv-ai_idn-nolibidn2): Likewise.
11898 (tst-resolv-ai_idn.out): Depend on locales.
11899 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11900 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11901 tst-no-libidn2.so.
11902 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11903 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11904 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11905 * resolv/tst-resolv-ai_idn.c: New file.
11906 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11907 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11908 * resolv/tst-no-libidn2.c: Likewise.
11909 * support/support_format_addrinfo.c (format_ai_flags): Do not
11910 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11911 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11912 (gaih_inet): Call __idna_to_dns_encoding and
11913 __idna_from_dns_encoding, and use the original (punycode) name if
11914 __idna_from_dns_encoding fails due to an encoding error.
11915 (getaddrinfo): Use DEPRECATED_AI_IDN.
11916 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11917 * sysdeps/unix/inet/configure: Remove file.
11918 * sysdeps/unix/inet/configure.ac: Likewise.
11919
11920 2018-05-23 Florian Weimer <fweimer@redhat.com>
11921
11922 Implement allocate_once.
11923 * include/allocate_once.h: New file.
11924 * misc/allocate_once.c: Likewise.
11925 * misc/tst-allocate_once.c: Likewise.
11926 * misc/Makefile (routines): Add allocate_once.
11927 (tests-internal): Add tst-allocate_once.
11928 (generated): Add tst-allocate_once.mtrace,
11929 tst-allocate_once-mem.out.
11930 (tests-special): Add tst-allocate_once-mem.out.
11931 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11932 (tst-allocate_once-mem.out): Call mtrace.
11933 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11934
11935 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11936
11937 [BZ #23196]
11938 * string/test-memcpy.c (do_test1): New function.
11939 (test_main): Call it.
11940
11941 2018-05-23 Andreas Schwab <schwab@suse.de>
11942
11943 [BZ #23196]
11944 CVE-2018-11237
11945 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11946 (L(preloop_large)): Save initial destination pointer in %r11 and
11947 use it instead of %rax after the loop.
11948 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11949
11950 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11951
11952 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11953 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11954 -I../soft-fp. Moved from ....
11955 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11956 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11957 * sysdeps/aarch64/e_sqrtl.c: ... here.
11958 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11959 * sysdeps/aarch64/sfp-machine.h: ... here.
11960
11961 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11962 -Wmaybe-uninitialized around access to fq[0].
11963 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11964 Likewise.
11965
11966 [BZ #18471]
11967 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11968 aliases for non-libc case of versioned symbols.
11969 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11970 (llseek): Define as compat symbol if
11971 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11972 with link warning.
11973 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11974 Make into a compat symbol, disabled for minimum symbol version
11975 GLIBC_2.28 and later.
11976 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11977
11978 2018-05-22 Florian Weimer <fweimer@redhat.com>
11979
11980 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11981 not add -mpreferred-stack-boundary=4.
11982 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11983 (stack-align-test-flags): Likewise.
11984 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11985 Likewise.
11986 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11987 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11988 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11989 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11990 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11991 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11992 (CFLAGS-tst-align2.c): Likewise.
11993
11994 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11995
11996 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11997 (index_arch_Prefer_FSRM): Likewise.
11998 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11999 Also check Prefer_FSRM.
12000 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
12001 Also return OPTIMIZE (erms) for Prefer_FSRM.
12002
12003 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
12004
12005 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
12006 (index_cpu_FSRM): Likewise.
12007 (reg_FSRM): Likewise.
12008
12009 2018-05-18 Joseph Myers <joseph@codesourcery.com>
12010
12011 * math/gen-tgmath-tests.py: Import sys.
12012 (Tests.__init__): Initialize macros_seen.
12013 (Tests.add_tests): Add macro to macros_seen. Only generate tests
12014 if requested to do so for this macro.
12015 (Tests.add_all_tests): Take argument for macro for which to
12016 generate tests.
12017 (Tests.check_macro_list): New function.
12018 (main): Handle check-list argument and argument specifying macro
12019 for which to generate tests.
12020 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
12021 [PYTHON] (tgmath3-macro-tests): Likewise.
12022 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
12023 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
12024 not test-tgmath3.c.
12025 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
12026 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
12027 to CFLAGS.
12028 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
12029 [PYTHON] ($(foreach
12030 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
12031 rule.
12032 [PYTHON] (tests-special): Add
12033 $(objpfx)test-tgmath3-macro-list.out.
12034 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12035
12036 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12037 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12038 later.
12039
12040 [BZ #22639]
12041 * time/tzset.c (SECSPERDAY): Cast to time_t.
12042 * time/tst-y2039.c: New file.
12043 * time/Makefile (tests): Add tst-y2039.
12044
12045 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12046
12047 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12048 (PREFETCH_ONE_SET): Remove duplicate line.
12049
12050 2018-05-17 Florian Weimer <fweimer@redhat.com>
12051
12052 * sysdeps/generic/math-type-macros-double.h: Include
12053 <math-nan-payload-double.h> after <libm-alias-double.h>.
12054 * sysdeps/generic/math-type-macros-float.h: Include
12055 <math-nan-payload-float.h> after <libm-alias-float.h>.
12056 * sysdeps/generic/math-type-macros-float128.h: Include
12057 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12058 * sysdeps/generic/math-type-macros-ldouble.h: Include
12059 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12060
12061 2018-05-17 Andreas Schwab <schwab@suse.de>
12062
12063 * resolv/res_send.c (__res_context_send): Don't set errno when
12064 returing error after malloc failure.
12065
12066 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12067
12068 * nptl/allocatestack.c (allocate_stack): Remove the
12069 !__ASSUME_PRIVATE_FUTEX paths.
12070 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12071 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12072 Likewise.
12073 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12074 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12075 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12076 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12077 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12078 !__ASSUME_PRIVATE_FUTEX path.
12079 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12080 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12081 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12082 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12083 !__ASSUME_PRIVATE_FUTEX macros.
12084 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12085 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12086 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12087 * sysdeps/unix/sysv/linux/kernel-features.h
12088 (__ASSUME_PRIVATE_FUTEX): Removed.
12089
12090 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12091
12092 * math/Makefile (libm-narrow-fns): Add div.
12093 (libm-test-funcs-narrow): Likewise.
12094 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12095 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12096 * math/gen-auto-libm-tests.c (test_functions): Add div.
12097 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12098 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12099 (NARROW_DIV_TRIVIAL): Likewise.
12100 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12101 macro.
12102 (__ddivl): Likewise.
12103 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12104 ddiv.
12105 (CFLAGS-nldbl-ddiv.c): New variable.
12106 (CFLAGS-nldbl-fdiv.c): Likewise.
12107 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12108 __nldbl_ddivl.
12109 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12110 prototype.
12111 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12112 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12113 * math/auto-libm-test-in: Add tests of div.
12114 * math/auto-libm-test-out-narrow-div: New generated file.
12115 * math/libm-test-narrow-div.inc: New file.
12116 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12117 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12118 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12119 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12120 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12121 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12122 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12123 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12124 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12125 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12126 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12127 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12128 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12129 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12130 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12131 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12132 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12133 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12134 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12135 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12160
12161 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12162
12163 [BZ #23178]
12164 * nscd/nscd-client.h (sendfileall): Remove prototype.
12165 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12166 (handle_request): Use writeall instead of sendfileall.
12167 * nscd/aicache.c (addhstaiX): Likewise.
12168 * nscd/grpcache.c (cache_addgr): Likewise.
12169 * nscd/hstcache.c (cache_addhst): Likewise.
12170 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12171 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12172 * nscd/pwdcache.c (cache_addpw): Likewise.
12173 * nscd/servicescache.c (cache_addserv): Likewise.
12174 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12175 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12176 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12177 Remove define.
12178
12179 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12180
12181 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12182 Include <string/strncat.c>.
12183 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12184 alias.
12185 (__GI___strncat): New hidden alias.
12186
12187 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12188
12189 * sysdeps/mips/mips32/libm-test-ulps: Update.
12190 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12191
12192 2018-05-16 Florian Weimer <fweimer@redhat.com>
12193
12194 * support/Makefile (libsupport-routines): Add support_quote_blob,
12195 support_test_compare_blob.
12196 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12197 * support/check.h (TEST_COMPARE_BLOB): Define.
12198 (support_test_compare_blob): Declare.
12199 * support/support.h (support_quote_blob): Declare.
12200 * support/support_quote_blob.c: New file.
12201 * support/support_test_compare_blob.c: Likewise.
12202 * support/tst-support_quote_blob.c: Likewise.
12203 * support/tst-test_compare_blob.c: Likewise.
12204
12205 2018-05-16 Florian Weimer <fweimer@redhat.com>
12206
12207 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12208 of <strtod_nan_double.h>.
12209 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12210 instead of SET_MANTISSA.
12211 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12212 of include <strtod_nan_float.h>.
12213 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12214 instead of <strtod_nan_ldouble.h>.
12215 * stdlib/strtod_nan_double.h: Move to ...
12216 * sysdeps/generic/math-nan-payload-double.h: ... here.
12217 (FLOAT): Remove definition.
12218 (SET_MANTISSA): Rename to ...
12219 (SET_NAN_PAYLOAD): ... this.
12220 * stdlib/strtod_nan_float.h: Move to ...
12221 * sysdeps/generic/math-nan-payload-float.h: ... here.
12222 (FLOAT): Remove definition.
12223 (SET_MANTISSA): Rename to ...
12224 (SET_NAN_PAYLOAD): ... this.
12225 * sysdeps/generic/math-type-macros-double.h: Include
12226 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12227 instead of <math-svid-compat.h>.
12228 * sysdeps/generic/math-type-macros-float.h: Include
12229 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12230 instead of <math-svid-compat.h>.
12231 * sysdeps/generic/math-type-macros-float128.h: Include
12232 <math-nan-payload-float128.h>.
12233 * sysdeps/generic/math-type-macros-ldouble.h: Include
12234 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12235 instead of <math-svid-compat.h>.
12236 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12237 check for definition.
12238 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12239 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12240 Include <ieee754_float128.h>.
12241 (FLOAT): Remove definition.
12242 (SET_MANTISSA): Rename to ...
12243 (SET_NAN_PAYLOAD): ... this.
12244 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12245 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12246 Do not include <float128_private.h>.
12247 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12248 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12249 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12250 (FLOAT): Remove definition.
12251 (SET_MANTISSA): Rename to ...
12252 (SET_NAN_PAYLOAD): ... this.
12253 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12254 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12255 (FLOAT): Remove definition.
12256 (SET_MANTISSA): Rename to ...
12257 (SET_NAN_PAYLOAD): ... this.
12258 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12259 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12260 (FLOAT): Remove definition.
12261 (SET_MANTISSA): Rename to ...
12262 (SET_NAN_PAYLOAD): ... this.
12263 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12264 of "../stdlib/strtod_nan_double.h".
12265 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12266 of "../stdlib/strtod_nan_float.h".
12267 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12268 instead of "../stdlib/strtod_nan_ldouble.h".
12269 * manual/arith.texi (Parsing of Floats): Adjust comment.
12270
12271 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12272
12273 * math/Makefile (libm-narrow-fns): Add mul.
12274 (libm-test-funcs-narrow): Likewise.
12275 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12276 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12277 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12278 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12279 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12280 (NARROW_MUL_TRIVIAL): Likewise.
12281 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12282 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12283 macro.
12284 (__dmull): Likewise.
12285 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12286 dmul.
12287 (CFLAGS-nldbl-dmul.c): New variable.
12288 (CFLAGS-nldbl-fmul.c): Likewise.
12289 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12290 __nldbl_dmull.
12291 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12292 prototype.
12293 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12294 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12295 * math/auto-libm-test-in: Add tests of mul.
12296 * math/auto-libm-test-out-narrow-mul: New generated file.
12297 * math/libm-test-narrow-mul.inc: New file.
12298 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12299 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12300 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12301 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12302 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12303 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12304 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12305 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12306 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12307 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12308 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12309 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12310 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12311 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12312 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12313 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12314 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12315 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12316 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12317 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12342
12343 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12344
12345 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12346 with *%eax in call.
12347
12348 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12349
12350 * sysdeps/i386/ldsodefs.h: Removed.
12351 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12352 * sysdeps/x86/ldsodefs.h: This.
12353 (La_i86_regs): New.
12354 (La_i86_retval): Likewise.
12355 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12356 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12357
12358 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12359
12360 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12361 unnecessary testl.
12362
12363 2018-05-13 Alan Modra <amodra@gmail.com>
12364
12365 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12366 R_PARISC_TLS_DTPOFF32 reloc addend.
12367
12368 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12369
12370 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12371 * math/math.h: Restrict the prototype definition for the functions
12372 issignaling(_Float128) and iszero(_Float128); and template
12373 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12374 __HAVE_FLOAT128_UNLIKE_LDBL.
12375 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12376 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12377 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12378 __f128() constants; define the type _Float128 as long double;
12379 and reuse long double in __CFLOAT128.
12380
12381 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12382
12383 * sysdeps/generic/math_private.h: Do not include
12384 <math-barriers.h>.
12385 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12386 <math_private.h>.
12387 * math/fromfp.h: Include <math-barriers.h>.
12388 * math/math-narrow.h: Likewise.
12389 * math/s_nextafter.c: Likewise.
12390 * math/s_nexttowardf.c: Likewise.
12391 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12392 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12393 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12394 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12395 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12396 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12397 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12398 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12399 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12400 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12401 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12402 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12403 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12404 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12405 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12406 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12407 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12408 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12409 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12410 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12411 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12412 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12413 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12414 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12415 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12416 * sysdeps/ieee754/k_standardl.c: Likewise.
12417 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12418 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12419 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12420 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12421 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12422 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12423 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12424 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12425 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12426 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12427 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12428 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12429 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12430 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12431 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12432 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12433 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12434 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12435 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12436 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12437 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12438 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12439
12440 2018-05-11 Florian Weimer <fweimer@redhat.com>
12441
12442 Use 64-bit epoch values in the time zone file parser.
12443 * include/time.h (internal_time_t): Define.
12444 (__tzfile_compute): Use it.
12445 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12446 member.
12447 (transitions): Switch to internal_time_t.
12448 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12449 types.
12450 (__tzfile_compute): Use internal_time_t for timer argument. Check
12451 for truncation before calling __offtime.
12452
12453 2018-05-11 Florian Weimer <fweimer@redhat.com>
12454
12455 [BZ #23166]
12456 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12457 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12458 Likewise.
12459 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12460 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12461 export without --enable-obsolete-rpc.
12462 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12463 symbol. This should not have been exported, ever.
12464
12465 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12466
12467 [BZ #23152]
12468 * localedata/locales/gd_GB (abmon): Fix typo in May:
12469 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12470
12471 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12472
12473 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12474 Use multiple registers to copy data in loop tail.
12475
12476 * sysdeps/aarch64/multiarch/memmove_falkor.S
12477 (__memmove_falkor): Use multiple registers to move data in
12478 loop tail.
12479
12480 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12481
12482 * math/math-underflow.h: New file.
12483 * sysdeps/generic/math_private.h: Do not include <float.h>.
12484 (fabs_tg): Remove macro. Moved to math-underflow.h.
12485 (min_of_type_f): Likewise.
12486 (min_of_type_): Likewise.
12487 (min_of_type_l): Likewise.
12488 (min_of_type_f128): Likewise.
12489 (min_of_type): Likewise.
12490 (math_check_force_underflow): Likewise.
12491 (math_check_force_underflow_nonneg): Likewise.
12492 (math_check_force_underflow_complex): Likewise.
12493 * math/e_exp2_template.c: Include <math-underflow.h>.
12494 * math/k_casinh_template.c: Likewise.
12495 * math/s_catan_template.c: Likewise.
12496 * math/s_catanh_template.c: Likewise.
12497 * math/s_ccosh_template.c: Likewise.
12498 * math/s_cexp_template.c: Likewise.
12499 * math/s_clog10_template.c: Likewise.
12500 * math/s_clog_template.c: Likewise.
12501 * math/s_csin_template.c: Likewise.
12502 * math/s_csinh_template.c: Likewise.
12503 * math/s_csqrt_template.c: Likewise.
12504 * math/s_ctan_template.c: Likewise.
12505 * math/s_ctanh_template.c: Likewise.
12506 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12507 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12508 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12509 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12510 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12511 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12512 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12513 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12514 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12515 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12516 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12517 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12518 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12519 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12520 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12521 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12522 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12523 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12524 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12525 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12526 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12527 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12528 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12529 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12530 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12531 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12532 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12533 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12534 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12535 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12536 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12537 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12538 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12539 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12540 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12541 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12542 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12543 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12544 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12545 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12546 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12547 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12548 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12549 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12550 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12551 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12552 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12553 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12554 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12555 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12556 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12557 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12558 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12559 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12560 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12561 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12562 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12563 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12564 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12565 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12566 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12567 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12568 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12569 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12570 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12571 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12572 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12573 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12574 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12575 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12576 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12577 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12578 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12579 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12580 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12581 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12582 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12583 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12584 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12585 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12586 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12587 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12588 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12589 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12590
12591 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12592
12593 * sysdeps/generic/math-barriers.h: New file.
12594 * sysdeps/generic/math_private.h [!math_opt_barrier]
12595 (math_opt_barrier): Move to math-barriers.h.
12596 [!math_opt_barrier] (math_force_eval): Likewise.
12597 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12598 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12599 math-barriers.h.
12600 (math_force_eval): Likewise.
12601 * sysdeps/alpha/fpu/math-barriers.h: New file.
12602 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12603 math-barriers.h.
12604 (math_force_eval): Likewise.
12605 * sysdeps/x86/fpu/math-barriers.h: New file.
12606 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12607 math-barriers.h.
12608 (math_force_eval): Likewise.
12609 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12610 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12611 multiple-include guard for rename.
12612 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12613 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12614 math-barriers.h.
12615 (math_force_eval): Likewise.
12616
12617 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12618
12619 [BZ #22786]
12620 CVE-2018-11236
12621 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12622 computation.
12623 * stdlib/Makefile (test-bz22786): New test.
12624 * stdlib/test-bz22786.c: New test.
12625
12626 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12627
12628 * include/math-narrow-eval.h: New file. Contents moved from ....
12629 * sysdeps/generic/math_private.h: ... here.
12630 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12631 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12632 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12633 * stdlib/strtod_l.c: Likewise.
12634 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12635 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12636 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12637 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12638 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12639 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12640 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12641 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12642 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12643 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12644 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12645 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12646 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12647 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12648 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12649 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12650 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12651 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12652 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12653 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12654 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12655 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12656 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12657 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12658 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12659 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12660 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12661 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12662 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12663
12664 2018-05-08 Andreas Schwab <schwab@suse.de>
12665
12666 * sysdeps/nptl/internaltypes.h: Fix comment.
12667
12668 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12669
12670 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12671 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12672 hidden.
12673
12674 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12675
12676 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12677 of I into loop header.
12678 * benchtests/bench-memmove-walk.c
12679 (test_main): Likewise.
12680
12681 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12682
12683 Revert:
12684 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12685 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12686
12687 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12688
12689 [BZ #20419]
12690 * elf/dl-load.c (open_verify): Fix stack overflow.
12691 * elf/Makefile (tst-big-note): New test.
12692 * elf/tst-big-note-lib.S: New.
12693 * elf/tst-big-note.c: New.
12694
12695 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12696
12697 * scripts/abilist.awk: Ignore absolute symbols.
12698 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12699 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12700 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12701 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12702 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12703 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12704 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12705 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12706 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12707 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12708 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12709 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12739 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12740 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12741 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12742 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12743 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12744 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12747 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12748 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12762 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12763 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12775 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12776 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12790 Likewise.
12791 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12804 Likewise.
12805 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12815 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12816 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12832 Likewise.
12833 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12853 Likewise.
12854 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12866 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12867 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12872 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12875 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12876 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12877 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12878 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12879 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12880 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12881 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12886 Likewise.
12887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12889 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12892 Likewise.
12893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12894 Likewise.
12895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12897 Likewise.
12898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12900 Likewise.
12901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12902 Likewise.
12903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12906 Likewise.
12907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12908 Likewise.
12909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12910 Likewise.
12911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12915 Likewise.
12916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12922 Likewise.
12923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12925 Likewise.
12926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12927 Likewise.
12928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12929 Likewise.
12930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12931 Likewise.
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12935 Likewise.
12936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12937 Likewise.
12938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12939 Likewise.
12940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12942 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12943 Likewise.
12944 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12950 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12951 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12952 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12953 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12954 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12956 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12957 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12958 Likewise.
12959 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12960 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12961 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12962 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12963 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12964 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12965 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12966 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12967 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12968 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12969 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12970 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12971 Likewise.
12972 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12973 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12974 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12975 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12976 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12977 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12978 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12979 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12980 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12981 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12982 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12983 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12984 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12985 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12986 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12987 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12988 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12989 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12990 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12991 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12992 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12993 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12994 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12995 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12996 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12997 Likewise.
12998 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12999 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13000 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
13001 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
13002 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13003 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
13004 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
13005 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
13007 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
13008 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
13009 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
13010 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
13011 Likewise.
13012 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
13013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13014 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
13015 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
13016 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13017 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
13018 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13019 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
13020 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
13021 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
13022 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
13023 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
13024 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
13025 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
13026 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13027 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
13028 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
13029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13030 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13031 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13032 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13033 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13034 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13035 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13036 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13037 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13038 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13039 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13040 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13041 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13042 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13043 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13044 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13045 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13046 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13047 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13048 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13049 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13050
13051 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13052
13053 [BZ #23137]
13054 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13055 Use atomic_load_acquire to load __tid.
13056
13057 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13058
13059 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13060 Restore the pointer into %rdx, after syscall and use %rdx,
13061 instead of %rsi, to restore context.
13062
13063 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13064
13065 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13066 Pop the pointer into %rdx after syscall and use %rdx, instead
13067 of %rsi, to restore context.
13068
13069 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13070
13071 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13072 handlers after setjmp.
13073 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13074 defined.
13075 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13076 <libc-pointer-arith.h>.
13077 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13078 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13079 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13080 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13081 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13082 * sysdeps/x86/__longjmp_cancel.S: New file.
13083 * sysdeps/x86/longjmp.c: Likewise.
13084 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13085
13086 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13087
13088 * NEWS: Add ustat.h deprecation entry.
13089 * bits/ustat.h: Remove file.
13090 * misc/sys/ustat.h: Likewise.
13091 * misc/ustat.h: Likewise.
13092 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13093 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13094 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13095 compatibility mode.
13096 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13097 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13098 generic Linux implementation.
13099
13100 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13101
13102 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13103 * math/w_expl_compat.c: Likewise.
13104 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13105
13106 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13107
13108 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13109
13110 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13111
13112 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13113 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13114 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13115 Remove.
13116 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13118 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13119 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13120 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13121 and SYSCALL_LL64.
13122
13123 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13124
13125 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13126
13127 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13128 * math/w_asin_template.c: Likewise.
13129 * math/w_atanh_template.c: Likewise.
13130
13131 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13132
13133 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13134 to powerpc/powerpc64/be for big-endian.
13135 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13136 little-endian.
13137
13138 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13139 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13140 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13141 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13142 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13143 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13144 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13145 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13146 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13147 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13148 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13149 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13150 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13151 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13152 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13153 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13154 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13155 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13156 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13157 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13158 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13159 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13160 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13161 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13162 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13163 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13164 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13165 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13166 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13167 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13168 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13169 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13170
13171 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13172 adjusted to imply powerpc64 and older processors on powerpc64/be.
13173 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13174 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13175 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13176 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13177 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13178 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13179 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13180 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13181 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13182 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13183 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13184 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13185 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13186 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13187 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13188 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13189 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13190 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13191 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13192 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13193 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13194 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13195 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13196 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13197 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13198 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13199 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13200 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13201 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13202 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13203 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13204
13205 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13206 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13207 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13208 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13209
13210 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13211 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13212 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13213 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13214
13215 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13216 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13217 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13218 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13219 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13220 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13221 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13222 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13223 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13224 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13225 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13226
13227 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13228 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13229 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13230 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13231 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13232 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13233 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13234 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13235 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13236 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13237 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13238
13239 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13240 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13241 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13242 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13243 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13244 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13245 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13246 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13247 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13248 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13249 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13250 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13251
13252 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13253 and adjusted to imply olders processors.
13254 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13255 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13256 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13257 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13258 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13259 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13260 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13261 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13262 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13263 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13264 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13265
13266 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13267 powerpc64/le.
13268 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13269 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13270
13271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13272 powerpc64le.
13273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13275
13276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13277 powerpc64/be.
13278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13281
13282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13283 powerpc64 and adjusted.
13284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13287 Likewise.
13288
13289 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13290
13291 * sysdeps/tile: Remove.
13292 * sysdeps/unix/sysv/linux/tile: Likewise.
13293 * README (tilegx-*-linux-gnu): Remove from list of supported
13294 configurations.
13295 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13296 contribution of support for generic Linux kernel syscall
13297 interface.
13298 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13299 tilegx configurations.
13300 (Config.install_linux_headers): Do not handle tile.
13301 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13302 in comment.
13303 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13304 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13305 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13306 conditional undefine and redefine.
13307 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13308 in comment.
13309 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13310 conditional undefine and redefine.
13311
13312 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13313
13314 * signal/tst-sigaction.c: New file to test BZ #23069.
13315 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13316
13317 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13318
13319 [BZ #22766]
13320 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13321 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13322 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13323 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13324
13325 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13326
13327 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13328 _DIRENT_MATCHES_DIRENT64 is not defined.
13329 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13330 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13331 is defined.
13332 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13333 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13334
13335 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13336
13337 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13338 version to GCC 8 branch.
13339
13340 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13341
13342 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13343 (check_no_hidden): Use type of original function when declaring
13344 alias.
13345
13346 * sysdeps/unix/sysv/linux/sys/ptrace.h
13347 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13348 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13349 (struct __ptrace_seccomp_metadata): New type.
13350 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13351 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13352 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13353 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13354 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13355 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13356 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13357 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13358 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13359 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13360 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13361 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13362 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13363 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13364 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13365 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13366
13367 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13368
13369 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13370 defined.
13371 * dirent/versionsort.c (versionsort): Likewise.
13372 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13373 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13374 * dirent/versionsort64.c (versionsort64): Likewise.
13375 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13376 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13377 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13378 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13379 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13380 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13381 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13382 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13383 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13384 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13387 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13388 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13389
13390 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13391
13392 * elf/elf.h (NT_PPC_PKEY): New macro.
13393
13394 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13395
13396 [BZ #23094]
13397 * localedata/locales/hr_HR: fix thousands_sep and
13398 mon_thousands_sep
13399
13400 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13401
13402 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13403 (XTABS): Define to TAB3.
13404
13405 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13406
13407 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13408
13409 * dirent/scandir-tail-common.c: New file.
13410 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13411 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13412 * dirent/scandir.c: Use scandir-tail-common.c.
13413 * dirent/scandirat.c: Likewise.
13414 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13415 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13416 if _DIRENT_MATCHES_DIRENT64 is defined.
13417 * dirent/scandirat64.c (scandirat64): Likewise.
13418 * include/dirent.h (__scandir_tail): Only define iff
13419 _DIRENT_MATCHES_DIRENT64 is not defined.
13420 (__scandir64_tail): Define regardless.
13421 (__scandirat, scandirat64): Remove libc_hidden_proto.
13422 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13423 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13425 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13426 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13427 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13428 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13429
13430 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13431
13432 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13433 New macro.
13434 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13435 Increase to 24.
13436 (_dl_aarch64_cap_flags): Add asimdfhm.
13437
13438 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13439
13440 * sysdeps/nios2/libm-test-ulps: Update.
13441
13442 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13443
13444 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13445 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13446
13447 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13448 requirements.
13449 (_DIRENT_MATCHES_DIRENT64): Undef
13450 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13451 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13452 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13453 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13454 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13455 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13456 use getdents64 syscalls as base.
13457 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13458 symbol if required.
13459 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13460 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13461 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13462 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13463 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13464 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13465 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13466 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13467 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13468 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13469 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13470
13471 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13472
13473 * scripts/test_printers_common.py (init_test): Disable lock elision.
13474
13475 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13476
13477 * math/test-tgmath.c (count_double, count_float,
13478 count_ldouble, count_cdouble, count_cfloat,
13479 count_cldouble): Use volatile int.
13480
13481 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13482
13483 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13484 (conformtest-xfail-conds): Add i386-gnu.
13485 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13486 i386-gnu.
13487 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13488 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13489 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13490 msqid_ds.msg_lrpid): Likewise.
13491 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13492 Likewise.
13493 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13494 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13495 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13496 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13497 unsigned int.
13498 (struct statvfs64): Likewise.
13499 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13500 Likewise.
13501 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13502 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13503 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13504 instead of wait_queue.
13505 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13506 instead of vm_area_struct.
13507 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13508 struct sched_param definition to it.
13509 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13510 * bits/types/struct_sched_param.h: New file.
13511 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13512 <bits/types/struct_sched_param.h> instead of <sched.h>.
13513 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13514 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13515 generic version but include <bits/pthreadtypes.h> to make struct
13516 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13517 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13518 non-compliant.
13519 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13520 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13521 [__USE_XOPEN] (OFDEL): New macro.
13522 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13523 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13524 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13525 prototypes.
13526 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13527 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13528 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13529 non-compliant.
13530 * sysdeps/i386/sys/ucontext.h: Likewise.
13531 * sysdeps/m68k/sys/ucontext.h: Likewise.
13532 * sysdeps/mips/sys/ucontext.h: Likewise.
13533 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13534 * sysdeps/mach/hurd/i386/Makefile
13535 (test-xfail-POSIX/fcntl.h/conform): Add.
13536 (test-xfail-POSIX/signal.h/conform): Add.
13537 (test-xfail-POSIX/semaphore.h/conform): Add.
13538 (test-xfail-POSIX/regex.h/conform): Add.
13539 (test-xfail-POSIX/aio.h/conform): Add.
13540 (test-xfail-POSIX/mqueue.h/conform): Add.
13541 (test-xfail-POSIX/sys/types.h/conform): Add.
13542 (test-xfail-UNIX98/fcntl.h/conform): Add.
13543 (test-xfail-UNIX98/netdb.h/conform): Add.
13544 (test-xfail-UNIX98/signal.h/conform): Add.
13545 (test-xfail-UNIX98/semaphore.h/conform): Add.
13546 (test-xfail-UNIX98/regex.h/conform): Add.
13547 (test-xfail-UNIX98/aio.h/conform): Add.
13548 (test-xfail-UNIX98/ftw.h/conform): Add.
13549 (test-xfail-UNIX98/mqueue.h/conform): Add.
13550 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13551 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13552 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13553 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13554 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13555 (test-xfail-UNIX98/sys/types.h/conform): Add.
13556 (test-xfail-UNIX98/stdlib.h/conform): Add.
13557 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13558 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13559 (test-xfail-POSIX2008/netdb.h/conform): Add.
13560 (test-xfail-POSIX2008/signal.h/conform): Add.
13561 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13562 (test-xfail-POSIX2008/regex.h/conform): Add.
13563 (test-xfail-POSIX2008/aio.h/conform): Add.
13564 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13565 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13566 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13567 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13568 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13569 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13570 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13571 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13572 (test-xfail-XOPEN2K/signal.h/conform): Add.
13573 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13574 (test-xfail-XOPEN2K/regex.h/conform): Add.
13575 (test-xfail-XOPEN2K/aio.h/conform): Add.
13576 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13577 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13578 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13579 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13580 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13581 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13582 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13583 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13584 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13585 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13586 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13587 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13588 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13589 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13590 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13591 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13592 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13593 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13594 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13595 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13596 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13597 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13598 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13599 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13600 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13601 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13602 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13603 i386-gnu.
13604 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13605 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13606
13607 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13608
13609 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13610 --enable-obsolete for powerpc-linux-gnuspe.
13611
13612 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13613
13614 * conform/data/sys/un.h-data: Allow sun_ prefix.
13615 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13616 prototypes.
13617 * sysdeps/mach/include/mach.h: Likewise.
13618 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13619 * sysdeps/mach/include/mach_error.h: Likewise.
13620
13621 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13622
13623 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13624 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13625 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13626 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13627
13628 2018-04-16 Andreas Schwab <schwab@suse.de>
13629
13630 [BZ #19527]
13631 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13632
13633 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13634
13635 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13636 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13637
13638 2018-04-12 DJ Delorie <dj@redhat.com>
13639
13640 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13641 version to 4.16.
13642
13643 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13644
13645 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13646 (struct kernel_sigaction): Use the same definition on 31bit as is used
13647 on 64bit.
13648
13649 2018-04-09 Florian Weimer <fweimer@redhat.com>
13650
13651 [BZ #23037]
13652 * resolv/res_send.c (send_dg): Use designated initializers instead
13653 of assignment to zero-initialize other fields of struct mmsghdr.
13654
13655 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13656
13657 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13658 __READDIR_ALIAS): Undefine after usage.
13659 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13660 __READDIR_R_ALIAS): Likewise.
13661 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13662 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13663 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13664 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13665 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13666 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13667 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13668 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13669 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13670 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13671 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13672 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13673 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13674 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13675 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13676 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13677 * sysdeps/unix/sysv/linux/readdir.c: New file.
13678 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13679 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13680 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13681
13682 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13683
13684 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13685
13686 * manual/charset.texi (Converting a Character): Fix typo.
13687
13688 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13689
13690 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13691
13692 * sysdeps/arm/libm-test-ulps: Update.
13693
13694 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13695 as base implementation.
13696 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13697 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13698 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13699 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13700 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13701 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13702 remove unrequired definitions and update comments.
13703 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13704 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13705 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13706 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13707 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13708 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13709 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13710 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13711 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13712 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13713 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13714 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13715 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13716 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13717 and RESET_SA_RESTORER hooks.
13718
13719 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13720
13721 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13722
13723 2018-04-05 Florian Weimer <fweimer@redhat.com>
13724
13725 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13726 integer overflow, memory leak on error, and indeterminate errno
13727 value. Add a null wide character to terminate the result string.
13728 * manual/charset.texi (Converting a Character): Mention embedded
13729 null bytes in the mbrtowc input string. Explain what happens in
13730 the -2 result case. Do not claim that mbrtowc is simple or
13731 obvious to use. Adjust the description of the code example. Use
13732 @code, not @var, for concrete variables.
13733
13734 2018-04-05 Florian Weimer <fweimer@redhat.com>
13735
13736 * manual/examples/mbstouwcs.c: New file.
13737 * manual/charset.texi (Converting a Character): Include it.
13738
13739 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13740
13741 * include/dirent.h (dirfd): Add hidden proto.
13742 * dirent/dirfd.c (dirfd): Add hidden def.
13743 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13744 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13745
13746 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13747
13748 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13749 sin, cos and sincos to 1 ULP.
13750
13751 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13752
13753 [BZ #19818]
13754 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13755 symbols.
13756 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13757 * elf/tst-absolute-sym.c: New file.
13758 * elf/tst-absolute-sym-lib.c: New file.
13759 * elf/tst-absolute-sym-lib.lds: New file.
13760 * elf/Makefile (tests): Add `tst-absolute-sym'.
13761 (modules-names): Add `tst-absolute-sym-lib'.
13762 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13763 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13764 ($(objpfx)tst-absolute-sym): New dependency.
13765
13766 [BZ #19818]
13767 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13768 parameter.
13769 (SYMBOL_ADDRESS): New macro.
13770 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13771 SYMBOL_ADDRESS for symbol address calculation.
13772 * elf/dl-runtime.c (_dl_fixup): Likewise.
13773 (_dl_profile_fixup): Likewise.
13774 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13775 * elf/rtld.c (dl_main): Likewise.
13776 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13777 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13778 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13779 (elf_machine_rela): Likewise.
13780 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13781 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13782 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13783 (elf_machine_rela): Likewise.
13784 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13785 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13786 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13787 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13788 Likewise.
13789 (elf_machine_reloc): Likewise.
13790 (elf_machine_got_rel): Likewise.
13791 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13792 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13793 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13794 Likewise.
13795 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13796 Likewise.
13797 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13798 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13799 Likewise.
13800 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13801 Likewise.
13802 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13803 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13804 Likewise.
13805 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13806 Likewise.
13807 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13808 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13809
13810 2018-04-04 Zack Weinberg <zackw@panix.com>
13811
13812 * sysdeps/generic/internal-signals.h: Include signal.h,
13813 sigsetops.h, and stdbool.h.
13814 (__libc_signal_block_all): Actually block all signals.
13815 (__libc_signal_block_app): Likewise.
13816 (__libc_signal_restore_set): Actually restore the signal mask.
13817
13818 2018-04-04 Florian Weimer <fweimer@redhat.com>
13819
13820 inet: Actually build and run tst-deadline.
13821 * inet/Makefile (tests-internal): Add tst-deadline and do not
13822 overwrite the variable.
13823 (tests-static-internal): Remove variable.
13824
13825 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13826
13827 [BZ #22947]
13828 * bits/uio-ext.h (RWF_APPEND): New.
13829 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13830 * manual/llio.texi: Document RWF_APPEND.
13831 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13832 (RWF_SUPPORTED): Add RWF_APPEND.
13833
13834 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13835
13836 [BZ #22391]
13837 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13838 check for internal nptl signals.
13839 * nptl/sigaction.c (__sigaction): Likewise.
13840 * signal/sigaddset.c (sigaddset): Likewise.
13841 * signal/sigdelset.c (sigdelset): Likewise.
13842 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13843 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13844 value.
13845 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13846 to filter out internal nptl signals.
13847 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13848 also check realtime signals using standard macros.
13849 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13850 __is_internal_signal, __libc_signal_block_all,
13851 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13852 * sysdeps/nptl/sigfillset.c: Remove file.
13853 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13854 Change return to bool.
13855 (__clear_internal_signals): Remove SIGTIMER clean since it is
13856 equal to SIGCANEL on Linux.
13857 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13858 signal set was constructed using standard functions.
13859
13860 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13861
13862 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13863 ifname is too long.
13864 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13865 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13866 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13867 hidden def.
13868 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13869 * signal/sigaddset.c: Include <sigsetopts.h>.
13870 * signal/sigdelset.c: Likewise.
13871
13872 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13873
13874 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13875 (__cos): Likewise.
13876 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13877 logic as sin and cos.
13878
13879 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13880
13881 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13882 inputs. Return correct sign.
13883 (do_sincos): Remove small input check before do_sin, let do_sin set
13884 the sign.
13885 (__sin): Likewise.
13886 (__cos): Likewise.
13887
13888 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13889
13890 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13891 (do_cos_slow): Likewise.
13892 (do_sin_slow): Likewise.
13893 (reduce_and_compute): Likewise.
13894 (slow): Likewise.
13895 (slow1): Likewise.
13896 (slow2): Likewise.
13897 (sloww): Likewise.
13898 (sloww1): Likewise.
13899 (sloww2): Likewise.
13900 (bslow): Likewise.
13901 (bslow1): Likewise.
13902 (bslow2): Likewise.
13903 (cslow2): Likewise.
13904
13905 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13906
13907 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13908 (do_cos): Remove corp parameter and calculations.
13909 (do_sin): Likewise.
13910 (do_sincos): Remove cor variable.
13911 (__sin): Use do_sincos for huge inputs.
13912 (__cos): Likewise.
13913 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13914 (reduce_and_compute_sincos): Remove unused function.
13915
13916 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13917
13918 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13919 reduce_sincos, improve accuracy to 136 bits.
13920 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13921 (__sin): Use improved reduction and simplified do_sincos calculation.
13922 (__cos): Likewise.
13923 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13924
13925 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13926
13927 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13928 (do_sincos_2): Likewise.
13929 (__sin): Remove middle range reduction case.
13930 (__cos): Likewise.
13931 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13932 reduction case.
13933
13934 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13935
13936 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13937 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13938 inputs.
13939 (__cos): Likewise.
13940 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13941
13942 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13943
13944 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13945 version to 4.16
13946
13947 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13948
13949 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13950 Remove definitions.
13951 (opendir_oflags): Use O_DIRECTORY regardless.
13952 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13953 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13954
13955 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13956
13957 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13958 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13959 macros.
13960 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13961 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13962 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13963 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13964 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13965 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13966
13967 * htl/Makefile: Bump licence to LGPL 2.1+.
13968 * htl/alloca_cutoff.c: Likewise.
13969 * htl/cthreads-compat.c: Likewise.
13970 * htl/lockfile.c: Likewise.
13971 * htl/pt-alloc.c: Likewise.
13972 * htl/pt-cancel.c: Likewise.
13973 * htl/pt-cleanup.c: Likewise.
13974 * htl/pt-create.c: Likewise.
13975 * htl/pt-dealloc.c: Likewise.
13976 * htl/pt-detach.c: Likewise.
13977 * htl/pt-exit.c: Likewise.
13978 * htl/pt-getattr.c: Likewise.
13979 * htl/pt-initialize.c: Likewise.
13980 * htl/pt-internal.h: Likewise.
13981 * htl/pt-join.c: Likewise.
13982 * htl/pt-self.c: Likewise.
13983 * htl/pt-setcancelstate.c: Likewise.
13984 * htl/pt-setcanceltype.c: Likewise.
13985 * htl/pt-sigmask.c: Likewise.
13986 * htl/pt-spin-inlines.c: Likewise.
13987 * htl/pt-testcancel.c: Likewise.
13988 * htl/pt-yield.c: Likewise.
13989 * htl/tests/test-1.c: Likewise.
13990 * htl/tests/test-10.c: Likewise.
13991 * htl/tests/test-11.c: Likewise.
13992 * htl/tests/test-12.c: Likewise.
13993 * htl/tests/test-13.c: Likewise.
13994 * htl/tests/test-14.c: Likewise.
13995 * htl/tests/test-15.c: Likewise.
13996 * htl/tests/test-16.c: Likewise.
13997 * htl/tests/test-17.c: Likewise.
13998 * htl/tests/test-2.c: Likewise.
13999 * htl/tests/test-3.c: Likewise.
14000 * htl/tests/test-4.c: Likewise.
14001 * htl/tests/test-5.c: Likewise.
14002 * htl/tests/test-6.c: Likewise.
14003 * htl/tests/test-7.c: Likewise.
14004 * htl/tests/test-8.c: Likewise.
14005 * htl/tests/test-9.c: Likewise.
14006 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
14007 * sysdeps/htl/bits/cancelation.h: Likewise.
14008 * sysdeps/htl/bits/pthread-np.h: Likewise.
14009 * sysdeps/htl/bits/pthread.h: Likewise.
14010 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
14011 * sysdeps/htl/bits/semaphore.h: Likewise.
14012 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
14013 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
14014 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
14015 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
14016 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
14017 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
14018 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
14019 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
14020 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
14021 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
14022 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
14023 * sysdeps/htl/old_pt-atfork.c: Likewise.
14024 * sysdeps/htl/pt-atfork.c: Likewise.
14025 * sysdeps/htl/pt-attr-destroy.c: Likewise.
14026 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
14027 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
14028 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
14029 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
14030 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14031 * sysdeps/htl/pt-attr-getscope.c: Likewise.
14032 * sysdeps/htl/pt-attr-getstack.c: Likewise.
14033 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14034 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14035 * sysdeps/htl/pt-attr-init.c: Likewise.
14036 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14037 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14038 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14039 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14040 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14041 * sysdeps/htl/pt-attr-setscope.c: Likewise.
14042 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14043 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14044 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14045 * sysdeps/htl/pt-attr.c: Likewise.
14046 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14047 * sysdeps/htl/pt-barrier-init.c: Likewise.
14048 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14049 * sysdeps/htl/pt-barrier.c: Likewise.
14050 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14051 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14052 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14053 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14054 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14055 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14056 * sysdeps/htl/pt-cond-init.c: Likewise.
14057 * sysdeps/htl/pt-cond-signal.c: Likewise.
14058 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14059 * sysdeps/htl/pt-cond-wait.c: Likewise.
14060 * sysdeps/htl/pt-cond.c: Likewise.
14061 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14062 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14063 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14064 * sysdeps/htl/pt-condattr-init.c: Likewise.
14065 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14066 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14067 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14068 * sysdeps/htl/pt-equal.c: Likewise.
14069 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14070 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14071 * sysdeps/htl/pt-getschedparam.c: Likewise.
14072 * sysdeps/htl/pt-getspecific.c: Likewise.
14073 * sysdeps/htl/pt-init-specific.c: Likewise.
14074 * sysdeps/htl/pt-key-create.c: Likewise.
14075 * sysdeps/htl/pt-key-delete.c: Likewise.
14076 * sysdeps/htl/pt-key.h: Likewise.
14077 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14078 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14079 * sysdeps/htl/pt-mutex-init.c: Likewise.
14080 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14081 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14082 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14083 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14084 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14085 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14086 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14087 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14088 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14089 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14090 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14091 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14092 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14093 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14094 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14095 * sysdeps/htl/pt-mutexattr.c: Likewise.
14096 * sysdeps/htl/pt-once.c: Likewise.
14097 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14098 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14099 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14100 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14101 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14102 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14103 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14104 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14105 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14106 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14107 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14108 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14109 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14110 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14111 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14112 * sysdeps/htl/pt-setschedparam.c: Likewise.
14113 * sysdeps/htl/pt-setschedprio.c: Likewise.
14114 * sysdeps/htl/pt-setspecific.c: Likewise.
14115 * sysdeps/htl/pt-spin.c: Likewise.
14116 * sysdeps/htl/pt-startup.c: Likewise.
14117 * sysdeps/htl/pthread.h: Likewise.
14118 * sysdeps/htl/sem-close.c: Likewise.
14119 * sysdeps/htl/sem-destroy.c: Likewise.
14120 * sysdeps/htl/sem-getvalue.c: Likewise.
14121 * sysdeps/htl/sem-init.c: Likewise.
14122 * sysdeps/htl/sem-open.c: Likewise.
14123 * sysdeps/htl/sem-post.c: Likewise.
14124 * sysdeps/htl/sem-timedwait.c: Likewise.
14125 * sysdeps/htl/sem-trywait.c: Likewise.
14126 * sysdeps/htl/sem-unlink.c: Likewise.
14127 * sysdeps/htl/sem-wait.c: Likewise.
14128 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14129 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14130 * sysdeps/mach/htl/pt-block.c: Likewise.
14131 * sysdeps/mach/htl/pt-spin.c: Likewise.
14132 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14133 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14134 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14135 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14136 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14137 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14138 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14139 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14140 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14141 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14142 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14143 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14144 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14145 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14146 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14147 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14148 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14149 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14150 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14151 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14152 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14153 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14154 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14155 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14156 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14157 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14158 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14159 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14160 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14161 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14162 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14163 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14164 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14165 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14166 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14167 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14168 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14169 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14170 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14171 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14172 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14173 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14174 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14175
14176 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14177 * README: Remove the mention of out-of-tree patches needed for
14178 GNU/Hurd.
14179
14180 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14181 (UTIME_NOW, UTIME_OMIT): Define macros.
14182
14183 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14184 instead of pthread_detach.
14185 (__cthread_fork): Call __pthread_create instead of pthread_create.
14186 (__cthread_keycreate): Call __pthread_key_create instead of
14187 pthread_key_create.
14188 (__cthread_getspecific): Call __pthread_getspecific instead of
14189 pthread_getspecific.
14190 (__cthread_setspecific): Call __pthread_setspecific instead of
14191 pthread_setspecific.
14192 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14193 __pthread_mutex_unlock instead of pthread_mutex_lock and
14194 pthread_mutex_unlock.
14195 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14196 ___pthread_get_cleanup_stack.
14197 (__pthread_get_cleanup_stack): New strong alias.
14198 * htl/pt-create.c: Include <pthreadP.h>.
14199 (entry_point): Call __pthread_exit instead of pthread_exit.
14200 (pthread_create): Rename to __pthread_create.
14201 (pthread_create): New strong alias.
14202 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14203 (pthread_detach): New strong alias.
14204 (__pthread_detach): Call __pthread_cond_broadcast instead of
14205 pthread_cond_broadcast.
14206 * htl/pt-exit.c: Include <pthreadP.h>.
14207 (__pthread_exit): Call __pthread_setcancelstate and
14208 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14209 __pthread_get_cleanup_stack.
14210 * htl/pt-testcancel.c: Include <pthreadP.h>.
14211 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14212 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14213 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14214 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14215 pthread_attr_getstacksize.
14216 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14217 Rename to __pthread_attr_getstackaddr.
14218 (pthread_attr_getstackaddr): New strong alias.
14219 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14220 Rename to __pthread_attr_getstacksize.
14221 (pthread_attr_getstacksize): New strong alias.
14222 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14223 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14224 (pthread_attr_setstack): New strong alias.
14225 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14226 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14227 pthread_attr_getstacksize, pthread_attr_setstacksize and
14228 pthread_attr_setstackaddr.
14229 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14230 Rename to __pthread_attr_setstackaddr.
14231 (pthread_attr_setstackaddr): New strong alias.
14232 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14233 Rename to __pthread_attr_setstacksize.
14234 (pthread_attr_setstacksize): New strong alias.
14235 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14236 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14237 pthread_exit.
14238 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14239 (__pthread_key_create): New hidden def.
14240 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14241 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14242 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14243 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14244 __pthread_setspecific, __pthread_setcancelstate,
14245 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14246 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14247 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14248 declarations.
14249 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14250 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14251 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14252 (pthread_attr_setstackaddr): New strong alias.
14253 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14254 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14255 (pthread_attr_setstacksize): New strong alias.
14256 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14257 (call_exit): Call __pthread_exit instead of pthread_exit.
14258 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14259 (_pthread_mutex_init): New hidden definition.
14260 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14261 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14262 instead of pthread_attr_init and pthread_attr_setstack.
14263
14264 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14265 __vm_deallocate instead of vm_allocate and vm_deallocate.
14266 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14267 setenv.
14268 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14269 of geteuid.
14270 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14271 strdup.
14272 * hurd/siginfo.c: Include <libioP.h>.
14273 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14274 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14275 munmap.
14276 * mach/devstream.c: Include <libioP.h>.
14277 (dealloc_ref): Call __mach_port_deallocate instead of
14278 mach_port_deallocate.
14279 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14280 Call __mach_port_deallocate instead of mach_port_deallocate.
14281 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14282 pathconf.
14283 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14284 munmap.
14285 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14286 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14287 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14288 of munmap.
14289 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14290 of close.
14291 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14292 instead of sysconf.
14293 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14294 __clock_gettime instead of clock_gettime.
14295 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14296 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14297 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14298 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14299 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14300 tcgetattr.
14301 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14302 __clock_gettime and __nanosleep instead of clock_gettime and
14303 nanosleep.
14304 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14305 __hurd_catch_signal.
14306 (hurd_catch_signal): New strong alias.
14307 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14308 __hurd_catch_signal instead of hurd_catch_signal.
14309 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14310 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14311 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14312 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14313 (_hurd_thread_sigstate): Add hidden def.
14314 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14315 mutex_unlock.
14316 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14317 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14318 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14319 __hurd_file_name_path_lookup.
14320 (hurd_file_name_path_lookup): New strong alias.
14321 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14322 hurd_file_name_path_lookup.
14323 * mach/errstring.c (mach_error_type): Add hidden def.
14324 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14325 * mach/mutex-init.c (__mutex_init): Add hidden def.
14326 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14327 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14328 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14329 * sysdeps/mach/hurd/getcwd.c
14330 (_hurd_canonicalize_directory_name_internal): Rename to
14331 __hurd_canonicalize_directory_name_internal.
14332 (_hurd_canonicalize_directory_name_internal): New strong alias.
14333 (__canonicalize_directory_name_internal, __getcwd): Call
14334 __hurd_canonicalize_directory_name_internal instead of
14335 _hurd_canonicalize_directory_name_internal.
14336 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14337 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14338 hidden defs.
14339 * sysdeps/hurd/include/hurd.h: New file.
14340 * sysdeps/hurd/include/hurd/fd.h: New file.
14341 * sysdeps/hurd/include/hurd/signal.h: New file.
14342 * sysdeps/mach/include/lock-intern.h: New file.
14343 * sysdeps/mach/include/mach.h: New file.
14344 * sysdeps/mach/include/mach/mig_support.h: New file.
14345 * sysdeps/mach/include/mach_error.h: New file.
14346 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14347 prototype.
14348 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14349 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14350 _HEADER_H_HIDDEN_DEF macro.
14351 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14352 _hurd_fd_error_signal): Add hidden prototype.
14353 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14354 hidden def.
14355 * libio/iolibio.h (_IO_puts): New hidden prototype.
14356 * libio/ioputs.c (_IO_puts): New hidden def.
14357 * sysdeps/mach/hurd/localplt.data: New file.
14358
14359 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14360 Amos Jeffries <squid3@treenet.co.nz>
14361 David Michael <fedora.dm0@gmail.com>
14362 Marco Gerards <marco@gnu.org>
14363 Marcus Brinkmann <marcus@gnu.org>
14364 Neal H. Walfield <neal@gnu.org>
14365 Pino Toscano <toscano.pino@tiscali.it>
14366 Richard Braun <rbraun@sceen.net>
14367 Roland McGrath <roland@gnu.org>
14368 Samuel Thibault <samuel.thibault@ens-lyon.org>
14369 Thomas DiModica <ricinwich@yahoo.com>
14370 Thomas Schwinge <tschwinge@gnu.org>
14371
14372 * htl: New directory.
14373 * sysdeps/htl: New directory.
14374 * sysdeps/hurd/htl: New directory.
14375 * sysdeps/i386/htl: New directory.
14376 * sysdeps/mach/htl: New directory.
14377 * sysdeps/mach/hurd/htl: New directory.
14378 * sysdeps/mach/hurd/i386/htl: New directory.
14379 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14380 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14381 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14382
14383 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14384
14385 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14386 signals in thread created for runing timers.
14387
14388 2018-04-01 Florian Weimer <fweimer@redhat.com>
14389
14390 * support/support_format_addrinfo.c (support_format_addrinfo):
14391 Include unknown error number in formatted result.
14392
14393 2018-03-29 Florian Weimer <fweimer@redhat.com>
14394
14395 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14396 capture SIGBUS.
14397
14398 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14399
14400 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14401 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14402 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14403 (__ASSUME_CLONE_BACKWARDS): Define.
14404
14405 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14406
14407 [BZ #23024]
14408 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14409 early when linux sentinel value is set.
14410
14411 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14412
14413 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14414
14415 2018-03-27 Andreas Schwab <schwab@suse.de>
14416
14417 [BZ #23005]
14418 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14419 allocation of private copy of nsaddr_list fails.
14420
14421 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14422
14423 [BZ #16552]
14424 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14425 * sysdeps/unix/sysv/linux/umount.c: ... here.
14426 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14427 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14428 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14429 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14431 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14432 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14433
14434 2018-03-26 Andreas Schwab <schwab@suse.de>
14435
14436 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14437 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14438 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14439 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14440 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14441 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14442 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14443 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14444 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14445 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14446 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14447 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14448 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14449 (R_RISCV_NUM): Define.
14450
14451 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14452
14453 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14454 TLS declaration of errno.
14455 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14456 __libc_setup_tls.
14457 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14458 (ARCH_SETUP_TLS): Likewise.
14459 * sysdeps/mach/hurd/libc-start.h: New file copied from
14460 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14461 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14462 instead of __libc_setup_tls.
14463 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14464 __libc_setup_tls before initializing libpthread and running _hurd_init
14465 which starts the signal thread.
14466 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14467 Declare function.
14468 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14469
14470 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14471
14472 [BZ #22998]
14473 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14474 after it is defined.
14475
14476 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14477 Max Horn <max@quendi.de>
14478
14479 [BZ #22644]
14480 CVE-2017-18269
14481 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14482 branch conditions.
14483 * string/test-memmove.c (do_test2): New testcase.
14484
14485 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14486
14487 * sysdeps/generic/frame.h: Remove file.
14488 * sysdeps/arm/frame.h: Likewise.
14489 * sysdeps/hppa/frame.h: Likewise.
14490 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14491 macro.
14492 (GET_FRAME): Likewise.
14493 (GET_STACK): Likewise.
14494 (CALL_SIGHANDLER): Likewise.
14495 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14496 Likewise.
14497 (GET_FRAME): Likewise.
14498 (GET_STACK): Likewise.
14499 (CALL_SIGHANDLER): Likewise.
14500 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14502 (GET_FRAME): Likewise.
14503 (GET_STACK): Likewise.
14504 (CALL_SIGHANDLER): Likewise.
14505 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14507 (GET_FRAME): Likewise.
14508 (GET_STACK): Likewise.
14509 (ADVANCE_STACK_FRAME): Likewise.
14510 (CALL_SIGHANDLER): Likewise.
14511 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14512 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14513 (GET_FRAME): Likewise.
14514 (GET_STACK): Likewise.
14515 (CALL_SIGHANDLER): Likewise.
14516 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14517 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14518 (GET_FRAME): Likewise.
14519 (GET_STACK): Likewise.
14520 (CALL_SIGHANDLER): Likewise.
14521 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14522 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14523 (GET_FRAME): Likewise.
14524 (GET_STACK): Likewise.
14525 (CALL_SIGHANDLER): Likewise.
14526 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14527 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14528 (GET_FRAME): Likewise.
14529 (GET_STACK): Likewise.
14530 (CALL_SIGHANDLER): Likewise.
14531 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14532 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14533 (GET_FRAME): Likewise.
14534 (GET_STACK): Likewise.
14535 (CALL_SIGHANDLER): Likewise.
14536 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14537 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14538 (GET_FRAME): Likewise.
14539 (GET_STACK): Likewise.
14540 (CALL_SIGHANDLER): Likewise.
14541 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14542 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14543 (GET_FRAME): Likewise.
14544 (GET_STACK): Likewise.
14545 (CALL_SIGHANDLER): Likewise.
14546 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14547 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14548 (GET_FRAME): Likewise.
14549 (GET_STACK): Likewise.
14550 (CALL_SIGHANDLER): Likewise.
14551 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14552 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14553 (GET_FRAME): Likewise.
14554 (GET_STACK): Likewise.
14555 (CALL_SIGHANDLER): Likewise.
14556 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14557 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14558 (FIRST_FRAME_POINTER): Likewise.
14559 (ADVANCE_STACK_FRAME): Likewise.
14560 (GET_STACK): Likewise.
14561 (GET_FRAME): Likewise.
14562 (CALL_SIGHANDLER): Likewise.
14563 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14564 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14565 (ADVANCE_STACK_FRAME): Likewise.
14566 (GET_STACK): Likewise.
14567 (GET_FRAME): Likewise.
14568 (CALL_SIGHANDLER): Likewise.
14569 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14570 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14571 (GET_FRAME): Likewise.
14572 (GET_STACK): Likewise.
14573 (CALL_SIGHANDLER): Likewise.
14574 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14575 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14576 (GET_FRAME): Likewise.
14577 (GET_STACK): Likewise.
14578 (CALL_SIGHANDLER): Likewise.
14579
14580 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14581
14582 * sysdeps/x86_64/backtrace.c: Move to ....
14583 * debug/backtrace.c: ... here.
14584 * sysdeps/aarch64/backtrace.c: Remove file.
14585 * sysdeps/alpha/backtrace.c: Likewise.
14586 * sysdeps/hppa/backtrace.c: Likewise.
14587 * sysdeps/ia64/backtrace.c: Likewise.
14588 * sysdeps/mips/backtrace.c: Likewise.
14589 * sysdeps/nios2/backtrace.c: Likewise.
14590 * sysdeps/riscv/backtrace.c: Likewise.
14591 * sysdeps/sh/backtrace.c: Likewise.
14592 * sysdeps/tile/backtrace.c: Likewise.
14593
14594 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14595
14596 [BZ #22987]
14597 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14598 function.
14599 (fdimf): Likewise.
14600 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14601
14602 [BZ #17343]
14603 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14604 possibly overflowing computations.
14605
14606 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14607
14608 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14609 values from Linux-specific section now that it is in the GNU section.
14610 * sysdeps/gnu/errlist.c: Regenerate.
14611
14612 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14613
14614 * math/Makefile (libm-narrow-fns): Add sub.
14615 (libm-test-funcs-narrow): Likewise.
14616 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14617 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14618 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14619 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14620 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14621 (NARROW_SUB_TRIVIAL): Likewise.
14622 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14623 macro.
14624 (__dsubl): Likewise.
14625 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14626 dsub.
14627 (CFLAGS-nldbl-dsub.c): New variable.
14628 (CFLAGS-nldbl-fsub.c): Likewise.
14629 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14630 __nldbl_dsubl.
14631 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14632 prototype.
14633 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14634 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14635 * math/auto-libm-test-in: Add tests of sub.
14636 * math/auto-libm-test-out-narrow-sub: New generated file.
14637 * math/libm-test-narrow-sub.inc: New file.
14638 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14639 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14640 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14641 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14642 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14643 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14644 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14645 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14646 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14647 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14648 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14649 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14650 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14651 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14652 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14653 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14654 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14655 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14656 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14657 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14667 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14674 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14675 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14684
14685 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14686
14687 [BZ #20079]
14688 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14689
14690 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14691
14692 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14693
14694 2018-03-18 Richard Braun <rbraun@sceen.net>
14695
14696 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14697 thread reference.
14698
14699 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14700
14701 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14702 (__libc_cleanup_fct): Define function.
14703 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14704 __libc_cleanup_end): Rewrite implementation using
14705 __attribute__ ((__cleanup__)).
14706 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14707 * hurd/Makefile (routines): Add hurdlock.
14708 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14709 interface.
14710 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14711 * hurd/hurdpid.c: Include <lowlevellock.h>
14712 (_S_msg_proc_newids): Use lll_wait to synchronize.
14713 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14714 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14715 * mach/Makefile (lock-headers): Remove machine-lock.h.
14716 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14717 <machine-lock.h>.
14718 (__spin_lock_t): New type.
14719 (__SPIN_LOCK_INITIALIZER): New macro.
14720 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14721 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14722 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14723 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14724 (__mutex_init): Initialize with lll.
14725 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14726 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14727 needing lll.
14728 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14729 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14730 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14731 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14732 (__setpgid): Use lll for synchronization.
14733 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14734 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14735 instead of <cthreads.h>.
14736 (_IO_lock_inexpensive): New macro
14737 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14738 (__libc_lock_self0): New declaration.
14739 (__libc_lock_owner_self): New macro.
14740 (__libc_key_t): Remove type.
14741 (_LIBC_LOCK_INITIALIZER): New macro.
14742 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14743 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14744 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14745 __libc_lock_define_initialized_recursive,
14746 __rtld_lock_define_initialized_recursive,
14747 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14748 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14749 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14750 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14751 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14752 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14753 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14754 New macros.
14755 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14756 * hurd/hurdlock.c: New file.
14757 * hurd/hurdlock.h: New file.
14758 * mach/lowlevellock.h: New file
14759
14760 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14761
14762 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14763 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14764 when opening a symlink with O_NOFOLLOW.
14765 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14766 path when flags contains O_NOFOLLOW.
14767 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14768 if flags contains O_DIRECTORY and the result is a directory.
14769 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14770 oneself when the pointer given in D is nul (as set by ext2fs).
14771 * sysdeps/mach/hurd/mlockall.c: New file.
14772 * sysdeps/mach/hurd/munlockall.c: New file.
14773
14774 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14775
14776 * hurd/hurdsig.c: Include <pthread.h>.
14777 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14778 get the signal thread stack layout.
14779 * hurd/Makefile (headers): Remove threadvar.h.
14780 (inline-headers): Remove threadvar.h.
14781 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14782 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14783 __hurd_threadvar_max, __hurd_errno_location.
14784 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14785 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14786 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14787 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14788 unless TLS is not initialized yet, in which case we do not need a
14789 critical section yet anyway.
14790 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14791 <machine-sp.h>.
14792 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14793 declarations.
14794 (__hurd_threadvar_index): Remove enum.
14795 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14796 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14797 inlines.
14798 (__hurd_reply_port0): New variable declaration.
14799 (__hurd_local_reply_port): New macro.
14800 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14801 (interrupted_reply_port_location): Add thread_t parameter. Use it
14802 with THREAD_TCB to access thread-local variables.
14803 (_hurdsig_abort_rpcs): Pass ss->thread to
14804 interrupted_reply_port_location.
14805 (_hurd_internal_post_signal): Likewise.
14806 (_hurdsig_init): Use presence of cthread_fork instead of
14807 __hurd_threadvar_stack_mask to start signal thread by hand.
14808 Remove signal thread threadvar initialization.
14809 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14810 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14811 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14812 of threadvar.
14813 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14814 __libc_lock_self0.
14815 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14816 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14817 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14818 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14819 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14820 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14821 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14822 define variables.
14823 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14824 <hurd/threadvar.h>.
14825 [IS_IN(rtld)] (rtld_errno): New variable.
14826 [IS_IN(rtld)] (__errno_location): New weak function.
14827 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14828 * sysdeps/mach/hurd/errno.c: Remove file.
14829 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14830 (__fork): Remove THREADVAR_SPACE macro and its use.
14831 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14832 variable.
14833 (init): Do not initialize threadvar.
14834 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14835 symbol.
14836 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14837 __hurd_local_reply_port instead of threadvar.
14838 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14839 _hurd_sigstate fields.
14840 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14841 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14842 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14843 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14844 instead of threadvar.
14845 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14846 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14847 (use_threadvar, global_reply_port): Remove variables.
14848 (__hurd_reply_port0): New variable.
14849 (__mig_get_reply_port): Use __hurd_local_reply_port and
14850 __hurd_reply_port0 instead of threadvar.
14851 (__mig_dealloc_reply_port): Likewise.
14852 (__mig_init): Do not initialize threadvar.
14853 * sysdeps/mach/hurd/profil.c: Fix comment.
14854 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14855 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14856 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14857 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14858 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14859 __cthread_setspecific.
14860 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14861 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14862 __cthread_t instead of cthread_fork, cthread_detach,
14863 pthread_getattr_np, pthread_attr_getstack.
14864 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14865 __cthread_keycreate.
14866 (cthread_getspecific): Rename to __cthread_getspecific.
14867 (cthread_setspecific): Rename to __cthread_setspecific.
14868 (__libc_getspecific): Use __cthread_getspecific instead of
14869 cthread_getspecific.
14870 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14871 __cthread_keycreate instead of cthread_keycreate.
14872 (__libc_setspecific): Use __cthread_setspecific instead of
14873 cthread_setspecific.
14874 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14875 Likewise.
14876 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14877 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14878 testing whether it is defined.
14879
14880 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14881
14882 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14883 Define macro.
14884 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14885 * sysdeps/mach/i386/thread_state.h
14886 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14887 i386_THREAD_STATE.
14888 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14889 i386_THREAD_STATE.
14890 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14891
14892 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14893 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14894
14895 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14896 macros.
14897 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14898 descriptor instead of creating a new one.
14899 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14900
14901 * mach/setup-thread.c: Include <ldsodefs.h>.
14902 (__mach_setup_thread): Call _dl_allocate_tls, pass
14903 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14904 MACHINE_THREAD_STATE_FLAVOR, before getting
14905 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14906 MACHINE_THREAD_STATE_FLAVOR with the result.
14907 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14908 MACHINE_THREAD_STATE_FIX_NEW.
14909 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14910 too. Add original thread parameter.
14911
14912 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14913
14914 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14915 Remove inline function.
14916
14917 * sysdeps/i386/fpu/libm-test-ulps: Update.
14918 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14919
14920 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14921
14922 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14923 commit.
14924
14925 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14926
14927 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14928 (__sincos_code): Remove define and undefine.
14929 [__FAST_MATH__] (__sincos): Remove inline function.
14930 [__FAST_MATH__] (__sincosf): Remove inline function.
14931 [__FAST_MATH__] (__sincosl): Remove inline function.
14932 (__atan2l): Remove inline functions.
14933 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14934 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14935 function.
14936 (floor): Remove inline function.
14937 (ceil): Likewise.
14938 [__FAST_MATH__] (__ldexp_code): Remove macro.
14939 [__FAST_MATH__] (ldexp): Remove inline function.
14940 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14941 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14942 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14943 [__USE_ISOC99] (__lrint_code): Remove macro.
14944 [__USE_ISOC99] (__llrint_code): Likewise.
14945 [__USE_ISOC99] (lrintf): Remove inline function.
14946 [__USE_ISOC99] (lrint): Likewise.
14947 [__USE_ISOC99] (lrintl): Likewise.
14948 [__USE_ISOC99] (llrint): Likewise.
14949 [__USE_ISOC99] (llrintf): Likewise.
14950 [__USE_ISOC99] (llrintl): Likewise.
14951
14952 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14953
14954 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14955 (__ieee754_sqrtf): Remove.
14956 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14957 (__ieee754_sqrtf): Remove.
14958 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14959 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14960 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14961 (__ieee754_sqrtf): Remove.
14962 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14963 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14964 (sqrtf): Remove.
14965 (sqrtl): Remove.
14966 (__ieee754_sqrt): Remove.
14967 (__ieee754_sqrtf): Remove.
14968 (__ieee754_sqrtl): Remove.
14969 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14970 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14971 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14972 (__ieee754_sqrtf): Remove.
14973 (__ieee754_sqrtl): Remove.
14974
14975 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14976
14977 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14978 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14979 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14980 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14981 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14982 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14983 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14984 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14985 Likewise.
14986 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14987 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14988 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14989 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14990 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14991 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14992 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14993 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14994 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14995 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14996 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14997 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14998 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14999 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
15000 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
15001 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15002 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15003 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
15004 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
15005 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
15006 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
15007 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15008 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
15009 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
15010 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
15011 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
15012 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15013 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15014 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
15015 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15016 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
15017 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
15018 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
15019 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
15020 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15021 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15022 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
15023 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
15024 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
15025 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
15026
15027 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15028
15029 * include/math.h (sqrt): Declare with asm redirect.
15030 (sqrtf): Likewise.
15031 (sqrtl): Likewise.
15032 (sqrtf128): Likewise.
15033 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15034 nonlib and libnldbl with -fmath-errno.
15035 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15036 * math/w_sqrt_template.c: Likewise.
15037 * math/w_sqrtf_compat.c: Likewise.
15038 * math/w_sqrtl_compat.c: Likewise.
15039 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15040 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15041 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15042 complex.h.
15043
15044 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15045
15046 * benchtests/Makefile: Define _ISOMAC.
15047 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15048 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15049 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15050 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15051 * benchtests/bench-timing.h: Define attribute_hidden.
15052
15053 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15054
15055 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15056 mov + lsr.
15057
15058 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15059
15060 [BZ #22963]
15061 * localedata/locales/cs_CZ (mon): Rename to...
15062 (alt_mon): This.
15063 (mon): Import from CLDR (genitive case).
15064
15065 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15066
15067 [BZ #22937]
15068 * localedata/locales/el_CY (abmon): Rename to...
15069 (ab_alt_mon): This.
15070 (abmon): Import from CLDR (abbreviated genitive case).
15071 * localedata/locales/el_GR (abmon): Rename to...
15072 (ab_alt_mon): This.
15073 (abmon): Import from CLDR (abbreviated genitive case).
15074
15075 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15076
15077 [BZ #22932]
15078 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15079
15080 2018-03-15 Robert Buj <robert.buj@gmail.com>
15081
15082 [BZ #22848]
15083 * localedata/locales/ca_ES (abmon): Rename to...
15084 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15085 (mon): Rename to...
15086 (alt_mon): This.
15087 (abmon): Import from CLDR (genitive case, month names preceded by
15088 "de" or "d’").
15089 (mon): Likewise.
15090 (abday): Synchronize with CLDR.
15091 (d_t_fmt): Likewise.
15092 (d_fmt): Likewise.
15093 (am_pm): Likewise.
15094
15095 (LC_TIME): Improve indentation.
15096 (LC_TELEPHONE): Likewise.
15097 (LC_NAME): Likewise.
15098 (LC_ADDRESS): Likewise.
15099
15100 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15101
15102 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15103 (lrintf): Remove definitions used only with old GCC.
15104 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15105 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15106 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15107 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15108 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15109 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15110 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15111 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15112 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15113 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15114 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15115 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15116 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15117 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15118 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15119 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15120 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15121 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15122 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15123 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15124 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15125 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15126 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15127 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15128 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15129 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15130 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15131 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15132
15133 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15134
15135 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15136 instruction to unbreak builds with binutils 2.26 and older.
15137
15138 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15139
15140 * sysdeps/aarch64/strncmp.S (count): New macro.
15141 (strncmp): Store misaligned length in SRC1 in COUNT.
15142 (mutual_align): Adjust.
15143 (misaligned8): Load dword at a time when it is safe.
15144
15145 2018-03-12 Zack Weinberg <zackw@panix.com>
15146
15147 [BZ #1190]
15148 [BZ #19476]
15149 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15150 if the _IO_EOF_SEEN bit is already set; update commentary.
15151 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15152 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15153
15154 * support/support_openpty.c, support/tty.h: New files.
15155 * support/Makefile (libsupport-routines): Add support_openpty.
15156
15157 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15158 New test cases.
15159 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15160 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15161
15162 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15163
15164 * po/pt_BR.po: Update translations.
15165
15166 2018-03-12 David Michael <fedora.dm0@gmail.com>
15167
15168 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15169 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15170 get a port to the startup server.
15171
15172 2018-03-11 Zack Weinberg <zackw@panix.com>
15173
15174 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15175 before nldbl-compat.h.
15176
15177 2018-03-10 Zack Weinberg <zackw@panix.com>
15178
15179 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15180 math.h or math_private.h.
15181
15182 * sysdeps/alpha/fpu/s_isnan.c
15183 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15184 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15185 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15186 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15187 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15188 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15189 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15190 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15191 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15194 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15195 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15196 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15197 Include math_private.h.
15198
15199 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15200 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15201 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15202 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15203 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15204 * sysdeps/powerpc/power7/fpu/s_logb.c:
15205 Include math.h and math_private.h.
15206
15207 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15208 uses of $at in .set noat / .set at.
15209
15210 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15211
15212 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15213 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15214 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15215 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15216 Likewise.
15217
15218 2018-03-09 Florian Weimer <fweimer@redhat.com>
15219
15220 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15221 in comment.
15222
15223 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15224
15225 [BZ #22919]
15226 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15227 Add nop before __startcontext, add explaining comments.
15228
15229 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15230
15231 [BZ #22926]
15232 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15233 empty for __SPE__.
15234 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15235 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15236 Do not build hardware transactional code for __SPE__.
15237 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15238 (__lll_trylock_elision): Likewise.
15239 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15240 (__lll_unlock_elision): Likewise.
15241
15242 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15243 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15244 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15245 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15246 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15247 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15248 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15249 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15250 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15251 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15252 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15253 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15254 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15255 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15256 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15257 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15258 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15259 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15260 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15261 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15262 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15263 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15264 (__ASSUME_CLONE_BACKWARDS): Define.
15265 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15266 __clone2 if __NR_clone2 is defined.
15267 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15268 (__ASSUME_CLONE_BACKWARDS): Likewise.
15269 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15270 (__ASSUME_CLONE_BACKWARDS): Likewise.
15271 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15272 (__ASSUME_CLONE2): Likewise.
15273 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15274 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15275 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15276 variants and the define architecture can use.
15277 (__ASSUME_CLONE_DEFAULT): Define as default.
15278 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15279 (__ASSUME_CLONE_BACKWARDS): Likewise.
15280 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15281 (__ASSUME_CLONE_BACKWARDS): Likewise.
15282 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15283 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15284
15285 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15286
15287 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15288
15289 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15290 time.
15291
15292 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15293 (do_test_limit): Likewise.
15294
15295 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15296 for every implementation.
15297 (do_test): Likewise.
15298
15299 * benchtests/bench-strncmp.c: Convert output to json.
15300
15301 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15302
15303 * io/futimens.c: Add missing start-of-file descriptive comment.
15304 * io/utime.c: Likewise.
15305 * misc/futimesat.c: Likewise.
15306 * misc/utimes.c: Likewise.
15307 * sysdeps/mach/hurd/futimesat.c: Likewise.
15308 * sysdeps/mach/hurd/utimes.c: Likewise.
15309 * sysdeps/posix/utime.c: Likewise.
15310 * sysdeps/posix/utimes.c: Likewise.
15311 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15312 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15313 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15314 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15315
15316 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15317
15318 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15319 hurd_futimes.
15320 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15321 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15322 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15323 (__futimens): Move implementation to...
15324 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15325 utime_tvalue_from_tspec): ... new helper functions.
15326 (hurd_futimens): New function.
15327 * sysdeps/mach/hurd/futimesat.c: New file.
15328 * sysdeps/mach/hurd/utimensat.c: New file.
15329
15330 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15331
15332 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15333 UTIME_OMIT): New macros.
15334 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15335 before reverting to converting time spec to time value and calling
15336 __file_utimes.
15337 * sysdeps/mach/hurd/utime-helper.c: New file.
15338 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15339 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15340 reverting to utime_tvalue_from_tval and __file_utimes.
15341 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15342 (__lutimes): Just call hurd_futimens after lookup.
15343 * sysdeps/mach/hurd/utimes.c: Likewise.
15344
15345 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15346
15347 * bits/sigaction.h: Add include guard.
15348 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15349 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15350 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15351 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15352 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15353 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15354 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15355 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15356 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15357
15358 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15359
15360 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15361 -Wmaybe-uninitialized for -Os.
15362 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15363 this disabling.
15364
15365 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15366
15367 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15368 __INO_T_MATCHES_INO64_T is defined.
15369 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15370 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15371 of definition.
15372 * dirent/alphasort64.c: Likewise.
15373 * dirent/scandir.c: Likewise.
15374 * dirent/scandir64-tail.c: Likewise.
15375 * dirent/scandir64.c: Likewise.
15376 * dirent/scandirat.c: Likewise.
15377 * dirent/scandirat64.c: Likewise.
15378 * dirent/versionsort.c: Likewise.
15379 * dirent/versionsort64.c: Likewise.
15380 * include/dirent.h: Likewise.
15381
15382 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15383 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15384 for socketpair endpoint.
15385 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15386 WRITE_BUFFER_SIZE as buffer size for sending socket.
15387 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15388 issue on system where send is implemented with sendto syscall.
15389 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15390 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15391 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15392 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15393
15394 [BZ #21269]
15395 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15396 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15397 sa_restorer for vDSO case.
15398 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15399
15400 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15401
15402 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15403 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15404 * hurd/hurd/ioctl.h: Include <mach/port.h>
15405 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15406 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15407 <mach/mach_types.h> and <mach/message.h>.
15408 (headers): Move mach/param.h to bits/mach/param.h.
15409 * sysdeps/mach/i386/mach/param.h: Move file to ...
15410 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15411 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15412 of <mach/param.h>.
15413 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15414 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15415 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15416 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15417 trivial, for C++ conformity.
15418 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15419 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15420 Process mig output through $(migheadersed).
15421 * hurd/Makefile (migheadersed): Define variable.
15422 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15423 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15424 headers.
15425 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15426 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15427 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15428 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15429 <bits/types/sigset_t.h>.
15430 [!defined __USE_GNU]: Do not #error out.
15431 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15432 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15433 Include <stddef.h> and <bits/types/sigset_t.h>
15434 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15435 instead of sighandler_t.
15436 * stdlib/errno.h (error_t): Move definition to...
15437 * bits/types/error_t.h: ... new header.
15438 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15439 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15440 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15441 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15442 * hurd/hurd.h: Include <bits/types/error_t.h>
15443 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15444 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15445 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15446 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15447 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15448 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15449 * sysdeps/mach/hurd/futimens.c: New file.
15450
15451 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15452
15453 [BZ #22918]
15454 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15455 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15456 * nscd/gai.c (__nss_hosts_database): Readd definition.
15457 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15458 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15459 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15460
15461 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15462
15463 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15464 (ifunc_one): Likewise.
15465
15466 2018-03-01 DJ Delorie <dj@delorie.com>
15467
15468 [BZ #22342]
15469 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15470 key value.
15471
15472 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15473
15474 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15475 `match_pid' parameter.
15476 (td_ta_thr_iter): Update accordingly.
15477
15478 2018-03-01 Florian Weimer <fweimer@redhat.com>
15479
15480 * nptl/Makefile (install-lib-ldscripts): Remove.
15481 (install): Remove rule.
15482 ($(inst_libdir)/libpthread.so): Likewise.
15483
15484 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15485
15486 [BZ #22896]
15487 * localedata/locales/an_ES: update month and day names,
15488 improve d_fmt, improve postal_fmt, add country_post,
15489 add country_isbn
15490
15491 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15492
15493 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15494 Ukrainian instead of Bulgarian.
15495
15496 2018-03-01 Florian Weimer <fweimer@redhat.com>
15497
15498 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15499 reference.
15500
15501 2018-03-01 Florian Weimer <fweimer@redhat.com>
15502
15503 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15504 * nptl/Makefile (routines): Add pthread_atfork.
15505 (static-only-routines): Set to pthread_atfork.
15506 (libpthread-routines): Remove pthread_atfork.
15507 (libpthread-static-only-routines): Remove.
15508 (install): Update comment.
15509 (libpthread.so): Do not install libpthread_nonshared.a.
15510 (tests): Do not link with libpthread_nonshared.a.
15511 (generated): Remove libpthread_nonshared.a.
15512 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15513 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15514 with libpthread_nonshared.a.
15515
15516 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15517
15518 [BZ #22902]
15519 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15520 (libc_feholdexcept_setroundf128): New macro.
15521 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15522
15523 [BZ #15105]
15524 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15525 libc_hidden_def.
15526 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15527 * include/inttypes.h: New file.
15528
15529 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15530
15531 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15532 -Os in two more places.
15533
15534 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15535
15536 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15537 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15538 be sorted correctly at the moment because of a bug.
15539
15540 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15541
15542 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15543 treat ñ as a primary different character, sync the collation
15544 for Spanish with CLDR.
15545 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15546 * localedata/Makefile: Add new test files.
15547 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15548 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15549 collation order.
15550 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15551 * localedata/am_ET.UTF-8.in: New test file.
15552 * localedata/az_AZ.UTF-8.in: Likewise.
15553 * localedata/be_BY.UTF-8.in: Likewise.
15554 * localedata/ber_DZ.UTF-8.in: Likewise.
15555 * localedata/ber_MA.UTF-8.in: Likewise.
15556 * localedata/bg_BG.UTF-8.in: Likewise.
15557 * localedata/br_FR.UTF-8.in: Likewise.
15558 * localedata/cmn_TW.UTF-8.in: Likewise.
15559 * localedata/crh_UA.UTF-8.in: Likewise.
15560 * localedata/csb_PL.UTF-8.in: Likewise.
15561 * localedata/cv_RU.UTF-8.in: Likewise.
15562 * localedata/cy_GB.UTF-8.in: Likewise.
15563 * localedata/dz_BT.UTF-8.in: Likewise.
15564 * localedata/eo.UTF-8.in: Likewise.
15565 * localedata/es_ES.UTF-8.in: Likewise.
15566 * localedata/fa_IR.UTF-8.in: Likewise.
15567 * localedata/fi_FI.UTF-8.in: Likewise.
15568 * localedata/fil_PH.UTF-8.in: Likewise.
15569 * localedata/fur_IT.UTF-8.in: Likewise.
15570 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15571 * localedata/ha_NG.UTF-8.in: Likewise.
15572 * localedata/ig_NG.UTF-8.in: Likewise.
15573 * localedata/ik_CA.UTF-8.in: Likewise.
15574 * localedata/kk_KZ.UTF-8.in: Likewise.
15575 * localedata/ku_TR.UTF-8.in: Likewise.
15576 * localedata/ky_KG.UTF-8.in: Likewise.
15577 * localedata/ln_CD.UTF-8.in: Likewise.
15578 * localedata/mi_NZ.UTF-8.in: Likewise.
15579 * localedata/ml_IN.UTF-8.in: Likewise.
15580 * localedata/mn_MN.UTF-8.in: Likewise.
15581 * localedata/mr_IN.UTF-8.in: Likewise.
15582 * localedata/mt_MT.UTF-8.in: Likewise.
15583 * localedata/nb_NO.UTF-8.in: Likewise.
15584 * localedata/om_KE.UTF-8.in: Likewise.
15585 * localedata/os_RU.UTF-8.in: Likewise.
15586 * localedata/ps_AF.UTF-8.in: Likewise.
15587 * localedata/ro_RO.UTF-8.in: Likewise.
15588 * localedata/ru_RU.UTF-8.in: Likewise.
15589 * localedata/sc_IT.UTF-8.in: Likewise.
15590 * localedata/se_NO.UTF-8.in: Likewise.
15591 * localedata/sq_AL.UTF-8.in: Likewise.
15592 * localedata/sv_SE.UTF-8.in: Likewise.
15593 * localedata/szl_PL.UTF-8.in: Likewise.
15594 * localedata/tg_TJ.UTF-8.in: Likewise.
15595 * localedata/tk_TM.UTF-8.in: Likewise.
15596 * localedata/tt_RU.UTF-8.in: Likewise.
15597 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15598 * localedata/ug_CN.UTF-8.in: Likewise.
15599 * localedata/uz_UZ.UTF-8.in: Likewise.
15600 * localedata/vi_VN.UTF-8.in: Likewise.
15601 * localedata/yi_US.UTF-8.in: Likewise.
15602 * localedata/yo_NG.UTF-8.in: Likewise.
15603 * localedata/zh_CN.UTF-8.in: Likewise.
15604 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15605 file and fix bugs in the collation.
15606 * localedata/locales/az_AZ: Likewise.
15607 * localedata/locales/be_BY: Likewise.
15608 * localedata/locales/ber_DZ: Likewise.
15609 * localedata/locales/ber_MA: Likewise.
15610 * localedata/locales/bg_BG: Likewise.
15611 * localedata/locales/br_FR: Likewise.
15612 * localedata/locales/br_FR@euro: Likewise.
15613 * localedata/locales/ca_ES: Likewise.
15614 * localedata/locales/cns11643_stroke: Likewise.
15615 * localedata/locales/crh_UA: Likewise.
15616 * localedata/locales/cs_CZ: Likewise.
15617 * localedata/locales/csb_PL: Likewise.
15618 * localedata/locales/cv_RU: Likewise.
15619 * localedata/locales/cy_GB: Likewise.
15620 * localedata/locales/da_DK: Likewise.
15621 * localedata/locales/dz_BT: Likewise.
15622 * localedata/locales/en_CA: Likewise.
15623 * localedata/locales/eo: Likewise.
15624 * localedata/locales/es_CU: Likewise.
15625 * localedata/locales/es_EC: Likewise.
15626 * localedata/locales/es_ES: Likewise.
15627 * localedata/locales/es_US: Likewise.
15628 * localedata/locales/et_EE: Likewise.
15629 * localedata/locales/fa_IR: Likewise.
15630 * localedata/locales/fi_FI: Likewise.
15631 * localedata/locales/fil_PH: Likewise.
15632 * localedata/locales/fur_IT: Likewise.
15633 * localedata/locales/gez_ER@abegede: Likewise.
15634 * localedata/locales/ha_NG: Likewise.
15635 * localedata/locales/hr_HR: Likewise.
15636 * localedata/locales/hsb_DE: Likewise.
15637 * localedata/locales/hu_HU: Likewise.
15638 * localedata/locales/ig_NG: Likewise.
15639 * localedata/locales/ik_CA: Likewise.
15640 * localedata/locales/is_IS: Likewise.
15641 * localedata/locales/iso14651_t1_pinyin: Likewise.
15642 * localedata/locales/kk_KZ: Likewise.
15643 * localedata/locales/ku_TR: Likewise.
15644 * localedata/locales/ky_KG: Likewise.
15645 * localedata/locales/ln_CD: Likewise.
15646 * localedata/locales/lt_LT: Likewise.
15647 * localedata/locales/lv_LV: Likewise.
15648 * localedata/locales/mi_NZ: Likewise.
15649 * localedata/locales/ml_IN: Likewise.
15650 * localedata/locales/mn_MN: Likewise.
15651 * localedata/locales/mr_IN: Likewise.
15652 * localedata/locales/mt_MT: Likewise.
15653 * localedata/locales/nb_NO: Likewise.
15654 * localedata/locales/om_KE: Likewise.
15655 * localedata/locales/os_RU: Likewise.
15656 * localedata/locales/pl_PL: Likewise.
15657 * localedata/locales/ps_AF: Likewise.
15658 * localedata/locales/ro_RO: Likewise.
15659 * localedata/locales/ru_RU: Likewise.
15660 * localedata/locales/ru_UA: Likewise.
15661 * localedata/locales/sc_IT: Likewise.
15662 * localedata/locales/se_NO: Likewise.
15663 * localedata/locales/si_LK: Likewise.
15664 * localedata/locales/sq_AL: Likewise.
15665 * localedata/locales/sv_FI: Likewise.
15666 * localedata/locales/sv_FI@euro: Likewise.
15667 * localedata/locales/sv_SE: Likewise.
15668 * localedata/locales/szl_PL: Likewise.
15669 * localedata/locales/tg_TJ: Likewise.
15670 * localedata/locales/ti_ER: Likewise.
15671 * localedata/locales/tk_TM: Likewise.
15672 * localedata/locales/tl_PH: Likewise.
15673 * localedata/locales/tr_TR: Likewise.
15674 * localedata/locales/tt_RU: Likewise.
15675 * localedata/locales/tt_RU@iqtelif: Likewise.
15676 * localedata/locales/ug_CN: Likewise.
15677 * localedata/locales/uk_UA: Likewise.
15678 * localedata/locales/uz_UZ: Likewise.
15679 * localedata/locales/uz_UZ@cyrillic: Likewise.
15680 * localedata/locales/vi_VN: Likewise.
15681 * localedata/locales/yi_US: Likewise.
15682 * localedata/locales/yo_NG: Likewise.
15683
15684 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15685
15686 * gen-locales.mk: Make test files which contain @ modifiers in their
15687 name work.
15688 * localedata/gen-locale.sh: Likewise.
15689
15690 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15691
15692 * posix/tst-fnmatch.input: Fix results for range expressions
15693 for non C locales.
15694 * posix/tst-regexloc.c: Do not use a range expression for
15695 de_DE.ISO-8859-1 locale.
15696
15697 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15698
15699 * posix/bug-regex5.c: Fix test case because with the new
15700 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15701 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15702 file.
15703
15704 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15705
15706 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15707 downloaded from ISO, the collation order of @-. and space has changed.
15708 Therefore, this test file needed to be adapted.
15709 * localedata/fr_CA.UTF-8.in: Likewise.
15710 * localedata/fr_FR.UTF-8.in: Likewise.
15711 * localedata/uk_UA.UTF-8.in: Likewise.
15712
15713 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15714
15715 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15716 order of ȥ in the new iso14651_t1_common file.
15717 * localedata/pl_PL.UTF-8.in: Likewise.
15718
15719 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15720
15721 * localedata/locales/iso14651_t1_common: Add sections for various
15722 scripts to the iso14651_t1_common file.
15723
15724 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15725
15726 * localedata/locales/iso14651_t1_common: Use the code point of a
15727 character in the fourth collation level instead of IGNORE for all
15728 entries which have IGNORE on all 4 levels.
15729
15730 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15731
15732 * localedata/locales/iso14651_t1_common: Add some convenient collation
15733 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15734 rules similar to those in CLDR.
15735
15736 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15737
15738 * localedata/locales/iso14651_t1_common: The new version of this
15739 file downloaded from ISO contained several syntax errors which
15740 are fixed by this patch.
15741
15742 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15743
15744 * localedata/locales/iso14651_t1_common: replace all <U.....>
15745 with <U000.....> because glibc understands only 4 digit or 8 digit
15746
15747 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15748
15749 * localedata/locales/iso14651_t1_common: Necessary changes
15750 to make the file downloaded from ISO usable by glibc.
15751
15752 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15753
15754 [BZ #14095]
15755 * localedata/locales/iso14651_t1_common: Update file to
15756 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15757
15758 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15759
15760 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15761 of <nptl/pthreadP.h>
15762 (thread_attr_compare): Move function to...
15763 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15764 * sysdeps/nptl/timer_routines.h: ... new header.
15765 * sysdeps/mach/hurd/gai_misc.h: New file.
15766
15767 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15768
15769 * string/strcoll_l.c: Include <libc-diag.h>.
15770 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15771 declarations of seq1 and seq2.
15772
15773 [BZ #15105]
15774 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15775 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15776
15777 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15778
15779 [BZ #22433]
15780 [BZ #22807]
15781 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15782 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15783 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15784 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15785 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15786 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15787
15788 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15789
15790 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15791 macros used in __ptrace_request.
15792
15793 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 [BZ #22792]
15796 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15797 to $(CC).
15798 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15799 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15800 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15801 <tcb-offsets.h>.
15802
15803 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15804
15805 [BZ #15105]
15806 * ctype/ctype.c (tolower): Use libc_hidden_def.
15807 (toupper): Likewise.
15808 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15809 [!_ISOMAC] (toupper): Likewise.
15810
15811 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15812
15813 * localedata/Makefile: Remove --quiet argument when
15814 installing locales
15815
15816 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15817
15818 [BZ #17438]
15819 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15820 in d_fmt.
15821 * localedata/locales/pt_PT (LC_TIME): likewise
15822
15823 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15824
15825 [BZ #22646]
15826 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15827 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15828 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15829
15830 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15831
15832 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15833
15834 * nptl/Makefile (routines): Remove unregister-atfork.
15835 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15836 (fork_handler_alloc): Remove function.
15837 (fork_handlers, fork_handler_init): New variables.
15838 (__fork_lock): Rename to atfork_lock.
15839 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15840 to use a dynamic array to add/remove atfork handlers.
15841 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15842 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15843 Remove declaration.
15844 (fork_handler): Remove next, refcntr, and need_signal member.
15845 (__run_fork_handler_type): New enum.
15846 (__run_fork_handlers): New prototype.
15847 * nptl/register-atfork.c: Remove file.
15848 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15849
15850 * sysdeps/nptl/nptl-signals.h: Move to ...
15851 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15852 comments.
15853 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15854 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15855 unnecessary check for SIGTIMER.
15856 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15857 remove unnecessary removal of SIGTIMER.
15858 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15859 include-signals.h rename.
15860 * nptl/pthreadP.h: Likewise.
15861 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15862 __is_internal_signal instead of __nptl_is_internal_signal.
15863
15864 2018-02-22 Andrew Waterman <andrew@sifive.com>
15865
15866 [BZ # 22884]
15867 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15868 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15869 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15870 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15871
15872 2018-02-22 DJ Delorie <dj@delorie.com>
15873
15874 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15875
15876 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15877
15878 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15879 do_misaligned, not misaligned8.
15880
15881 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15882
15883 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15884 Add memcpy_thunderx2.
15885 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15886 Increment to 4.
15887 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15888 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15889 and IS_THUNDERX2PA checks.
15890 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15891 Use macro to set name appropriately.
15892 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15893 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15894 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15895 New macro.
15896 (IS_THUNDERX2): New macro.
15897
15898 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15899
15900 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15901
15902 2018-02-21 Zack Weinberg <zackw@panix.com>
15903
15904 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15905 Define here, unconditionally.
15906 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15907 * libio/libioP.h: Remove #if 0 blocks.
15908 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15909 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15910 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15911
15912 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15913 Assume weak_alias is always defined.
15914
15915 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15916 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15917 Remove #if 0 and #ifdef TODO blocks.
15918 Assume text_set_element is always defined.
15919
15920 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15921 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15922 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15923
15924 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15925 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15926 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15927 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15928 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15929 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15930 Reformat bit flags for _flags field to make occupancy clearer.
15931 Update commentary.
15932 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15933 Keep definitions consistent with those in libio/libio.h.
15934
15935 * libio/libio.h (_IO_file_flags): Remove macro.
15936 All uses changed to _flags.
15937
15938 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15939 (__HAVE_COLUMN, _IO_BE): Don't define.
15940 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15941 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15942 * libio/libioP.h (EOF): Don't define.
15943 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15944 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15945 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15946 testing _IO_UNIFIED_JUMPTABLES.
15947
15948 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15949 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15950 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15951 (_IO_size_t): Delete; all uses changed to size_t.
15952 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15953 (_IO_off_t): Delete; all uses changed to off_t.
15954 (_IO_off64_t): Delete; all uses changed to off64_t.
15955 (_IO_pid_t): Delete; all uses changed to pid_t.
15956 (_IO_uid_t): Delete; all uses changed to uid_t.
15957 (_IO_wint_t): Delete; all uses changed to wint_t.
15958 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15959 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15960 (_IO_cookie_io_functions_t): Delete; all uses changed to
15961 cookie_io_functions_t.
15962 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15963 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15964 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15965 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15966
15967 * libio/iofopncook.c: Remove unnecessary forward declarations.
15968 * libio/iolibio.h: Correct outdated commentary.
15969 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15970 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15971 Remove unnecessary casts.
15972 * stdio-common/getline.c: Use _IO_getdelim directly.
15973 Don't redefine ssize_t.
15974 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15975 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15976 Remove outdated comments.
15977 * stdio-common/vfscanf.c: Don't redefine va_list.
15978
15979 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15980 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15981 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15982 which are always true, and __cplusplus, which is always false.
15983
15984 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15985
15986 [BZ #15105]
15987 [BZ #19463]
15988 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15989 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15990 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15991 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15992 libc_hidden_proto.
15993 [!_ISOMAC] (putc_unlocked): Likewise.
15994 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15995 define inline if [__USE_EXTERN_INLINES].
15996 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15997 putc_unlocked.
15998
15999 [BZ #15105]
16000 [BZ #19463]
16001 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
16002 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
16003 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
16004 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
16005 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
16006 getc_unlocked.
16007 * time/tzfile.c (__tzfile_read): Likewise.
16008
16009 2018-02-21 Mike FABIAN <mfabian@redhat.com>
16010
16011 [BZ #22517]
16012 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
16013
16014 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16015
16016 * io/fcntl.h: Fix a typo in a comment.
16017
16018 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16019
16020 [BZ #22862]
16021 * include/features.h: Add _ISOC11_SOURCE to test for whether to
16022 define _DEFAULT_SOURCE.
16023 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
16024
16025 2018-02-21 Florian Weimer <fweimer@redhat.com>
16026
16027 [BZ #20890]
16028 * elf/cache.c (save_cache): Call fsync on temporary file before
16029 renaming it.
16030 (save_aux_cache): Call fdatasync on temporary file before renaming
16031 it.
16032
16033 2018-02-21 Florian Weimer <fweimer@redhat.com>
16034
16035 [BZ #22787]
16036 * include/caller.h: Remove file.
16037 * elf/dl-caller.c: Likewise.
16038 * elf/Makefile (dl-routines): Remove dl-caller.
16039 (shared-only-routines): Do not add dl-caller.
16040 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16041 __check_caller.
16042 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16043 member.
16044 (dl_open_worker): Do not call __check_caller.
16045 (_dl_open): Do not set caller_dl_open member.
16046 * elf/rtld.c (_rtld_global_ro): Do not initialize
16047 _dl_check_caller member.
16048 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16049 _dl_check_caller member.
16050 (_dl_check_caller): Remove declaration.
16051 * sysdeps/unix/sysv/linux/dl-execstack.c
16052 (_dl_make_stack_executable): Do not call __check_caller.
16053
16054 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16055
16056 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16057 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16058
16059 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16060
16061 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16062 description.
16063
16064 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16065
16066 [BZ #16335]
16067 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16068 of 199606L, 200112L, and 200809L.
16069 (_XOPEN_SOURCE): Document special values of 600 and 700.
16070 (_ISOC11_SOURCE): Document macro.
16071 (_ATFILE_SOURCE): Likewise.
16072 (_FORTIFY_SOURCE): Likewise.
16073
16074 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16075
16076 [BZ #15105]
16077 [BZ #19463]
16078 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16079 and define as weak alias of __ferror_unlocked. Use
16080 libc_hidden_weak.
16081 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16082 libc_hidden_proto.
16083 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16084 function if [__USE_EXTERN_INLINES].
16085 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16086 ferror_unlocked.
16087
16088 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16089
16090 [BZ #6889]
16091 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16092
16093 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16094
16095 [BZ #22818]
16096 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16097 the GLIBC_2.1 version.
16098
16099 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16100
16101 [BZ #21508]
16102 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16103 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16104 intl/tst-gettext-de.po from po/de.po by removing the
16105 POT-Creation-Date line.
16106 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16107 ../po/de.po.
16108 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16109 ../po/de.po.
16110
16111 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16112
16113 * mach/Makefile (headers): Add mach/param.h.
16114 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16115 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16116 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16117 (__ptsname_r): Move implementation to...
16118 (__ptsname_internal): ... new function. Add filling the STP
16119 structure.
16120
16121 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16122
16123 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16124 idouble to 1 ULP.
16125
16126 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16127
16128 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16129 syntax.
16130
16131 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16132
16133 * nptl/Makefile (tst-mutex8-ENV): Delete.
16134 * nptl/tst-mutex8.c (check_type):
16135 Add runtime check if mutex will be elided.
16136
16137 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16138
16139 [BZ #20980]
16140 [BZ #21234]
16141 * manual/install.texi (Configuring and compiling): Describe
16142 passing CC and CFLAGS on configure command line, not as
16143 environment variables. Use @code markup on those variables.
16144 Specify what options go in CC and what go in CFLAGS. Note the
16145 requirement to compile with optimization.
16146 * INSTALL: Regenerated.
16147
16148 [BZ #18124]
16149 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16150 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16151 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16152 __sigprocmask instead of sigprocmask.
16153 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16154 Likewise.
16155 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16156 __sigsetjmp and sigprocmask.
16157
16158 [BZ #15105]
16159 * include/argz.h (argz_next): Use libc_hidden_proto.
16160 (__argz_next): Likewise.
16161 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16162 (argz_next): Use libc_hidden_weak.
16163
16164 [BZ #15105]
16165 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16166 libc_hidden_proto.
16167 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16168 libc_hidden_def.
16169
16170 [BZ #15105]
16171 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16172 libc_hidden_proto.
16173 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16174
16175 [BZ #15105]
16176 [BZ #19463]
16177 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16178 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16179 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16180 (__feof_unlocked): New declaration, and inline function if
16181 [__USE_EXTERN_INLINES].
16182 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16183 instead of feof_unlocked.
16184 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16185 * nss/nsswitch.c (nss_parse_file): Likewise.
16186 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16187 Likewise.
16188 * time/getdate.c (__getdate_r): Likewise.
16189 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16190 Define as macro to call __feof_unlocked.
16191
16192 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16193
16194 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16195
16196 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16197
16198 * math/Makefile: Remove mpexp.c and mplog.c
16199 * sysdeps/i386/fpu/mpexp.c: Delete file.
16200 * sysdeps/i386/fpu/mplog.c: Likewise.
16201 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16202 * sysdeps/ia64/fpu/mplog.c: Likewise.
16203 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16204 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16205 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16206 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16207 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16208 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16209 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16210 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16211 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16212 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16213 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16214 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16215 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16216 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16217 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16218 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16219
16220 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16221
16222 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16223
16224 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16225
16226 * sysdeps/sh/libm-test-ulps: Update.
16227
16228 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16229
16230 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16231 idouble to 1 ULP.
16232
16233 2018-02-12 Zack Weinberg <zackw@panix.com>
16234
16235 [BZ #19239]
16236 * posix/sys/types.h: Don't include sys/sysmacros.h.
16237 * misc/sys/sysmacros.h: Remove the conditional deprecation
16238 warnings for the macros defined by this header.
16239
16240 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16241
16242 * manual/probes.texi: Remove slowexp probes.
16243 * math/Makefile: Remove slowexp.
16244 * sysdeps/generic/math_private.h (__slowexp): Remove.
16245 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16246 document error bounds.
16247 * sysdeps/i386/fpu/slowexp.c: Remove.
16248 * sysdeps/ia64/fpu/slowexp.c: Remove.
16249 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16250 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16251 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16252 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16253 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16254 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16255 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16256 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16257 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16258 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16259 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16260
16261 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16262
16263 [BZ #13932]
16264 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16265 * benchtests/pow-inputs: Update comment for slow path cases.
16266 * manual/probes.texi (slowpow_p10): Delete removed probe.
16267 (slowpow_p10): Likewise.
16268 * math/Makefile: Remove halfulp.c and slowpow.c.
16269 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16270 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16271 (__halfulp): Remove.
16272 (__slowpow): Remove.
16273 * sysdeps/i386/fpu/halfulp.c: Delete file.
16274 * sysdeps/i386/fpu/slowpow.c: Likewise.
16275 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16276 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16277 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16278 improve comments and add error analysis.
16279 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16280 (power1): Remove function:
16281 (log1): Remove error argument, add error analysis.
16282 (my_log2): Remove function.
16283 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16284 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16285 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16286 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16287 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16288 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16289 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16290 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16291 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16292 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16293 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16294 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16295 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16296 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16297
16298 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16299
16300 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16301 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16302
16303 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16304
16305 [BZ #22433]
16306 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16307 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16308 and PTRACE_SETHBPREGS.
16309
16310 2018-02-10 Zack Weinberg <zackw@panix.com>
16311
16312 [BZ #22830]
16313 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16314 correctly.
16315 * malloc/tst-malloc-stats-cancellation.c: New test case.
16316 * malloc/Makefile: Add new test case.
16317
16318 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16319
16320 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16321
16322 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16323
16324 * math/Makefile (libm-narrow-fns): Add add.
16325 (libm-test-funcs-narrow): Likewise.
16326 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16327 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16328 * math/gen-auto-libm-tests.c (test_functions): Add add.
16329 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16330 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16331 (NARROW_ADD_TRIVIAL): Likewise.
16332 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16333 macro.
16334 (__daddl): Likewise.
16335 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16336 dadd.
16337 (CFLAGS-nldbl-dadd.c): New variable.
16338 (CFLAGS-nldbl-fadd.c): Likewise.
16339 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16340 __nldbl_daddl.
16341 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16342 prototype.
16343 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16344 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16345 * math/auto-libm-test-in: Add tests of add.
16346 * math/auto-libm-test-out-narrow-add: New generated file.
16347 * math/libm-test-narrow-add.inc: New file.
16348 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16349 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16350 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16351 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16352 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16353 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16354 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16355 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16356 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16357 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16358 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16359 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16360 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16361 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16362 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16363 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16364 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16365 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16366 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16367 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16368 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16369 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16370 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16371 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16372 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16373 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16374 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16375 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16376 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16377 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16378 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16379 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16384 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16385 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16386 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16387 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16388 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16389 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16390 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16391 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16392 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16393 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16394
16395 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16396 (f128-pairs): New variable.
16397 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16398 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16399 to CFLAGS.
16400 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16401 Also make tests add $(f128-loader-link) to gnulib-tests.
16402
16403 2018-02-09 DJ Delorie <dj@redhat.com>
16404
16405 [BZ #22827]
16406 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16407 64-bit ELF type for 64-bit ELF objects.
16408
16409 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16410
16411 * math/libm-test-driver.c (snan_tests_arg): New variable.
16412 * math/libm-test-support.h (snan_tests_arg): New declaration.
16413 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16414
16415 * math/Makefile (test-type-pairs): New variable.
16416 (test-type-pairs-f64xf128-yes): Likewise.
16417 (tests): Add test-narrow-macros.
16418 (libm-test-funcs-narrow): New variable.
16419 (libm-test-c-narrow): Likewise.
16420 (generated): Add $(libm-test-c-narrow).
16421 (libm-tests-base-narrow): New variable.
16422 (libm-tests-narrow): Likewise.
16423 (libm-tests): Add $(libm-tests-narrow).
16424 (libm-tests-for-type): Handle $(libm-tests-narrow).
16425 (libm-test-c-narrow-obj): New variable.
16426 ($(libm-test-c-narrow-obj)): New rule.
16427 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16428 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16429 $(o-iterator) to set dependencies and CFLAGS.
16430 * math/gen-auto-libm-tests.c: Document use for narrowing
16431 functions.
16432 (output_for_one_input_case): Take argument NARROW.
16433 (generate_output): Likewise. Update call to
16434 output_for_one_input_case.
16435 (main): Take --narrow option. Update call to generate_output.
16436 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16437 (apply_lit): Update call to _apply_lit.
16438 (apply_arglit): New function.
16439 (parse_args): Handle "a" arguments.
16440 (parse_auto_input): Handle format names using ":".
16441 * math/README.libm-test: Document "a" parameter type.
16442 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16443 (ARG_TYPE_TRUE_MIN): Likewise.
16444 (ARG_TYPE_MAX): Likwise.
16445 (ARG_MIN_EXP): Likewise.
16446 (ARG_MAX_EXP): Likewise.
16447 (ARG_MANT_DIG): Likewise.
16448 (TEST_COND_arg_ibm128): Likewise.
16449 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16450 (TEST_COND_arg_fmt): New macro.
16451 (init_max_error): Update prototype.
16452 * math/libm-test-support.c (test_ibm128): New variable.
16453 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16454 instead of using [TEST_COND_ibm128] conditional.
16455 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16456 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16457 [TEST_NARROW] (TEST_MSG): New definition.
16458 (arg_plus_zero): New macro.
16459 (arg_minus_zero): Likewise.
16460 (arg_plus_infty): Likewise.
16461 (arg_minus_infty): Likewise.
16462 (arg_qnan_value_pl): Likewise.
16463 (arg_qnan_value): Likewise.
16464 (arg_snan_value_pl): Likewise.
16465 (arg_snan_value): Likewise.
16466 (arg_max_value): Likewise.
16467 (arg_min_value): Likewise.
16468 (arg_min_subnorm_value): Likewise.
16469 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16470 (RUN_TEST_LOOP_aa_f): New macro.
16471 (TEST_SUFF): New macro.
16472 (TEST_SUFF_STR): Likewise.
16473 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16474 (TEST_COND_any_ibm128): New macro.
16475 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16476 this_func. Update call to init_max_error.
16477 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16478 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16479 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16480 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16481 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16482 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16483 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16484 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16485 * math/test-math-vector.h (TEST_NARROW): Likewise.
16486 * math/test-arg-double.h: New file.
16487 * math/test-arg-float128.h: Likewise.
16488 * math/test-arg-float32x.h: Likewise.
16489 * math/test-arg-float64.h: Likewise.
16490 * math/test-arg-float64x.h: Likewise.
16491 * math/test-arg-ldouble.h: Likewise.
16492 * math/test-math-narrow.h: Likewise.
16493 * math/test-narrow-macros.c: Likewise.
16494 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16495 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16496 test-narrow-macros-ldbl-64.
16497 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16498
16499 * math/bits/mathcalls-narrow.h: New file.
16500 * include/bits/mathcalls-narrow.h: Likewise.
16501 * math/math-narrow.h: Likewise.
16502 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16503 (__MATHCALL_NARROW_ARGS_2): Likewise.
16504 (__MATHCALL_NARROW_ARGS_3): Likewise.
16505 (__MATHCALL_NARROW_NORMAL): Likewise.
16506 (__MATHCALL_NARROW_REDIR): Likewise.
16507 (__MATHCALL_NARROW): Likewise.
16508 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16509 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16510 defined.
16511 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16512 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16513 (libm-narrow-fns): New variable.
16514 (libm-narrow-types-basic): Likewise.
16515 (libm-narrow-types-ldouble-yes): Likewise.
16516 (libm-narrow-types-float128-yes): Likewise.
16517 (libm-narrow-types-float128-alias-yes): Likewise.
16518 (libm-narrow-types): Likewise.
16519 (libm-routines): Add narrowing functions.
16520 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16521 (libc_feholdexcept_setroundf128): New macro.
16522 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16523 * sysdeps/ieee754/float128/float128_private.h: Include
16524 <math/math-narrow.h>.
16525 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16526 Undefine and redefine.
16527 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16528 (libm_alias_float_ldouble): Undefine and redefine.
16529 (libm_alias_double_ldouble): Likewise.
16530
16531 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16532
16533 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16534
16535 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16536 FPCR/FPSR.
16537
16538 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16539
16540 * manual/creature.texi: Convert references to gcc.info to gcc.
16541 * manual/stdio.texi: Likewise.
16542 * manual/string.texi: Likewise.
16543
16544 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16545
16546 [BZ #17979]
16547 * posix/bits/types.h (__int_least8_t): New typedef.
16548 (__uint_least8_t): Likewise.
16549 (__int_least16_t): Likewise.
16550 (__uint_least16_t): Likewise.
16551 (__int_least32_t): Likewise.
16552 (__uint_least32_t): Likewise.
16553 (__int_least64_t): Likewise.
16554 (__uint_least64_t): Likewise.
16555 * sysdeps/generic/stdint.h (int_least8_t): Define using
16556 __int_least8_t.
16557 (int_least16_t): Define using __int_least16_t.
16558 (int_least32_t): Define using __int_least32_t.
16559 (int_least64_t): Define using __int_least64_t.
16560 (uint_least8_t): Define using __uint_least8_t.
16561 (uint_least16_t): Define using __uint_least16_t.
16562 (uint_least32_t): Define using __uint_least32_t.
16563 (uint_least64_t): Define using __uint_least64_t.
16564 * wcsmbs/uchar.h: Include <bits/types.h>.
16565 (char16_t): Define using __uint_least16_t conditional only on
16566 [!__USE_ISOCXX11].
16567 (char32_t): Define using __uint_least32_t conditional only on
16568 [!__USE_ISOCXX11].
16569 * wcsmbs/test-char-types.c: New file.
16570 * wcsmbs/Makefile (tests): Add test-char-types.
16571
16572 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16573 version to 4.0.1.
16574
16575 2018-02-07 Zack Weinberg <zackw@panix.com>
16576
16577 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16578 Delete all contents except for definitions of _G_HAVE_MMAP and
16579 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16580 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16581 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16582 change as above.
16583
16584 * libio/libio.h: Don't include bits/_G_config.h here.
16585 Include stddef.h with __need_wchar_t defined. Include
16586 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16587 Define _IO_iconv_t here, directly.
16588 Don't define _IO_HAVE_ST_BLKSIZE.
16589 * libio/libioP.h: Include _G_config.h here. Move include of
16590 shlib-compat.h up with rest of includes. Simplify conditionals
16591 controlling definition of _IO_JUMPS_OFFSET.
16592
16593 * csu/init.c: Remove always-true #if around entire file.
16594 Don't include stdio.h. Set _IO_stdin_used to hardwired
16595 constant 0x20001, and update commentary.
16596 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16597 Replace all uses of _G_va_list with __gnuc_va_list.
16598 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16599 instead of #if _IO_HAVE_ST_BLKSIZE.
16600 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16601 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16602 not #ifdef.
16603
16604 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16605 multiple-include guard to match.
16606 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16607 into this file.
16608 Remove preprocessor conditionals that are always true and/or
16609 redundant to other preprocessor conditionals in the same nest.
16610 Include shlib-compat.h unconditionally.
16611 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16612 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16613 defined after including stdio.h.
16614 Use __BEGIN_DECLS/__END_DECLS.
16615
16616 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16617 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16618 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16619
16620 2018-02-07 Zack Weinberg <zackw@panix.com>
16621
16622 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16623 New single-type headers split from _G_config.h.
16624 * libio/bits/types/cookie_io_functions_t.h
16625 * libio/bits/types/struct_FILE.h
16626 New single-type headers split from libio.h.
16627
16628 * libio/Makefile: Install the above new headers. Don't install
16629 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16630 bits/libio-ldbl.h.
16631 * libio/_G_config.h, libio/libio.h: Delete file.
16632
16633 * libio/bits/libio.h: Remove improper-inclusion guard.
16634 Include stdio.h and don't repeat anything that it does.
16635 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16636 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16637 __io_read_fn as cookie_read_function_t,
16638 __io_write_fn as cookie_write_function_t,
16639 __io_seek_fn as cookie_seek_function_t,
16640 __io_close_fn as cookie_close_function_t,
16641 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16642 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16643 here, in the "compatibility defines" section. Remove an #if 0
16644 block. Use the "body" macros from bits/types/struct_FILE.h to
16645 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16646 and _IO_ferror_unlocked.
16647 Move prototypes of __uflow and __overflow...
16648
16649 * libio/stdio.h: ...here. Don't include bits/libio.h.
16650 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16651 directly from stdarg.h. Include bits/types/__fpos_t.h,
16652 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16653 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16654 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16655 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16656 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16657 __ssize_t, not _IO_ssize_t. Unconditionally define
16658 BUFSIZ as 8192 and EOF as (-1).
16659
16660 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16661 macros from bits/types/struct_FILE.h instead of _IO_* macros
16662 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16663 instead of _IO_ssize_t.
16664 * libio/bits/stdio2.h: Similarly.
16665
16666 * libio/iolibio.h: Add multiple-include guard.
16667 Include bits/libio.h after stdio.h.
16668 * libio/libioP.h: Add multiple-include guard.
16669 Include stdio.h and bits/libio.h before iolibio.h.
16670
16671 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16672 * include/bits/types/cookie_io_functions_t.h
16673 * include/bits/types/struct_FILE.h: New wrappers.
16674
16675 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16676 Get definitions of _G_fpos_t and _G_fpos64_t from
16677 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16678 respectively. Remove improper-inclusion guards.
16679
16680 * conform/data/stdio.h-data: Update expectations of va_list.
16681 * scripts/check-installed-headers.sh: Remove special case for
16682 libio.h and _G_config.h.
16683
16684 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16685
16686 [BZ #15105]
16687 [BZ #19463]
16688 * include/sys/sysmacros.h [!_ISOMAC]
16689 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16690 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16691 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16692 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16693 libc_hidden_proto.
16694 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16695 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16696 Likewise.
16697 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16698 Undefine and redefine to add use __gnu_dev_ prefix.
16699 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16700 Likewise.
16701 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16702 and define as hidden inline function.
16703 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16704 Likewise.
16705 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16706 Likewise.
16707 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16708 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16709 (gnu_dev_minor): Likewise.
16710 (gnu_dev_makedev): Likewise.
16711 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16712 makedev.
16713 * posix/wordexp.c (exec_comm_child): Likewise.
16714 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16715 instead of minor and __gnu_dev_major instead of major.
16716 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16717 __gnu_dev_major instead of major.
16718 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16719 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16720 instead of gnu_dev_minor.
16721 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16722 (SLAVE_P): Likewise.
16723 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16724 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16725 instead of major.
16726
16727 [BZ #21313]
16728 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16729 in another place.
16730 * locale/weightwc.h (findidx): Likewise.
16731
16732 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16733
16734 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16735 (slowlog_inexact): Likewise
16736 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16737 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16738
16739 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16740
16741 [BZ #22797]
16742 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16743 missing second underscore to parameter name.
16744
16745 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16746
16747 [BZ #14508]
16748 [BZ #15512]
16749 [BZ #17082]
16750 [BZ #20530]
16751 * bits/byteswap.h: Update file comment. Do not include
16752 <bits/byteswap-16.h>.
16753 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16754 constant.
16755 (__bswap_16): Define as inline function.
16756 (__bswap_constant_32): Reformat definition.
16757 (__bswap_32): Always define as inline function, not macro, using
16758 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16759 otherwise __bswap_constant_32.
16760 (__bswap_constant_64): Reformat definition. Do not use
16761 __extension__ here.
16762 (__bswap_64): Always define as inline function, not macro. Use
16763 __extension__ on function definition. Use __builtin_bswap64 if
16764 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16765 * string/test-endian-file-scope.c: New file.
16766 * string/test-endian-sign-conversion.c: Likewise.
16767 * string/Makefile (headers): Remove bits/byteswap-16.h.
16768 (tests): Add test-endian-file-scope and
16769 test-endian-sign-conversion.
16770 (CFLAGS-test-endian-sign-conversion.c): New variable.
16771 * bits/byteswap-16.h: Remove file.
16772 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16773 * sysdeps/ia64/bits/byteswap.h: Likewise.
16774 * sysdeps/m68k/bits/byteswap.h: Likewise.
16775 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16776 * sysdeps/s390/bits/byteswap.h: Likewise.
16777 * sysdeps/tile/bits/byteswap.h: Likewise.
16778 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16779 * sysdeps/x86/bits/byteswap.h: Likewise.
16780
16781 [BZ #17721]
16782 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16783 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16784 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16785 199901L] (__restrict): Define to restrict.
16786
16787 [BZ #19667]
16788 * string/testcopy.c: Include <support/support.h>. Do not include
16789 <malloc.h>. Use <support/test-driver.c>.
16790 (main): Rename to do_test. Make static. Use xmalloc instead of
16791 malloc.
16792
16793 [BZ #13575]
16794 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16795 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16796 (SSIZE_MAX): Define to INT_MAX.
16797 * posix/test-ssize-max.c: New file.
16798 * posix/Makefile (tests): Add test-ssize-max.
16799
16800 [BZ #19668]
16801 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16802 <support/support.h>. Do not include <malloc.h>.
16803 (query_auxv): Use xmalloc instead of malloc.
16804
16805 [BZ #14553]
16806 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16807 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16808 instead of loff_t.
16809
16810 2018-02-06 Florian Weimer <fweimer@redhat.com>
16811
16812 [BZ #18023]
16813 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16814 Use scratch_buffer instead of extend_alloca.
16815
16816 2018-02-06 Zack Weinberg <zackw@panix.com>
16817
16818 * libio/stdio.h: Don't define getc or putc as macros.
16819 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16820 not _IO_getc and _IO_putc.
16821
16822 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16823 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16824
16825 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16826
16827 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16828 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16829
16830 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16831
16832 [BZ #14890]
16833 * elf/elf.h (NT_PRFPREG): New macro.
16834 (NT_S390_VXRS_LOW): Likewise.
16835 (NT_S390_VXRS_HIGH): Likewise.
16836 (NT_S390_GS_CB): Likewise.
16837 (NT_S390_GS_BC): Likewise.
16838 (NT_S390_RI_CB): Likewise.
16839
16840 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16841 (MAP_SYNC): New macro.
16842 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16843 Likewise.
16844 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16845 (MAP_SYNC): Likewise.
16846 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16847 (MAP_SYNC): Likewise.
16848 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16849 (MAP_SYNC): Likewise.
16850 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16851 (MAP_SYNC): Likewise.
16852 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16853 (MAP_SYNC): Likewise.
16854 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16855 (MAP_SYNC): Likewise.
16856 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16857 Likewise.
16858 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16859 Likewise.
16860
16861 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16862 (MAP_SHARED_VALIDATE): New macro.
16863 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16864 (MAP_SHARED_VALIDATE): Likewise.
16865
16866 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16867
16868 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16869 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16870 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16871
16872 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16873
16874 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16875 (DT_NUM): Updated to 35.
16876
16877 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16878
16879 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16880 __builtin_expect with __glibc_likely and __glibc_unlikely.
16881 (elf_machine_rela): Likewise.
16882 (elf_machine_lazy_rel): Likewise.
16883
16884 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16885
16886 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16887 __builtin_expect with __glibc_likely and __glibc_unlikely.
16888 (elf_machine_lazy_rel): Likewise.
16889
16890 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16891
16892 [BZ #22638]
16893 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16894 SHARED.
16895 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16896
16897 2018-02-05 Andreas Schwab <schwab@suse.de>
16898
16899 [BZ #22761]
16900 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16901 string.
16902
16903 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16904
16905 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16906 not check against PTHREAD_STACK_MIN.
16907
16908 2018-02-02 Sean McKean <smckean83@gmail.com>
16909
16910 [BZ #22735]
16911 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16912
16913 2018-02-02 Florian Weimer <fweimer@redhat.com>
16914
16915 [BZ #22753]
16916 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16917 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16918 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16919 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16920 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16921 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16922 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16923 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16924 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16925 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16926 * misc/tst-preadvwritev2.c (do_test): Call it.
16927 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16928
16929 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16930
16931 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16932
16933 * benchtests/bench-memcmp.c: Print json instead of plain text.
16934
16935 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16936 every test run.
16937
16938 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16939
16940 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16941 version to 4.15.
16942 (s390_sthyi): New syscall.
16943
16944 * sysdeps/generic/ldbl-classify-compat.h: New file.
16945 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16946 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16947 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16948 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16949 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16950 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16951 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16952 <ldbl-classify-compat.h>.
16953 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16954 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16955 <ldbl-classify-compat.h>.
16956 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16957 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16958 <ldbl-classify-compat.h>.
16959 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16960 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16961 <ldbl-classify-compat.h>.
16962 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16963 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16964 <ldbl-classify-compat.h>.
16965 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16966 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16967 <ldbl-classify-compat.h>.
16968 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16969 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16970 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16971 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16972 * sysdeps/microblaze/math_private.h: Likewise.
16973 * sysdeps/nios2/math_private.h: Likewise.
16974 * sysdeps/sh/math_private.h: Likewise.
16975
16976 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16977 * sysdeps/m68k/coldfire/math_private.h: ... here.
16978 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16979 * sysdeps/tile/math_private.h: Likewise.
16980 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16981 Remove macro.
16982 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16983 Likewise.
16984
16985 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16986 Remove macro.
16987 (libc_fetestexcept): Likewise.
16988 (libc_feupdateenv_test): Likewise.
16989 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16990 (libc_fetestexcept): Likewise.
16991 (libc_feupdateenv_test): Likewise.
16992 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16993 (libc_fetestexcept): Likewise.
16994 (libc_feupdateenv_test): Likewise.
16995 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16996 (libc_fetestexcept): Likewise.
16997 (libc_feupdateenv_test): Likewise.
16998
16999 * sysdeps/generic/math_private.h
17000 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
17001 New inline function.
17002 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
17003 Likewise.
17004
17005 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
17006 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
17007 * sysdeps/generic/math_private.h
17008 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
17009 inline function.
17010 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
17011 Likewise.
17012 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
17013 Likewise.
17014 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
17015 Likewise.
17016 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
17017 Likewise.
17018 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
17019 Likewise.
17020 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
17021 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
17022 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
17023 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
17024 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
17025 (__fegetenv): Likewise.
17026 (fesetenv): Likewise.
17027 (__fesetenv): Likewise.
17028 (feupdateenv): Likewise.
17029 (__feupdateenv): Likewise.
17030 (fegetround): Likewise.
17031 (__fegetround): Likewise.
17032 (fesetround): Likewise.
17033 (__fesetround): Likewise.
17034
17035 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17036 (feraiseexcept): New macro.
17037 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17038 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17039 Remove macro.
17040 (__feraiseexcept): Likewise.
17041 (feclearexcept): Likewise.
17042 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17043 (__feraiseexcept): Likewise.
17044 (feclearexcept): Likewise.
17045 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17046 (__feraiseexcept): Likewise.
17047 (feclearexcept): Likewise.
17048 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17049 (__feraiseexcept): Likewise.
17050 (feclearexcept): Likewise.
17051 (fetestexcept): Likewise.
17052
17053 * sysdeps/m68k/coldfire/math-tests.h: New file.
17054
17055 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17056 * sysdeps/m68k/bits/fenv.h: ... here.
17057 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17058 not define.
17059 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17060 Likewise.
17061 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17062 Likewise.
17063 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17064 Likewise.
17065 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17066 Likewise.
17067 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17068 Define to 0.
17069 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17070 (__FE_UNDEFINED): New enum constant.
17071 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17072 Do not define.
17073 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17074 Likewise.
17075 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17076 Likewise.
17077 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17078 to match generic bits/fenv.h.
17079 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17080 Do not define.
17081
17082 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17083 packed on bits.
17084 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17085 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17086 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17087 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17088
17089 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17090 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17091 Joseph Myers <joseph@codesourcery.com>
17092
17093 [BZ #21314]
17094 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17095 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17096 computation using c.
17097 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17098 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17099 computation using c.
17100
17101 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17102
17103 * version.h (RELEASE): Set to "development".
17104 (VERSION): Set to "2.27.9000".
17105 * NEWS (2.28): New section.
17106
17107 * version.h (RELEASE): Set to "stable".
17108 (VERSION): Set to "2.27".
17109 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17110
17111 * NEWS: Add the list of bugs fixed in 2.27.
17112
17113 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17114
17115 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17116 against PTHREAD_STACK_MIN.
17117
17118 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17119
17120 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17121 New entries.
17122 (Rafal Luzynski, Andreas Schwab): Update.
17123
17124 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17125
17126 [BZ #10871]
17127 * NEWS: List the languages which actually use the alternative
17128 months feature in this release. Also explain that "alt_mon" and
17129 "ab_alt_mon" are optional.
17130
17131 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17132
17133 [BZ #22765]
17134 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17135
17136 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17137
17138 * manual/install.texi (Tools for Compilation): Update the newest
17139 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17140 * INSTALL: Regenerated.
17141
17142 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17143
17144 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17145 instead of __builtin_expect.
17146
17147 2018-01-30 Florian Weimer <fweimer@redhat.com>
17148
17149 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17150 data.
17151 * nss/tst-nss-getpwent.c (do_test): Likewise.
17152
17153 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17154
17155 [BZ #10871]
17156 * localedata/locales/hr_HR (mon): Rename to...
17157 (alt_mon): This.
17158 (mon): Import from CLDR (genitive case).
17159 (d_t_fmt): Update the comment.
17160
17161 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17162
17163 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17164 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17165 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17166
17167 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17168
17169 * mach/Versions: Fix version when __mach_host_self_ was added.
17170 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17171 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17172 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17173 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17174 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17175 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17176 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17177 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17178 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17179 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17180 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17181 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17182 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17183 || to respect codestyle.
17184 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17185 (do_test_bz20181): Rename accordingly.
17186 * malloc/malloc.c: Include <assert.h>.
17187 (assert): Do not define.
17188 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17189 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17190 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17191 * sysdeps/mach/hurd/hp-timing.h: New file.
17192 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17193
17194 2018-01-29 Darius Rad <darius@bluespec.com>
17195
17196 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17197
17198 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17199
17200 * sysdeps/init_array/crti.S (.section .init_array): Add
17201 PREINIT_FUNCTION when defined.
17202 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17203 * config.h.in: Regenerate.
17204 * manual/platform.texi: Add RISC-V documenation for
17205 __riscv_flush_icache.
17206 * sysdeps/riscv/__longjmp.S: New file.
17207 * sysdeps/riscv/backtrace.c: Likewise.
17208 * sysdeps/riscv/bits/endian.h: Likewise.
17209 * sysdeps/riscv/bits/setjmp.h: Likewise.
17210 * sysdeps/riscv/bits/wordsize.h: Likewise.
17211 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17212 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17213 * sysdeps/riscv/dl-trampoline.S: Likewise.
17214 * sysdeps/riscv/gccframe.h: Likewise.
17215 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17216 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17217 * sysdeps/riscv/machine-gmon.h: Likewise.
17218 * sysdeps/riscv/memusage.h: Likewise.
17219 * sysdeps/riscv/setjmp.S: Likewise.
17220 * sysdeps/riscv/sys/asm.h: Likewise.
17221 * sysdeps/riscv/tls-macros.h: Likewise.
17222 * sysdeps/riscv/dl-tls.h: New file.
17223 * sysdeps/riscv/libc-tls.c: Likewise.
17224 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17225 * sysdeps/riscv/nptl/tls.h: Likewise.
17226 * sysdeps/riscv/stackinfo.h: Likewise.
17227 * sysdeps/riscv/bits/fenv.h: New file.
17228 * sysdeps/riscv/e_sqrtl.c: Likewise.
17229 * sysdeps/riscv/fpu_control.h: Likewise.
17230 * sysdeps/riscv/math-tests.h: Likewise.
17231 * sysdeps/riscv/nofpu/Implies: Likewise.
17232 * sysdeps/riscv/sfp-machine.h: Likewise.
17233 * sysdeps/riscv/tininess.h: Likewise.
17234 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17235 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17236 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17237 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17238 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17239 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17240 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17241 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17242 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17243 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17244 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17245 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17246 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17247 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17248 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17249 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17250 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17251 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17252 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17253 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17254 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17255 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17256 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17257 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17258 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17259 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17260 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17261 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17262 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17263 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17264 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17265 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17266 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17267 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17268 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17269 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17270 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17271 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17272 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17273 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17274 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17275 * sysdeps/riscv/rvf/math_private.h: Likewise.
17276 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17277 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17278 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17279 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17280 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17281 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17282 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17283 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17284 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17285 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17286 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17287 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17288 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17289 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17290 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17291 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17292 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17293 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17294 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17296 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17297 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17298 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17299 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17300 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17301 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17302 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17303 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17304 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17305 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17306 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17307 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17308 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17309 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17310 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17311 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17312 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17313 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17314 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17315 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17316 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17317 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17318 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17319 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17320 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17321 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17322 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17323 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17324 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17325 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17326 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17327 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17328 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17329 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17330 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17331 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17332 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17333 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17334 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17335 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17336 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17337 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17338 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17339 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17340 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17341 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17342 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17343 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17344 * sysdeps/riscv/Implies: New file.
17345 * sysdeps/riscv/Makefile: Likewise.
17346 * sysdeps/riscv/configure: Likewise.
17347 * sysdeps/riscv/configure.ac: Likewise.
17348 * sysdeps/riscv/nptl/Makefile: Likewise.
17349 * sysdeps/riscv/preconfigure: Likewise.
17350 * sysdeps/riscv/rv64/Implies-after: Likewise.
17351 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17352 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17353 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17354 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17355 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17356 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17357 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17358 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17359 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17360 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17361 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17362 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17363 (Config): Likewise.
17364
17365 2018-01-29 Florian Weimer <fweimer@redhat.com>
17366
17367 [BZ #22701]
17368 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17369 libnsl_hidden_proto.
17370 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17371 libnsl_hidden_proto.
17372 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17373 * nis/Makefile (libnsl-routines): Add nss-default only for
17374 build-obsolete-nsl.
17375 * nis/nis_defaults.c (__nis_default_ttl): Add
17376 libnsl_hidden_nolink_def.
17377 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17378 declaration.
17379 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17380 * nis/ypclnt.c (yp_maplist): Likewise.
17381
17382 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17383
17384 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17385 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17386
17387 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17388
17389 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17390 clean -dxfq for git updates when replacing sources.
17391
17392 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17393 --disable-libcilkrts unconditionally, not just for the final GCC
17394 build for Hurd.
17395
17396 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17397 version to 4.15.
17398
17399 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17400
17401 [BZ #10871]
17402 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17403 case).
17404
17405 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17406
17407 [BZ #10871]
17408 * localedata/locales/be_BY (mon): Rename to...
17409 (alt_mon): This, then synchronize with CLDR (nominative case).
17410 (abmon): Rename to...
17411 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17412 (mon): Import from CLDR (genitive case).
17413 (abmon): Likewise.
17414 * localedata/locales/be_BY@latin (mon): Rename to...
17415 (alt_mon): This.
17416 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17417
17418 * localedata/locales/be_BY@latin (lang_name): Reworded to
17419 "biełaruskaja mova".
17420
17421 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17422
17423 [BZ #10871]
17424 * localedata/locales/el_CY (mon): Renamed to...
17425 (alt_mon): This.
17426 (mon): Import from CLDR (genitive case).
17427 * localedata/locales/el_GR: Likewise.
17428
17429 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17430
17431 [BZ #10871]
17432 * localedata/locales/ru_RU (mon): Rename to...
17433 (alt_mon): This.
17434 (abmon): Rename to...
17435 (ab_alt_mon): This.
17436 (mon): Import from CLDR (genitive case).
17437 (abmon): Copy from the old content except the 5th month which is
17438 now in the genitive case, even when abbreviated.
17439 * localedata/locales/ru_UA: Likewise.
17440 * time/tst-strptime.c (day_tests): Add an actual example of
17441 a difference between %b and %Ob in Russian.
17442
17443 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17444
17445 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17446 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17447 a `c' variable.
17448 * resolv/res-close.c: Include <stdlib.h>.
17449 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17450 <sys/wait.h>, <time.h>, <sys/uio.h>.
17451 (NOT_CANCEL_H): Add inclusion guard.
17452 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17453 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17454 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17455 return 0.
17456 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17457 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17458 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17459 instead of void *.
17460 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17461 timer_ptr2id to cast struct timer_node * to void *.
17462 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17463 --disable-libcilkrts to gcc configure.
17464 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17465 and make them the default for now.
17466 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17467 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17468 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17469 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17470 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17471 MACH_IPC_COMPAT.
17472 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17473 __task_terminate would ever return successfully.
17474 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17475 to global scope.
17476 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17477 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17478 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17479 critical section to make code simpler and avoid warning.
17480 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17481 critical section to make code simpler and avoid warning.
17482 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17483 const char * instead of char *.
17484 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17485 __hurd_file_name_split, hurd_file_name_split,
17486 __hurd_directory_name_split, hurd_directory_name_split,
17487 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17488 hurd_file_name_path_lookup): Make lookup function parameter take a
17489 const char *name instead of char *name.
17490 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17491 __hurd_directory_name_split): Likewise.
17492 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17493 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17494 * sysdeps/mach/hurd/check_native.c: New file.
17495 * sysdeps/mach/hurd/check_pf.c: New file.
17496 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17497 (__freeifaddrs): Define macro to freeifaddrs.
17498 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17499 * sysdeps/mach/libmachuser.abilist: New file.
17500 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17501 (do_test_bz20181): Rename accordingly.
17502 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17503 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17504 <sys/mount.h>.
17505 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17506 version only if __USE_EXTERN_INLINES is defined.
17507 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17508 __hurd_sockfail): Likewise.
17509 (_hurd_fd_get): Always declare functions, and provide inline versions
17510 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17511 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17512 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17513 _hurd_port_set): Always declare functions, and provide inline versions
17514 only if __USE_EXTERN_INLINES and _LIBC are defined and
17515 IS_IN(libc).
17516 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17517 _hurd_critical_section_unlock): Likewise.
17518 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17519 * __hurd_threadvar_location): Likewise.
17520 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17521 _hurd_userlink_clear): Likewise.
17522 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17523 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17524 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17525 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17526 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17527 __spin_lock_locked): Likewise.
17528 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17529 __spin_lock_locked): Likewise.
17530 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17531 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17532 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17533 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17534 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17535 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17536 _POSIX_NO_TRUNC): Define to 0.
17537 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17538 check size against PTHREAD_STACK_MIN.
17539 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17540 IS_IN(libpthread)]: Include <sigsetops.h>.
17541 * mach/Makefile (user-interfaces): Add mach/gnumach.
17542 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17543 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17544 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17545 instead of invalid -1.
17546 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17547 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17548 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17549 <net/ppp_defs.h>.
17550
17551 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17552
17553 * hurd/fcntl-internal.h: New file.
17554
17555 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17556
17557 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17558
17559 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17560
17561 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17562
17563 [BZ #22701]
17564 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17565 Build only shared objects.
17566
17567 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17568
17569 * README: Update for hppa.
17570
17571 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17572
17573 * sysdeps/sparc/fpu/libm-test-ulps: Update
17574 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17575
17576 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17577
17578 Revert:
17579
17580 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17581
17582 [BZ #22563]
17583 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17584 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17585 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17586 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17587 to feature_1.
17588
17589 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17590
17591 [BZ #22563]
17592 * bits/types/__cancel_jmp_buf_tag.h: New file.
17593 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17594 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17595 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17596 * nptl/Makefile (headers): Add
17597 bits/types/__cancel_jmp_buf_tag.h.
17598 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17599 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17600 * sysdeps/nptl/pthread.h: Include
17601 <bits/types/__cancel_jmp_buf_tag.h>.
17602 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17603 __cancel_jmp_buf.
17604 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17605
17606 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17607
17608 [BZ #10871]
17609 * localedata/locales/uk_UA (mon): Renamed to...
17610 (alt_mon): This.
17611 (alt_digits): "0" removed and then renamed to...
17612 (mon): This.
17613 (date_fmt): Definition changed not to use the alternative
17614 digits hack.
17615
17616 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17617
17618 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17619 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17620 * elf/elf.h (EF_RISCV_RVC): New define.
17621 (EF_RISCV_FLOAT_ABI): Likewise.
17622 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17623 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17624 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17625 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17626 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17627 define.
17628 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17629
17630 2018-01-25 Andreas Schwab <schwab@suse.de>
17631
17632 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17633 single quotes.
17634 * sysdeps/gnu/configure: Regenerate.
17635 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17636 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17638 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17639 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17640 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17641 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17642 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17643
17644 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17645
17646 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17647 URL, and run autoconf, make it the default for now.
17648
17649 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17650
17651 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17652 soft-float ColdFire configuration.
17653
17654 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17655 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17656 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17657
17658 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17659 MicroBlaze file.
17660
17661 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17662 ....
17663 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17664 ... here.
17665 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17666 New file.
17667
17668 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17669 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17670 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17671 file.
17672
17673 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17674
17675 [BZ #22742]
17676 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17677 Rename to __reserved and add comment.
17678 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17679 Rename to __reserved.
17680
17681 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17682
17683 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17684 i686-gnu configurations.
17685 (Context.run_builds): Include mig, gnumach and hurd in components
17686 considered.
17687 (Context.checkout): Add mig, gnumach and hurd to components.
17688 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17689 hurd.
17690 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17691 (Config.build): Install gnumach headers, build mig and install
17692 hurd headers for 'gnu' OS.
17693 (Config.install_gnumach_headers): New function.
17694 (Config.install_hurd_headers): Likewise.
17695 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17696 when building for 'gnu' OS.
17697
17698 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17699
17700 * manual/tunables.texi (Hardware Capability Tunables): Fix
17701 spelling.
17702
17703 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17704
17705 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17706 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17707 (ALTMON_11, ALTMON_12): Improve documentation.
17708 * manual/time.texi (strftime): Likewise.
17709
17710 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17711
17712 [BZ #10871]
17713 * localedata/locales/pl_PL: Alternative month names added,
17714 primary month names are genitive now.
17715 * time/tst-strptime.c (day_tests): Actually use a genitive case
17716 of a month name in Polish language.
17717
17718 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17719
17720 [BZ #10871]
17721 * manual/locale.texi: Document ALTMON_1..12 constants for
17722 nl_langinfo. Specify when to use ALTMON instead of MON.
17723 * manual/time.texi (strftime, strptime): Document GNU extension
17724 permitting O modifier with %B and %b. Specify when to use
17725 %OB instead of %B.
17726
17727 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17728
17729 [BZ #10871]
17730 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17731 names, define them as the same as abbreviated month names explicitly.
17732 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17733 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17734 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17735 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17736 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17737 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17738 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17739 _NL_WABALTMON_12): New enum constants.
17740 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17741 wab_alt_mon, and ab_alt_mon_defined members.
17742 (time_output): Output ab_alt_mon and wab_alt_mon members.
17743 (time_read): Read them, initialize them as copies of abmon and wabmon
17744 respectively if they are missing, initialize ab_alt_mon_defined.
17745 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17746 * locale/programs/locfile-kw.h: Regenerate.
17747 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17748 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17749 and ru_RU.UTF-8.
17750 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17751 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17752 (__strftime_internal): Handle %Ob and %Oh formats.
17753 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17754 (__strptime_internal): Handle %Ob and %Oh formats.
17755 * time/tst-strptime.c (day_tests): Add more tests to parse different
17756 forms of month names including the new %Ob format specifier.
17757
17758 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17759
17760 [BZ #10871]
17761 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17762 define them as the same as primary full month names explicitly.
17763 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17764 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17765 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17766 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17767 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17768 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17769 _NL_WALTMON_12): New enum constants.
17770 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17771 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17772 macros.
17773 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17774 walt_mon, and alt_mon_defined members.
17775 (time_output): Output alt_mon and walt_mon members.
17776 (time_read): Read them, initialize them as copies of mon and wmon
17777 respectively if they are missing, initialize alt_mon_defined.
17778 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17779 * locale/programs/locfile-kw.h: Regenerate.
17780 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17781 * localedata/tst-langinfo.c (map): Add tests for the new constants
17782 ALTMON_1 .. ALTMON_12.
17783 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17784 and pl_PL.UTF-8.
17785 * time/strftime_l.c (f_altmonth): New macro.
17786 (__strftime_internal): Handle %OB format.
17787 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17788 (__strptime_internal): Handle %OB format.
17789 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17790 of month names including the new %OB format specifier.
17791
17792 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17793
17794 [BZ #22685]
17795 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17796 from ABORT_TRANSACTION.
17797 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17798 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17799 ABORT_TRANSACTION_IMPL): Likewise.
17800 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17801 Linux code, but remove the code that aborts transactions.
17802
17803 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17804
17805 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17806
17807 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17808
17809 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17810 in date: "2004-14-09" should be "2004-09-14".
17811 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17812 "2003-15-09" should be "2003-09-15".
17813
17814 2018-01-18 Arjun Shankar <arjun@redhat.com>
17815
17816 [BZ #22343]
17817 [BZ #22774]
17818 CVE-2018-6485
17819 CVE-2018-6551
17820 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17821 after padding.
17822 (_int_memalign): check for integer overflow before calling
17823 _int_malloc.
17824 * malloc/tst-malloc-too-large.c: New test.
17825 * malloc/Makefile: Add tst-malloc-too-large.
17826
17827 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17828
17829 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17830 in date: "2017-24-07" should be "2017-07-24".
17831 * localedata/locales/mai_IN: Likewise.
17832 * localedata/locales/mai_NP: Likewise.
17833
17834 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17835
17836 * po/ru.po: Update translations.
17837
17838 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17839
17840 [BZ #22719]
17841 * sysdeps/hppa/backtrace.c: New file.
17842
17843 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17844
17845 [BZ #22715]
17846 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17847 align La_x86_64_retval to VEC_SIZE.
17848
17849 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17850
17851 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17852 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17853
17854 2018-01-16 Florian Weimer <fweimer@redhat.com>
17855
17856 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17857 Move tst-thread-exit-clobber ...
17858 [$(CXX)] (tests-unsupported): ... to here.
17859
17860 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17861
17862 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17863 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17864 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17865 (_dl_aarch64_cap_flags): Update.
17866 (_DL_HWCAP_COUNT): Update.
17867
17868 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17869
17870 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17871 (_DL_HWCAP_LAST): Remove.
17872 (_DL_HWCAP_COUNT): Move to ...
17873 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17874 (_DL_HWCAP_COUNT): ... here.
17875
17876 2018-01-16 Florian Weimer <fweimer@redhat.com>
17877
17878 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17879 mode with GNU extensions.
17880
17881 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17882
17883 * elf/elf.h (NT_ARM_SVE): Define.
17884
17885 2018-01-15 Florian Weimer <fweimer@redhat.com>
17886
17887 [BZ #22636]
17888 * nptl/tst-minstack-throw.cc: New file.
17889 * nptl/Makefile (tests): Add tst-minstack-throw.
17890 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17891 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17892
17893 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17894
17895 * scripts/build-many-glibcs.py (Context.checkout): Default
17896 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17897 version to 1.1.0.
17898
17899 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17900
17901 [BZ #22707]
17902 * elf/elf.h (DF_1_STUB): Define.
17903 (DF_1_PIE): Define.
17904
17905 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17906
17907 [BZ #22697]
17908 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17909 Do not add 0.5 to integer or out-of-range arguments.
17910
17911 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17912
17913 * po/bg.po: Update translations.
17914 * po/cs.po: Likewise.
17915 * po/de.po: Likewise.
17916 * po/ko.po: Likewise.
17917 * po/pl.po: Likewise.
17918 * po/sv.po: Likewise.
17919 * po/uk.po: Likewise.
17920 * po/vi.po: Likewise.
17921
17922 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17923
17924 * aarch64/start.S (_start): Use __wrap_main.
17925 (__wrap_main): New local symbol.
17926
17927 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17928
17929 [BZ #22679]
17930 CVE-2018-1000001
17931 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17932 generic_getcwd if the path returned by getcwd syscall is not absolute.
17933 * io/tst-getcwd-abspath.c: New test.
17934 * io/Makefile (tests): Add tst-getcwd-abspath.
17935
17936 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17937
17938 * malloc/malloc.c (malloc_consolidate): Add size check.
17939
17940 2018-01-12 Florian Weimer <fweimer@redhat.com>
17941
17942 * support/write_message.c (write_message): Preserve errno.
17943 * support/check.c (print_failure): Likewise.
17944 * support/support_test_verify_impl.c (support_test_verify_impl):
17945 Likewise.
17946 * support/support_test_compare_failure.c
17947 (support_test_compare_failure): Likewise.
17948
17949 2018-01-12 Florian Weimer <fweimer@redhat.com>
17950
17951 [BZ #22701]
17952 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17953 Prevent installation of libnsl.so.
17954 (libnsl-inhibit-o): Do not build (or install) static libraries.
17955
17956 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17957
17958 [BZ #22657]
17959 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17960 before the day number which may produce a double space.
17961 (date_fmt): Likewise.
17962
17963 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17964
17965 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17966 instead of fegetenv.
17967
17968 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17969
17970 [BZ #22702]
17971 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17972 comment to say exceptions are discarded.
17973 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17974 __fegetenv.
17975 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17976 be enabled.
17977
17978 2018-01-11 Florian Weimer <fweimer@redhat.com>
17979
17980 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17981 and error message.
17982
17983 2018-01-11 Florian Weimer <fweimer@redhat.com>
17984
17985 [BZ #22636]
17986 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17987 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17988
17989 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17990
17991 [BZ #22693]
17992 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17993 negative arguments in test for NaN or infinity argument.
17994
17995 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17996
17997 * po/libc.pot: Regenerate.
17998
17999 2018-01-10 Florian Weimer <fweimer@redhat.com>
18000
18001 [BZ #22636]
18002 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
18003 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
18004
18005 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
18006
18007 * hurd/hurd/fd.h: Include <fcntl.h>
18008 (__hurd_at_flags): New function.
18009 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
18010 with call to __hurd_at_flags.
18011 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
18012 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
18013 __faccessat
18014 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
18015 (__access_noerrno): Use __faccessat_common instead of access_common.
18016 (__access): Likewise.
18017 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
18018 with a call to __faccessat.
18019 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
18020 (__faccessat_common): ... this. Move implementation of __access into it when
18021 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
18022 reauthenticate_cwdir_at helper to implement AT mechanism.
18023 (__faccessat_noerrno): New function, just calls __faccessat_common.
18024 (__faccessat): New function, just calls __faccessat_common.
18025 (faccessat): Define weak alias.
18026
18027 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18028
18029 [BZ #22691]
18030 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18031 (CFLAGS-s_fmaxmagl.c): New variable.
18032 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18033
18034 [BZ #22690]
18035 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18036 long int for arguments of possibly overflowing addition or
18037 subtraction.
18038 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18039
18040 2018-01-09 Joseph Myers <joseph@codesourcery.com>
18041
18042 [BZ #22688]
18043 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18044 (CFLAGS-e_remainderl.c): New variable.
18045
18046 [BZ #22687]
18047 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18048 variable.
18049 (CFLAGS-s_cacoshl.c): Likewise.
18050 (CFLAGS-s_casinhl.c): Likewise.
18051 (CFLAGS-s_catanl.c): Likewise.
18052 (CFLAGS-s_catanhl.c): Likewise.
18053 (CFLAGS-s_cexpl.c): Likewise.
18054 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18055 (CFLAGS-s_csinhl.c): Likewise.
18056 (CFLAGS-s_clogl.c): Likewise.
18057 (CFLAGS-s_clog10l.c): Likewise.
18058 (CFLAGS-s_csinl.c): Likewise.
18059 (CFLAGS-s_csqrtl.c): Likewise.
18060
18061 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18062 2017-01-09 Svante Signell <svante.signell@gmail.com>
18063
18064 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18065 (_hurd_exec_paths): New function.
18066 * hurd/hurd.h (_hurd_exec): Deprecate function.
18067 (_hurd_exec_paths): Declare function.
18068 * hurd/Versions: Export _hurd_exec_paths.
18069 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18070 (__execve): Use __getcwd to build absolute path, and use
18071 _hurd_exec_paths instead of _hurd_exec.
18072 * sysdeps/mach/hurd/spawni.c: Likewise.
18073 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18074 _hurd_exec.
18075
18076 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18077
18078 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18079 test instead of failing in case of ENOENT returned by posix_openpt.
18080
18081 2018-01-08 Florian Weimer <fweimer@redhat.com>
18082
18083 resolv: Support binary labels in test framework.
18084 * support/resolv_test.c (struct to_be_freed): Remove.
18085 (struct compressed_name): New.
18086 (allocate_compressed_name, ascii_tolower)
18087 (compare_compressed_name): New functions.
18088 (struct resolv_response_builder): Update type of
18089 compression_offsets for use with tsearch. Rempve to_be_freed.
18090 (response_push_pointer_to_free): Remove function.
18091 (resolv_response_add_name): Rewrite using struct compressed_name
18092 and tsearch instead of hsearch_r.
18093 (response_builder_allocate): Remove initialization of
18094 compression_offsets.
18095 (response_builder_free): Update for removal of to_be_freed. Use
18096 tdestroy instead of hdestroy_r.
18097 * resolv/Makefile (tests): Add tst-resolv-binary.
18098 (tst-resolv-binary): Link with -lresolv -lpthread.
18099
18100 2018-01-08 Florian Weimer <fweimer@redhat.com>
18101
18102 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18103 time. Pass positive flag instead of negative flag to
18104 support_test_compare_failure.
18105 (support_test_compare_failure): Change negative parameter to
18106 positive.
18107 * support/support_test_compare_failure.c (report)
18108 (support_test_compare_failure): Likewise.
18109 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18110 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18111
18112 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18113
18114 [BZ #22637]
18115 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18116 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18117 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18118 stacksize.
18119 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18120
18121 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18122
18123 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18124 Add s_sincosf-sse2 and s_sincosf-fma.
18125 (CFLAGS-s_sincosf-fma.c): New.
18126 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18127 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18128 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18129 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18130 __sincosf is defined.
18131
18132 2018-01-08 Florian Weimer <fweimer@redhat.com>
18133
18134 * nptl/tst-thread-exit-clobber.cc: New file.
18135 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18136 C++11 mode.
18137 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18138 (tests): Add tst-thread-exit-clobber.
18139 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18140
18141 2018-01-08 Florian Weimer <fweimer@redhat.com>
18142
18143 * support/check.h (support_static_assert): Define.
18144 (TEST_COMPARE): Use it.
18145
18146 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18147
18148 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18149 [!__RLIM_T_MATCHES_RLIM64_T]
18150 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18151 __getrlimit64. Add libc_hidden_weak.
18152
18153 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18154
18155 * elf/elf.h (R_RISCV_NONE): New define.
18156 (R_RISCV_32): Likewise.
18157 (R_RISCV_64): Likewise.
18158 (R_RISCV_RELATIVE): Likewise.
18159 (R_RISCV_COPY): Likewise.
18160 (R_RISCV_JUMP_SLOT): Likewise.
18161 (R_RISCV_TLS_DTPMOD32): Likewise.
18162 (R_RISCV_TLS_DTPMOD64): Likewise.
18163 (R_RISCV_TLS_DTPREL32): Likewise.
18164 (R_RISCV_TLS_DTPREL64): Likewise.
18165 (R_RISCV_TLS_TPREL32): Likewise.
18166 (R_RISCV_TLS_TPREL64): Likewise.
18167 * Makerules (make-link-multidir): Make directories before linking into
18168 them.
18169 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18170 define.
18171 (VDSO_HASH_LINUX_4_15): Likewise.
18172 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18173 in subdirectories of lib.
18174 * nptl/Makefile (/librt.so): Always depend on
18175 "$(shared-thread-library)".
18176
18177 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18178
18179 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18180 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18181 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18182 (___tls_get_addr).
18183 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18184 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18185 "-O2 -march=i686".
18186 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18187 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18188 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18189 * sysdeps/gnu/glob-lstat-compat.c: New file.
18190 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18191 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18192
18193 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18194
18195 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18196 Reserve 16 chars to reloc_addr before calling _itoa_word.
18197
18198 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18199
18200 [BZ #22678]
18201 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18202 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18203
18204 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18205 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18206
18207 * resource/tst-getrlimit.c: Add copyright header.
18208
18209 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18210 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18211
18212 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18213 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18214 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18215 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18216 instead.
18217 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18218 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18219 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18220 RLIM64_INFINITY): Fix values to match the kernel ones.
18221 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18222 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18223 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18224 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18225 getrlimit64@@GLIBC_2_27.
18226 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18227 and setrlimit64.
18228 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18229 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18230 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18231 setrlimit, getrlimit64 and setrlimit64.
18232
18233 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18234
18235 [BZ #22648]
18236 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18237 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18238
18239 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18240
18241 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18242 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18243 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18244
18245 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18246
18247 [BZ #15479]
18248 [BZ #22666]
18249 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18250 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18251
18252 [BZ #15479]
18253 [BZ #22665]
18254 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18255 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18256 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18257 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18258
18259 2018-01-04 Florian Weimer <fweimer@redhat.com>
18260
18261 [BZ #22667]
18262 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18263 Align the stack before calling exit.
18264 * stdlib/tst-makecontext-align.c: New file.
18265 * stdlib/Makefile (tests): Add tst-makecontext-align.
18266
18267 2018-01-04 Florian Weimer <fweimer@redhat.com>
18268
18269 Add support for calling dlvsym from libc.so.
18270 * include/dlfcn.h (__libc_dlvsym): Declare.
18271 * elf/Makefile (tests-static-internal): Add
18272 tst-libc_dlvsym-static.
18273 (tests-internal): Add tst-libc_dlvsym.
18274 (modules-names): Add tst-libc_dlvsym-dso.
18275 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18276 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18277 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18278 object tst-libc_dlvsym-dso.so needs to be built before running
18279 these tests.
18280 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18281 * elf/Versions: Export __libc_dlvsym.
18282 * elf/dl-libc.c (struct do_dlvsym_args): New.
18283 (do_dlvsym, __libc_dlvsym): New functions.
18284 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18285 (_dl_open_hook2): New variable.
18286 (__libc_register_dl_open_hook): Set it.
18287 * elf/tst-libc_dlvsym-dso.c: New file.
18288 * elf/tst-libc_dlvsym-static.c: Likewise.
18289 * elf/tst-libc_dlvsym.c: Likewise.
18290 * elf/tst-libc_dlvsym.h: Likewise.
18291
18292 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18293
18294 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18295 include <sys/mount.h>.
18296
18297 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18298
18299 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18300 Add __NO_MATH_ERRNO__ check.
18301
18302 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18303
18304 * sysdeps/mips/mips32/libm-test-ulps: Update.
18305 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18306
18307 2018-01-02 Florian Weimer <fweimer@redhat.com>
18308
18309 * misc/tst-pselect.c: Add copyright header.
18310
18311 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18312
18313 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18314 comment.
18315 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18316 comment.
18317 (settrlimit): Rename into setrlimit.
18318 (__sttrlimit): Rename into __setrlimit.
18319
18320 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18321 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18322 never defined in that case.
18323
18324 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18325
18326 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18327
18328 * sysdeps/arm/libm-test-ulps: Update.
18329
18330 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18331 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18332
18333 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18334
18335 * NEWS: Add cosf and sincosf to list of optimized functions.
18336
18337 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18338
18339 [BZ #22660]
18340 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18341 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18342 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18343 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18344
18345 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18346
18347 [BZ #22433]
18348 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18349
18350 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18351 making a copy of it.
18352
18353 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18354
18355 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18356 trailing whitespace removed.
18357 * scripts/config.guess: Update to version 2018-01-01.
18358 * scripts/config.sub: Update to version 2018-01-01.
18359 * scripts/move-if-change: Update from gnulib.
18360
18361 * NEWS: Update copyright dates.
18362 * catgets/gencat.c (print_version): Likewise.
18363 * csu/version.c (banner): Likewise.
18364 * debug/catchsegv.sh: Likewise.
18365 * debug/pcprofiledump.c (print_version): Likewise.
18366 * debug/xtrace.sh (do_version): Likewise.
18367 * elf/ldconfig.c (print_version): Likewise.
18368 * elf/ldd.bash.in: Likewise.
18369 * elf/pldd.c (print_version): Likewise.
18370 * elf/sotruss.sh: Likewise.
18371 * elf/sprof.c (print_version): Likewise.
18372 * iconv/iconv_prog.c (print_version): Likewise.
18373 * iconv/iconvconfig.c (print_version): Likewise.
18374 * locale/programs/locale.c (print_version): Likewise.
18375 * locale/programs/localedef.c (print_version): Likewise.
18376 * login/programs/pt_chown.c (print_version): Likewise.
18377 * malloc/memusage.sh (do_version): Likewise.
18378 * malloc/memusagestat.c (print_version): Likewise.
18379 * malloc/mtrace.pl: Likewise.
18380 * manual/libc.texinfo: Likewise.
18381 * nptl/version.c (banner): Likewise.
18382 * nscd/nscd.c (print_version): Likewise.
18383 * nss/getent.c (print_version): Likewise.
18384 * nss/makedb.c (print_version): Likewise.
18385 * posix/getconf.c (main): Likewise.
18386 * scripts/test-installation.pl: Likewise.
18387 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18388
18389 * All files with FSF copyright notices: Update copyright dates
18390 using scripts/update-copyrights.
18391 * locale/programs/charmap-kw.h: Regenerated.
18392 * locale/programs/locfile-kw.h: Likewise.
18393
18394 2017-12-31 Zack Weinberg <zackw@panix.com>
18395
18396 * libio/bits/libio-ldbl.h: Correct check for improper
18397 inclusion. Add own multiple include guard.
18398
18399 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18400 Dmitry V. Levin <ldv@altlinux.org>
18401
18402 [BZ #22625]
18403 CVE-2017-16997
18404 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18405 string token expansion. Check for NULL pointer or empty string possibly
18406 returned by expand_dynamic_string_token.
18407 (decompose_rpath): Check for empty path after dynamic string
18408 token expansion.
18409
18410 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18411
18412 [BZ #22433]
18413 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18414
18415 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18416 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18417 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18418 and PTRACE_SYSCALL.
18419 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18420 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18421 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18422 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18423 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18424 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18425
18426 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18427 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18428 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18429 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18430 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18431 bits/ptrace-shared.h.
18432 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18433 <bits/ptrace-shared.h>.
18434 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18435 __ptrace_peeksiginfo_flags, ptrace): Remove.
18436 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18437 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18438 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18439 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18440 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18441
18442 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18443
18444 [BZ #17804]
18445 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18446 end of the loop. Improve comments.
18447
18448 2017-12-29 Zack Weinberg <zackw@panix.com>
18449
18450 [BZ #22615]
18451 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18452 might be set on success.
18453
18454 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18455
18456 [BZ #22611]
18457 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18458 is unchanged on success.
18459
18460 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18461
18462 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18463 updated.
18464 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18465 expand_dynamic_string_token): Likewise.
18466 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18467 is_path argument.
18468
18469 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18470 contains ':'.
18471
18472 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18473 is set and name contains ':', and all code depending on these checks.
18474
18475 2017-12-24 Zack Weinberg <zackw@panix.com>
18476
18477 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18478 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18479 respectively.
18480 * libio/libio.h: Rename the original version of this file to
18481 libio/bits/libio.h. Error out if not included by stdio.h or the
18482 stub libio.h.
18483 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18484 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18485 if not included by bits/libio.h or the stub _G_config.h.
18486 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18487 sysdeps/unix/sysv/linux/bits. Error out if not included by
18488 bits/libio.h or the stub _G_config.h.
18489 * libio/stdio.h: Include bits/libio.h, not libio.h.
18490 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18491 well as libio.h and _G_config.h.
18492
18493 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18494 * libio/strfile.h, stdio-common/vfscanf.c
18495 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18496 Include stdio.h, not _G_config.h nor libio.h.
18497 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18498 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18499
18500 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18501
18502 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18503
18504 [BZ #22347]
18505 * stdlib/getrandom.c (getrandom): Fix comment.
18506 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18507
18508 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18509
18510 [BZ #21161]
18511 * manual/arith.texi (strtoul): Fix a typo.
18512
18513 [BZ #22596]
18514 * manual/arith.texi (finite): Fix the description of the return
18515 value.
18516
18517 2017-12-22 Eric Blake <ebb9@byu.net>
18518
18519 Avoid gcc warnings on cygwin
18520 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18521 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18522 Avoid unused variable.
18523
18524 2017-12-22 Florian Weimer <fweimer@redhat.com>
18525
18526 * io/Makefile (routines): Add copy_file_range.
18527 (tests): Add tst-copy_file_range.
18528 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18529 * io/Versions (GLIBC_2.27): Export copy_file_range.
18530 * io/copy_file_range-compat.c: New file.
18531 * io/copy_file_range.c: Likewise.
18532 * io/tst-copy_file_range-compat.c: Likewise.
18533 * io/tst-copy_file_range.c: Likewise.
18534 * manual/llio.texi (Copying File Data): New section.
18535 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18536 * support/Makefile (libsupport-routines): Add support-xfstat,
18537 xftruncate, xlseek.
18538 * support/support-xfstat.c: New file.
18539 * support/xftruncate.c: Likewise.
18540 * support/xlseek.c: Likewise.
18541 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18542 * sysdeps/unix/sysv/linux/**.abilist: Update.
18543 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18544
18545 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18546
18547 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18548 disable-multi-arch variant to aarch64-linux-gnu.
18549
18550 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18551
18552 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18553 trailing whitespace removed.
18554 * scripts/config.guess: Update to version 2017-12-17.
18555 * scripts/config.sub: Update to version 2017-11-23.
18556 * scripts/install-sh: Update to version 2017-09-23.17.
18557 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18558
18559 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18560
18561 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18562 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18563 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18564 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18565 * sysdeps/tile/crtn.S: Likewise.
18566 * sysdeps/tile/dl-start.S (_start): Likewise.
18567 * sysdeps/tile/dl-trampoline.S: Likewise.
18568 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18569 * sysdeps/tile/start.S (_start): Likewise.
18570 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18571 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18572 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18573 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18574 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18575 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18576 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18577
18578 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18579 comment.
18580 * sysdeps/tile/preconfigure: Remove tilegx folder.
18581 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18582 * sysdeps/tile/Implies: ... here.
18583 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18584 * sysdeps/tile/Makefile: ... here.
18585 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18586 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18587 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18588 * sysdeps/tile/bits/wordsize.h: ... here.
18589 * sysdeps/tile/tilegx/*: Move to ...
18590 * sysdeps/tile/*: ... here.
18591 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18592 * sysdeps/tile/tilegx32/Implies: ... here.
18593 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18594 * sysdeps/tile/tilegx64/Implies: ... here.
18595 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18596 to ...
18597 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18598 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18599 * sysdeps/unix/sysv/linux/tile/*: ... here.
18600 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18601 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18602 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18603 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18604
18605 * README: Remove tilepro-*-linux-gnu from supported architecture.
18606 * scripts/build-many-glibcs.py: Likewise.
18607 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18608 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18609 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18610 elf_machine_matches_host, elf_machine_dynamic,
18611 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18612 howto, elf_machine_rela): Likewise.
18613 * sysdeps/tile/dl-start.S (_start): Likewise.
18614 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18615 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18616 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18617 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18618 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18619 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18620 Likewise.
18621 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18622 * sysdeps/tile/preconfigure: Likewise.
18623 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18624 POINTER_CHK_GUARD): Likewise.
18625 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18626 * sysdeps/tile/start.S (_start): Likewise.
18627 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18628 Likewise.
18629 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18630 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18631 CMOVNEZ): Remove.
18632 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18633 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18634 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18635 Likewise.
18636 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18637 * sysdeps/tile/tilepro/Implies: Remove file.
18638 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18639 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18640 * sysdeps/tile/tilepro/memchr.c: Likewise.
18641 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18642 * sysdeps/tile/tilepro/memset.c: Likewise.
18643 * sysdeps/tile/tilepro/memusage.h: Likewise.
18644 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18645 * sysdeps/tile/tilepro/strchr.c: Likewise.
18646 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18647 * sysdeps/tile/tilepro/strlen.c: Likewise.
18648 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18649 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18650 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18651 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18652 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18653 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18654 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18655 Likewise.
18656 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18662 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18663 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18664 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18665 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18666 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18668 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18669 tilepro mention in comment.
18670
18671 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18672 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18673 * nptl/pthread_join_common.c: New file: common function used on
18674 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18675 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18676 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18677 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18678 (cleanup): Move definition to pthread_join_common.c.
18679 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18680 Remove superflous checks.
18681 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18682 Likewise.
18683
18684 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18685
18686 * sysdeps/aarch64/libm-test-ulps: Update.
18687
18688 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18689
18690 * sysdeps/aarch64/memset.S (MEMSET): Define.
18691
18692 2017-12-20 Florian Weimer <fweimer@redhat.com>
18693
18694 [BZ #22635]
18695 nptl: Provide full implementation of pthread_self in libc.so.
18696 * nptl/Makefile (routines): Add pthread_self.
18697 (libpthread-routines): Replace pthread_self with
18698 compat-pthread_self.
18699 * nptl/forward.c (pthread_self): Remove.
18700 * nptl/nptl-init.c (pthread_functions): Do not initialize
18701 ptr_pthread_self.
18702 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18703 * nptl/compat-pthread_self.c: New file.
18704 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18705 Remove ptr_pthread_self.
18706
18707 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18708
18709 * posix/regcomp.c: Fix spelling in comments.
18710 * posix/regex.h: Likewise.
18711 * posix/regex_internal.c: Likewise.
18712 * posix/regexec.c: Likewise.
18713
18714 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18715
18716 [BZ #22377]
18717 * math/Makefile [C++] (tests): Add test for iseqsig.
18718 * math/math.h [C++] (iseqsig): New implementation, which does
18719 not rely on __MATH_TG/__builtin_types_compatible_p.
18720 * math/test-math-iseqsig.cc: New file.
18721 * sysdeps/powerpc/powerpc64le/Makefile
18722 (CFLAGS-test-math-iseqsig.cc): New variable.
18723
18724 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18725
18726 * elf/dl-load.c (is_trusted_path): Remove.
18727 (fillin_rpath): Remove check_trusted argument and its use,
18728 all callers changed.
18729
18730 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18731
18732 [BZ #22630]
18733 * Makeconfig (link-pie-before-libc): Replace -pie with
18734 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18735 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18736 (tst-dlopen-aout-no-pie): New.
18737 (LDFLAGS-tst-prelink): Removed.
18738 (tst-prelink-no-pie): New.
18739 (LDFLAGS-tst-main1): Removed.
18740 (tst-main1-no-pie): New.
18741 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18742 (tst-gmon-no-pie): New.
18743
18744 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18745
18746 * manual/install.texi: Document that --enable-static-pie
18747 implies PIE.
18748 * INSTALL: Regenerated.
18749
18750 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18751
18752 [BZ #21309]
18753 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18754 unsigned.
18755
18756 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18757
18758 Revert:
18759
18760 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18761
18762 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18763
18764 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18765
18766 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18767 <errno.h>. Include "eexp.tbl".
18768 (half): New constant.
18769 (one): Likewise.
18770 (__ieee754_exp): Rewrite.
18771 (__slowexp): Remove prototype.
18772 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18773 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18774 * sysdeps/i386/fpu/slowexp.c: Likewise.
18775 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18776 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18777 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18778 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18779 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18780 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18781 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18782 comment.
18783 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18784 (CPPFLAGS-slowexp.c): Remove variable.
18785 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18786 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18787 (CFLAGS-slowexp-fma.c): Remove variable.
18788 (CFLAGS-slowexp-fma4.c): Likewise.
18789 (CFLAGS-slowexp-avx.c): Likewise.
18790 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18791 define as macro.
18792 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18793 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18794 * math/Makefile (type-double-routines): Remove slowexp.
18795 * manual/probes.texi (slowexp_p6): Remove.
18796 (slowexp_p32): Likewise.
18797
18798 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18799
18800 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18801 arithmetic.
18802
18803 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18804
18805 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18806
18807 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18808
18809 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18810
18811 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18812 <errno.h>. Include "eexp.tbl".
18813 (half): New constant.
18814 (one): Likewise.
18815 (__ieee754_exp): Rewrite.
18816 (__slowexp): Remove prototype.
18817 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18818 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18819 * sysdeps/i386/fpu/slowexp.c: Likewise.
18820 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18821 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18822 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18823 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18824 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18825 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18826 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18827 comment.
18828 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18829 (CPPFLAGS-slowexp.c): Remove variable.
18830 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18831 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18832 (CFLAGS-slowexp-fma.c): Remove variable.
18833 (CFLAGS-slowexp-fma4.c): Likewise.
18834 (CFLAGS-slowexp-avx.c): Likewise.
18835 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18836 define as macro.
18837 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18838 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18839 * math/Makefile (type-double-routines): Remove slowexp.
18840 * manual/probes.texi (slowexp_p6): Remove.
18841 (slowexp_p32): Likewise.
18842
18843 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18844 James Clarke <jrtc27@jrtc27.com>
18845
18846 [BZ #22603]
18847 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18848 addition.
18849
18850 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18851
18852 [BZ #22605]
18853 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18854 code.
18855
18856 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18857
18858 [BZ #22563]
18859 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18860 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18861 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18862 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18863 to feature_1.
18864
18865 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18866
18867 [BZ #22563]
18868 * bits/types/__cancel_jmp_buf_tag.h: New file.
18869 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18870 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18871 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18872 * nptl/Makefile (headers): Add
18873 bits/types/__cancel_jmp_buf_tag.h.
18874 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18875 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18876 * sysdeps/nptl/pthread.h: Include
18877 <bits/types/__cancel_jmp_buf_tag.h>.
18878 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18879 __cancel_jmp_buf.
18880 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18881
18882 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18883
18884 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18885 --enable-static-pie variants to x86_64, x32 and i686.
18886
18887 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18888
18889 [BZ #22631]
18890 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18891 argument for attrubutes. All callers changed.
18892 (__inline_mathop1): Likewise. All callers changed.
18893 (__inline_mathop): Likewise. All callers changed.
18894 [__USE_MISC] (scalbn): Use __inline_forward instead of
18895 __inline_forward_c.
18896 [__USE_ISOC99] (scalbln): Likewise.
18897 [__USE_ISOC99] (nearbyint): Likewise.
18898 [__USE_ISOC99] (lrint): Likewise.
18899 [__USE_MISC] (scalbnf): Likewise.
18900 [__USE_ISOC99] (scalblnf): Likewise.
18901 [__USE_ISOC99] (nearbyintf): Likewise.
18902 [__USE_ISOC99] (lrintf): Likewise.
18903 [__USE_MISC] (scalbnl): Likewise.
18904 [__USE_ISOC99] (scalblnl): Likewise.
18905 [__USE_ISOC99] (nearbyintl): Likewise.
18906 [__USE_ISOC99] (lrintl): Likewise.
18907 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18908 __inline_mathop and __m81_defun changed.
18909
18910 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18911 CPU or FPU for ARM hard-float configurations.
18912
18913 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18914
18915 * nptl/tst-attr3.c: Include <libc-diag.h>.
18916 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18917
18918 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18919
18920 * string/tester.c (test_strncat): Also disable -Warray-bounds
18921 warnings for two tests.
18922
18923 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18924
18925 [BZ #22614]
18926 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18927 $(cc-pie-default) == yes.
18928 * config.make.in (cc-pie-default): New.
18929 * configure.ac (libc_cv_pie_default): Renamed to ...
18930 (libc_cv_cc_pie_default): This.
18931 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18932 * configure: Regenerated.
18933
18934 2017-12-18 Florian Weimer <fweimer@redhat.com>
18935
18936 [BZ #20204]
18937 ld.so: Harden dl-libc/libdl hooks.
18938 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18939 (rtld_active): New function.
18940 * dlfcn/dladdr.c (__dladdr): Call it.
18941 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18942 * dlfcn/dlclose.c (__dlcose): Likewise.
18943 * dlfcn/dlerror.c (__dlerror): Likewise.
18944 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18945 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18946 * dlfcn/dlopen.c (__dlopen): Likewise.
18947 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18948 * dlfcn/dlsym.c (__dlsym): Likewise.
18949 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18950 * libio/vtables.c (_IO_vtable_check): Likewise.
18951 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18952 (__libc_dlclose): Likewise.
18953 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18954 assignment.
18955
18956 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18957
18958 [BZ #22446]
18959 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18960 buffers for readlink input and output.
18961
18962 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18963
18964 [BZ #22624]
18965 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18966 inhibit_stack_protector.
18967
18968 [BZ #22624]
18969 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18970 inhibit_stack_protector.
18971
18972 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18973
18974 [BZ #22627]
18975 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18976 code and invocation.
18977
18978 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18979
18980 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18981
18982 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18983
18984 [BZ #22505]
18985 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18986
18987 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18988
18989 * sysdeps/s390/fpu/libm-test-ulps: Update.
18990
18991 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18992
18993 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18994
18995 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18996
18997 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18998 constants to s_sincosf.h file.
18999 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19000 * sysdeps/ieee754/flt-32/s_sincosf.c: New
19001 implementation.
19002 * sysdeps/ieee754/flt-32/s_sincosf.h:
19003 New file.
19004
19005 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19006
19007 [BZ #14681]
19008 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
19009 before mtrace.
19010
19011 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
19012
19013 [BZ #19574]
19014 * INSTALL: Regenerated.
19015 * Makeconfig (real-static-start-installed-name): New.
19016 (pic-default): Updated for --enable-static-pie.
19017 (pie-default): New for --enable-static-pie.
19018 (default-pie-ldflag): Likewise.
19019 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
19020 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
19021 Replace $(static-start-installed-name) with
19022 $(real-static-start-installed-name).
19023 (+prectorT): Updated for --enable-static-pie.
19024 (+postctorT): Likewise.
19025 (CFLAGS-.o): Add $(pie-default).
19026 (CFLAGS-.op): Likewise.
19027 * NEWS: Mention --enable-static-pie.
19028 * config.h.in (ENABLE_STATIC_PIE): New.
19029 * configure.ac (--enable-static-pie): New configure option.
19030 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19031 (have-static-pie): Likewise.
19032 Enable static PIE if linker supports --no-dynamic-linker.
19033 (ENABLE_STATIC_PIE): New AC_DEFINE.
19034 (enable-static-pie): New LIBC_CONFIG_VAR.
19035 * configure: Regenerated.
19036 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19037 gr$(start-installed-name) for --enable-static-pie.
19038 (extra-objs): Likewise.
19039 (install-lib): Likewise.
19040 (extra-objs): Add static-reloc.o and static-reloc.os
19041 ($(objpfx)$(start-installed-name)): Also depend on
19042 $(objpfx)static-reloc.o.
19043 ($(objpfx)r$(start-installed-name)): New.
19044 ($(objpfx)g$(start-installed-name)): Also depend on
19045 $(objpfx)static-reloc.os.
19046 ($(objpfx)gr$(start-installed-name)): New.
19047 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19048 in libc.a.
19049 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19050 initimage.
19051 * csu/static-reloc.c: New file.
19052 * elf/Makefile (routines): Add dl-reloc-static-pie.
19053 (elide-routines.os): Likewise.
19054 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19055 (tst-tls1-static-non-pie-no-pie): New.
19056 * elf/dl-reloc-static-pie.c: New file.
19057 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19058 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19059 STATIC_PIE_BOOTSTRAP.
19060 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19061 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19062 (tests-static): Likewise.
19063 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19064 (tst-gmon-static-no-pie): New.
19065 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19066 (CRT-tst-gmon-static-pie): Likewise.
19067 (tst-gmon-static-pie-ENV): Likewise.
19068 (tests-special): Likewise.
19069 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19070 (clean-tst-gmon-static-pie-data): Likewise.
19071 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19072 * gmon/tst-gmon-static-pie.c: New file.
19073 * manual/install.texi: Document --enable-static-pie.
19074 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19075 (_dl_get_dl_main_map): Likewise.
19076 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19077 * sysdeps/x86_64/configure.ac: Likewise.
19078 * sysdeps/i386/configure: Regenerated.
19079 * sysdeps/x86_64/configure: Likewise.
19080 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19081 (ASFLAGS-.op): Likewise.
19082
19083 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19084
19085 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19086 * posix/tst-mmap-offset.c (fname): Use /tmp.
19087 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19088
19089 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19090
19091 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19092
19093 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19094
19095 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19096 errno.
19097
19098 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19099
19100 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19101 --with-float=hard for arm-linux-gnueabihf configurations.
19102
19103 [BZ #14121]
19104 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19105 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19106 ($(mo-installed)): Use $(objpfx)%.mo.
19107 (realclean): Remove rule.
19108
19109 * po/Makefile (linguas): Remove rule and dependencies.
19110 (linguas.mo): Likewise.
19111 (.PHONY): Do not depend on linguas and linguas.mo.
19112 (podir): Remove variable.
19113 (pofiles): Likewise.
19114 [$(pofiles)] (%.po): Remove rule.
19115
19116 * sysdeps/sparc/sparc32/Makefile
19117 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19118 start-of-line whitespace in argument of echo.
19119 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19120 with whitespace. Generate __wrap_.udiv alias.
19121 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19122 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19123 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19124 * sysdeps/sparc/sparc32/urem.S: Likewise.
19125
19126 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19127
19128 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19129 for aligned inputs.
19130
19131 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19132
19133 * benchtests/bench-strcmp.c: Print output in JSON format.
19134
19135 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19136
19137 2017-12-14 Florian Weimer <fweimer@redhat.com>
19138
19139 [BZ #22607]
19140 CVE-2017-1000409
19141 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19142 the expanded path string.
19143
19144 2017-12-14 Florian Weimer <fweimer@redhat.com>
19145
19146 [BZ #22606]
19147 CVE-2017-1000408
19148 * elf/dl-load.c (system_dirs): Update comment.
19149 (nsystem_dirs_len): Use array_length.
19150 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19151
19152 2017-12-14 Florian Weimer <fweimer@redhat.com>
19153
19154 Simplify compiling most of support/ outside of glibc.
19155 * support/check_addrinfo.c: Include <string.h>.
19156 * support/check_dns_packet.c: Likewise.
19157 * support/check_hostent.c: Likewise.
19158 * support/support_can_chroot.c: Include <support/xunistd.h>.
19159 * support/support_format_addrinfo.c: Include <stdlib.h>
19160 * support/support_format_dns_packet.c: Include <stdbool.h>.
19161 * support/support_format_hostent.c: Include <stdlib.h>.
19162 * support/support_format_netent.c: Likewise.
19163 * support/support_write_string.c: Include <support/xunistd.h>.
19164 * support/xdlfcn.c: Include <stddef.h>.
19165
19166 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19167
19168 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19169
19170 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19171 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19172
19173 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19174 (sysdeps_routines): Add memset-niagara7.
19175 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19176 Likewise.
19177 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19178 file.
19179 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19180 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19181 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19182 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19183 Add niagara7 option.
19184 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19185 memset.
19186
19187 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19188 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19189 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19190 Likewise.
19191 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19192 New file.
19193 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19194 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19195 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19196 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19197 and __memmove_niagara7.
19198 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19199 Add niagara7 option.
19200 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19201 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19202 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19203 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19204 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19205
19206 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19207
19208 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19209 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19210 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19211 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19212
19213 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19214 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19215 _dl_sparc_cap_flags array.
19216 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19217
19218 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19219
19220 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19221 time whenever possible.
19222
19223 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19224
19225 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19226 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19227
19228 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19229
19230 * soft-fp/fmadf4.c: Move to ....
19231 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19232 * soft-fp/fmasf4.c: Move to ....
19233 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19234 * soft-fp/fmatf4.c: Move to ....
19235 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19236 * sysdeps/ieee754/soft-fp/Makefile: New file.
19237 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19238 * sysdeps/arm/preconfigure: Regenerated.
19239 * sysdeps/arm/nofpu/Implies: New file.
19240 * sysdeps/arm/s_fma.c: Remove file.
19241 * sysdeps/arm/s_fmaf.c: Likewise.
19242 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19243 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19244 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19245 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19246 * sysdeps/microblaze/s_fma.c: Remove file.
19247 * sysdeps/microblaze/s_fmaf.c: Likewise.
19248 * sysdeps/mips/mips32/nofpu/Implies: New file.
19249 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19250 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19251 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19252 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19253 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19254 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19255 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19256 implementation.
19257 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19258 * sysdeps/nios2/s_fma.c: Remove file.
19259 * sysdeps/nios2/s_fmaf.c: Likewise.
19260 * sysdeps/sh/nofpu/Implies: New file.
19261 * sysdeps/sh/s_fma.c: Remove file.
19262 * sysdeps/sh/s_fmaf.c: Likewise.
19263 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19264 * sysdeps/tile/s_fma.c: Remove file.
19265 * sysdeps/tile/s_fmaf.c: Likewise.
19266
19267 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19268
19269 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19270 Add s_cosf-sse2 and s_cosf-fma.
19271 (CFLAGS-s_cosf-fma.c): New.
19272 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19273 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19274 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19275
19276 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19277
19278 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19279
19280 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19281
19282 * libio/Makefile (tests): Add tst-bz22415.
19283 (tst-bz22415-ENV): New rule.
19284 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19285 (tests-special): Add tst-bz22415-mem.out.
19286 ($(objpfx)tst-bz22415-mem.out): New rule.
19287 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19288 in case of a successful seek operation.
19289 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19290 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19291 buffer is required.
19292 * libio/tst-bz22415.c: New test.
19293
19294 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19295
19296 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19297
19298 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19299 __IPC_64 to 0 to avoid IPC_64 being set.
19300
19301 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19302
19303 [BZ #22593]
19304 * math/bits/mathcalls.h (nextafter): Remove const.
19305 (nexttoward): Likewise.
19306
19307 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19308
19309 * configure.ac (--with-fp): Remove configure option.
19310 (with_fp_cond): New variable.
19311 (libc_cv_with_fp): New configure test. Use this variable instead
19312 of with_fp.
19313 * configure: Regenerated.
19314 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19315 * manual/install.texi (Configuring and compiling): Remove
19316 --without-fp.
19317 * INSTALL: Regenerated.
19318 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19319 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19320 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19321 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19322 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19323 use --without-fp to configure glibc.
19324
19325 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19326
19327 * manual/locale.texi (nl_langinfo): Fix a typo.
19328
19329 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19330
19331 [BZ #22588]
19332 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19333
19334 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19335
19336 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19337 (CFLAGS-argp-parse.c): Likewise.
19338 (CFLAGS-argp-fmtstream.c): Likewise.
19339 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19340 (CPPFLAGS-sha512-crypt.c): Likewise.
19341 (CPPFLAGS-md5-crypt.c): Likewise.
19342 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19343 (CFLAGS-stack_chk_fail_local.c): Likewise.
19344 (CFLAGS-backtrace.c): Likewise.
19345 (CFLAGS-sprintf_chk.c): Likewise.
19346 (CFLAGS-snprintf_chk.c): Likewise.
19347 (CFLAGS-vsprintf_chk.c): Likewise.
19348 (CFLAGS-vsnprintf_chk.c): Likewise.
19349 (CFLAGS-asprintf_chk.c): Likewise.
19350 (CFLAGS-vasprintf_chk.c): Likewise.
19351 (CFLAGS-obprintf_chk.c): Likewise.
19352 (CFLAGS-dprintf_chk.c): Likewise.
19353 (CFLAGS-vdprintf_chk.c): Likewise.
19354 (CFLAGS-printf_chk.c): Likewise.
19355 (CFLAGS-fprintf_chk.c): Likewise.
19356 (CFLAGS-vprintf_chk.c): Likewise.
19357 (CFLAGS-vfprintf_chk.c): Likewise.
19358 (CFLAGS-gets_chk.c): Likewise.
19359 (CFLAGS-fgets_chk.c): Likewise.
19360 (CFLAGS-fgets_u_chk.c): Likewise.
19361 (CFLAGS-fread_chk.c): Likewise.
19362 (CFLAGS-fread_u_chk.c): Likewise.
19363 (CFLAGS-swprintf_chk.c): Likewise.
19364 (CFLAGS-vswprintf_chk.c): Likewise.
19365 (CFLAGS-wprintf_chk.c): Likewise.
19366 (CFLAGS-fwprintf_chk.c): Likewise.
19367 (CFLAGS-vwprintf_chk.c): Likewise.
19368 (CFLAGS-vfwprintf_chk.c): Likewise.
19369 (CFLAGS-fgetws_chk.c): Likewise.
19370 (CFLAGS-fgetws_u_chk.c): Likewise.
19371 (CFLAGS-read_chk.c): Likewise.
19372 (CFLAGS-pread_chk.c): Likewise.
19373 (CFLAGS-pread64_chk.c): Likewise.
19374 (CFLAGS-recv_chk.c): Likewise.
19375 (CFLAGS-recvfrom_chk.c): Likewise.
19376 (CFLAGS-tst-longjmp_chk.c): Likewise.
19377 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19378 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19379 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19380 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19381 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19382 (CFLAGS-tst-chk1.c): Likewise.
19383 (CFLAGS-tst-chk2.c): Likewise.
19384 (CFLAGS-tst-chk3.c): Likewise.
19385 (CFLAGS-tst-chk4.cc): Likewise.
19386 (CFLAGS-tst-chk5.cc): Likewise.
19387 (CFLAGS-tst-chk6.cc): Likewise.
19388 (CFLAGS-tst-lfschk1.c): Likewise.
19389 (CFLAGS-tst-lfschk2.c): Likewise.
19390 (CFLAGS-tst-lfschk3.c): Likewise.
19391 (CFLAGS-tst-lfschk4.cc): Likewise.
19392 (CFLAGS-tst-lfschk5.cc): Likewise.
19393 (CFLAGS-tst-lfschk6.cc): Likewise.
19394 (CFLAGS-tst-ssp-1.c): Likewise.
19395 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19396 (CFLAGS-scandir64.c): Likewise.
19397 (CFLAGS-scandir-tail.c): Likewise.
19398 (CFLAGS-scandir64-tail.c): Likewise.
19399 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19400 (CFLAGS-dl-tunables.c): Likewise.
19401 (CFLAGS-dl-runtime.c): Likewise.
19402 (CFLAGS-dl-lookup.c): Likewise.
19403 (CFLAGS-dl-iterate-phdr.c): Likewise.
19404 (CFLAGS-vismain.c): Likewise.
19405 (CFLAGS-tst-linkall-static.c): Likewise.
19406 (CFLAGS-tst-linkall-static.c): Likewise.
19407 (CPPFLAGS-dl-load.c): Likewise.
19408 (CFLAGS-ldconfig.c): Likewise.
19409 (CFLAGS-dl-cache.c): Likewise.
19410 (CFLAGS-cache.c): Likewise.
19411 (CFLAGS-rtld.c): Likewise.
19412 (CFLAGS-multiload.c): Likewise.
19413 (CFLAGS-filtmod1.c): Likewise.
19414 (CFLAGS-tst-align.c): Likewise.
19415 (CFLAGS-tst-align2.c): Likewise.
19416 (CFLAGS-tst-alignmod.c): Likewise.
19417 (CFLAGS-tst-alignmod2.c): Likewise.
19418 (CPPFLAGS-tst-execstack.c): Likewise.
19419 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19420 (CFLAGS-tst-latepthreadmod.c): Likewise.
19421 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19422 (CFLAGS-getgrnam_r.c): Likewise.
19423 (CFLAGS-getgrent_r.c): Likewise.
19424 (CFLAGS-getgrent.c): Likewise.
19425 (CFLAGS-fgetgrent.c): Likewise.
19426 (CFLAGS-fgetgrent_r.c): Likewise.
19427 (CFLAGS-putgrent.c): Likewise.
19428 (CFLAGS-initgroups.c): Likewise.
19429 (CFLAGS-getgrgid.c): Likewise.
19430 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19431 (CFLAGS-getsgent.c): Likewise.
19432 (CFLAGS-fgetsgent.c): Likewise.
19433 (CFLAGS-fgetsgent_r.c): Likewise.
19434 (CFLAGS-putsgent.c): Likewise.
19435 (CFLAGS-getsgnam.c): Likewise.
19436 (CFLAGS-getsgnam_r.c): Likewise.
19437 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19438 (CFLAGS-iconv_charmap.c): Likewise.
19439 (CFLAGS-dummy-repertoire.c): Likewise.
19440 (CFLAGS-charmap.c): Likewise.
19441 (CFLAGS-linereader.c): Likewise.
19442 (CFLAGS-simple-hash.c): Likewise.
19443 (CFLAGS-gconv_conf.c): Likewise.
19444 (CFLAGS-iconvconfig.c): Likewise.
19445 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19446 (CFLAGS-gethstbyad.c): Likewise.
19447 (CFLAGS-gethstbynm_r.c): Likewise.
19448 (CFLAGS-gethstbynm.c): Likewise.
19449 (CFLAGS-gethstbynm2_r.c): Likewise.
19450 (CFLAGS-gethstbynm2.c): Likewise.
19451 (CFLAGS-gethstent_r.c): Likewise.
19452 (CFLAGS-gethstent.c): Likewise.
19453 (CFLAGS-rcmd.c): Likewise.
19454 (CFLAGS-getnetbynm_r.c): Likewise.
19455 (CFLAGS-getnetbynm.c): Likewise.
19456 (CFLAGS-getnetbyad_r.c): Likewise.
19457 (CFLAGS-getnetbyad.c): Likewise.
19458 (CFLAGS-getnetent_r.c): Likewise.
19459 (CFLAGS-getnetent.c): Likewise.
19460 (CFLAGS-getaliasent_r.c): Likewise.
19461 (CFLAGS-getaliasent.c): Likewise.
19462 (CFLAGS-getrpcent_r.c): Likewise.
19463 (CFLAGS-getrpcent.c): Likewise.
19464 (CFLAGS-getservent_r.c): Likewise.
19465 (CFLAGS-getservent.c): Likewise.
19466 (CFLAGS-getprtent_r.c): Likewise.
19467 (CFLAGS-getprtent.c): Likewise.
19468 (CFLAGS-either_ntoh.c): Likewise.
19469 (CFLAGS-either_hton.c): Likewise.
19470 (CFLAGS-getnetgrent.c): Likewise.
19471 (CFLAGS-getnetgrent_r.c): Likewise.
19472 (CFLAGS-tst-checks-posix.c): Likewise.
19473 (CFLAGS-tst-sockaddr.c): Likewise.
19474 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19475 (CFLAGS-tst-translit.c): Likewise.
19476 (CFLAGS-tst-gettext2.c): Likewise.
19477 (CFLAGS-tst-codeset.c): Likewise.
19478 (CFLAGS-tst-gettext3.c): Likewise.
19479 (CFLAGS-tst-gettext4.c): Likewise.
19480 (CFLAGS-tst-gettext5.c): Likewise.
19481 (CFLAGS-tst-gettext6.c): Likewise.
19482 * io/Makefile (CFLAGS-open.c): Likewise.
19483 (CFLAGS-open64.c): Likewise.
19484 (CFLAGS-creat.c): Likewise.
19485 (CFLAGS-creat64.c): Likewise.
19486 (CFLAGS-fcntl.c): Likewise.
19487 (CFLAGS-poll.c): Likewise.
19488 (CFLAGS-ppoll.c): Likewise.
19489 (CFLAGS-lockf.c): Likewise.
19490 (CFLAGS-statfs.c): Likewise.
19491 (CFLAGS-fstatfs.c): Likewise.
19492 (CFLAGS-statvfs.c): Likewise.
19493 (CFLAGS-fstatvfs.c): Likewise.
19494 (CFLAGS-fts.c): Likewise.
19495 (CFLAGS-fts64.c): Likewise.
19496 (CFLAGS-ftw.c): Likewise.
19497 (CFLAGS-ftw64.c): Likewise.
19498 (CFLAGS-lockf.c): Likewise.
19499 (CFLAGS-posix_fallocate.c): Likewise.
19500 (CFLAGS-posix_fallocate64.c): Likewise.
19501 (CFLAGS-fallocate.c): Likewise.
19502 (CFLAGS-fallocate64.c): Likewise.
19503 (CFLAGS-read.c): Likewise.
19504 (CFLAGS-write.c): Likewise.
19505 (CFLAGS-test-stat.c): Likewise.
19506 (CFLAGS-test-lfs.c): Likewise.
19507 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19508 (CFLAGS-fputc.c): Likewise.
19509 (CFLAGS-fputwc.c): Likewise.
19510 (CFLAGS-freopen64.c): Likewise.
19511 (CFLAGS-freopen.c): Likewise.
19512 (CFLAGS-fseek.c): Likewise.
19513 (CFLAGS-fseeko64.c): Likewise.
19514 (CFLAGS-fseeko.c): Likewise.
19515 (CFLAGS-ftello64.c): Likewise.
19516 (CFLAGS-ftello.c): Likewise.
19517 (CFLAGS-fwide.c): Likewise.
19518 (CFLAGS-genops.c): Likewise.
19519 (CFLAGS-getc.c): Likewise.
19520 (CFLAGS-getchar.c): Likewise.
19521 (CFLAGS-getwc.c): Likewise.
19522 (CFLAGS-getwchar.c): Likewise.
19523 (CFLAGS-iofclose.c): Likewise.
19524 (CFLAGS-iofflush.c): Likewise.
19525 (CFLAGS-iofgetpos64.c): Likewise.
19526 (CFLAGS-iofgetpos.c): Likewise.
19527 (CFLAGS-iofgets.c): Likewise.
19528 (CFLAGS-iofgetws.c): Likewise.
19529 (CFLAGS-iofputs.c): Likewise.
19530 (CFLAGS-iofputws.c): Likewise.
19531 (CFLAGS-iofread.c): Likewise.
19532 (CFLAGS-iofsetpos64.c): Likewise.
19533 (CFLAGS-iofsetpos.c): Likewise.
19534 (CFLAGS-ioftell.c): Likewise.
19535 (CFLAGS-iofwrite.c): Likewise.
19536 (CFLAGS-iogetdelim.c): Likewise.
19537 (CFLAGS-iogetline.c): Likewise.
19538 (CFLAGS-iogets.c): Likewise.
19539 (CFLAGS-iogetwline.c): Likewise.
19540 (CFLAGS-ioputs.c): Likewise.
19541 (CFLAGS-ioseekoff.c): Likewise.
19542 (CFLAGS-ioseekpos.c): Likewise.
19543 (CFLAGS-iosetbuffer.c): Likewise.
19544 (CFLAGS-iosetvbuf.c): Likewise.
19545 (CFLAGS-ioungetc.c): Likewise.
19546 (CFLAGS-ioungetwc.c): Likewise.
19547 (CFLAGS-oldfileops.c): Likewise.
19548 (CFLAGS-oldiofclose.c): Likewise.
19549 (CFLAGS-oldiofgetpos64.c): Likewise.
19550 (CFLAGS-oldiofgetpos.c): Likewise.
19551 (CFLAGS-oldiofsetpos64.c): Likewise.
19552 (CFLAGS-oldiofsetpos.c): Likewise.
19553 (CFLAGS-peekc.c): Likewise.
19554 (CFLAGS-putc.c): Likewise.
19555 (CFLAGS-putchar.c): Likewise.
19556 (CFLAGS-putwc.c): Likewise.
19557 (CFLAGS-putwchar.c): Likewise.
19558 (CFLAGS-rewind.c): Likewise.
19559 (CFLAGS-wfileops.c): Likewise.
19560 (CFLAGS-wgenops.c): Likewise.
19561 (CFLAGS-oldiofopen.c): Likewise.
19562 (CFLAGS-iofopen.c): Likewise.
19563 (CFLAGS-iofopen64.c): Likewise.
19564 (CFLAGS-oldtmpfile.c): Likewise.
19565 (CFLAGS-tst_putwc.c): Likewise.
19566 * locale/Makefile (CFLAGS-md5.c): Likewise.
19567 (CFLAGS-charmap.c): Likewise.
19568 (CFLAGS-locfile.c): Likewise.
19569 (CFLAGS-charmap-dir.c): Likewise.
19570 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19571 (CFLAGS-getpt.c): Likewise.
19572 (CFLAGS-pt_chown.c): Likewise.
19573 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19574 (CFLAGS-obstack.c): Likewise.
19575 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19576 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19577 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19578 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19579 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19580 (CFLAGS-test-tgmath.c): Likewise.
19581 (CFLAGS-test-tgmath2.c): Likewise.
19582 (CFLAGS-test-tgmath-ret.c): Likewise.
19583 (CFLAGS-test-powl.c): Likewise.
19584 (CFLAGS-test-snan.c): Likewise.
19585 (CFLAGS-test-signgam-finite.c): Likewise.
19586 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19587 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19588 (CFLAGS-test-signgam-uchar.c): Likewise.
19589 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19590 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19591 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19592 (CFLAGS-test-signgam-uint.c): Likewise.
19593 (CFLAGS-test-signgam-uint-init.c): Likewise.
19594 (CFLAGS-test-signgam-uint-static.c): Likewise.
19595 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19596 (CFLAGS-test-signgam-ullong.c): Likewise.
19597 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19598 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19599 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19600 (CFLAGS-test-math-cxx11.cc): Likewise.
19601 (CFLAGS-test-math-isinff.cc): Likewise.
19602 (CFLAGS-test-math-iszero.cc): Likewise.
19603 (CFLAGS-test-math-issignaling.cc): Likewise.
19604 (CFLAGS-test-math-iscanonical.cc): Likewise.
19605 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19606 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19607 (CFLAGS-test-flt-eval-method.c): Likewise.
19608 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19609 (CFLAGS-test-finite-macros.c): Likewise.
19610 * misc/Makefile (CFLAGS-select.c): Likewise.
19611 (CFLAGS-tsearch.c): Likewise.
19612 (CFLAGS-lsearch.c): Likewise.
19613 (CFLAGS-pselect.c): Likewise.
19614 (CFLAGS-readv.c): Likewise.
19615 (CFLAGS-writev.c): Likewise.
19616 (CFLAGS-preadv.c): Likewise.
19617 (CFLAGS-preadv64.c): Likewise.
19618 (CFLAGS-pwritev.c): Likewise.
19619 (CFLAGS-pwritev64.c): Likewise.
19620 (CFLAGS-preadv2.c): Likewise.
19621 (CFLAGS-preadv64v2.c): Likewise.
19622 (CFLAGS-pwritev2.c): Likewise.
19623 (CFLAGS-pwritev64v2.c): Likewise.
19624 (CFLAGS-usleep.c): Likewise.
19625 (CFLAGS-syslog.c): Likewise.
19626 (CFLAGS-error.c): Likewise.
19627 (CFLAGS-getpass.c): Likewise.
19628 (CFLAGS-mkstemp.c): Likewise.
19629 (CFLAGS-mkstemp64.c): Likewise.
19630 (CFLAGS-getsysstats.c): Likewise.
19631 (CFLAGS-getusershell.c): Likewise.
19632 (CFLAGS-err.c): Likewise.
19633 (CFLAGS-tst-tsearch.c): Likewise.
19634 (CFLAGS-msync.c): Likewise.
19635 (CFLAGS-fdatasync.c): Likewise.
19636 (CFLAGS-fsync.c): Likewise.
19637 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19638 (CFLAGS-unwind.c): Likewise.
19639 (CFLAGS-unwind-forcedunwind.c): Likewise.
19640 (CFLAGS-pthread_cancel.c): Likewise.
19641 (CFLAGS-pthread_setcancelstate.c): Likewise.
19642 (CFLAGS-pthread_setcanceltype.c): Likewise.
19643 (CFLAGS-cancellation.c): Likewise.
19644 (CFLAGS-libc-cancellation.c): Likewise.
19645 (CFLAGS-pthread_exit.c): Likewise.
19646 (CFLAGS-forward.c): Likewise.
19647 (CFLAGS-pthread_testcancel.c): Likewise.
19648 (CFLAGS-pthread_join.c): Likewise.
19649 (CFLAGS-pthread_timedjoin.c): Likewise.
19650 (CFLAGS-pthread_once.c): Likewise.
19651 (CFLAGS-pthread_cond_wait.c): Likewise.
19652 (CFLAGS-sem_wait.c): Likewise.
19653 (CFLAGS-sem_timedwait.c): Likewise.
19654 (CFLAGS-fcntl.c): Likewise.
19655 (CFLAGS-lockf.c): Likewise.
19656 (CFLAGS-pread.c): Likewise.
19657 (CFLAGS-pread64.c): Likewise.
19658 (CFLAGS-pwrite.c): Likewise.
19659 (CFLAGS-pwrite64.c): Likewise.
19660 (CFLAGS-wait.c): Likewise.
19661 (CFLAGS-waitpid.c): Likewise.
19662 (CFLAGS-sigwait.c): Likewise.
19663 (CFLAGS-msgrcv.c): Likewise.
19664 (CFLAGS-msgsnd.c): Likewise.
19665 (CFLAGS-tcdrain.c): Likewise.
19666 (CFLAGS-open.c): Likewise.
19667 (CFLAGS-open64.c): Likewise.
19668 (CFLAGS-pause.c): Likewise.
19669 (CFLAGS-recv.c): Likewise.
19670 (CFLAGS-send.c): Likewise.
19671 (CFLAGS-accept.c): Likewise.
19672 (CFLAGS-sendto.c): Likewise.
19673 (CFLAGS-connect.c): Likewise.
19674 (CFLAGS-recvfrom.c): Likewise.
19675 (CFLAGS-recvmsg.c): Likewise.
19676 (CFLAGS-sendmsg.c): Likewise.
19677 (CFLAGS-close.c): Likewise.
19678 (CFLAGS-read.c): Likewise.
19679 (CFLAGS-write.c): Likewise.
19680 (CFLAGS-nanosleep.c): Likewise.
19681 (CFLAGS-sigsuspend.c): Likewise.
19682 (CFLAGS-msync.c): Likewise.
19683 (CFLAGS-fdatasync.c): Likewise.
19684 (CFLAGS-fsync.c): Likewise.
19685 (CFLAGS-pt-system.c): Likewise.
19686 (CFLAGS-tst-cleanup2.c): Likewise.
19687 (CFLAGS-tst-cleanupx2.c): Likewise.
19688 (CFLAGS-flockfile.c): Likewise.
19689 (CFLAGS-ftrylockfile.c): Likewise.
19690 (CFLAGS-funlockfile.c): Likewise.
19691 (CFLAGS-tst-initializers1.c): Likewise.
19692 (CFLAGS-tst-initializers1-c89.c): Likewise.
19693 (CFLAGS-tst-initializers1-c99.c): Likewise.
19694 (CFLAGS-tst-initializers1-c11.c): Likewise.
19695 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19696 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19697 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19698 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19699 (CFLAGS-nscd_getgr_r.c): Likewise.
19700 (CFLAGS-nscd_gethst_r.c): Likewise.
19701 (CFLAGS-nscd_getai.c): Likewise.
19702 (CFLAGS-nscd_initgroups.c): Likewise.
19703 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19704 (CFLAGS-pause.c): Likewise.
19705 (CFLAGS-pread.c): Likewise.
19706 (CFLAGS-pread64.c): Likewise.
19707 (CFLAGS-pwrite.c): Likewise.
19708 (CFLAGS-pwrite64.c): Likewise.
19709 (CFLAGS-sleep.c): Likewise.
19710 (CFLAGS-wait.c): Likewise.
19711 (CFLAGS-waitid.c): Likewise.
19712 (CFLAGS-waitpid.c): Likewise.
19713 (CFLAGS-getopt.c): Likewise.
19714 (CFLAGS-wordexp.c): Likewise.
19715 (CFLAGS-sysconf.c): Likewise.
19716 (CFLAGS-pathconf.c): Likewise.
19717 (CFLAGS-fpathconf.c): Likewise.
19718 (CFLAGS-spawn.c): Likewise.
19719 (CFLAGS-spawnp.c): Likewise.
19720 (CFLAGS-spawni.c): Likewise.
19721 (CFLAGS-glob.c): Likewise.
19722 (CFLAGS-glob64.c): Likewise.
19723 (CFLAGS-getconf.c): Likewise.
19724 (CFLAGS-nanosleep.c): Likewise.
19725 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19726 (CFLAGS-getpwent.c): Likewise.
19727 (CFLAGS-getpw.c): Likewise.
19728 (CFLAGS-fgetpwent_r.c): Likewise.
19729 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19730 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19731 (CFLAGS-mq_timedreceive.c): Likewise.
19732 (CFLAGS-mq_timedsend.c): Likewise.
19733 (CFLAGS-clock_nanosleep.c): Likewise.
19734 (CFLAGS-librt-cancellation.c): Likewise.
19735 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19736 (CFLAGS-getspent.c): Likewise.
19737 (CFLAGS-fgetspent.c): Likewise.
19738 (CFLAGS-fgetspent_r.c): Likewise.
19739 (CFLAGS-putspent.c): Likewise.
19740 (CFLAGS-getspnam.c): Likewise.
19741 (CFLAGS-getspnam_r.c): Likewise.
19742 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19743 (CFLAGS-sigsuspend.c): Likewise.
19744 (CFLAGS-sigtimedwait.c): Likewise.
19745 (CFLAGS-sigwait.c): Likewise.
19746 (CFLAGS-sigwaitinfo.c): Likewise.
19747 (CFLAGS-sigreturn.c): Likewise.
19748 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19749 (CFLAGS-vfwprintf.c): Likewise.
19750 (CFLAGS-tmpfile.c): Likewise.
19751 (CFLAGS-tmpfile64.c): Likewise.
19752 (CFLAGS-tempname.c): Likewise.
19753 (CFLAGS-psignal.c): Likewise.
19754 (CFLAGS-vprintf.c): Likewise.
19755 (CFLAGS-cuserid.c): Likewise.
19756 (CFLAGS-errlist.c): Likewise.
19757 (CFLAGS-siglist.c): Likewise.
19758 (CFLAGS-scanf15.c): Likewise.
19759 (CFLAGS-scanf17.c): Likewise.
19760 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19761 (CFLAGS-msort.c): Likewise.
19762 (CFLAGS-qsort.c): Likewise.
19763 (CFLAGS-system.c): Likewise.
19764 (CFLAGS-fmtmsg.c): Likewise.
19765 (CFLAGS-strfmon.c): Likewise.
19766 (CFLAGS-strfmon_l.c): Likewise.
19767 (CFLAGS-strfromd.c): Likewise.
19768 (CFLAGS-strfromf.c): Likewise.
19769 (CFLAGS-strfroml.c): Likewise.
19770 (CFLAGS-tst-bsearch.c): Likewise.
19771 (CFLAGS-tst-qsort.c): Likewise.
19772 (CFLAGS-tst-makecontext2.c): Likewise.
19773 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19774 (CFLAGS-xnlm_prot.c): Likewise.
19775 (CFLAGS-xrstat.c): Likewise.
19776 (CFLAGS-xyppasswd.c): Likewise.
19777 (CFLAGS-xklm_prot.c): Likewise.
19778 (CFLAGS-xrex.c): Likewise.
19779 (CFLAGS-xsm_inter.c): Likewise.
19780 (CFLAGS-xmount.c): Likewise.
19781 (CFLAGS-xrusers.c): Likewise.
19782 (CFLAGS-xspray.c): Likewise.
19783 (CFLAGS-xnfs_prot.c): Likewise.
19784 (CFLAGS-xrquota.c): Likewise.
19785 (CFLAGS-xkey_prot.c): Likewise.
19786 (CFLAGS-auth_unix.c): Likewise.
19787 (CFLAGS-key_call.c): Likewise.
19788 (CFLAGS-pmap_rmt.c): Likewise.
19789 (CFLAGS-clnt_perr.c): Likewise.
19790 (CFLAGS-openchild.c): Likewise.
19791 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19792 (CFLAGS-msgsnd.c): Likewise.
19793 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19794 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19795 (CFLAGS-tzset.c): Likewise.
19796 (CFLAGS-getdate.c): Likewise.
19797 (CFLAGS-test_time.c): Likewise.
19798 (CPPFLAGS-tst-tzname.c): Likewise.
19799 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19800 (CFLAGS-zic.c): Likewise.
19801 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19802 (CFLAGS-wcswidth.c): Likewise.
19803 (CFLAGS-wcstol.c): Likewise.
19804 (CFLAGS-wcstoul.c): Likewise.
19805 (CFLAGS-wcstoll.c): Likewise.
19806 (CFLAGS-wcstoull.c): Likewise.
19807 (CFLAGS-wcstod.c): Likewise.
19808 (CFLAGS-wcstold.c): Likewise.
19809 (CFLAGS-wcstof128.c): Likewise.
19810 (CFLAGS-wcstof.c): Likewise.
19811 (CFLAGS-wcstol_l.c): Likewise.
19812 (CFLAGS-wcstoul_l.c): Likewise.
19813 (CFLAGS-wcstoll_l.c): Likewise.
19814 (CFLAGS-wcstoull_l.c): Likewise.
19815 (CFLAGS-wcstod_l.c): Likewise.
19816 (CFLAGS-wcstold_l.c): Likewise.
19817 (CFLAGS-wcstof128_l.c): Likewise.
19818 (CFLAGS-wcstof_l.c): Likewise.
19819 (CPPFLAGS-tst-wchar-h.c): Likewise.
19820 (CPPFLAGS-wcstold_l.c): Likewise.
19821
19822 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19823
19824 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19825
19826 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19827 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19828
19829 * manual/tunables.texi (Hardware Capability Tunables): Document
19830 glibc.tune.cached_memopt.
19831 * sysdeps/powerpc/cpu-features.c: New file.
19832 * sysdeps/powerpc/cpu-features.h: New file.
19833 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19834 _dl_powerpc_cpu_features.
19835 * sysdeps/powerpc/dl-tunables.list: New file.
19836 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19837 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19838 (INIT_ARCH): Initialize use_aligned_memopt.
19839 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19840 IS_IN(rtld))]: Restrict dl_platform_init availability and
19841 initialize CPU features used by tunables.
19842 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19843 Add memcpy-power8-cached.
19844 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19845 __memcpy_power8_cached.
19846 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19847 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19848 New file.
19849
19850 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19851
19852 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19853 (CFLAGS-noinl-tester.c): Likewise.
19854 (CFLAGS-tst-strlen.c): Likewise.
19855 (CFLAGS-stratcliff.c): Likewise.
19856 (CFLAGS-test-ffs.c): Likewise.
19857 (CFLAGS-tst-inlcall.c): Likewise.
19858 (CFLAGS-tst-xbzero-opt.c): Likewise.
19859 (CFLAGS-memcpy.c): Likewise.
19860 (CFLAGS-wordcopy.c): Likewise.
19861
19862 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19863
19864 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19865 Store r15 on stack and add cfi rule.
19866 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19867 Likewise.
19868
19869 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19870
19871 [BZ #22577]
19872 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19873 call.
19874
19875 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19876
19877 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19878 Add s_sinf-sse2 and s_sinf-fma.
19879 (CFLAGS-s_sinf-fma.c): New.
19880 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19881 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19882 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19883
19884 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19885
19886 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19887
19888 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19889
19890 [BZ #22568]
19891 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19892 part of result to imaginary part of argument if it is zero and the
19893 real part of the argument is not finite.
19894 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19895 of result to real part of argument if it is zero and the imaginary
19896 part of the argument is not finite.
19897
19898 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19899
19900 [BZ #22524]
19901 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19902 and to the list of locales to be built for testing.
19903 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19904 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19905 and build the collation rules upon that.
19906
19907 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19908
19909 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19910 * manual/math.texi (Mathematics): Document support for _Float32.
19911 * math/Makefile (test-types): Add float32.
19912 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19913 * stdlib/Versions (GLIBC_2.27): Likewise.
19914 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19915 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19916 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19917 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19918 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19919 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19920 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19921 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19922 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19923 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19924 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19925 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19926 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19927 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19928 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19929 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19930 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19931 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19932 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19933 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19934 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19935 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19936 Likewise.
19937 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19938 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19939 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19940 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19941 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19943 Likewise.
19944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19945 Likewise.
19946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19947 Likewise.
19948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19949 Likewise.
19950
19951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19952 Likewise.
19953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19954 Likewise.
19955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19956 Likewise.
19957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19958 Likewise.
19959 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19960 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19961 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19962 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19963 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19964 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19965 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19966 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19967 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19968 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19969 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19970 Likewise.
19971 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19972 Likewise.
19973 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19974 Likewise.
19975 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19976 Likewise.
19977 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19978 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19979 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19980 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19981 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19982 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19983 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19984 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19985
19986 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19987
19988 * stdlib/strtof.c: Include <bits/floatn.h>
19989 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19990 and later undefine as macro. Define as weak alias if
19991 [!USE_WIDE_CHAR].
19992 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19993 and later undefine as macro. Define as weak alias if
19994 [USE_WIDE_CHAR].
19995 * stdlib/strtof_l.c: Include <bits/floatn.h>
19996 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19997 and later undefine as macro. Define as weak alias if
19998 [!USE_WIDE_CHAR].
19999 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
20000 and later undefine as macro. Define as weak alias if
20001 [USE_WIDE_CHAR].
20002
20003 * stdlib/strfromf.c: Include <bits/floatn.h>.
20004 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
20005 and later undefine as macro and define as weak alias.
20006
20007 * math/test-float32.h: New file.
20008
20009 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
20010 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
20011 (libm_alias_float_other_r): Create f32 alias.
20012 (libm_alias_float_r): Use semicolon before call to
20013 libm_alias_float_other_r.
20014
20015 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
20016 second argument to libm_alias_float_other.
20017 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
20018 second argument to libm_alias_float_other.
20019 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
20020 argument to libm_alias_float_other.
20021
20022 [BZ #22561]
20023 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
20024 real part of result for argument 0 + i * NaN.
20025 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
20026 results for tests of 0 + i * NaN.
20027
20028 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20029
20030 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20031
20032 2017-12-06 David S. Miller <davem@davemloft.net>
20033
20034 * sysdeps/sparc/fpu/libm-test-ulps: Update
20035 exp_{downward,towardzero,upward} ulps.
20036
20037 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20038
20039 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20040 variables static.
20041
20042 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20043 (Y0_2D): Likewise.
20044 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20045 (Y0_2D): Likewise.
20046 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20047 (Y0_2D): Likewise.
20048 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20049 (Y0_2D): Likewise.
20050
20051 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20052
20053 [BZ #22515]
20054 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20055 and to the list of locales to be built for testing.
20056 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20057 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20058 and build the collation rules upon that.
20059
20060 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20061
20062 * NEWS: Add sinf to list of optimized functions.
20063
20064 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20065
20066 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20067 (__HAVE_FLOAT32X): Likewise.
20068 * manual/math.texi (Mathematics): Document support for _Float64
20069 and _Float32x.
20070 * math/Makefile (test-types): Add float64 and float32x.
20071 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20072 functions.
20073 * stdlib/Versions (GLIBC_2.27): Likewise.
20074 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20075 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20076 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20077 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20078 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20079 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20080 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20081 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20082 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20084 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20085 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20086 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20087 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20088 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20089 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20090 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20091 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20092 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20094 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20095 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20096 Likewise.
20097 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20098 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20099 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20100 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20101 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20103 Likewise.
20104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20105 Likewise.
20106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20107 Likewise.
20108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20109 Likewise.
20110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20111 Likewise.
20112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20113 Likewise.
20114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20115 Likewise.
20116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20117 Likewise.
20118 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20119 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20120 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20121 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20122 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20123 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20124 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20125 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20126 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20127 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20128 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20129 Likewise.
20130 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20131 Likewise.
20132 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20133 Likewise.
20134 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20135 Likewise.
20136 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20137 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20138 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20139 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20140 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20141 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20142 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20143 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20144
20145 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20146
20147 * bits/floatn-common.h: Include <bits/long-double.h>.
20148 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20149 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20150 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20151 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20152 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20153 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20154 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20155 (__builtin_huge_valf64): Use __builtin_huge_vall.
20156 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20157 (__builtin_inff64): Use __builtin_infl.
20158 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20159 (__builtin_nanf64): Use __builtin_nanl.
20160 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20161 (__builtin_nansf64): Use __builtin_nansl.
20162
20163 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20164 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20165 Carlos O'Donnell <carlos@redhat.com>
20166
20167 * elf/dl-tunables.list: Add elision parameters.
20168 * manual/tunables.texi: Add entries about elision tunable.
20169 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20170 Add callback functions to dynamically enable/disable elision.
20171 Add multiple callbacks functions to set elision parameters.
20172 Deleted __libc_enable_secure check.
20173 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20174 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20175 * configure: Regenerated.
20176 * configure.ac: Option enable_lock_elision was deleted.
20177 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20178 * config.make.in: Remove references to enable_lock_elision.
20179 * manual/install.texi: Elision configure option was removed.
20180 * INSTALL: Regenerated to remove enable_lock_elision.
20181 * nptl/Makefile:
20182 Disable elision so it can verify error case for destroying a mutex.
20183 * sysdeps/powerpc/nptl/elide.h:
20184 Cleanup ENABLE_LOCK_ELISION check.
20185 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20186 * sysdeps/s390/configure: Regenerated.
20187 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20188 * nptl/tst-mutex8.c:
20189 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20190 * sysdeps/powerpc/powerpc32/sysdep.h:
20191 Deleted all ENABLE_LOCK_ELISION checks.
20192 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20193 * sysdeps/powerpc/sysdep.h: Likewise.
20194 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20195 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20196 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20197 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20198 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20199 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20200 enable-lock-elision.
20201
20202 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20203
20204 * stdlib/strtod.c: Include <bits/floatn.h>.
20205 (BUILD_DOUBLE): New macro.
20206 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20207 (strtof64): Define and later undefine as macro. Define as weak
20208 alias if [!USE_WIDE_CHAR].
20209 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20210 (wcstof64): Define and later undefine as macro. Define as weak
20211 alias if [USE_WIDE_CHAR].
20212 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20213 (strtof32x): Define and later undefine as macro. Define as weak
20214 alias if [!USE_WIDE_CHAR].
20215 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20216 (wcstof32x): Define and later undefine as macro. Define as weak
20217 alias if [USE_WIDE_CHAR].
20218 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20219 (BUILD_DOUBLE): New macro.
20220 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20221 (strtof64_l): Define and later undefine as macro. Define as weak
20222 alias if [!USE_WIDE_CHAR].
20223 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20224 (wcstof64_l): Define and later undefine as macro. Define as weak
20225 alias if [USE_WIDE_CHAR].
20226 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20227 (strtof32x_l): Define and later undefine as macro. Define as weak
20228 alias if [!USE_WIDE_CHAR].
20229 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20230 (wcstof32x_l): Define and later undefine as macro. Define as weak
20231 alias if [USE_WIDE_CHAR].
20232
20233 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20234
20235 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20236 (reduced): Use ones as double instead of integer.
20237
20238 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20239
20240 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20241
20242 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20243
20244 * stdlib/strfromd.c: Include <bits/floatn.h>.
20245 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20246 and later undefine as macro and define as weak alias.
20247 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20248 Likewise.
20249
20250 * math/test-float32x.h: New file.
20251 * math/test-float64.h: Likewise.
20252
20253 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20254 (libm_alias_double_other_r_f64): New macro.
20255 (libm_alias_double_other_r_f32x): Likewise.
20256 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20257 libm_alias_double_other_r_f32x.
20258 (libm_alias_double_r): Use semicolon before call to
20259 libm_alias_double_other_r.
20260 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20261 <bits/floatn.h>.
20262 (libm_alias_double_other_r_f64): New macro.
20263 (libm_alias_double_other_r_f32x): Likewise.
20264 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20265 libm_alias_double_other_r_f32x.
20266
20267 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20268
20269 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20270 int.
20271 (SINF_FUNC): Likewise. Replace floor with simple casts.
20272
20273 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20274
20275 [BZ #22517]
20276 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20277 and to the list of locales to be built for testing.
20278 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20279 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20280 and build the collation rules upon that.
20281
20282 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20283
20284 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20285 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20286 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20287 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20288 instead of __insn__xxx.
20289 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20290 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20291 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20292 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20293 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20294 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20295
20296 2017-12-05 Florian Weimer <fweimer@redhat.com>
20297
20298 Linux: Implement interfaces for memory protection keys
20299 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20300 xsignal, xsysconf.
20301 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20302 * support/xunistd.h (xsysconf): Declare.
20303 * support/xraise.c: New file.
20304 * support/xsigaction.c: Likewise.
20305 * support/xsignal.c: Likewise.
20306 * support/xsysconf.c: Likewise.
20307 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20308 pkey_set, pkey_get, pkey_mprotect.
20309 [misc] (tests): Add tst-pkey.
20310 (tst-pkey): Link with -lpthread.
20311 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20312 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20313 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20314 (PKEY_DISABLE_WRITE): Define.
20315 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20316 Declare.
20317 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20318 (SEGV_PKUERR): Add.
20319 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20320 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20321 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20322 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20323 Add.
20324 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20325 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20326 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20327 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20328 * sysdeps/unix/sysv/linux/**.abilist: Update.
20329
20330 2017-12-05 Florian Weimer <fweimer@redhat.com>
20331
20332 * support/tst-test_compare.c (subprocess): Use long long instead
20333 of long argument for consistent type width across 32-bit and
20334 64-bit architectures.
20335 (do_test): Adjust expected output.
20336
20337 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20338
20339 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20340 (cosf): Define using libm_alias_float.
20341 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20342 (fabsf): Define using libm_alias_float.
20343 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20344 (fmaf): Define using libm_alias_float.
20345 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20346 (rintf): Define using libm_alias_float.
20347 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20348 (sinf): Define using libm_alias_float.
20349 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20350 <libm-alias-float.h>.
20351 (modff): Define using libm_alias_float.
20352 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20353 <libm-alias-float.h>.
20354 (logbf): Define using libm_alias_float.
20355 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20356 <libm-alias-float.h>.
20357 (ceilf): Define using libm_alias_float.
20358 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20359 <libm-alias-float.h>.
20360 (copysignf): Define using libm_alias_float.
20361 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20362 <libm-alias-float.h>.
20363 (floorf): Define using libm_alias_float.
20364 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20365 <libm-alias-float.h>.
20366 (llrintf): Define using libm_alias_float.
20367 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20368 <libm-alias-float.h>.
20369 (llroundf): Define using libm_alias_float.
20370 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20371 <libm-alias-float.h>.
20372 (lrintf): Define using libm_alias_float.
20373 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20374 <libm-alias-float.h>.
20375 (lroundf): Define using libm_alias_float.
20376 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20377 <libm-alias-float.h>.
20378 (nearbyintf): Define using libm_alias_float.
20379 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20380 <libm-alias-float.h>.
20381 (rintf): Define using libm_alias_float.
20382 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20383 <libm-alias-float.h>.
20384 (roundf): Define using libm_alias_float.
20385 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20386 <libm-alias-float.h>.
20387 (truncf): Define using libm_alias_float.
20388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20389 Include <libm-alias-float.h>.
20390 (ceilf): Define using libm_alias_float.
20391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20392 Include <libm-alias-float.h>.
20393 (copysignf): Define using libm_alias_float.
20394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20395 Include <libm-alias-float.h>.
20396 (floorf): Define using libm_alias_float.
20397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20398 Include <libm-alias-float.h>.
20399 (llrintf): Define using libm_alias_float.
20400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20401 Include <libm-alias-float.h>.
20402 (llroundf): Define using libm_alias_float.
20403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20404 Include <libm-alias-float.h>.
20405 (logbf): Define using libm_alias_float.
20406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20407 Include <libm-alias-float.h>.
20408 (lrintf): Define using libm_alias_float.
20409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20410 Include <libm-alias-float.h>.
20411 (lroundf): Define using libm_alias_float.
20412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20413 Include <libm-alias-float.h>.
20414 (modff): Define using libm_alias_float.
20415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20416 Include <libm-alias-float.h>.
20417 (roundf): Define using libm_alias_float.
20418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20419 Include <libm-alias-float.h>.
20420 (truncf): Define using libm_alias_float.
20421 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20422 <libm-alias-float.h>.
20423 (llrintf): Define using libm_alias_float.
20424 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20425 <libm-alias-float.h>.
20426 (llroundf): Define using libm_alias_float.
20427 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20428 <libm-alias-float.h>.
20429 (ceilf): Define using libm_alias_float.
20430 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20431 <libm-alias-float.h>.
20432 (floorf): Define using libm_alias_float.
20433 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20434 <libm-alias-float.h>.
20435 (llroundf): Define using libm_alias_float.
20436 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20437 <libm-alias-float.h>.
20438 (lroundf): Define using libm_alias_float.
20439 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20440 <libm-alias-float.h>.
20441 (roundf): Define using libm_alias_float.
20442 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20443 <libm-alias-float.h>.
20444 (truncf): Define using libm_alias_float.
20445 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20446 <libm-alias-float.h>.
20447 (copysignf): Define using libm_alias_float.
20448 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20449 <libm-alias-float.h>.
20450 (llrintf): Define using libm_alias_float.
20451 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20452 <libm-alias-float.h>.
20453 (llroundf): Define using libm_alias_float.
20454 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20455 <libm-alias-float.h>.
20456 (lrintf): Define using libm_alias_float.
20457 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20458 <libm-alias-float.h>.
20459 (lroundf): Define using libm_alias_float.
20460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20461 <libm-alias-float.h>.
20462 (ceilf): Define using libm_alias_float.
20463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20464 <libm-alias-float.h>.
20465 (copysignf): Define using libm_alias_float.
20466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20467 <libm-alias-float.h>.
20468 (cosf): Define using libm_alias_float.
20469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20470 <libm-alias-float.h>.
20471 (floorf): Define using libm_alias_float.
20472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20473 <libm-alias-float.h>.
20474 (llrintf): Define using libm_alias_float.
20475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20476 <libm-alias-float.h>.
20477 (llroundf): Define using libm_alias_float.
20478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20479 <libm-alias-float.h>.
20480 (logbf): Define using libm_alias_float.
20481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20482 <libm-alias-float.h>.
20483 (modff): Define using libm_alias_float.
20484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20485 <libm-alias-float.h>.
20486 (roundf): Define using libm_alias_float.
20487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20488 <libm-alias-float.h>.
20489 (sinf): Define using libm_alias_float.
20490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20491 <libm-alias-float.h>.
20492 (truncf): Define using libm_alias_float.
20493 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20494 <libm-alias-float.h>.
20495 (ceilf): Define using libm_alias_float.
20496 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20497 <libm-alias-float.h>.
20498 (copysignf): Define using libm_alias_float.
20499 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20500 <libm-alias-float.h>.
20501 (floorf): Define using libm_alias_float.
20502 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20503 <libm-alias-float.h>.
20504 (llrintf): Define using libm_alias_float.
20505 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20506 <libm-alias-float.h>.
20507 (llroundf): Define using libm_alias_float.
20508 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20509 <libm-alias-float.h>.
20510 (nearbyintf): Define using libm_alias_float.
20511 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20512 <libm-alias-float.h>.
20513 (rintf): Define using libm_alias_float.
20514 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20515 <libm-alias-float.h>.
20516 (roundf): Define using libm_alias_float.
20517 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20518 <libm-alias-float.h>.
20519 (truncf): Define using libm_alias_float.
20520 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20521 <libm-alias-float.h>.
20522 (ceilf): Define using libm_alias_float.
20523 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20524 <libm-alias-float.h>.
20525 (floorf): Define using libm_alias_float.
20526 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20527 <libm-alias-float.h>.
20528 (llroundf): Define using libm_alias_float.
20529 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20530 <libm-alias-float.h>.
20531 (roundf): Define using libm_alias_float.
20532 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20533 <libm-alias-float.h>.
20534 (truncf): Define using libm_alias_float.
20535 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20536 <libm-alias-float.h>.
20537 (copysignf): Define using libm_alias_float.
20538 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20539 <libm-alias-float.h>.
20540 (llrintf): Define using libm_alias_float.
20541 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20542 <libm-alias-float.h>.
20543 (llroundf): Define using libm_alias_float.
20544 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20545 <libm-alias-float.h>.
20546 (cosf): Define using libm_alias_float.
20547 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20548 <libm-alias-float.h>.
20549 (llrintf): Define using libm_alias_float.
20550 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20551 <libm-alias-float.h>.
20552 (llroundf): Define using libm_alias_float.
20553 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20554 <libm-alias-float.h>.
20555 (sinf): Define using libm_alias_float.
20556
20557 2017-12-04 Florian Weimer <fweimer@redhat.com>
20558
20559 * support/check.h (TEST_COMPARE): Define.
20560 (support_test_compare_failure): Declare.
20561 * support/Makefile (libsupport-routines): Add
20562 support_test_compare_failure.
20563 (tests): Add tst-test_compare.
20564 * support /support_test_compare_failure.c: New file.
20565 * support/tst-test_compare.c: Likewise.
20566
20567 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20568
20569 [BZ #22527]
20570 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20571 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20572 available, this rewrite of the collation rules does reproduce
20573 the test file in the same order.
20574
20575 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20576
20577 [BZ #10580]
20578 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20579 digraphs in the month and day names. Using single code points for
20580 digraphs is deprecated. While there are dedicated Unicode
20581 codepoints, for the digraphs, these are included for backwards
20582 compatibility and modern texts use a sequence of Basic Latin
20583 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20584 This makes the month and day names agree exactly with CLDR now,
20585 CLDR does not use the single code points for the digraphs either.
20586
20587 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20588
20589 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20590
20591 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20592
20593 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20594 of floor.
20595
20596 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20597
20598 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20599 Define only for libc.so.
20600
20601 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20602
20603 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20604 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20605 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20606 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20607 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20608
20609 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20610
20611 [BZ #5997]
20612 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20613
20614 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20615
20616 [BZ libc/19170]
20617 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20618 PREINIT_FUNCTION_WEAK is nonzero.
20619 (gmon_initializer): New function. Put procedure label for it in
20620 .init_array section.
20621 (_init): Don't call PREINIT_FUNCTION.
20622 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20623 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20624 value when map argument is null.
20625
20626 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20627 depi instruction from PIC pc-relative sequence.
20628 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20629 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20630 (elf_machine_load_address): Likewise.
20631 (elf_machine_runtime_setup): Likewise.
20632
20633 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20634
20635 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20636 <libm-alias-double.h>.
20637 (logb): Define using libm_alias_double.
20638 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20639 <libm-alias-double.h>.
20640 (copysign): Define using libm_alias_double.
20641 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20642 <libm-alias-double.h>.
20643 (llrint): Define using libm_alias_double.
20644 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20645 <libm-alias-double.h>.
20646 (llround): Define using libm_alias_double.
20647 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20648 <libm-alias-double.h>.
20649 (lrint): Define using libm_alias_double.
20650 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20651 <libm-alias-double.h>.
20652 (lround): Define using libm_alias_double.
20653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20654 Include <libm-alias-double.h>.
20655 (copysign): Define using libm_alias_double.
20656 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20657 Include <libm-alias-double.h>.
20658 (llrint): Define using libm_alias_double.
20659 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20660 Include <libm-alias-double.h>.
20661 (llround): Define using libm_alias_double.
20662 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20663 <libm-alias-double.h>.
20664 (logb): Define using libm_alias_double.
20665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20666 Include <libm-alias-double.h>.
20667 (lrint): Define using libm_alias_double.
20668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20669 Include <libm-alias-double.h>.
20670 (lround): Define using libm_alias_double.
20671 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20672 <libm-alias-double.h>.
20673 (llrint): Define using libm_alias_double.
20674 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20675 <libm-alias-double.h>.
20676 (llround): Define using libm_alias_double.
20677 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20678 <libm-alias-double.h>.
20679 (llround): Define using libm_alias_double.
20680 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20681 <libm-alias-double.h>.
20682 (lround): Define using libm_alias_double.
20683 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20684 <libm-alias-double.h>.
20685 (copysign): Define using libm_alias_double.
20686 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20687 <libm-alias-double.h>.
20688 (llrint): Define using libm_alias_double.
20689 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20690 <libm-alias-double.h>.
20691 (llround): Define using libm_alias_double.
20692 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20693 <libm-alias-double.h>.
20694 (lrint): Define using libm_alias_double.
20695 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20696 <libm-alias-double.h>.
20697 (lround): Define using libm_alias_double.
20698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20699 <libm-alias-double.h>.
20700 (copysign): Define using libm_alias_double.
20701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20702 <libm-alias-double.h>.
20703 (llrint): Define using libm_alias_double.
20704 (lrint): Likewise.
20705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20706 <libm-alias-double.h>.
20707 (llround): Define using libm_alias_double.
20708 (lround): Likewise.
20709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20710 <libm-alias-double.h>.
20711 (logb): Define using libm_alias_double.
20712 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20713 <libm-alias-double.h>.
20714 (copysign): Define using libm_alias_double.
20715 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20716 <libm-alias-double.h>.
20717 (llrint): Define using libm_alias_double.
20718 (lrint): Likewise.
20719 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20720 <libm-alias-double.h>.
20721 (llround): Define using libm_alias_double.
20722 (lround): Likewise.
20723 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20724 <libm-alias-double.h>.
20725 (llround): Define using libm_alias_double.
20726 (lround): Likewise.
20727 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20728 <libm-alias-double.h>.
20729 (copysign): Define using libm_alias_double.
20730 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20731 <libm-alias-double.h>.
20732 (llrint): Define using libm_alias_double.
20733 (lrint): Likewise.
20734 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20735 <libm-alias-double.h>.
20736 (llround): Define using libm_alias_double.
20737 (lround): Likewise.
20738 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20739 <libm-alias-double.h>.
20740 (llrint): Define using libm_alias_double.
20741 (lrint): Likewise.
20742 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20743 <libm-alias-double.h>.
20744 (llround): Define using libm_alias_double.
20745 (lround): Likewise.
20746
20747 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20748
20749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20750 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20751 compat symbol based on llround.
20752
20753 * sysdeps/powerpc/power7/fpu/s_logb.c
20754 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20755 symbol based on __logb, not on logb.
20756 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20757 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20759 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20760
20761 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20762 (rint): Define using libm_alias_double.
20763 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20764 <libm-alias-double.h>.
20765 (modf): Define using libm_alias_double.
20766 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20767 <libm-alias-double.h>.
20768 (ceil): Define using libm_alias_double.
20769 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20770 <libm-alias-double.h>.
20771 (floor): Define using libm_alias_double.
20772 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20773 <libm-alias-double.h>.
20774 (nearbyint): Define using libm_alias_double.
20775 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20776 <libm-alias-double.h>.
20777 (rint): Define using libm_alias_double.
20778 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20779 <libm-alias-double.h>.
20780 (round): Define using libm_alias_double.
20781 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20782 <libm-alias-double.h>.
20783 (trunc): Define using libm_alias_double.
20784 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20785 <libm-alias-double.h>.
20786 (ceil): Define using libm_alias_double.
20787 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20788 Include <libm-alias-double.h>.
20789 (floor): Define using libm_alias_double.
20790 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20791 <libm-alias-double.h>.
20792 (modf): Define using libm_alias_double.
20793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20794 Include <libm-alias-double.h>.
20795 (round): Define using libm_alias_double.
20796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20797 Include <libm-alias-double.h>.
20798 (trunc): Define using libm_alias_double.
20799 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20800 <libm-alias-double.h>.
20801 (ceil): Define using libm_alias_double.
20802 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20803 <libm-alias-double.h>.
20804 (floor): Define using libm_alias_double.
20805 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20806 <libm-alias-double.h>.
20807 (round): Define using libm_alias_double.
20808 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20809 <libm-alias-double.h>.
20810 (trunc): Define using libm_alias_double.
20811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20812 <libm-alias-double.h>.
20813 (ceil): Define using libm_alias_double.
20814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20815 <libm-alias-double.h>.
20816 (floor): Define using libm_alias_double.
20817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20818 <libm-alias-double.h>.
20819 (modf): Define using libm_alias_double.
20820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20821 <libm-alias-double.h>.
20822 (round): Define using libm_alias_double.
20823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20824 <libm-alias-double.h>.
20825 (trunc): Define using libm_alias_double.
20826 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20827 <libm-alias-double.h>.
20828 (ceil): Define using libm_alias_double.
20829 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20830 <libm-alias-double.h>.
20831 (floor): Define using libm_alias_double.
20832 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20833 <libm-alias-double.h>.
20834 (nearbyint): Define using libm_alias_double.
20835 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20836 <libm-alias-double.h>.
20837 (rint): Define using libm_alias_double.
20838 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20839 <libm-alias-double.h>.
20840 (round): Define using libm_alias_double.
20841 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20842 <libm-alias-double.h>.
20843 (trunc): Define using libm_alias_double.
20844 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20845 <libm-alias-double.h>.
20846 (ceil): Define using libm_alias_double.
20847 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20848 <libm-alias-double.h>.
20849 (floor): Define using libm_alias_double.
20850 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20851 <libm-alias-double.h>.
20852 (round): Define using libm_alias_double.
20853 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20854 <libm-alias-double.h>.
20855 (trunc): Define using libm_alias_double.
20856
20857 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20858 (fabs): Define using libm_alias_double.
20859 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20860 (fma): Define using libm_alias_double.
20861 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20862 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20863 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20864 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20865
20866 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20867
20868 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20869
20870 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20871 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20872 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20873
20874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20875 due redirect macro.
20876
20877 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20878
20879 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20880
20881 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20882
20883 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20884 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20885 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20886 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20887
20888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20889 (libm-sysdep_routines): Add s_nearbyintf-generic and
20890 s_nearbyint-generic.
20891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20892 New file.
20893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20895 Likewise.
20896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20897 Likewise.
20898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20899 file.
20900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20901 Likewise.
20902
20903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20904 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20906 file.
20907 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20909 Likewise.
20910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20913
20914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20915 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20917 file.
20918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20920 Likewise.
20921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20924
20925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20926 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20927 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20928 file.
20929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20931 Likewise.
20932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20935
20936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20937 (sysdep_calls): New rule.
20938 (sysdep_routines): Use sysdep_calls as base.
20939 (libm-sysdep_routines): Add generic rule for symbols shared with
20940 libc. Add s_copysign-generic and s_copysign-generic objects.
20941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20942 New file.
20943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20945 Likewise.
20946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20948 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20949
20950 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20951
20952 [BZ #22519]
20953 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20954 the list of locales to be built for testing.
20955 * localedata/is_IS.UTF-8.in: New file.
20956 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20957 on iso14651_t1.
20958
20959 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20960
20961 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20962 <libm-alias-float.h>.
20963 (fabsf): Define using libm_alias_float.
20964
20965 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20966
20967 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20968
20969 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20970
20971 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20972 <libm-alias-float.h>.
20973 (fabsf): Define using libm_alias_float.
20974 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20975 <libm-alias-float.h>.
20976 (lrintf): Define using libm_alias_float.
20977 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20978 <libm-alias-float.h>.
20979 (rintf): Define using libm_alias_float.
20980
20981 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20982 <libm-alias-double.h>.
20983 (fabs): Define using libm_alias_double.
20984 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20985 <libm-alias-double.h>.
20986 (lrint): Define using libm_alias_double.
20987 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20988 <libm-alias-double.h>.
20989 (rint): Define using libm_alias_double.
20990
20991 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20992 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20993 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20994 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20995 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20996 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20997 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20998 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20999 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
21000 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
21001 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
21002 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
21003 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
21004 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
21005 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
21006 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
21007 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
21008 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
21009 s_atan_template.c.
21010 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
21011 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
21013 s_ceil_template.c.
21014 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
21015 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
21016 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
21017 s_cos_template.c.
21018 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
21019 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
21020 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
21021 s_expm1_template.c.
21022 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
21023 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
21024 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
21025 s_fabs_template.c.
21026 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
21027 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
21028 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
21029 s_floor_template.c.
21030 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21031 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21032 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21033 s_frexp_template.c.
21034 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21035 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21036 s_lrint_template.c.
21037 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21038 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21039 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21040 s_modf_template.c.
21041 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21042 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21043 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21044 s_nearbyint_template.c.
21045 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21046 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21047 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21048 s_remquo_template.c.
21049 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21050 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21051 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21052 s_rint_template.c.
21053 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21054 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21055 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21056 s_sin_template.c.
21057 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21058 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21059 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21060 s_sincos_template.c.
21061 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21062 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21063 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21064 s_tan_template.c.
21065 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21066 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21067 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21068 s_tanh_template.c.
21069 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21070 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21071 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21072 s_trunc_template.c.
21073 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21074 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21075 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21076 s_atan.c instead of including s_atan.c.
21077 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21078 s_atanf.c instead of including s_atanf.c.
21079 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21080 s_atanl.c instead of including s_atanl.c.
21081 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21082 instead of s_atan.c.
21083 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21084 instead of s_atanf.c.
21085 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21086 instead of s_atanl.c.
21087
21088 * scripts/update-copyrights: Do not handle intl/plural.c
21089 specially.
21090
21091 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21092
21093 [BZ #22432]
21094 * configure.ac (BISON): Require to be present.
21095 * configure: Regenerated.
21096 * intl/Makefile (generated): Add plural.c.
21097 [$(BISON) != no]: Make code unconditional.
21098 (plural.c): Change rule to $(objpfx)plural.c.
21099 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21100 * intl/plural.c: Remove.
21101 * manual/install.texi (Tools for Compilation): Document bison as
21102 required.
21103 * INSTALL: Regenerated.
21104
21105 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21106
21107 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21108 <libm-alias-double.h>.
21109 (llrint): Define using libm_alias_double.
21110 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21111 <libm-alias-float.h>.
21112 (llrintf): Define using libm_alias_float.
21113 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21114 <libm-alias-ldouble.h>.
21115 (llrintl): Define using libm_alias_ldouble.
21116
21117 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21118 declare_mgen_alias instead of weak_alias.
21119 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21120 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21121 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21122
21123 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21124
21125 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21126 Add add_n-generic.
21127 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21128 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21129 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21130
21131 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21132 Add submul_1-generic.
21133 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21134 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21135 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21136
21137 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21138 Add addmul_1-generic.
21139 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21140 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21141 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21142
21143 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21144 Add sub_n-generic.
21145 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21146 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21147 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21148
21149 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21150 Add mul_1-generic.
21151 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21152 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21153 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21154
21155 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21156
21157 According to CLDR, collation rules for Serbian and Bosnian
21158 should be the same as for Croatian.
21159
21160 [BZ #22534]
21161 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21162 and to the list of locales to be built for testing.
21163 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21164 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21165 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21166 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21167
21168 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21169
21170 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21171 to make test case pass.
21172 * localedata/hr_HR.UTF-8.in: Add more test strings.
21173
21174 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21175
21176 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21177
21178 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21179
21180 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21181 the list of locales to built for testing.
21182 * localedata/hr_HR.UTF-8.in: New file.
21183
21184 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21185
21186 [BZ #10580]
21187 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21188 iso14651_t1.
21189 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21190 CLDR (except use ligatures for the digraphs, CLDR does not use
21191 the ligatures), add first_workday, some fixes in the date and time
21192 formats.
21193 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21194 for Đ and đ.
21195 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21196 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21197 Add int_p_cs_precedes and int_n_cs_precedes.
21198 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21199 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21200 LC_MONETARY now).
21201 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21202 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21203 name_miss.
21204 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21205 and lang_lib. Change postal_fmt.
21206
21207 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21208
21209 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21210 <setjmp.h>.
21211 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21212 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21213 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21214 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21215 * sysdeps/generic/setjmpP.h: New file.
21216 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21217 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21218 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21219 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21220 Add jmp_buf-ssp.sym.
21221 (tests): Add tst-saved_mask-1.
21222
21223 2017-11-30 Arjun Shankar <arjun@redhat.com>
21224
21225 [BZ #22375]
21226 CVE-2017-17426
21227 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21228 instead of request2size.
21229
21230 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21231
21232 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21233 (__lllrint): Remove alias.
21234 (lllrint): Likewise.
21235 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21236 (__lllrintf): Likewise.
21237 (lllrintf): Likewise.
21238
21239 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21240 <libm-alias-float.h>.
21241 (copysignf): Define using libm_alias_float.
21242 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21243 <libm-alias-float.h>.
21244 (fabsf): Define using libm_alias_float.
21245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21246 Include <libm-alias-float.h>.
21247 (copysignf): Define using libm_alias_float.
21248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21249 <libm-alias-float.h>.
21250 (fabsf): Define using libm_alias_float.
21251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21252 <libm-alias-float.h>.
21253 (fdimf): Define using libm_alias_float.
21254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21255 <libm-alias-float.h>.
21256 (fmaf): Define using libm_alias_float.
21257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21258 <libm-alias-float.h>.
21259 (llrintf): Define using libm_alias_float.
21260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21261 Include <libm-alias-float.h>.
21262 (nearbyintf): Define using libm_alias_float.
21263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21264 <libm-alias-float.h>.
21265 (rintf): Define using libm_alias_float.
21266 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21267 <libm-alias-float.h>.
21268 (llrintf): Define using libm_alias_float.
21269 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21270 <libm-alias-float.h>.
21271 (lrintf): Define using libm_alias_float.
21272 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21273 <libm-alias-float.h>.
21274 (nearbyintf): Define using libm_alias_float.
21275 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21276 <libm-alias-float.h>.
21277 (rintf): Define using libm_alias_float.
21278 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21279 <libm-alias-float.h>.
21280 (ceilf): Define using libm_alias_float.
21281 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21282 <libm-alias-float.h>.
21283 (floorf): Define using libm_alias_float.
21284 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21285 <libm-alias-float.h>.
21286 (fmaf): Define using libm_alias_float.
21287 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21288 <libm-alias-float.h>.
21289 (lrintf): Define using libm_alias_float.
21290 (llrintf): Likewise.
21291 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21292 <libm-alias-float.h>.
21293 (nearbyintf): Define using libm_alias_float.
21294 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21295 <libm-alias-float.h>.
21296 (rintf): Define using libm_alias_float.
21297 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21298 <libm-alias-float.h>.
21299 (truncf): Define using libm_alias_float.
21300 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21301 <libm-alias-float.h>.
21302 (copysignf): Define using libm_alias_float.
21303 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21304 <libm-alias-float.h>.
21305 (fabsf): Define using libm_alias_float.
21306 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21307 <libm-alias-float.h>.
21308 (lrintf): Define using libm_alias_float.
21309 (llrintf): Likewise.
21310 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21311 <libm-alias-float.h>.
21312 (nearbyintf): Define using libm_alias_float.
21313 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21314 <libm-alias-float.h>.
21315 (rintf): Define using libm_alias_float.
21316
21317 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21318
21319 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21320 <libm-alias-double.h>.
21321 (copysign): Define using libm_alias_double.
21322 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21323 <libm-alias-double.h>.
21324 (fabs): Define using libm_alias_double.
21325 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21326 Include <libm-alias-double.h>.
21327 (copysign): Define using libm_alias_double.
21328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21329 <libm-alias-double.h>.
21330 (fabs): Define using libm_alias_double.
21331 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21332 <libm-alias-double.h>.
21333 (fdim): Define using libm_alias_double.
21334 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21335 <libm-alias-double.h>.
21336 (fma): Define using libm_alias_double.
21337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21338 <libm-alias-double.h>.
21339 (llrint): Define using libm_alias_double.
21340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21341 Include <libm-alias-double.h>.
21342 (nearbyint): Define using libm_alias_double.
21343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21344 <libm-alias-double.h>.
21345 (rint): Define using libm_alias_double.
21346 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21347 <libm-alias-double.h>.
21348 (fabs): Define using libm_alias_double.
21349 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21350 <libm-alias-double.h>.
21351 (llrint): Define using libm_alias_double.
21352 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21353 <libm-alias-double.h>.
21354 (nearbyint): Define using libm_alias_double.
21355 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21356 <libm-alias-double.h>.
21357 (rint): Define using libm_alias_double.
21358 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21359 <libm-alias-double.h>.
21360 (ceil): Define using libm_alias_double.
21361 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21362 <libm-alias-double.h>.
21363 (floor): Define using libm_alias_double.
21364 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21365 <libm-alias-double.h>.
21366 (fma): Define using libm_alias_double.
21367 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21368 <libm-alias-double.h>.
21369 (lrint): Define using libm_alias_double.
21370 (llrint): Likewise.
21371 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21372 <libm-alias-double.h>.
21373 (nearbyint): Define using libm_alias_double.
21374 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21375 <libm-alias-double.h>.
21376 (rint): Define using libm_alias_double.
21377 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21378 <libm-alias-double.h>.
21379 (trunc): Define using libm_alias_double.
21380 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21381 <libm-alias-double.h>.
21382 (copysign): Define using libm_alias_double.
21383 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21384 <libm-alias-double.h>.
21385 (fabs): Define using libm_alias_double.
21386 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21387 <libm-alias-double.h>.
21388 (lrint): Define using libm_alias_double.
21389 (llrint): Likewise.
21390 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21391 <libm-alias-double.h>.
21392 (nearbyint): Define using libm_alias_double.
21393 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21394 <libm-alias-double.h>.
21395 (rint): Define using libm_alias_double.
21396
21397 [BZ #22229]
21398 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21399 <math_ldbl_opt.h>.
21400 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21401
21402 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21403 SPARC --disable-multi-arch glibc variants.
21404
21405 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21406 <libm-alias-float.h>.
21407 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21408 if [SHARED].
21409 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21410 <libm-alias-float.h>.
21411 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21412 if [SHARED].
21413 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21414 <libm-alias-float.h>.
21415 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21416 if [SHARED].
21417 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21418 <libm-alias-float.h>.
21419 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21420 if [SHARED].
21421 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21422 <libm-alias-float.h>.
21423 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21424 if [SHARED].
21425 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21426 <libm-alias-float.h>.
21427 (ceilf): Define using libm_alias_float.
21428 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21429 <libm-alias-float.h>.
21430 (floorf): Define using libm_alias_float.
21431 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21432 <libm-alias-float.h>.
21433 (fmaf): Define using libm_alias_float.
21434 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21435 <libm-alias-float.h>.
21436 (nearbyintf): Define using libm_alias_float.
21437 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21438 <libm-alias-float.h>.
21439 (rintf): Define using libm_alias_float.
21440 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21441 <libm-alias-float.h>.
21442 (truncf): Define using libm_alias_float.
21443 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21444 (copysignf): Define using libm_alias_float.
21445 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21446 (cosf): Define using libm_alias_float.
21447 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21448 (fabsf): Define using libm_alias_float.
21449 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21450 (fmaxf): Define using libm_alias_float.
21451 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21452 (fminf): Define using libm_alias_float.
21453 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21454 (llrintf): Define using libm_alias_float.
21455 [!__ILP32__] (lrintf): Likewise.
21456 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21457 (sincosf): Define using libm_alias_float.
21458 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21459 (sinf): Define using libm_alias_float.
21460 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21461 (lrintf): Define using libm_alias_float.
21462
21463 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21464 <libm-alias-double.h>.
21465 (atan): Define using libm_alias_double.
21466 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21467 <libm-alias-double.h>.
21468 (ceil): Define using libm_alias_double.
21469 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21470 <libm-alias-double.h>.
21471 (floor): Define using libm_alias_double.
21472 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21473 <libm-alias-double.h>.
21474 (fma): Define using libm_alias_double.
21475 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21476 <libm-alias-double.h>.
21477 (nearbyint): Define using libm_alias_double.
21478 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21479 <libm-alias-double.h>.
21480 (rint): Define using libm_alias_double.
21481 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21482 <libm-alias-double.h>.
21483 (sin): Define using libm_alias_double.
21484 (cos): Likewise.
21485 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21486 <libm-alias-double.h>.
21487 (tan): Define using libm_alias_double.
21488 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21489 <libm-alias-double.h>.
21490 (trunc): Define using libm_alias_double.
21491 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21492 (copysign): Define using libm_alias_double.
21493 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21494 (fabs): Define using libm_alias_double.
21495 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21496 (fmax): Define using libm_alias_double.
21497 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21498 (fmin): Define using libm_alias_double.
21499 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21500 (llrint): Define using libm_alias_double.
21501 [!__ILP32__] (lrint): Likewise.
21502 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21503 (lrint): Define using libm_alias_double.
21504
21505 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21506
21507 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21508 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21509 objects.
21510 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21511 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21512 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21513 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21514 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21515 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21516
21517 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21518 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21519 objects.
21520 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21521 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21522 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21523 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21524 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21525 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21526
21527 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21528 (libm-sysdep_routines): Add s_nearbyint-generic and
21529 s_nearbyintf-generic objects.
21530 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21531 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21532 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21533 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21534 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21535 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21536
21537 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21538 Add s_finitef-generic and s_finite-generic objects.
21539 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21540 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21541 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21542 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21543 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21544 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21545
21546 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21547 Add s_isinff-generic and s_isinf-generic objects.
21548 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21549 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21550 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21551 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21552 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21553 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21554
21555 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21556 Add s_isnanf-generic and s_isnan-generic objects.
21557 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21558 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21559 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21560 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21561 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21562 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21563
21564 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21565 macro.
21566 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21567 rule.
21568 (sysdep_routines): Use sysdep_calls as base.
21569 (libm-sysdep_routines): Add generic rule for symbols shared with
21570 libc. Add s_signbit-generic and s_signbitf-generic objects.
21571 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21572 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21573 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21574 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21575 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21576 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21577
21578 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21579
21580 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21581 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21582 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21583 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21584 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21585 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21586 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21587 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21588 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21589 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21590 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21591 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21592 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21593 libm_alias_float_r.
21594 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21595 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21596 (logf): Likewise.
21597 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21598 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21599 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21600 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21601 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21602 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21603 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21604 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21605 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21606 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21607 libm_alias_float.
21608 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21609 (cosf): Likewise.
21610 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21611 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21612 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21613 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21614 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21615 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21616 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21617 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21618 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21619 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21620 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21621 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21622 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21623 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21624 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21625 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21626 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21627 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21628 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21629 libm_alias_float.
21630 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21631 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21632 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21633 * sysdeps/ia64/fpu/w_lgammaf_main.c
21634 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21635 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21636
21637 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21638 Alexandre Oliva <aoliva@redhat.com>
21639
21640 [BZ #17750]
21641 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21642 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21643 accents sorting.
21644 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21645 sorting.
21646 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21647 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21648 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21649 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21650 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21651 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21652 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21653 instead of “ifdef DIACRIT_BACKWARD”.
21654
21655 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21656
21657 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21658 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21659 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21660 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21661 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21662 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21663 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21664 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21665 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21666 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21667 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21668 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21669 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21670 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21671 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21672 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21673 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21674 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21676 ($(have-as-vis3) == yes): Remove conditional.
21677 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21678 Likewise.
21679 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21680 file.
21681 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21682 file.
21683 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21684 file.
21685 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21686 file.
21687 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21688 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21689 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21690 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21691 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21692 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21693 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21694 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21695
21696 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21697
21698 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21699 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21700 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21701 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21702 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21703 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21704 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21705 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21706 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21707 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21708 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21709 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21710 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21711 libm_alias_double_r.
21712 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21713 (log): Likewise.
21714 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21715 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21716 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21717 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21718 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21719 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21720 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21721 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21722 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21723 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21724 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21725 libm_alias_double.
21726 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21727 (cos): Likewise.
21728 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21729 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21730 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21731 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21732 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21733 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21734 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21735 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21736 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21737 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21738 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21739 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21740 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21741 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21742 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21743 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21744 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21745 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21746 libm_alias_double.
21747 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21748 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21749 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21750 * sysdeps/ia64/fpu/w_lgamma_main.c
21751 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21752 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21753
21754 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21755
21756 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21757 address of $global$ into %dp register earlier. Use pc-relative
21758 instruction sequence for PIC case.
21759
21760 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21761
21762 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21763 (asinhf): Define using libm_alias_float.
21764 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21765 (atanf): Define using libm_alias_float.
21766 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21767 (cbrtf): Define using libm_alias_float.
21768 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21769 (ceilf): Define using libm_alias_float.
21770 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21771 (copysignf): Define using libm_alias_float.
21772 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21773 (expm1f): Define using libm_alias_float.
21774 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21775 (fabsf): Define using libm_alias_float.
21776 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21777 (floorf): Define using libm_alias_float.
21778 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21779 (fmaxf): Define using libm_alias_float.
21780 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21781 (fminf): Define using libm_alias_float.
21782 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21783 (frexpf): Define using libm_alias_float.
21784 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21785 (llrintf): Define using libm_alias_float.
21786 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21787 (logbf): Define using libm_alias_float.
21788 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21789 (lrintf): Define using libm_alias_float.
21790 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21791 (nearbyintf): Define using libm_alias_float.
21792 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21793 (remquof): Define using libm_alias_float.
21794 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21795 (rintf): Define using libm_alias_float.
21796 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21797 (truncf): Define using libm_alias_float.
21798 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21799 <libm-alias-float.h>.
21800 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21801 if [SHARED].
21802 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21803 <libm-alias-float.h>.
21804 (expf): Define using libm_alias_float, or libm_alias_float_other
21805 if [SHARED].
21806 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21807 <libm-alias-float.h>.
21808 (log2f): Define using libm_alias_float, or libm_alias_float_other
21809 if [SHARED].
21810 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21811 <libm-alias-float.h>.
21812 (logf): Define using libm_alias_float, or libm_alias_float_other
21813 if [SHARED].
21814 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21815 <libm-alias-float.h>.
21816 (powf): Define using libm_alias_float, or libm_alias_float_other
21817 if [SHARED].
21818 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21819 <libm-alias-float.h>.
21820 (cosf): Define using libm_alias_float.
21821 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21822 <libm-alias-float.h>.
21823 (sincosf): Define using libm_alias_float.
21824 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21825 <libm-alias-float.h>.
21826 (sinf): Define using libm_alias_float.
21827 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21828 (fmaxf): Define using libm_alias_float.
21829 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21830 (fminf): Define using libm_alias_float.
21831 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21832 <libm-alias-float.h>.
21833 (fmaf): Define using libm_alias_float.
21834
21835 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21836 (asinh): Define using libm_alias_double.
21837 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21838 (atan): Define using libm_alias_double.
21839 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21840 (cbrt): Define using libm_alias_double.
21841 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21842 (ceil): Define using libm_alias_double.
21843 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21844 (copysign): Define using libm_alias_double.
21845 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21846 (expm1): Define using libm_alias_double.
21847 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21848 (fabs): Define using libm_alias_double.
21849 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21850 (fdim): Define using libm_alias_double.
21851 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21852 (floor): Define using libm_alias_double.
21853 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21854 (fmax): Define using libm_alias_double.
21855 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21856 (fmin): Define using libm_alias_double.
21857 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21858 (frexp): Define using libm_alias_double.
21859 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21860 (llrint): Define using libm_alias_double.
21861 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21862 (logb): Define using libm_alias_double.
21863 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21864 (lrint): Define using libm_alias_double.
21865 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21866 (nearbyint): Define using libm_alias_double.
21867 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21868 (remquo): Define using libm_alias_double.
21869 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21870 (rint): Define using libm_alias_double.
21871 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21872 (trunc): Define using libm_alias_double.
21873 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21874 (fmax): Define using libm_alias_double.
21875 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21876 (fmin): Define using libm_alias_double.
21877 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21878 (fma): Define using libm_alias_double.
21879
21880 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21881
21882 [BZ #22370]
21883 * elf/dl-hwcaps.c (ROUND): Removed.
21884 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21885 and ELF_NOTE_NEXT_OFFSET.
21886 * elf/dl-load.c (ROUND): Removed.
21887 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21888 * elf/readelflib.c (ROUND): Removed.
21889 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21890 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21891 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21892 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21893
21894 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21895
21896 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21897 [!__fmaf] (fmaf): Define using libm_alias_float.
21898
21899 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21900 [!__fma] (fma): Define using libm_alias_double.
21901 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21902
21903 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21904
21905 [BZ #22336]
21906 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21907 and implement the collation rules for cs from CLDR on top of that.
21908 * Makefile: Add cs_CZ.UTF-8 to test-input.
21909 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21910
21911 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21912
21913 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21914
21915 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21916 Icarus Sparry <icarus.w.sparry@intel.com>
21917
21918 * benchtests/Makefile:Add BENCHSET to allow subsets of
21919 benchmarks to be run.
21920 * benchtests/README: Add documentation for: Running subsets of
21921 benchmarks.
21922
21923 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21924
21925 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21926 range of tests names.
21927
21928 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21929 result from property and remove "max", min" and "mean" from
21930 required properties based on benchtests/bench-skeleton.c.
21931
21932 2017-11-28 Florian Weimer <fweimer@redhat.com>
21933
21934 [BZ #20826]
21935 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21936 due to Internet requirement.
21937 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21938 tst-getaddrinfo5.
21939 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21940
21941 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21942
21943 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21944 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21945 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21946 (sysdep_routines): Add memset-ultra1.
21947 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21948 file.
21949 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21950 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21951 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21952 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21953 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21954 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21955 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21956 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21957
21958 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21959 file.
21960 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21961 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21962 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21963 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21964 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21965 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21966 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21967 macro.
21968 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21969 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21970 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21971 (sysdep_routines): Add memcpy-ultra1.
21972 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21973 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21974
21975 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21976
21977 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21978 (cfloat_versions): Take function argument without trailing 'f'.
21979 Call libm_alias_float_other.
21980 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21981 * sysdeps/alpha/fpu/cargf.c: Likewise.
21982 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21983 * sysdeps/alpha/fpu/conjf.c: Likewise.
21984 * sysdeps/alpha/fpu/crealf.c: Likewise.
21985 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21986 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21987 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21988 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21989 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21990 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21991 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21992 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21993 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21994 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21995 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21996 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21997 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21998 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21999 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
22000 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
22001 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
22002 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
22003 (clog10f): Use libm_alias_float_other.
22004 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22005 (ceilf): Define using libm_alias_float.
22006 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
22007 (copysignf): Define using libm_alias_float.
22008 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22009 (fabsf): Define using libm_alias_float.
22010 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
22011 (floorf): Define using libm_alias_float.
22012 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
22013 (fmaxf): Define using libm_alias_float.
22014 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
22015 (fminf): Define using libm_alias_float.
22016 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22017 (lrintf): Define using libm_alias_float.
22018 (llrintf): Likewise.
22019 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22020 (lroundf): Define using libm_alias_float.
22021 (llroundf): Likewise.
22022 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
22023 (rintf): Define using libm_alias_float.
22024 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
22025 (truncf): Define using libm_alias_float.
22026
22027 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22028 (ceilf): Define using libm_alias_float.
22029 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
22030 (floorf): Define using libm_alias_float.
22031 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22032 (fmaf): Define using libm_alias_float.
22033 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22034 (fmaxf): Define using libm_alias_float.
22035 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22036 (fminf): Define using libm_alias_float.
22037 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22038 (llrintf): Define using libm_alias_float.
22039 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22040 (llroundf): Define using libm_alias_float.
22041 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22042 (lrintf): Define using libm_alias_float.
22043 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22044 (lroundf): Define using libm_alias_float.
22045 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22046 <libm-alias-float.h>.
22047 (nearbyintf): Define using libm_alias_float.
22048 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22049 (rintf): Define using libm_alias_float.
22050 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22051 (roundf): Define using libm_alias_float.
22052 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22053 (truncf): Define using libm_alias_float.
22054
22055 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22056 (ceil): Define using libm_alias_double.
22057 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22058 (copysign): Define using libm_alias_double.
22059 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22060 (fabs): Define using libm_alias_double.
22061 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22062 (floor): Define using libm_alias_double.
22063 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22064 (fmax): Define using libm_alias_double.
22065 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22066 (fmin): Define using libm_alias_double.
22067 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22068 (lrint): Define using libm_alias_double.
22069 (llrint): Likewise.
22070 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22071 (lround): Define using libm_alias_double.
22072 (llround): Likewise.
22073 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22074 (rint): Define using libm_alias_double.
22075 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22076 (trunc): Define using libm_alias_double.
22077
22078 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22079 (libm_alias_double_r): Add semicolon after weak_alias call.
22080
22081 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22082
22083 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22084 (ceil): Define using libm_alias_double.
22085 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22086 (floor): Define using libm_alias_double.
22087 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22088 (fma): Define using libm_alias_double.
22089 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22090 (fmax): Define using libm_alias_double.
22091 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22092 (fmin): Define using libm_alias_double.
22093 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22094 (llrint): Define using libm_alias_double.
22095 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22096 (llround): Define using libm_alias_double.
22097 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22098 (lrint): Define using libm_alias_double.
22099 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22100 (lround): Define using libm_alias_double.
22101 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22102 (nearbyint): Define using libm_alias_double.
22103 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22104 (rint): Define using libm_alias_double.
22105 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22106 (round): Define using libm_alias_double.
22107 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22108 (trunc): Define using libm_alias_double.
22109
22110 2017-11-27 Florian Weimer <fweimer@redhat.com>
22111
22112 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22113 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22114 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22115 (tests): Add tst-mlock2.
22116 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22117 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22118 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22119 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22120 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22121 for mlock. Document mlock2.
22122
22123 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22124
22125 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22126 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22127 Likewise.
22128 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22129 Likewise.
22130 * sysdeps/x86/Makeconfig: New file.
22131 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22132 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22133 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22134 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22135 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22136 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22137 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22138 Likewise.
22139 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22140 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22141 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22142 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22143 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22144 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22145 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22146 * manual/math.texi (Mathematics): Document support for _Float64x.
22147 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22148 * stdlib/Versions (GLIBC_2.27): Likewise.
22149 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22150 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22151 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22152 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22153 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22154 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22155 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22156 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22157 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22158 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22159 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22160 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22162 Likewise.
22163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22164 Likewise.
22165 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22166 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22167 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22168 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22169 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22170 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22171 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22172 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22173 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22174 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22175 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22176 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22177 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22178 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22179
22180 2017-11-27 Andreas Schwab <schwab@suse.de>
22181
22182 * elf/Makefile (dl-routines): Add dl-sort-maps.
22183 * elf/dl-sort-maps.c: New file.
22184 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22185 (_dl_sort_maps): Declare.
22186 * elf/dl-fini.c (_dl_sort_fini): Remove.
22187 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22188 * elf/dl-close.c (_dl_close_worker): Likewise.
22189 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22190 open-coding it.
22191 * elf/dl-open.c (dl_open_worker): Likewise.
22192
22193 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22194
22195 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22196 using libm_alias_float128.
22197 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22198 Likewise.
22199 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22200 Likewise.
22201 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22202 (setpayloadsigf128): Likewise.
22203 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22204 Likewise.
22205 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22206 Likewise.
22207
22208 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22209 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22210 -mfloat128 to CFLAGS.
22211 ($(foreach
22212 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22213 Likewise.
22214 (CFLAGS-libm-test-support-float64x.c): New variable.
22215 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22216 $(f128-loader-link) to gnulib-tests.
22217
22218 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22219 (libm_alias_float128_other_r): If
22220 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22221 alias.
22222 (libm_alias_float128_r): Add semicolon after weak_alias call.
22223 * sysdeps/generic/libm-alias-ldouble.h
22224 (libm_alias_ldouble_other_r_f128): New macro.
22225 (libm_alias_ldouble_other_r_f64x): Likewise.
22226 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22227 and libm_alias_ldouble_other_r_f64x.
22228 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22229 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22230 (libm_alias_ldouble_other_r_f128): New macro.
22231 (libm_alias_ldouble_other_r_f64x): Likewise.
22232 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22233 and libm_alias_ldouble_other_r_f64x.
22234
22235 * stdlib/strfroml.c: Always include <stdlib.h>.
22236 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22237 undefine as macro and define as weak alias.
22238 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22239 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22240 <stdlib.h>.
22241 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22242 Define and later undefine as macro and define as weak alias.
22243
22244 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22245 Define and later undefine as macro. Define as weak alias if
22246 [!USE_WIDE_CHAR].
22247 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22248 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22249 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22250 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22251 Define and later undefine as macro. Define as weak alias if
22252 [!USE_WIDE_CHAR].
22253 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22254 Define and later undefine as macro. Define as weak alias if
22255 [USE_WIDE_CHAR].
22256 * sysdeps/ieee754/float128/strtof128_l.c
22257 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22258 Define and later undefine as macro. Define as weak alias if
22259 [!USE_WIDE_CHAR].
22260 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22261 Define and later undefine as macro. Define as weak alias if
22262 [USE_WIDE_CHAR].
22263 * sysdeps/ieee754/ldbl-128/strtold_l.c
22264 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22265 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22266 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22267 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22268 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22269 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22270 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22271 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22272 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22273 * sysdeps/ieee754/ldbl-96/strtold_l.c
22274 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22275 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22276 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22277 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22278
22279 * math/test-float64x.h: New file.
22280 * math/Makefile (type-float64x-yes): New variable.
22281 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22282
22283 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22284 function-like macro.
22285 (min_of_type_): Likewise.
22286 (min_of_type_l): Likewise.
22287 (min_of_type_f128): Likewise.
22288 (min_of_type): Pass () as last argument of __MATH_TG.
22289
22290 * stdlib/tst-strtod-round-skeleton.c
22291 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22292 headers.
22293
22294 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22295 for combinations of long double with _Float64 and _Float64x.
22296
22297 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22298 (__DECL_SIMD_cosf32): Likewise.
22299 (__DECL_SIMD_cosf64): Likewise.
22300 (__DECL_SIMD_cosf32x): Likewise.
22301 (__DECL_SIMD_cosf64x): Likewise.
22302 (__DECL_SIMD_cosf128x): Likewise.
22303 (__DECL_SIMD_sinf16): Likewise.
22304 (__DECL_SIMD_sinf32): Likewise.
22305 (__DECL_SIMD_sinf64): Likewise.
22306 (__DECL_SIMD_sinf32x): Likewise.
22307 (__DECL_SIMD_sinf64x): Likewise.
22308 (__DECL_SIMD_sinf128x): Likewise.
22309 (__DECL_SIMD_sincosf16): Likewise.
22310 (__DECL_SIMD_sincosf32): Likewise.
22311 (__DECL_SIMD_sincosf64): Likewise.
22312 (__DECL_SIMD_sincosf32x): Likewise.
22313 (__DECL_SIMD_sincosf64x): Likewise.
22314 (__DECL_SIMD_sincosf128x): Likewise.
22315 (__DECL_SIMD_logf16): Likewise.
22316 (__DECL_SIMD_logf32): Likewise.
22317 (__DECL_SIMD_logf64): Likewise.
22318 (__DECL_SIMD_logf32x): Likewise.
22319 (__DECL_SIMD_logf64x): Likewise.
22320 (__DECL_SIMD_logf128x): Likewise.
22321 (__DECL_SIMD_expf16): Likewise.
22322 (__DECL_SIMD_expf32): Likewise.
22323 (__DECL_SIMD_expf64): Likewise.
22324 (__DECL_SIMD_expf32x): Likewise.
22325 (__DECL_SIMD_expf64x): Likewise.
22326 (__DECL_SIMD_expf128x): Likewise.
22327 (__DECL_SIMD_powf16): Likewise.
22328 (__DECL_SIMD_powf32): Likewise.
22329 (__DECL_SIMD_powf64): Likewise.
22330 (__DECL_SIMD_powf32x): Likewise.
22331 (__DECL_SIMD_powf64x): Likewise.
22332 (__DECL_SIMD_powf128x): Likewise.
22333
22334 * stdlib/Versions (libc): Move entries for wcstof128 and
22335 wcstof128_l to ....
22336 * wcsmbs/Versions (libc): ... here.
22337 Include <float128-abi.h>.
22338
22339 2017-11-24 Florian Weimer <fweimer@redhat.com>
22340
22341 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22342 bits/mman-shared.h.
22343 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22344 <bits/mman-shared.h>.
22345 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22346 to ...
22347 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22348 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22349 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22350 <bits/mman-shared.h>.
22351
22352 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22353
22354 [BZ #22457]
22355 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22356 posix_memalign/free.
22357 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22358
22359 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22360
22361 [BZ #22469]
22362 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22363 and implement the collation rules for pl from CLDR on top of that.
22364 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22365 of locales to be built for testing.
22366 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22367
22368 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22369
22370 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22371 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22372 libm_alias_ldouble_other.
22373 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22374 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22375 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22376 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22377 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22378 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22379 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22380 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22381 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22382 libm_alias_ldouble_r.
22383 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22384 libm_alias_ldouble_other.
22385 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22386 (log10l): Likewise.
22387 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22388 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22389 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22390 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22391 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22392 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22393 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22394 (atan2l): Likewise.
22395 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22396 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22397 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22398 libm_alias_ldouble.
22399 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22400 (cosl): Likewise.
22401 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22402 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22403 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22404 (expl): Likewise.
22405 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22406 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22407 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22408 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22409 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22410 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22411 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22412 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22413 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22414 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22415 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22416 libm_alias_ldouble.
22417 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22418 libm_alias_ldouble_other.
22419 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22420 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22421 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22422 libm_alias_ldouble.
22423 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22424 libm_alias_ldouble_other.
22425 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22426 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22427 * sysdeps/ia64/fpu/w_lgammal_main.c
22428 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22429 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22430
22431 2017-11-23 Florian Weimer <fweimer@redhat.com>
22432
22433 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22434 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22435 alike. Remove freeres marker.
22436 * malloc/arena.c (arena_thread_freeres): Call
22437 tcache_thread_shutdown.
22438
22439 2017-11-23 Florian Weimer <fweimer@redhat.com>
22440
22441 [BZ #22459]
22442 Export nscd hash function as __nss_hash.
22443 * include/nss.h (__nss_hash): Declare.
22444 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22445 symbol.
22446 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22447 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22448 of __nscd_hash.
22449 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22450 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22451 * nss/Makefiles (routines): Add nss_hash.
22452 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22453 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22454 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22455 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22456
22457 2017-11-23 Florian Weimer <fweimer@redhat.com>
22458
22459 [BZ #22478]
22460 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22461 Return error code, not -1.
22462 * signal/tst-sigwait-eintr.c: New file.
22463 * signal/Makefile (tests): Add tst-sigwait-eintr.
22464
22465 2017-11-23 Florian Weimer <fweimer@redhat.com>
22466
22467 Linux: Add memfd_create system call wrapper
22468 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22469 tst-memfd_create.
22470 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22471 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22472 [__USE_GNU] (memfd_create): Declare.
22473 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22474 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22475 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22476 * sysdeps/unix/sysv/linux/**.abilist: Update.
22477 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22478
22479 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22480
22481 * localedata/gen-locale.sh: Fix typo in variable name.
22482
22483 * resolv/res_debug.c (p_secstodate): Condition definition on
22484 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22485 directly as __p_secstodate, and as a compat symbol. Do not use
22486 libresolv_hidden_def.
22487 * resolv/resolv.h (p_secstodate): Remove macro and function
22488 declaration.
22489 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22490 using p_secstodate.
22491 * include/resolv.h (__p_secstodate): Do not use
22492 libresolv_hidden_proto.
22493 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22494 (tests-internal): ... here.
22495 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22496 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22497 and declare and use __p_secstodate and use compat_symbol_reference
22498 in that case.
22499 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22500 implementation returning 77.
22501
22502 [BZ #22463]
22503 * resolv/res_debug.c: Include <libc-diag.h>.
22504 (p_secstodate): Assert time_t at least as wide as u_long. On
22505 overflow, use integer seconds since the epoch as output, or use
22506 "<overflow>" as output and set errno to EOVERFLOW if integer
22507 seconds since the epoch would be 14 or more characters.
22508 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22509 for sprintf call.
22510 * resolv/tst-p_secstodate.c: New file.
22511 * resolv/Makefile (tests): Add tst-p_secstodate.
22512 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22513
22514 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22515 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22516 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22517
22518 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22519
22520 * posix/regcomp.c (init_word_char): Add comments.
22521
22522 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22523
22524 [BZ #22447]
22525 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22526 strlen to compute length of ut_user and set trailing NUL byte of
22527 result explicitly.
22528
22529 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22530
22531 [BZ #15537]
22532 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22533 using “copy "iso14651_t1"” and then implementing the
22534 collation rules for lv from CLDR on top of that.
22535 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22536 of locales to be built for testing.
22537 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22538 sorting.
22539
22540 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22541
22542 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22543 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22544 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22545 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22546 [__USE_MISC] (MADV_HWPOISON): New macro.
22547 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22548
22549 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22550
22551 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22552 -Wmissing-braces on GCC 4.9.
22553
22554 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22555
22556 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22557 * sysdeps/s390/s390-32/start.S (_start): Likewise
22558 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22559 (thread_start): Likewise.
22560 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22561 (thread_start): Likewise.
22562 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22563 (__makecontext_ret): Likewise.
22564 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22565 (__makecontext_ret): Likewise.
22566
22567 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22568
22569 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22570 __wcschrnul): Remove attribute_hidden.
22571
22572 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22573
22574 regex: don't assume uint64_t or uint32_t
22575 This avoids -Werror=overflow errors for 32-bit systems in
22576 the 64-bit case. Problem reported by Joseph Myers in:
22577 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22578 Also, when this code is used in Gnulib it ports to platforms
22579 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22580 them, and on some 32-bit compilers there is no uint64_t.
22581 Problem reported by Gianluigi Tiesi in:
22582 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22583 * posix/regcomp.c (init_word_char): Don't assume that the types
22584 uint64_t and uint32_t exist. Adapted from Gnulib patch
22585 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22586 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22587
22588 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22589
22590 * sysdeps/aarch64/memset-reg.h: New file.
22591 * sysdeps/aarch64/memset.S: Use it.
22592 (__memset): Rename to MEMSET macro.
22593 [ZVA_MACRO]: Use zva_macro.
22594 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22595 Add memset_generic and memset_falkor.
22596 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22597 (__libc_ifunc_impl_list): Add memset ifuncs.
22598 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22599 local variable zva_size.
22600 * sysdeps/aarch64/multiarch/memset.c: New file.
22601 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22602 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22603 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22604 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22605 (DCZID_DZP_MASK): New macro.
22606 (DCZID_BS_MASK): Likewise.
22607 (init_cpu_features): Read and set zva_size.
22608 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22609 (struct cpu_features): New member zva_size.
22610
22611 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22612 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22613 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22614
22615 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22616 backwards. Fix timing computation.
22617 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22618 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22619 on memset by N at a time. Fix timing computation.
22620
22621 2017-11-20 Florian Weimer <fweimer@redhat.com>
22622
22623 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22624 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22625
22626 2017-11-19 Florian Weimer <fweimer@redhat.com>
22627
22628 manual: Document mprotect
22629 * manual/memory.texi (Memory Protection): New section.
22630 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22631 documentation of PROT_* flags and reference the Memory Protection
22632 section instead.
22633
22634 2017-11-19 Florian Weimer <fweimer@redhat.com>
22635
22636 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22637 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22638 (Scatter-Gather): ... to here. Remove misleading comment.
22639
22640 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22641
22642 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22643 style.
22644
22645 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22646 when /proc/<pid>/setgroups does not exist.
22647
22648 2017-11-18 Florian Weimer <fweimer@redhat.com>
22649
22650 * sysdeps/unix/sysv/linux/tst-ttyname.c
22651 (become_root_in_mount_ns): Remove.
22652 (do_in_chroot_1): Call support_enter_mount_namespace.
22653 (do_in_chroot_2): Likewise.
22654 (do_test): Call support_become_root early.
22655
22656 2017-11-18 Florian Weimer <fweimer@redhat.com>
22657
22658 * support/namespace.h (support_enter_mount_namespace): Declare.
22659 * support/support_enter_mount_namespace.c: New file.
22660 * support/Makefile (libsupport-routines): Add
22661 support_enter_mount_namespace.
22662
22663 2017-11-18 Florian Weimer <fweimer@redhat.com>
22664
22665 * support/temp_file.c (support_create_temp_directory): Use
22666 test_dir and do not rely on the presence of the XXXXXX suffix.
22667 * support/temp_file.h (support_create_temp_directory): Update
22668 comment.
22669 * support/tst-xreadlink.c (do_test): Adjust.
22670 * support/support_chroot.c (support_chroot_create): Likewise.
22671
22672 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22673
22674 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22675 macro.
22676 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22677 htm-no-suspend.
22678
22679 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22680
22681 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22682 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22683 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22684 (ceill): Define using libm_alias_ldouble.
22685 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22686 <libm-alias-ldouble.h>.
22687 (copysignl): Define using libm_alias_ldouble.
22688 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22689 (fabsl): Define using libm_alias_ldouble.
22690 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22691 (floorl): Define using libm_alias_ldouble.
22692 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22693 (fmaxl): Define using libm_alias_ldouble.
22694 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22695 (fminl): Define using libm_alias_ldouble.
22696 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22697 (llrintl): Define using libm_alias_ldouble.
22698 (lrintl): Likewise.
22699 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22700 <libm-alias-ldouble.h>.
22701 (nearbyintl): Define using libm_alias_ldouble.
22702 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22703 (truncl): Define using libm_alias_ldouble.
22704 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22705 <libm-alias-ldouble.h>.
22706 (lrintl): Define using libm_alias_ldouble.
22707
22708 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22709 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22710 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22711 (asinhl): Define using libm_alias_ldouble.
22712 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22713 (atanl): Define using libm_alias_ldouble.
22714 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22715 (cbrtl): Define using libm_alias_ldouble.
22716 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22717 (ceill): Define using libm_alias_ldouble.
22718 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22719 (copysignl): Define using libm_alias_ldouble.
22720 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22721 (fabsl): Define using libm_alias_ldouble.
22722 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22723 (floorl): Define using libm_alias_ldouble.
22724 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22725 (fmaxl): Define using libm_alias_ldouble.
22726 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22727 (fminl): Define using libm_alias_ldouble.
22728 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22729 (frexpl): Define using libm_alias_ldouble.
22730 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22731 (llrintl): Define using libm_alias_ldouble.
22732 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22733 (logbl): Define using libm_alias_ldouble.
22734 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22735 (lrintl): Define using libm_alias_ldouble.
22736 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22737 (nearbyintl): Define using libm_alias_ldouble.
22738 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22739 (nextafterl): Define using libm_alias_ldouble.
22740 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22741 (remquol): Define using libm_alias_ldouble.
22742 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22743 (rintl): Define using libm_alias_ldouble.
22744 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22745 (truncl): Define using libm_alias_ldouble.
22746 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22747 (fmaxl): Define using libm_alias_ldouble.
22748 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22749 (fminl): Define using libm_alias_ldouble.
22750
22751 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22752 to C syntax instead of availability and properties of types.
22753 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22754 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22755 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22756 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22757 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22758 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22759
22760 2017-11-17 Florian Weimer <fweimer@redhat.com>
22761
22762 support_become_root: Enable file creation in namespaces.
22763 * support/support_become_root.c (setup_mapping): New function.
22764 (support_become_root): Call it.
22765
22766 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22767
22768 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22769 macro.
22770
22771 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22772
22773 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22774 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22775
22776 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22777
22778 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22779
22780 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22781 version to 4.14.
22782
22783 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22784
22785 * INSTALL: Fix botched up regeneration.
22786
22787 * NEWS: Update sourceare link to https.
22788 * configure.ac: Likewise.
22789 * crypt/md5test-giant.c: Likewise.
22790 * dlfcn/bug-atexit1.c: Likewise.
22791 * dlfcn/bug-atexit2.c: Likewise.
22792 * localedata/README: Likewise.
22793 * malloc/tst-mallocfork.c: Likewise.
22794 * manual/install.texi: Likewise.
22795 * nptl/tst-pthread-getattr.c: Likewise.
22796 * stdio-common/tst-fgets.c: Likewise.
22797 * stdio-common/tst-fwrite.c: Likewise.
22798 * sunrpc/Makefile: Likewise.
22799 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22800 * wcsmbs/tst-mbrtowc2.c: Likewise.
22801 * configure: Regenerate.
22802 * INSTALL: Regenerate.
22803
22804 2017-11-15 Martin Sebor <msebor@redhat.com>
22805
22806 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22807 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22808 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22809
22810 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22811
22812 [BZ #22145]
22813 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22814 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22815
22816 [BZ #22145]
22817 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22818 Defer is_pty check until end of the function.
22819 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22820
22821 [BZ #22145]
22822 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22823 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22824 (ttyname): Likewise.
22825 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22826 (__ttyname_r): Likewise.
22827
22828 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22829 int to bool.
22830
22831 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22832
22833 * manual/terminal.texi (Is It a Terminal):
22834 Mention ENODEV for ttyname and ttyname_r.
22835
22836 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22837
22838 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22839 constant and macro.
22840
22841 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22842 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22843 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22844 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22845 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22846 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22847
22848 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22849
22850 * signal/sigrelse.c (sigrelse): Optimize implementation.
22851
22852 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22853 (__sigpause): Rely on __sigsuspend to implement single thread
22854 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22855
22856 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22857
22858 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22859 kernel version to 4.14.
22860
22861 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22862
22863 [BZ #22442]
22864 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22865 Check if ifname is too long.
22866
22867 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22868
22869 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22870
22871 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22872
22873 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22874 was accidentally lost.
22875
22876 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22877
22878 * localedata/locales/az_IR: Add standard copyright header.
22879
22880 2017-11-15 Florian Weimer <fweimer@redhat.com>
22881
22882 [BZ #22439]
22883 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22884 not just the top one. Output a new "subheaps" statistic.
22885
22886 2017-11-15 Florian Weimer <fweimer@redhat.com>
22887
22888 [BZ #22408]
22889 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22890 under the per-arena lock.
22891 * malloc/Makefile (tests): Add tst-malloc_info.
22892 (tst-malloc_info): Link with libpthread.
22893 * malloc/tst-malloc_info.c: New file.
22894
22895 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22896
22897 [BZ #21660]
22898 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22899 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22900 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22901 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22902 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22903 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22904 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22905 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22906 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22907 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22908 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22909 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22910 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22911 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22912 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22913 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22914 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22915 (__floating_type): Likewise.
22916 (__real_integer_type): Likewise.
22917 (__complex_integer_type): Likewise.
22918 (__expr_is_real): Likewise.
22919 (__tgmath_real_type_sub): Likewise.
22920 (__tgmath_real_type): Likewise.
22921 (__tgmath_complex_type_sub): Likewise.
22922 (__tgmath_complex_type): Likewise.
22923 (__TGMATH_F128): Likewise.
22924 (__TGMATH_CF128): Likewise.
22925 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22926 new macros.
22927 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22928 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22929 Likewise.
22930 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22931 Likewise.
22932 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22933 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22934 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22935 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22936 Likewise.
22937 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22938 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22939 Likewise.
22940 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22941 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22942 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22943 Likewise.
22944 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22945 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22946 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22947 (cimag): Likewise.
22948 (creal): Likewise.
22949
22950 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22951
22952 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22953 for stpncpy calls for GCC 8.
22954 (test_strncat): Disable -Wstringop-truncation warning for strncat
22955 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22956 strncat call for GCC 7.
22957 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22958 calls for GCC 8.
22959 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22960 trailing NUL.
22961
22962 * string/bug-strncat1.c: Include <libc-diag.h>.
22963 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22964
22965 2017-11-13 Claude Paroz <claude@2xlibre.net>
22966
22967 [BZ #22387]
22968 * localedata/locales/aa_DJ: Improved readibility by replacing
22969 <Uxxxx> sequences in the ASCII printable range by their ASCII
22970 character equivalents.
22971 * localedata/locales/aa_ER: Likewise.
22972 * localedata/locales/aa_ER@saaho: Likewise.
22973 * localedata/locales/aa_ET: Likewise.
22974 * localedata/locales/af_ZA: Likewise.
22975 * localedata/locales/agr_PE: Likewise.
22976 * localedata/locales/ak_GH: Likewise.
22977 * localedata/locales/am_ET: Likewise.
22978 * localedata/locales/anp_IN: Likewise.
22979 * localedata/locales/ar_AE: Likewise.
22980 * localedata/locales/ar_BH: Likewise.
22981 * localedata/locales/ar_DZ: Likewise.
22982 * localedata/locales/ar_EG: Likewise.
22983 * localedata/locales/ar_IN: Likewise.
22984 * localedata/locales/ar_IQ: Likewise.
22985 * localedata/locales/ar_JO: Likewise.
22986 * localedata/locales/ar_KW: Likewise.
22987 * localedata/locales/ar_LB: Likewise.
22988 * localedata/locales/ar_LY: Likewise.
22989 * localedata/locales/ar_MA: Likewise.
22990 * localedata/locales/ar_OM: Likewise.
22991 * localedata/locales/ar_QA: Likewise.
22992 * localedata/locales/ar_SA: Likewise.
22993 * localedata/locales/ar_SD: Likewise.
22994 * localedata/locales/ar_SS: Likewise.
22995 * localedata/locales/ar_SY: Likewise.
22996 * localedata/locales/ar_TN: Likewise.
22997 * localedata/locales/ar_YE: Likewise.
22998 * localedata/locales/as_IN: Likewise.
22999 * localedata/locales/ast_ES: Likewise.
23000 * localedata/locales/ayc_PE: Likewise.
23001 * localedata/locales/az_AZ: Likewise.
23002 * localedata/locales/az_IR: Likewise.
23003 * localedata/locales/be_BY: Likewise.
23004 * localedata/locales/be_BY@latin: Likewise.
23005 * localedata/locales/bem_ZM: Likewise.
23006 * localedata/locales/ber_DZ: Likewise.
23007 * localedata/locales/ber_MA: Likewise.
23008 * localedata/locales/bg_BG: Likewise.
23009 * localedata/locales/bhb_IN: Likewise.
23010 * localedata/locales/bho_IN: Likewise.
23011 * localedata/locales/bi_VU: Likewise.
23012 * localedata/locales/bn_BD: Likewise.
23013 * localedata/locales/bn_IN: Likewise.
23014 * localedata/locales/bo_CN: Likewise.
23015 * localedata/locales/bo_IN: Likewise.
23016 * localedata/locales/br_FR: Likewise.
23017 * localedata/locales/brx_IN: Likewise.
23018 * localedata/locales/bs_BA: Likewise.
23019 * localedata/locales/byn_ER: Likewise.
23020 * localedata/locales/ca_AD: Likewise.
23021 * localedata/locales/ca_ES: Likewise.
23022 * localedata/locales/ca_FR: Likewise.
23023 * localedata/locales/ca_IT: Likewise.
23024 * localedata/locales/ce_RU: Likewise.
23025 * localedata/locales/chr_US: Likewise.
23026 * localedata/locales/cmn_TW: Likewise.
23027 * localedata/locales/crh_UA: Likewise.
23028 * localedata/locales/cs_CZ: Likewise.
23029 * localedata/locales/csb_PL: Likewise.
23030 * localedata/locales/cv_RU: Likewise.
23031 * localedata/locales/cy_GB: Likewise.
23032 * localedata/locales/da_DK: Likewise.
23033 * localedata/locales/de_AT: Likewise.
23034 * localedata/locales/de_BE: Likewise.
23035 * localedata/locales/de_CH: Likewise.
23036 * localedata/locales/de_DE: Likewise.
23037 * localedata/locales/de_IT: Likewise.
23038 * localedata/locales/de_LI: Likewise.
23039 * localedata/locales/de_LU: Likewise.
23040 * localedata/locales/doi_IN: Likewise.
23041 * localedata/locales/dv_MV: Likewise.
23042 * localedata/locales/dz_BT: Likewise.
23043 * localedata/locales/el_CY: Likewise.
23044 * localedata/locales/el_GR: Likewise.
23045 * localedata/locales/en_AG: Likewise.
23046 * localedata/locales/en_AU: Likewise.
23047 * localedata/locales/en_BW: Likewise.
23048 * localedata/locales/en_CA: Likewise.
23049 * localedata/locales/en_DK: Likewise.
23050 * localedata/locales/en_GB: Likewise.
23051 * localedata/locales/en_HK: Likewise.
23052 * localedata/locales/en_IE: Likewise.
23053 * localedata/locales/en_IL: Likewise.
23054 * localedata/locales/en_IN: Likewise.
23055 * localedata/locales/en_NG: Likewise.
23056 * localedata/locales/en_NZ: Likewise.
23057 * localedata/locales/en_PH: Likewise.
23058 * localedata/locales/en_SG: Likewise.
23059 * localedata/locales/en_US: Likewise.
23060 * localedata/locales/en_ZA: Likewise.
23061 * localedata/locales/en_ZM: Likewise.
23062 * localedata/locales/en_ZW: Likewise.
23063 * localedata/locales/eo: Likewise.
23064 * localedata/locales/es_AR: Likewise.
23065 * localedata/locales/es_BO: Likewise.
23066 * localedata/locales/es_CL: Likewise.
23067 * localedata/locales/es_CO: Likewise.
23068 * localedata/locales/es_CR: Likewise.
23069 * localedata/locales/es_CU: Likewise.
23070 * localedata/locales/es_DO: Likewise.
23071 * localedata/locales/es_EC: Likewise.
23072 * localedata/locales/es_ES: Likewise.
23073 * localedata/locales/es_GT: Likewise.
23074 * localedata/locales/es_HN: Likewise.
23075 * localedata/locales/es_MX: Likewise.
23076 * localedata/locales/es_NI: Likewise.
23077 * localedata/locales/es_PA: Likewise.
23078 * localedata/locales/es_PE: Likewise.
23079 * localedata/locales/es_PR: Likewise.
23080 * localedata/locales/es_PY: Likewise.
23081 * localedata/locales/es_SV: Likewise.
23082 * localedata/locales/es_US: Likewise.
23083 * localedata/locales/es_UY: Likewise.
23084 * localedata/locales/es_VE: Likewise.
23085 * localedata/locales/et_EE: Likewise.
23086 * localedata/locales/eu_ES: Likewise.
23087 * localedata/locales/eu_ES@euro: Likewise.
23088 * localedata/locales/fa_IR: Likewise.
23089 * localedata/locales/ff_SN: Likewise.
23090 * localedata/locales/fi_FI: Likewise.
23091 * localedata/locales/fil_PH: Likewise.
23092 * localedata/locales/fo_FO: Likewise.
23093 * localedata/locales/fr_BE: Likewise.
23094 * localedata/locales/fr_CA: Likewise.
23095 * localedata/locales/fr_CH: Likewise.
23096 * localedata/locales/fr_FR: Likewise.
23097 * localedata/locales/fr_LU: Likewise.
23098 * localedata/locales/fur_IT: Likewise.
23099 * localedata/locales/fy_DE: Likewise.
23100 * localedata/locales/fy_NL: Likewise.
23101 * localedata/locales/ga_IE: Likewise.
23102 * localedata/locales/gd_GB: Likewise.
23103 * localedata/locales/gez_ER: Likewise.
23104 * localedata/locales/gez_ET: Likewise.
23105 * localedata/locales/gl_ES: Likewise.
23106 * localedata/locales/gu_IN: Likewise.
23107 * localedata/locales/gv_GB: Likewise.
23108 * localedata/locales/ha_NG: Likewise.
23109 * localedata/locales/hak_TW: Likewise.
23110 * localedata/locales/he_IL: Likewise.
23111 * localedata/locales/hi_IN: Likewise.
23112 * localedata/locales/hif_FJ: Likewise.
23113 * localedata/locales/hne_IN: Likewise.
23114 * localedata/locales/hr_HR: Likewise.
23115 * localedata/locales/hsb_DE: Likewise.
23116 * localedata/locales/ht_HT: Likewise.
23117 * localedata/locales/hu_HU: Likewise.
23118 * localedata/locales/hy_AM: Likewise.
23119 * localedata/locales/i18n: Likewise.
23120 * localedata/locales/ia_FR: Likewise.
23121 * localedata/locales/id_ID: Likewise.
23122 * localedata/locales/ig_NG: Likewise.
23123 * localedata/locales/ik_CA: Likewise.
23124 * localedata/locales/is_IS: Likewise.
23125 * localedata/locales/it_CH: Likewise.
23126 * localedata/locales/it_IT: Likewise.
23127 * localedata/locales/iu_CA: Likewise.
23128 * localedata/locales/ja_JP: Likewise.
23129 * localedata/locales/ka_GE: Likewise.
23130 * localedata/locales/kk_KZ: Likewise.
23131 * localedata/locales/kl_GL: Likewise.
23132 * localedata/locales/kn_IN: Likewise.
23133 * localedata/locales/ko_KR: Likewise.
23134 * localedata/locales/kok_IN: Likewise.
23135 * localedata/locales/ks_IN: Likewise.
23136 * localedata/locales/ks_IN@devanagari: Likewise.
23137 * localedata/locales/ku_TR: Likewise.
23138 * localedata/locales/kw_GB: Likewise.
23139 * localedata/locales/ky_KG: Likewise.
23140 * localedata/locales/lb_LU: Likewise.
23141 * localedata/locales/lg_UG: Likewise.
23142 * localedata/locales/li_BE: Likewise.
23143 * localedata/locales/li_NL: Likewise.
23144 * localedata/locales/lij_IT: Likewise.
23145 * localedata/locales/ln_CD: Likewise.
23146 * localedata/locales/lo_LA: Likewise.
23147 * localedata/locales/lt_LT: Likewise.
23148 * localedata/locales/lv_LV: Likewise.
23149 * localedata/locales/lzh_TW: Likewise.
23150 * localedata/locales/mag_IN: Likewise.
23151 * localedata/locales/mai_IN: Likewise.
23152 * localedata/locales/mg_MG: Likewise.
23153 * localedata/locales/mhr_RU: Likewise.
23154 * localedata/locales/mi_NZ: Likewise.
23155 * localedata/locales/mk_MK: Likewise.
23156 * localedata/locales/ml_IN: Likewise.
23157 * localedata/locales/mn_MN: Likewise.
23158 * localedata/locales/mni_IN: Likewise.
23159 * localedata/locales/mr_IN: Likewise.
23160 * localedata/locales/ms_MY: Likewise.
23161 * localedata/locales/mt_MT: Likewise.
23162 * localedata/locales/my_MM: Likewise.
23163 * localedata/locales/nan_TW: Likewise.
23164 * localedata/locales/nan_TW@latin: Likewise.
23165 * localedata/locales/nb_NO: Likewise.
23166 * localedata/locales/nds_DE: Likewise.
23167 * localedata/locales/nds_NL: Likewise.
23168 * localedata/locales/ne_NP: Likewise.
23169 * localedata/locales/nhn_MX: Likewise.
23170 * localedata/locales/niu_NU: Likewise.
23171 * localedata/locales/niu_NZ: Likewise.
23172 * localedata/locales/nl_AW: Likewise.
23173 * localedata/locales/nl_BE: Likewise.
23174 * localedata/locales/nl_NL: Likewise.
23175 * localedata/locales/nn_NO: Likewise.
23176 * localedata/locales/nr_ZA: Likewise.
23177 * localedata/locales/nso_ZA: Likewise.
23178 * localedata/locales/oc_FR: Likewise.
23179 * localedata/locales/om_ET: Likewise.
23180 * localedata/locales/om_KE: Likewise.
23181 * localedata/locales/or_IN: Likewise.
23182 * localedata/locales/os_RU: Likewise.
23183 * localedata/locales/pa_IN: Likewise.
23184 * localedata/locales/pa_PK: Likewise.
23185 * localedata/locales/pap_AW: Likewise.
23186 * localedata/locales/pap_CW: Likewise.
23187 * localedata/locales/pl_PL: Likewise.
23188 * localedata/locales/ps_AF: Likewise.
23189 * localedata/locales/pt_BR: Likewise.
23190 * localedata/locales/pt_PT: Likewise.
23191 * localedata/locales/quz_PE: Likewise.
23192 * localedata/locales/raj_IN: Likewise.
23193 * localedata/locales/ro_RO: Likewise.
23194 * localedata/locales/ru_RU: Likewise.
23195 * localedata/locales/ru_UA: Likewise.
23196 * localedata/locales/rw_RW: Likewise.
23197 * localedata/locales/sa_IN: Likewise.
23198 * localedata/locales/sat_IN: Likewise.
23199 * localedata/locales/sc_IT: Likewise.
23200 * localedata/locales/sd_IN: Likewise.
23201 * localedata/locales/sd_IN@devanagari: Likewise.
23202 * localedata/locales/se_NO: Likewise.
23203 * localedata/locales/sgs_LT: Likewise.
23204 * localedata/locales/shs_CA: Likewise.
23205 * localedata/locales/si_LK: Likewise.
23206 * localedata/locales/sid_ET: Likewise.
23207 * localedata/locales/sk_SK: Likewise.
23208 * localedata/locales/sl_SI: Likewise.
23209 * localedata/locales/sm_WS: Likewise.
23210 * localedata/locales/so_DJ: Likewise.
23211 * localedata/locales/so_ET: Likewise.
23212 * localedata/locales/so_KE: Likewise.
23213 * localedata/locales/so_SO: Likewise.
23214 * localedata/locales/sq_AL: Likewise.
23215 * localedata/locales/sq_MK: Likewise.
23216 * localedata/locales/sr_ME: Likewise.
23217 * localedata/locales/sr_RS: Likewise.
23218 * localedata/locales/sr_RS@latin: Likewise.
23219 * localedata/locales/ss_ZA: Likewise.
23220 * localedata/locales/st_ZA: Likewise.
23221 * localedata/locales/sv_FI: Likewise.
23222 * localedata/locales/sv_SE: Likewise.
23223 * localedata/locales/sw_KE: Likewise.
23224 * localedata/locales/sw_TZ: Likewise.
23225 * localedata/locales/szl_PL: Likewise.
23226 * localedata/locales/ta_IN: Likewise.
23227 * localedata/locales/ta_LK: Likewise.
23228 * localedata/locales/tcy_IN: Likewise.
23229 * localedata/locales/te_IN: Likewise.
23230 * localedata/locales/tg_TJ: Likewise.
23231 * localedata/locales/th_TH: Likewise.
23232 * localedata/locales/the_NP: Likewise.
23233 * localedata/locales/ti_ER: Likewise.
23234 * localedata/locales/ti_ET: Likewise.
23235 * localedata/locales/tig_ER: Likewise.
23236 * localedata/locales/tk_TM: Likewise.
23237 * localedata/locales/tl_PH: Likewise.
23238 * localedata/locales/tn_ZA: Likewise.
23239 * localedata/locales/to_TO: Likewise.
23240 * localedata/locales/tpi_PG: Likewise.
23241 * localedata/locales/tr_CY: Likewise.
23242 * localedata/locales/tr_TR: Likewise.
23243 * localedata/locales/ts_ZA: Likewise.
23244 * localedata/locales/tt_RU: Likewise.
23245 * localedata/locales/tt_RU@iqtelif: Likewise.
23246 * localedata/locales/ug_CN: Likewise.
23247 * localedata/locales/uk_UA: Likewise.
23248 * localedata/locales/unm_US: Likewise.
23249 * localedata/locales/ur_IN: Likewise.
23250 * localedata/locales/ur_PK: Likewise.
23251 * localedata/locales/uz_UZ: Likewise.
23252 * localedata/locales/uz_UZ@cyrillic: Likewise.
23253 * localedata/locales/ve_ZA: Likewise.
23254 * localedata/locales/vi_VN: Likewise.
23255 * localedata/locales/wa_BE: Likewise.
23256 * localedata/locales/wae_CH: Likewise.
23257 * localedata/locales/wal_ET: Likewise.
23258 * localedata/locales/wo_SN: Likewise.
23259 * localedata/locales/xh_ZA: Likewise.
23260 * localedata/locales/yi_US: Likewise.
23261 * localedata/locales/yo_NG: Likewise.
23262 * localedata/locales/yue_HK: Likewise.
23263 * localedata/locales/yuw_PG: Likewise.
23264 * localedata/locales/zh_CN: Likewise.
23265 * localedata/locales/zh_HK: Likewise.
23266 * localedata/locales/zh_SG: Likewise.
23267 * localedata/locales/zh_TW: Likewise.
23268 * localedata/locales/zu_ZA: Likewise.
23269
23270 2017-11-13 Florian Weimer <fweimer@redhat.com>
23271
23272 * support/next_to_fault.h, support/next_to_fault.c: New files.
23273 * support/Makefile (libsupport-routines): Add next_to_fault.
23274 * resolv/tst-inet_pton.c (struct next_to_fault)
23275 (next_to_fault_allocate, next_to_fault_free): Remove.
23276 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23277
23278 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23279
23280 * elf/dl-support.c: Include <dl-procruntime.c>.
23281 * include/link.h: Include <link_map.h>.
23282 * sysdeps/generic/dl-procruntime.c: New file.
23283 * sysdeps/generic/link_map.h: Likewise.
23284 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23285 the writable ld.so namespace.
23286
23287 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23288
23289 timezone: pacify GCC -Wstringop-truncation
23290 Problem reported by Martin Sebor in:
23291 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23292 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23293
23294 2017-11-12 Florian Weimer <fweimer@redhat.com>
23295
23296 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23297 tst-xreadlink.
23298 (tests): Add tst-xreadlink.
23299 * support/support.h (xstrndup): Declare.
23300 * support/xunistd.h (xunlink, xreadlink): Declare.
23301 * support/temp_file.h (support_create_temp_directory): Declare.
23302 * support/temp_file.c (support_create_temp_directory): New function.
23303 * support/support_chroot.c (support_chroot_create): Use it.
23304 * support/xreadlink.c: New file.
23305 * support/xstrndup.c: Likewise.
23306 * support/xunlink.c: Likewise.
23307 * support/tst-xreadlink.c: Likewise.
23308
23309 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23310
23311 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23312
23313 2017-11-11 Florian Weimer <fweimer@redhat.com>
23314
23315 [BZ #22409]
23316 [BZ #22412]
23317 * resolv/res_comp.c (printable_string, binary_hnok)
23318 (binary_leading_dash): New functions.
23319 (res_hnok): Reimplement using these functions and ns_name_pton.
23320 (res_ownok): Likewise.
23321 (res_mailok): Reimplement using printable_string, ns_name_pton and
23322 binary_hnok.
23323 (res_dnok): Reimplement using printable_string and ns_name_pton.
23324 * resolv/tst-res_hnok.c (tests): Add additional tests.
23325 (LETTERDIGITS, PRINTABLE): Define.
23326 (do_test): Adjust one_char results.
23327
23328 2017-11-11 Florian Weimer <fweimer@redhat.com>
23329
23330 [BZ #22413]
23331 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23332 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23333
23334 2017-11-11 Florian Weimer <fweimer@redhat.com>
23335
23336 * resolv/tst-ns_name_pton.c: New file.
23337 * resolv/Makefile (tests): Add tst-ns_name_pton.
23338 (tst-ns_name_pton): Link against libresolv.
23339
23340 2017-11-11 Florian Weimer <fweimer@redhat.com>
23341
23342 * resolv/tst-res_hnok.c: New file.
23343 * resolv/Makefile (tests): Add tst-res_hnok.
23344 (tst-res_hnok): Link against libresolv.
23345
23346 2017-11-11 Florian Weimer <fweimer@redhat.com>
23347
23348 * resolv/tst-resolv-network.c: Use test framework instead explicit
23349 main function.
23350
23351 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23352
23353 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23354 <jmp_buf-macros.h>.
23355 [!_ISOMAC] (STR_HELPER): New.
23356 [!_ISOMAC] (STR): Likewise.
23357 [!_ISOMAC] (TEST_SIZE): Likewise.
23358 [!_ISOMAC] (TEST_ALIGN): Likewise.
23359 [!_ISOMAC] (TEST_OFFSET): Likewise.
23360 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23361 field offsets of jmp_buf as well as sigjmp_buf.
23362 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23363 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23364 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23365 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23366 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23367 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23368 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23369 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23370 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23371 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23372 Likewise.
23373 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23374 Likewise.
23375 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23377 Likewise.
23378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23379 Likewise.
23380 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23381 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23382 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23383 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23384 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23385 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23386 Likewise.
23387 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23388 Likewise.
23389 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23390 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23391 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23392
23393 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23394
23395 * include/float.h
23396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23397 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23399 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23401 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23403 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23407 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23411 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23413 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23415 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23417 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23427 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23429 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23431 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23433 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23435 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23437 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23439 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23441 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23443 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23445 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23447 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23449 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23451 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23453 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23455 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23457 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23458 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23459 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23460 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23461 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23462 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23463 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23464 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23465 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23467 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23469 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23471 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23473 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23475 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23476 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23477 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23478 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23479 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23480 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23481 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23482 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23483 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23484
23485 * stdlib/tst-strtod.h (F16): New macro.
23486 (F32): Likewise.
23487 (F64): Likewise.
23488 (F32X): Likewise.
23489 (F64X): Likewise.
23490 (F128X): Likewise.
23491 (IF_FLOAT16): Likewise.
23492 (IF_FLOAT32): Likewise.
23493 (IF_FLOAT64): Likewise.
23494 (IF_FLOAT32X): Likewise.
23495 (IF_FLOAT64X): Likewise.
23496 (IF_FLOAT128X): Likewise.
23497 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23498 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23499 (STRTOD_TEST_FOREACH): Likewise.
23500 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23501 (CHOOSE_f64): Likewise.
23502 (CHOOSE_f32x): Likewise.
23503 (CHOOSE_f64x): Likewise.
23504
23505 2017-11-07 Andreas Schwab <schwab@suse.de>
23506
23507 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23508
23509 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23510
23511 [BZ #22403]
23512 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23513 to be escaped.
23514 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23515 to be escaped.
23516
23517 2017-11-07 Claude Paroz <claude@2xlibre.net>
23518
23519 [BZ #22403]
23520 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23521 to be escaped.
23522 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23523 to be escaped.
23524 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23525 to be escaped.
23526
23527 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23528
23529 [BZ #22298]
23530 * nptl/allocatestack.c (allocate_stack): Check if
23531 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23532 __PTHREAD_MUTEX_HAVE_PREV is defined.
23533 * nptl/descr.h (pthread): Likewise.
23534 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23535 Likewise.
23536 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23537 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23538 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23539 * sysdeps/nptl/bits/thread-shared-types.h
23540 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23541 defines.
23542 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23543 of __WORDSIZE for internal layout.
23544 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23545 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23546 instead of __WORDSIZE whether to use an union for __spins and __list
23547 fields.
23548 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23549 case.
23550 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23551 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23552 defines.
23553 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23554 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23555 Likewise.
23556 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23557 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23558 Likewise.
23559 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23560 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23561 Likewise.
23562 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23563 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23564 Likewise.
23565 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23566 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23567 Likewise.
23568 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23569 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23570 Likewise.
23571 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23572 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23573 Likewise.
23574 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23575 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23576 Likewise.
23577 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23578 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23579 Likewise.
23580 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23581 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23582 Likewise.
23583 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23584 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23585 Likewise.
23586 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23587 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23588 Likewise.
23589 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23590 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23591 Likewise.
23592 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23593 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23594 Likewise.
23595
23596 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23597 New macros.
23598 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23599 checks for expected input type size.
23600 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23601 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23602 Likewise.
23603 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23604 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23605 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23606 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23607 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23608 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23609 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23610 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23611 superflous runtime assert check.
23612 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23613 Likewise.
23614 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23615 Likewise.
23616 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23617 Likewise.
23618 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23619 Likewise.
23620 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23621 Likewise.
23622 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23623 Likewise.
23624 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23625 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23626 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23627 Likewise.
23628 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23629 Likewise.
23630 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23631 Likewise.
23632 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23633 Likewise.
23634 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23635 Likewise.
23636 * nptl/pthread_attr_setinheritsched.c
23637 (__pthread_attr_setinheritsched): Likewise.
23638 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23639 Likewise.
23640 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23641 Likewise.
23642 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23643 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23644 __old_pthread_attr_setstack): Likewise.
23645 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23646 Likewise.
23647 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23648 Likewise.
23649 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23650 Likewise.
23651 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23652 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23653 Likewise.
23654 * nptl/tst-typesizes.c: Remove file.
23655
23656 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23657 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23658 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23659 checks for internal pthread_mutex_t offsets.
23660 * sysdeps/aarch64/nptl/pthread-offsets.h
23661 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23662 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23663 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23664 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23665 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23666 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23667 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23668 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23669 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23670 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23671 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23672 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23673 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23674 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23675 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23676 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23677 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23678 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23679
23680 2017-11-07 Florian Weimer <fweimer@redhat.com>
23681
23682 * bits/mman-linux.h: Move ...
23683 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23684 comment.
23685 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23686 outdated comment.
23687
23688 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23689
23690 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23691 Redefine STRNLEN as __strnlen_power8.
23692
23693 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23694
23695 * signal/sighold.c (sighold): Optimize implementation.
23696
23697 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23698 __NR_rt_sigqueueinfo.
23699
23700 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23701 __sigtimedwait.
23702 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23703 assume __NR_rt_sigtimedwait.
23704 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23705 and add LIBC_CANCEL_HANDLED for cancellation marking.
23706 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23707
23708 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23709 (sysdeps_routines): Add memchr_noneon.
23710 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23711 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23712 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23713 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23714 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23715 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23716 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23717
23718 * sysdeps/arm/arm-ifunc.h: New file.
23719 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23720 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23721 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23722 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23723 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23724 (__memcpy_neon): Avoid create hidden alias.
23725 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23726 (__memcpy_vfp): Likewise.
23727 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23728 (sysdep_routines): Add memcpy_arm.
23729 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23730
23731 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23732
23733 [BZ #22362]
23734 * Makerules (make-link-multidir): New.
23735 * config.make.in (multidir): New.
23736 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23737 * configure: Regenerated.
23738 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23739 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23740 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23741 New target.
23742
23743 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23744
23745 [BZ #22402]
23746 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23747 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23748
23749 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23750
23751 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23752 to be escaped.
23753
23754 2017-11-04 Florian Weimer <fweimer@redhat.com>
23755
23756 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23757
23758 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23759
23760 * math/math.h [__HAVE_DISTINCT_FLOAT16
23761 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23762 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23763 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23764 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23765 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23766 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23767 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23768 (__MATH_TG_F32): New macro.
23769 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23770 (__MATH_TG_F64X): Likewise.
23771 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23772 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23773
23774 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23775
23776 * po/de.po: Update translations.
23777 * po/ru.po: Likewise.
23778
23779 2017-11-03 Florian Weimer <fweimer@redhat.com>
23780
23781 * manual/filesys.texi (Hard Links): Document linkat.
23782
23783 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23784
23785 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23786 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23787 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23788 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23789 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23790 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23791 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23792 the same as _Float128.
23793 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23794 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23795 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23796
23797 * stdlib/stdlib.h
23798 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23799 Declare.
23800 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23801 Likewise.
23802 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23803 Likewise.
23804 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23805 (strtof32x): Likewise.
23806 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23807 (strtof64x): Likewise.
23808 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23809 (strtof128x): Likewise.
23810 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23811 (strfromf16): Likewise.
23812 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23813 (strfromf32): Likewise.
23814 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23815 (strfromf64): Likewise.
23816 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23817 (strfromf32x): Likewise.
23818 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23819 (strfromf64x): Likewise.
23820 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23821 (strfromf128x): Likewise.
23822 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23823 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23824 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23825 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23826 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23827 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23828
23829 2017-11-03 Richard Henderson <rth@twiddle.net>
23830
23831 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23832
23833 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23834
23835 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23836
23837 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23838
23839 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23840 DT_TLSDESC_GOT initialization.
23841 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23842 (_dl_tlsdesc_resolve_hold): Likewise.
23843 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23844 (_dl_tlsdesc_resolve_hold): Likewise.
23845 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23846 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23847
23848 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23849
23850 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23851
23852 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23853
23854 [BZ #18572]
23855 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23856 non-lazily for R_ARM_TLS_DESC.
23857
23858 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23859
23860 [BZ #17078]
23861 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23862 R_ARM_TLS_DESC case.
23863 (elf_machine_lazy_rel): Remove the prelink check.
23864
23865 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23866
23867 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23868 DT_TLSDESC_GOT initialization.
23869 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23870 (_dl_tlsdesc_resolve_rela): Likewise.
23871 (_dl_tlsdesc_resolve_hold): Likewise.
23872 (_dl_tlsdesc_undefweak): Remove ldar.
23873 (_dl_tlsdesc_dynamic): Likewise.
23874 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23875 (_dl_tlsdesc_resolve_rela): Likewise.
23876 (_dl_tlsdesc_resolve_hold): Likewise.
23877 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23878 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23879 (_dl_tlsdesc_resolve_rela): Likewise.
23880 (_dl_tlsdesc_resolve_hold): Likewise.
23881
23882 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23883
23884 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23885 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23886
23887 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23888
23889 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23890 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23891
23892 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23893
23894 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23895 Declare.
23896 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23897 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23898 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23899 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23900 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23901 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23902 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23903 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23904 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23905 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23906 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23907
23908 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23909
23910 [BZ #22382]
23911 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23912 * localedata/locales/tpi_PG: Add standard header.
23913
23914 2017-11-02 Florian Weimer <fweimer@redhat.com>
23915
23916 test-errno-linux: quotactl can fail with EPERM in containers.
23917 * sysdeps/unix/sysv/linux/test-errno-linux.c
23918 (LIST, LIST_FORWARD): New macros.
23919 (check_error_in_list): New function.
23920 (test_wrp_rv): Accept list of permitted error codes.
23921 (test_wrp_rv2): Remove.
23922 (test_wrp): Call test_wrp_rv with list of error codes.
23923 (test_wrp2): Accept list of error codes.
23924 (do_test): Adjust. Allow EPERM for quotactl.
23925
23926 2017-11-02 Florian Weimer <fweimer@redhat.com>
23927
23928 * stdio-common/bug16.c (do_test): Use array_length.
23929 * stdio-common/errlist.c (_sys_nerr): Likewise.
23930 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23931 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23932 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23933 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23934 (do_test): Use array_length.
23935 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23936 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23937 * stdio-common/tst-printf-round.c (do_test): Likewise.
23938 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23939 (CHECK): Use array_length.
23940 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23941 * stdio-common/tstscanf.c (main): Likewise.
23942 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23943
23944 2017-11-02 Florian Weimer <fweimer@redhat.com>
23945
23946 Add array_length and array_end macros.
23947 * include/array_length.h: New file.
23948
23949 2017-11-02 Florian Weimer <fweimer@redhat.com>
23950
23951 [BZ #22332]
23952 * posix/tst-glob-tilde.c (do_noescape): New variable.
23953 (one_test): Process it.
23954 (do_test): Set do_noescape. Add unescaping test case.
23955
23956 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23957
23958 * math/complex.h
23959 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23960 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23961 with appropriate macros defined and undefined.
23962 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23963 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23964 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23965 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23966 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23967 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23968 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23969 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23970 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23971 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23972
23973 * math/complex.h
23974 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23975 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23976 that for long double. Do not condition define and undefine of
23977 _Mdouble_complex_ on [__CFLOAT128].
23978
23979 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23980
23981 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23982 of <sysdeps/generic/sysdep.h>.
23983 (ALIGNARG): Removed.
23984 (ASM_SIZE_DIRECTIVE): Likewise.
23985 (ENTRY): Likewise.
23986 (END): Likewise.
23987 (ENTRY_CHK): Likewise.
23988 (END_CHK): Likewise.
23989 (syscall_error): Likewise.
23990 (mcount): Likewise.
23991 (PSEUDO_END): Likewise.
23992 (L): Likewise.
23993 (atom_text_section): Likewise.
23994 * sysdeps/x86/sysdep.h: New file.
23995 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23996 of <sysdeps/generic/sysdep.h>.
23997 (ALIGNARG): Removed.
23998 (ASM_SIZE_DIRECTIVE): Likewise.
23999 (ENTRY): Likewise.
24000 (END): Likewise.
24001 (ENTRY_CHK): Likewise.
24002 (END_CHK): Likewise.
24003 (syscall_error): Likewise.
24004 (mcount): Likewise.
24005 (PSEUDO_END): Likewise.
24006 (L): Likewise.
24007 (atom_text_section): Likewise.
24008
24009 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
24010
24011 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
24012 category of LC_CTYPE set to "i18n:2012".
24013 * localedata/locales/i18n_ctype: Regenerate.
24014
24015 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
24016
24017 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
24018 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
24019 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
24020 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
24021
24022 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
24023 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
24024 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
24025 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
24026
24027 2017-10-31 Joseph Myers <joseph@codesourcery.com>
24028
24029 * math/complex.h
24030 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24031 New macro.
24032 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24033 Likewise.
24034 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24035 Likewise.
24036 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24037 (CMPLXF32X): Likewise.
24038 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24039 (CMPLXF64X): Likewise.
24040 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24041 (CMPLXF128X): Likewise.
24042
24043 * math/math.h
24044 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24045 (__MATH_EVAL_FMT2): Define to add 0.0f.
24046
24047 2017-10-31 Alan Modra <amodra@gmail.com>
24048
24049 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24050 include sysdep.h.
24051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24065 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24066 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24067 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24068 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24069 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24070 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24071 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24072 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24073 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24074 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24075 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24076 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24077 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24078 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24079 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24080 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24081 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24082 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24083 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24084 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24085 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24086 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24087 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24088 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24089 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24090 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24091 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24092 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24093 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24094 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24095 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24096 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24097 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24098 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24099 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24100 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24101 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24102 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24103 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24104 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24105 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24106 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24107 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24108 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24109 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24110 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24111 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24112 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24113 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24114 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24115 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24116 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24117 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24118 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24119 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24120
24121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24122 include sysdep.h and math_ldbl_opt.h.
24123
24124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24125 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24150
24151 2017-10-31 Alan Modra <amodra@gmail.com>
24152
24153 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24154 string/strncase_l.c, not string/strncase.c.
24155 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24156 (libc_hidden_def): Redefine.
24157
24158 2017-10-31 Alan Modra <amodra@gmail.com>
24159
24160 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24161 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24162 (__strcasecmp): Don't define.
24163
24164 2017-10-31 Alan Modra <amodra@gmail.com>
24165
24166 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24167 IS_IN (libc).
24168 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24169 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24170 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24171
24172 2017-10-31 Alan Modra <amodra@gmail.com>
24173
24174 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24175 USE_AS_STPNCPY.
24176
24177 2017-10-31 Alan Modra <amodra@gmail.com>
24178
24179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24180 Redefine only when SHARED.
24181
24182 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24183
24184 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24185 Include <bits/math-finite.h> with appropriate macros defined and
24186 undefined.
24187 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24188 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24189 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24190 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24191 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24192
24193 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24194 [!_Mlong_double_] (_Mlong_double_): Likewise.
24195 [!_Mfloat16_] (_Mfloat16_): Likewise.
24196 [!_Mfloat32_] (_Mfloat32_): Likewise.
24197 [!_Mfloat64_] (_Mfloat64_): Likewise.
24198 [!_Mfloat128_] (_Mfloat128_): Likewise.
24199 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24200 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24201 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24202 (_Mdouble_): Define without indirection through those macros.
24203 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24204 [!_Mfloat128_] (_Mfloat128_): Likewise.
24205 [_Mlong_double_] (_Mlong_double_): Likewise.
24206 (_Mdouble_): Define without indirection through those macros.
24207 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24208 not add -D_Mlong_double_=double.
24209 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24210 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24211
24212 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24213
24214 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24215
24216 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24217
24218 * sysdeps/x86/libc-start.c: Reformat.
24219
24220 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24221
24222 [BZ #22353]
24223 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24224 (1): Renamed to ...
24225 (L(Src0)): This.
24226 (L(Src1)): New.
24227 (L(Src2)): Likewise.
24228 (L(1)): Renamed to ...
24229 (L(Src3)): This.
24230
24231 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24232
24233 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24234 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24235 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24236 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24237 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24238 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24239 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24240 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24241 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24242 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24243 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24244 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24245 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24246 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24247 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24248 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24249 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24250 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24251 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24252 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24253 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24254 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24255 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24256 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24257 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24258 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24259 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24260 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24261 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24262 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24263 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24264 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24265 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24266 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24267 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24268 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24269 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24270 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24271 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24272 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24273 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24274 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24275 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24276 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24277 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24278 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24279 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24280 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24281 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24282 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24283 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24284 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24285 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24286 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24287 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24288 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24289 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24290 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24291 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24292 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24293 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24294 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24295 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24296 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24297 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24298 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24299
24300 2017-10-30 Florian Weimer <fweimer@redhat.com>
24301
24302 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24303 always defined.
24304 * io/tst-mkdirat.c (do_test): Likewise.
24305 * io/tst-mkfifoat.c (do_test): Likewise.
24306 * io/tst-mknodat.c (do_test): Likewise.
24307 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24308 * locale/programs/locale.c (select_dirs): Likewise.
24309 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24310 * posix/bug-glob2.c (my_readdir): Likewise.
24311 * posix/tst-dir.c (main): Likewise.
24312 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24313 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24314
24315 2017-10-30 Florian Weimer <fweimer@redhat.com>
24316
24317 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24318 just __USE_GNU.
24319
24320 2017-10-30 Florian Weimer <fweimer@redhat.com>
24321
24322 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24323 Convert to support/test-driver.c.
24324 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24325 New macro parameters.
24326 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24327 * posix/tst-gnuglob.c: New file.
24328 * posix/tst-gnuglob64.c: Likewise.
24329 * posix/Makefile (tests): Add tst-gnuglob64.
24330
24331 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24332
24333 [BZ #19485]
24334 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24335 and use a better translation for March in “mon”.
24336 * localedata/locales/csb_PL: Use more ASCII to improve the
24337 readability of the source.
24338
24339 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24340
24341 [BZ #13953]
24342 * localedata/locales/km_KH: Use ASCII as much
24343 as possible for better readability of the source and
24344 remove useless comments.
24345 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24346 was commented out and apparently wrong anyway because it was
24347 using Lao characters. If Buddhist era should be used
24348 for km_KH, a native speaker should write the correct formaat
24349 for Khmer.
24350 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24351 (According to CLDR, the first weekday for Cambodia is Sunday).
24352 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24353 (These were using Lao characters which must be wrong. If we get
24354 the correct data from a native speaker, we could add it back, until
24355 then it is better not to have name_mr and name_mrs at all than
24356 having it wrong).
24357
24358 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24359
24360 * locale/loadlocale.c: Correct size of
24361 _nl_value_type_LC_<category> arrays.
24362
24363 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24364
24365 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24366 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24367 with appropriate macros defined and undefined.
24368 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24369 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24370 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24371 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24372 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24373
24374 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24375
24376 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24377 "-O2 -march=i586".
24378
24379 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24380
24381 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24382 with lowercase letters to make it agree with CLDR.
24383
24384 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24385
24386 [BZ #15260]
24387 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24388 first letters of yesstr and nostr in yesexpr and noexpr,
24389 not for the full words.
24390 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24391 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24392 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24393 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24394 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24395 first letters of yesstr and nostr in yesexpr and noexpr,
24396 until now only English was matched in yesexpr and noexpr.
24397 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24398 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24399 fil but not for tl. As tl and fil are very similar, using fil
24400 is probably better than using English.
24401
24402 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24403
24404 [BZ #21706]
24405 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24406 in yesstr and nostr.
24407
24408 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24409
24410 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24411 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24412 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24413 Likewise.
24414 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24415 Likewise.
24416 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24417 Likewise.
24418 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24419 Likewise.
24420 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24421 (SNANF128X): Likewise.
24422
24423 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24424 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24425 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24426 (HUGE_VAL_F32): Likewise.
24427 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24428 (HUGE_VAL_F64): Likewise.
24429 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24430 (HUGE_VAL_F32X): Likewise.
24431 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24432 (HUGE_VAL_F64X): Likewise.
24433 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24434 (HUGE_VAL_F128X): Likewise.
24435
24436 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24437
24438 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24439 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24440 for the br_FR locale.
24441
24442 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24443
24444 [BZ #21706]
24445 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24446
24447 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24448
24449 * locale/programs/record-status.h: Define globals, and function
24450 prototypes. Move function bodies...
24451 * locale/programs/record-status.c: ... to here. New file.
24452 * iconv/Makefile (iconv_prog-modules): Add record-status.
24453 * locale/Makefile (lib-modules): Likewise.
24454 * iconv/iconv_prog.c: Remove verbose.
24455 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24456 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24457 record a warning about ASCII compatibility.
24458 * locale/programs/ld-monetary.c (monetary_finish): If
24459 warn_int_curr_symbol is true then record a warning about the symbol
24460 not being in our ISO 4217 list.
24461 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24462 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24463 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24464 (OPT_NO_WARN): Define.
24465 (OPT_WARN): Define.
24466 (options): Add entry for --no-warnings, and --warnings.
24467 (set_warnings): New function to enable/disable warnings.
24468 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24469 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24470 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24471 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24472 Pass flags to generate_locale.
24473 (generate_locale): Accept new flag argument and pass it to localedef
24474 invocation.
24475 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24476 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24477
24478 * localedata/Makefile (test-input-data): Use full file name.
24479 * localedata/da_DK.in: Rename to...
24480 * localedata/da_DK.ISO-8859-1.in: ...this.
24481 * localedata/de_DE.in: Rename to...
24482 * localedata/de_DE.ISO-8859-1.in: ...this.
24483 * localedata/en_US.in: Rename to...
24484 * localedata/en_US.ISO-8859-1.in: ...this.
24485 * localedata/fr_FR.in: Rename to...
24486 * localedata/fr_FR.UTF-8.in: ... this.
24487 * localedata/hr_HR.in: Rename to...
24488 * localedata/hr_HR.ISO-8859-2.in: ...this.
24489 * localedata/hu_HU.in: Rename to...
24490 * localedata/hu_HU.UTF-8.in: ...this.
24491 * localedata/si_LK.in: Rename to...
24492 * localedata/si_LK.UTF-8.in: ...this.
24493 * localedata/sv_SE.in: Rename to...
24494 * localedata/sv_SE.ISO-8859-1.in: ...this.
24495 * localedata/tr_TR.in: Rename to...
24496 * localedata/tr_TR.UTF-8.in: ...this.
24497 * localedata/uk_UA.in: Rename to...
24498 * localedata/uk_UA.UTF-8.in: ...this.
24499 * localedata/sort-test.sh: Test file is locale name with the
24500 suffix.
24501
24502 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24503 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24504 file.
24505 * localedata/locales/i18n_ctype: Regenerate.
24506 * localedata/locales/tr_TR: Likewise.
24507 * localedata/locales/translit_circle: Likewise.
24508 * localedata/locales/translit_cjk_compat: Likewise.
24509 * localedata/locales/translit_combining: Likewise.
24510 * localedata/locales/translit_compat: Likewise.
24511 * localedata/locales/translit_font: Likewise.
24512 * localedata/locales/translit_fraction: Likewise.
24513
24514 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24515
24516 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24517 lxvd2x/stxvd2x with lvx/stvx.
24518 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24519
24520 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24521
24522 * include/alloc_buffer.h: Replace "if if " with "if " in
24523 comments.
24524 * sysdeps/mips/memcpy.S: Likkewise.
24525 * sysdeps/mips/memset.S: Likewise.
24526 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24527 Likewise.
24528 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24529 Likewise.
24530 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24531 Likewise.
24532
24533 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24534
24535 [BZ #15261]
24536 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24537 yesexpr and noexpr.
24538 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24539 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24540 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24541 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24542 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24543 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24544 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24545
24546 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24547
24548 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24549 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24550 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24551 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24552 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24553 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24554 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24555 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24556 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24557 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24558 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24559 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24560
24561 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24562
24563 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24564 as possible for better readability of the source.
24565 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24566 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24567 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24568 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24569 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24570 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24571 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24572 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24573 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24574 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24575 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24576 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24577 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24578 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24579 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24580 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24581 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24582 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24583 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24584 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24585 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24586 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24587 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24588 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24589 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24590 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24591 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24592 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24593 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24594 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24595 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24596 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24597 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24598 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24599 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24600 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24601 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24602 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24603 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24604 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24605 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24606 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24607 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24608 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24609 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24610 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24611 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24612 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24613 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24614 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24615 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24616 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24617 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24618 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24619 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24620 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24621 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24622 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24623 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24624 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24625 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24626 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24627 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24628 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24629 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24630 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24631 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24632 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24633 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24634 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24635 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24636 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24637 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24638 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24639 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24640 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24641 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24642 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24643 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24644 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24645 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24646 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24647 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24648 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24649 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24650 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24651 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24652 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24653 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24654 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24655 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24656 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24657 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24658 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24659 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24660 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24661 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24662 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24663 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24664 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24665 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24666 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24667 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24668 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24669 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24670 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24671 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24672 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24673 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24674 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24675 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24676 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24677 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24678 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24679 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24680 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24681 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24682 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24683 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24684 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24685 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24686 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24687 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24688 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24689 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24690 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24691 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24692 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24693 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24694 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24695 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24696 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24697 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24698 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24699 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24700 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24701 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24702 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24703 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24704 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24705 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24706 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24707 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24708 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24709 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24710 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24711 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24712 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24713 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24714 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24715 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24716 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24717 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24718 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24719 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24720 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24721 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24722 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24723 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24724 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24725 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24726 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24727 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24728 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24729 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24730 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24731 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24732 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24733 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24734 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24735 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24736 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24737 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24738 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24739
24740 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24741
24742 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24743 (Use first letters of yesstr and nostr correctly instead of using
24744 full words).
24745
24746 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24747
24748 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24749 (Use first letters of yesstr and nostr correctly).
24750
24751 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24752
24753 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24754 also check for the first characters of yesstr and nostr.
24755 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24756 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24757
24758 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24759
24760 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24761 also check for Chinese characters.
24762
24763 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24764
24765 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24766 match also for the contents of yesstr and nostr. As the first letter
24767 of yesstr and nostr is equal, checking only for the first letter
24768 is not enough.
24769
24770 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24771
24772 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24773 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24774
24775 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24776
24777 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24778 of main contributor.
24779
24780 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24781
24782 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24783 instead of using English.
24784
24785 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24786
24787 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24788 by including the first letters of nostr and yesexpr in the regexp.
24789 Also make it more readable by using ASCII where possible.
24790
24791 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24792
24793 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24794 the first letter of nostr in the regexp. It agrees with CLDR now.
24795 Also make it more readable by using ASCII where possible.
24796
24797 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24798
24799 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24800 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24801 these strings contain a U+17D6 (which somewhat looks like a colon)
24802 instead of a real colon to separate the full words for “yes”
24803 and “no” from the single letter responses.
24804
24805 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24806
24807 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24808 it agree with CLDR (include the first letter of yesstr).
24809 Also make it more readable by using ASCII where possible.
24810
24811 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24812
24813 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24814 and improve yesexpr and noexpr. The yesstr and nostr apparently
24815 came from CLDR. And CLDR has a bug there: these strings contain
24816 a U+0903 (which looks like a colon) instead of a real colon
24817 to separate the full words for “yes” and “no” from the single
24818 letter responses.
24819
24820 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24821
24822 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24823 letters of the full yesstr and nostr in yesexpr and noexpr.
24824
24825 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24826
24827 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24828 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24829 * localedata/locales/an_ES: Make source more readable by using ASCII
24830 where possible.
24831
24832 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24833
24834 [BZ #20952]
24835 * localedata/locales/yuw_PG: New file.
24836 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24837 * locale/iso-639.def: Add Yau (Uruwa).
24838
24839 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24840
24841 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24842
24843 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24844
24845 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24846 (__libc_realloc): Likewise.
24847 (_mid_memalign): Likewise.
24848 (__libc_calloc): Likewise.
24849
24850 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24851
24852 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24853 by adding the generic +1 and -0 as in all other locales.
24854 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24855 day names and make it more readable by using ASCII where possible.
24856
24857 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24858
24859 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24860 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24861
24862 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24863
24864 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24865 WNOHANG in waitpid call.
24866
24867 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24868
24869 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24870 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24871
24872 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24873 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24874 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24875 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24876 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24877 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24878 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24879 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24880 variables.
24881
24882 2017-10-23 Michael Collison <michael.collison@arm.com>
24883
24884 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24885 with __builtin_sqrt.
24886 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24887 with __builtin_sqrtf.
24888 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24889 with __builtin_ceil.
24890 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24891 with __builtin_ceilf.
24892 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24893 with __builtin_floor.
24894 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24895 with __builtin_floorf.
24896 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24897 with __builtin_fma.
24898 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24899 with __builtin_fmaf.
24900 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24901 with __builtin_fmax.
24902 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24903 with __builtin_fmaxf.
24904 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24905 with __builtin_fmin.
24906 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24907 with __builtin_fminf.
24908 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24909 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24910 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24911 with builtin_rint and conversion to int.
24912 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24913 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24914 with builtin_llround.
24915 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24916 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24917 with builtin_rint and conversion to long int.
24918 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24919 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24920 with builtin_lround.
24921 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24922 with builtin_lroundf.
24923 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24924 statements with __builtin_nearbyint.
24925 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24926 statements with __builtin_nearbyintf.
24927 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24928 with __builtin_rint.
24929 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24930 with __builtin_rintf.
24931 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24932 with __builtin_round.
24933 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24934 with __builtin_roundf.
24935 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24936 with __builtin_trunc.
24937 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24938 with __builtin_truncf.
24939 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24940 and s_l[l]round[f].c too.
24941
24942 2017-10-23 Alan Modra <amodra@gmail.com>
24943
24944 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24945 Adjust stack after restoring regs. Add missing LR cfi_restore.
24946
24947 2017-10-23 Alan Modra <amodra@gmail.com>
24948
24949 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24950 Move LR save and frame setup/teardown and LR restore to
24951 immediately around memset call. Provide cfi.
24952
24953 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24954
24955 * sysdeps/i386/fpu/e_powf.S: Removed.
24956 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24957 * sysdeps/i386/fpu/w_powf.c: Likewise.
24958 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24959 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24960 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24961 Add e_powf-sse2.
24962 (CFLAGS-e_powf-sse2.c): New.
24963 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24964 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24965
24966 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24967
24968 * sysdeps/i386/fpu/e_log2f.S: Removed.
24969 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24970 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24971 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24972 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24973 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24974 Add e_log2f-sse2.
24975 (CFLAGS-e_log2f-sse2.c): New.
24976 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24977 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24978
24979 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24982 Add e_powf-fma.
24983 (CFLAGS-e_powf-fma.c): New.
24984 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24985 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24986
24987 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24988
24989 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24990 Add e_log2f-fma.
24991 (CFLAGS-e_log2f-fma.c): New.
24992 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24993 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24994
24995 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24996
24997 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24998 Add e_logf-fma.
24999 (CFLAGS-e_logf-fma.c): New.
25000 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
25001 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
25002
25003 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25004
25005 * sysdeps/i386/fpu/e_logf.S: Removed.
25006 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
25007 * sysdeps/i386/fpu/w_logf.c: Likewise.
25008 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
25009 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
25010 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25011 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25012 Add e_logf-sse2.
25013 (CFLAGS-e_logf-sse2.c): New.
25014 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
25015 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
25016
25017 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25018
25019 * sysdeps/i386/fpu/e_exp2f.S: Removed.
25020 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
25021 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
25022 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25023 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25024 Add e_exp2f-sse2.
25025 (CFLAGS-e_exp2f-sse2.c): New.
25026 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
25027 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
25028
25029 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25030
25031 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25032 Add e_exp2f-fma.
25033 (CFLAGS-e_exp2f-fma.c): New.
25034 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25035 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25036
25037 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25038
25039 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25040 * sysdeps/i386/fpu/e_expf.S: Likewise.
25041 * sysdeps/i386/fpu/math_errf.c: Likewise.
25042 * sysdeps/i386/fpu/w_expf.c: Likewise.
25043 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25044 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25045 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25046 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25047 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25048 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25049 Remove e_expf-ia32.
25050 (CFLAGS-e_expf-sse2.c): New.
25051 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25052 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25053
25054 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25055
25056 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25057 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25058 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25059 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25060 e_expf.c.
25061 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25062 New.
25063 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25064 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25065 Renamed to ...
25066 (__redirect_expf): This.
25067 (SYMBOL_NAME): Changed to expf.
25068 (__ieee754_expf): Renamed to ...
25069 (__expf): This.
25070 (__GI___expf): This.
25071 (__ieee754_expf): Add strong_alias.
25072 (__expf_finite): Likewise.
25073 (__expf): New.
25074 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25075
25076 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25077
25078 [BZ #22332]
25079 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25080 unescaping.
25081
25082 2017-10-21 Florian Weimer <fweimer@redhat.com>
25083
25084 * posix/Makefile (tests): Add tst-glob-tilde.
25085 (tests-special): Add tst-glob-tilde-mem.out
25086 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25087 (tst-glob-tilde-mem.out): Add mtrace check.
25088 * posix/tst-glob-tilde.c: New file.
25089
25090 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25091
25092 * bits/floatn-common.h: New file.
25093 * math/Makefile (headers): Add bits/floatn-common.h.
25094 * bits/floatn.h: Include <bits/floatn-common.h>.
25095 * sysdeps/ia64/bits/floatn.h: Likewise.
25096 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25097 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25098 * sysdeps/powerpc/bits/floatn.h: Likewise.
25099 * sysdeps/x86/bits/floatn.h: Likewise.
25100
25101 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25102
25103 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25104 indicates whether compiler emits an warning for alias for
25105 functions with incompatible types.
25106
25107 [BZ #22273]
25108 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25109 the auxiliary process is terminated by a signal before calling _exit
25110 or execve.
25111
25112 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25113
25114 [BZ #21265]
25115 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25116 New.
25117 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25118 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25119 and bit_arch_XSAVEC_Usable if needed.
25120 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25121 and bit_arch_Use_dl_runtime_resolve_opt.
25122 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25123 Removed.
25124 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25125 (bit_arch_Prefer_No_AVX512): Updated.
25126 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25127 (bit_arch_XSAVEC_Usable): New.
25128 (STATE_SAVE_OFFSET): Likewise.
25129 (STATE_SAVE_MASK): Likewise.
25130 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25131 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25132 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25133 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25134 (index_arch_XSAVEC_Usable): New.
25135 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25136 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25137 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25138 is enabled.
25139 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25140 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25141 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25142 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25143 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25144 _dl_runtime_resolve_xsavec.
25145 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25146 Removed.
25147 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25148 instead of VEC_SIZE.
25149 (REGISTER_SAVE_BND0): Removed.
25150 (REGISTER_SAVE_BND1): Likewise.
25151 (REGISTER_SAVE_BND3): Likewise.
25152 (REGISTER_SAVE_RAX): Always defined to 0.
25153 (VMOV): Removed.
25154 (_dl_runtime_resolve_avx): Likewise.
25155 (_dl_runtime_resolve_avx_slow): Likewise.
25156 (_dl_runtime_resolve_avx_opt): Likewise.
25157 (_dl_runtime_resolve_avx512): Likewise.
25158 (_dl_runtime_resolve_avx512_opt): Likewise.
25159 (_dl_runtime_resolve_sse): Likewise.
25160 (_dl_runtime_resolve_sse_vex): Likewise.
25161 (USE_FXSAVE): New.
25162 (_dl_runtime_resolve_fxsave): Likewise.
25163 (USE_XSAVE): Likewise.
25164 (_dl_runtime_resolve_xsave): Likewise.
25165 (USE_XSAVEC): Likewise.
25166 (_dl_runtime_resolve_xsavec): Likewise.
25167 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25168 Removed.
25169 (_dl_runtime_resolve_avx512_opt): Likewise.
25170 (_dl_runtime_resolve_avx): Likewise.
25171 (_dl_runtime_resolve_avx_opt): Likewise.
25172 (_dl_runtime_resolve_sse): Likewise.
25173 (_dl_runtime_resolve_sse_vex): Likewise.
25174 (_dl_runtime_resolve_fxsave): New.
25175 (_dl_runtime_resolve_xsave): Likewise.
25176 (_dl_runtime_resolve_xsavec): Likewise.
25177
25178 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25179
25180 [BZ #22320]
25181 CVE-2017-15670
25182 * posix/glob.c (__glob): Fix one-byte overflow.
25183
25184 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25185
25186 * malloc/malloc.c (sysdep-cancel.h): Add include.
25187
25188 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25189
25190 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25191
25192 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25193
25194 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25195 (tests): Remove $(objpfx)ga_test depdendency.
25196 * resolv/ga_test.c: Remove file.
25197
25198 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25199
25200 [BZ #18812]
25201 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25202 * localedata/locales/kab_DZ: New file.
25203
25204 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25205
25206 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25207 _dl_relocate_static_pie instead of _dl_start to compute load
25208 address in static PIE.
25209
25210 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25211
25212 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25213
25214 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25215
25216 [BZ #13605]
25217 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25218 * localedata/locales/shn_MM: New file.
25219
25220 2017-10-20 Florian Weimer <fweimer@redhat.com>
25221
25222 [BZ #22321]
25223 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25224 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25225 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25226 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25227 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25228 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25229
25230 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25231
25232 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25233
25234 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25235
25236 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25237
25238 [BZ #22322]
25239 * sysdeps/mips/bits/long-double.h: Move to ....
25240 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25241
25242 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25243
25244 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25245
25246 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25247 H.J. Lu <hongjiu.lu@intel.com>
25248
25249 [BZ #22299]
25250 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25251 GLRO(dl_platform) to NULL.
25252 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25253 (modules-names): Add tst-platformmod-1 and
25254 x86_64/tst-platformmod-2.
25255 (CFLAGS-tst-platform-1.c): New.
25256 (CFLAGS-tst-platformmod-1.c): Likewise.
25257 (CFLAGS-tst-platformmod-2.c): Likewise.
25258 (LDFLAGS-tst-platformmod-2.so): Likewise.
25259 ($(objpfx)tst-platform-1): Likewise.
25260 ($(objpfx)tst-platform-1.out): Likewise.
25261 (tst-platform-1-ENV): Likewise.
25262 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25263 * sysdeps/x86_64/tst-platform-1.c: New file.
25264 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25265 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25266
25267 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25268
25269 [BZ #13994]
25270 * locale/iso-639.def: Add Karbi.
25271 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25272 * localedata/locales/mjw_IN: New file.
25273
25274 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25275
25276 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25277 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25278 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25279 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25280 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25281 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25282 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25283 <bits/floatn.h>.
25284 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25285 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25286 * manual/math.texi (Mathematics): Document additional architecture
25287 support for _Float128.
25288 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25289 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25290 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25291 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25292 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25293 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25294 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25295 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25296 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25297 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25298 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25299 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25300 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25301 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25302 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25303
25304 2017-10-18 Renlin Li <renlin.li@arm.com>
25305
25306 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25307 _DYNAMIC symbol to calculate load address.
25308
25309 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25310
25311 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25312 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25313 summary bits.
25314 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25315 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25316
25317 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25318
25319 [BZ #16777]
25320 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25321 and improve readability by using more ASCII.
25322 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25323 and improve readability by using more ASCII.
25324
25325 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25326
25327 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25328 not all targets support atomics on bool.
25329
25330 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25331
25332 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25333 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25334 __f128.
25335 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25336 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25337 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25338 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25339 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25340 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25341
25342 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25343
25344 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25345 defines.
25346
25347 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25348
25349 [BZ #22159]
25350 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25351 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25352 (do_check_remalloced_chunk): Fix build bug.
25353 (do_check_malloc_state): Add assert that checks arena->top.
25354 (malloc_consolidate): Remove initialization.
25355 (int_mallinfo): Remove call to malloc_consolidate.
25356 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25357
25358 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25359
25360 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25361 (have_fastchunks): Remove.
25362 (clear_fastchunks): Remove.
25363 (set_fastchunks): Remove.
25364 (malloc_state): Add have_fastchunks.
25365 (malloc_init_state): Use have_fastchunks.
25366 (do_check_malloc_state): Remove incorrect invariant checks.
25367 (_int_malloc): Use have_fastchunks.
25368 (_int_free): Likewise.
25369 (malloc_consolidate): Likewise.
25370
25371 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25372
25373 * malloc/malloc.c (tcache_put): Inline.
25374 (tcache_get): Inline.
25375
25376 2017-10-17 Jordi Mallach <jordi@gnu.org>
25377
25378 Aurelien Jarno <aurelien@aurel32.net>
25379 [BZ #2522]
25380 * localedata/locales/ca_ES@valencia: New file.
25381 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25382
25383 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25384
25385 [BZ #22296]
25386 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25387 < 6.x
25388
25389 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25390
25391 * scripts/build-many-glibcs.py (Context.add_all_configs):
25392 Add arm-linux-gnueabihf multiarch extra_glibcs.
25393
25394 * sysdeps/generic/ifunc-init.h: New file.
25395 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25396
25397 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25398
25399 [BZ #22019]
25400 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25401 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25402 * stdlib/tst-strfmon_l.c: adapt test case.
25403
25404 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25405
25406 * sysdeps/generic/float128-abi.h: New file.
25407 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25408 non-__prefixed symbols to ....
25409 * math/Versions: ... here. Include <float128-abi.h>.
25410 * stdlib/Versions ... and here. Include <float128-abi.h>
25411
25412 2017-10-16 Florian Weimer <fweimer@redhat.com>
25413
25414 * version.h (VERSION): Switch to ".9000" as the development
25415 version suffix.
25416
25417 2017-10-16 Florian Weimer <fweimer@redhat.com>
25418
25419 [BZ #22050]
25420 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25421 compat_symbol_reference to access non-default version.
25422
25423 2017-10-16 Florian Weimer <fweimer@redhat.com>
25424
25425 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25426
25427 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25428
25429 * include/shlib-compat.h (compat_symbol_reference): Update
25430 comment.
25431
25432 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25433
25434 * math/Makefile (test-types): Add
25435 $(type-float128-$(float128-alias-fcts)).
25436 * math/test-float128.h (TYPE_STR): Define conditional on
25437 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25438 (ULP_IDX): Likewise.
25439 (ULP_I_IDX): Likewise.
25440
25441 * stdlib/strtold.c: Include <bits/floatn.h>
25442 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25443 and later undefine as macro. Define as weak alias if
25444 [!USE_WIDE_CHAR].
25445 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25446 and later undefine as macro. Define as weak alias if
25447 [USE_WIDE_CHAR].
25448 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25449 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25450 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25451 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25452 Define and later undefine as macro. Define as weak alias if
25453 [USE_WIDE_CHAR].
25454 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25455 <bits/floatn.h>.
25456 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25457 Define and later undefine as macro. Define as weak alias if
25458 [!USE_WIDE_CHAR].
25459 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25460 Define and later undefine as macro. Define as weak alias if
25461 [USE_WIDE_CHAR].
25462
25463 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25464
25465 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25466 record_verbose messages.
25467
25468 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25469
25470 [BZ #22052]
25471 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25472 to silence -O3 -Wall warning with GCC 7.
25473
25474 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25475
25476 * Makeconfig (+link-static-before-libc): Use the first of
25477 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25478 * gmon/Makefile (tests): Add tst-gmon-static.
25479 (tests-static): Likewise.
25480 (CFLAGS-tst-gmon-static.c): New.
25481 (CRT-tst-gmon-static): Likewise.
25482 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25483 (tst-gmon-static-ENV): Likewise.
25484 (tests-special): Likewise.
25485 ($(objpfx)tst-gmon-static.out): Likewise.
25486 (clean-tst-gmon-static-data): Likewise.
25487 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25488 * gmon/tst-gmon-static-gprof.sh: New file.
25489 * gmon/tst-gmon-static.c: Likewise.
25490
25491 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25492
25493 [BZ #22295]
25494 * locale/programs/linereader.c (get_string): Don't warn on
25495 non-symbolic character.
25496
25497 [BZ #22294]
25498 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25499 int_curr_symbol.
25500
25501 [BZ #22292]
25502 * locale/programs/record-status.h: New file
25503 * locale/programs/locale.c: Add comment.
25504 * locale/programs/charmap-dir.c: Don't include error.h.
25505 (charmap_opendir): Use record_error.
25506 * locale/programs/charmap.c: Don't include error.h.
25507 (charmap_read): Use record_error, and record_warning.
25508 (parse_charmap): Likewise.
25509 * locale/programs/ld-address.c: Don't include error.h.
25510 (address_finish): Use record_error, and record_warning.
25511 * locale/programs/ld-collate.c: Don't include error.h.
25512 (collate_finish): Use record_error, and record_error_at_line.
25513 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25514 (ctype_class_new): Likewise.
25515 (ctype_map_new): Likewise.
25516 (set_one_default): Likewise.
25517 (set_class_defaults): Likewise.
25518 (translit_flatten): Likewise.
25519 (allocate_arrays): Use record_error, and record_verbose.
25520 * locale/programs/ld-identification.c: Don't include error.h.
25521 (indentation_finish): Use record_error and record_warning.
25522 * locale/programs/ld-measurement.c: Don't include error.h.
25523 (measurement_finish): Use record_error.
25524 * locale/programs/ld-messages.c
25525 (message_finish): Likewise.
25526 * locale/programs/ld-monetary.c
25527 (monetary_finish): Likewise.
25528 * locale/programs/ld-name.c (name_finish): Use record_error
25529 and record_warning.
25530 * locale/programs/ld-numeric.c
25531 (numeric_finish): Use record_error.
25532 * locale/programs/ld-paper.c: Don't include error.h.
25533 (paper_finish): Use record_error.
25534 * locale/programs/ld-telephone.c: Don't include error.h.
25535 (telephone_finish): Use record_error.
25536 * locale/programs/ld-time.c (time_finish): Likewise.
25537 * locale/programs/linereader.h (lr_error): Make inline func.
25538 * locale/programs/localedef.c: Define recorded_warning_count,
25539 and recorded_error_count.
25540 (main): Use record_error. Use recorded_error_count and
25541 recorded_warning_count to issue correct error returns.
25542 (add_to_readlist): Use record_error.
25543 (find_locale): Likewise.
25544 (load_locale): Likewise.
25545 * locale/programs/localedef.h: Remove be_quiet
25546 and WITH_CUR_LOCALE.
25547 * locale/programs/locarchive.c (compare_from_file): Use
25548 record_error.
25549 * locale/programs/locfile.c (write_locale_data): Use
25550 record_error.
25551 * locale/programs/repertoire.c: Dont include error.h.
25552 (repertoire_complain): Use record_error.
25553 * localedata/tst-fmon.sh: Expect failures from localedef.
25554 * localedata/tst-locale.sh: Likewise.
25555 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25556
25557 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25558 (REPORTS): Likewise.
25559 (check): Likewise.
25560 (i18n): Rename to...
25561 (i18n_ctype): ...this.
25562 (i18n-report): Rename to...
25563 (i18n_ctype-report): ...this.
25564 * localedata/locales/i18n_ctype: Regenerate.
25565 * localedata/locales/i18n: copy i18n_ctype.
25566
25567 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25568
25569 * stdlib/strfroml.c: Include <bits/floatn.h>.
25570 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25571 Define before include of <stdlib.h> and undefine afterwards, then
25572 define as weak alias.
25573
25574 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25575 Undefine and restore default definition. Use
25576 libm_alias_ldouble_other.
25577
25578 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25579
25580 [BZ #22153]
25581 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25582 in coredumps.
25583
25584 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25585
25586 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25587 Assign sym_map to be map for local symbols, as TLS relocations
25588 use sym_map to determine whether the symbol is defined and to
25589 extract the TLS information.
25590 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25591 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25592
25593 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25594
25595 [BZ #22189]
25596 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25597 (math_force_eval): Add powerpc version.
25598
25599 [BZ #22142]
25600 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25601 -DBL_MAX.
25602 (do_test): Likewise.
25603 * stdio-common/tst-printf.sh: Likewise.
25604 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25605 ifdef clause in order to set the carry bit right. Replace r0 by
25606 0 without changing the behavior.
25607
25608 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25609
25610 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25611 <libm-alias-ldouble.h>.
25612 (fabsl): Define using libm_alias_ldouble.
25613 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25614 <libm-alias-ldouble.h>.
25615 (fabsl): Define using libm_alias_ldouble.
25616
25617 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25618 Remove conditional code.
25619
25620 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25621 Rename to __clog10_internal_l.
25622 (__clog10_internal_l): Define aliases using
25623 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25624 with __clog10.
25625
25626 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25627
25628 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25629 * benchtests/sincosf-inputs: New file.
25630 * benchtests/cosf-inputs: New file.
25631 * benchtests/sinf-inputs: New file.
25632
25633 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25634
25635 * posix/tst-spawn.c (do_test): Wait for both children.
25636
25637 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25638
25639 [BZ #22284]
25640 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25641 tests-pie): Add tst-gmon-pie.
25642 (CFLAGS-tst-gmon-pie.c): New.
25643 (CRT-tst-gmon-pie): Likewise.
25644 (tst-gmon-pie-ENV): Likewise.
25645 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25646 ($(objpfx)tst-gmon-pie.out): Likewise.
25647 (clean-tst-gmon-pie-data): Likewise.
25648 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25649 * gmon/gmon.c [PIC]: Include <link.h>.
25650 [PIC] (callback): New function.
25651 (write_hist): Add an argument for load address. Subtract load
25652 address from PCs.
25653 (write_call_graph): Likewise.
25654 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25655 it to write_hist and write_call_graph.
25656 * gmon/tst-gmon-pie.c: New file.
25657
25658 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25659
25660 * math/Makefile (test-types-basic): New variable.
25661 (test-types): Likewise.
25662 (libm-test-support): Use $(test-types) instead of $(types).
25663 (libm-tests-base-normal): Likewise.
25664 (libm-tests-base-finite): Likewise.
25665 (libm-tests-base-inline): Likewise.
25666 (generated): Likewise.
25667 ($(objpfx)libm-test-support-$(t).c): Likewise.
25668 (libm-tests-for-type iterator): Likewise.
25669 (libm-test-support iterator): Likewise.
25670 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25671 (ulp_idx): Use ULP_IDX.
25672 * math/test-ldouble.h: Include <float.h>.
25673 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25674 (ULP_IDX): New macro.
25675 (ULP_I_IDX): Likewise.
25676 * math/test-double.h (ULP_IDX): Likewise.
25677 (ULP_I_IDX): Likewise.
25678 * math/test-float.h (ULP_IDX): Likewise.
25679 (ULP_I_IDX): Likewise.
25680 * math/test-float128.h (ULP_IDX): Likewise.
25681 (ULP_I_IDX): Likewise.
25682
25683 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25684
25685 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25686 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25687 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25688 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25689 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25690 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25691 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25692 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25693 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25694 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25695 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25696 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25697 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25698 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25699 (SINGLE_THREAD_BY_GLOBAL): Define.
25700 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25701 Likewise.
25702 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25703 Likewise.
25704 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25705 Likewise.
25706 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25707 Likewise.
25708 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25709 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25710 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25711 Likewise.
25712
25713 2017-10-11 Andreas Schwab <schwab@suse.de>
25714
25715 * nis/Makefile (aux): Remove.
25716 * nscd/Makefile (aux): Add nscd_hash.
25717 (nscd-modules): Likewise.
25718 ($(objpfx)nscd): Don't depend on libnsl.
25719 * nscd/nscd_hash.c: New file.
25720 * nscd/nscd_hash.h: Likewise.
25721 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25722 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25723 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25724 instead of <nis/rpcsvc/nis.h>.
25725 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25726
25727 2017-10-11 Florian Weimer <fweimer@redhat.com>
25728
25729 [BZ #22078]
25730 Avoid large NSS buffers with many addresses, aliases.
25731 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25732 using dynarrays and struct alloc_buffer.
25733 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25734 (tst-nss-files-hosts-multi): Link with -ldl.
25735 * nss/tst-nss-files-hosts-multi.c: New file.
25736
25737 2017-10-11 Florian Weimer <fweimer@redhat.com>
25738
25739 [BZ #18023]
25740 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25741 scratch_buffer. Eliminate gotos.
25742
25743 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25744
25745 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25746 libm_alias_ldouble_other.
25747 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25748 undefine and redefine.
25749 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25750 (exp10l): Do not define here.
25751 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25752 (weak_alias): Undefine and redefine.
25753 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25754 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25755 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25756 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25757
25758 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25759 [!__fma] (fma): Define using libm_alias_double.
25760 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25761 [!__fmaf] (fmaf): Define using libm_alias_float.
25762 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25763 (fmal): Define using libm_alias_ldouble.
25764
25765 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25766
25767 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25768 New macro.
25769 (libm_alias_double_other): Likewise.
25770 (libm_alias_double_r): Use libm_alias_double_other_r.
25771 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25772 New macro.
25773 (libm_alias_float_other): Likewise.
25774 (libm_alias_float_r): Use libm_alias_float_other_r.
25775 * sysdeps/generic/libm-alias-float128.h
25776 (libm_alias_float128_other_r): New macro.
25777 (libm_alias_float128_other): Likewise.
25778 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25779 * sysdeps/generic/libm-alias-ldouble.h
25780 (libm_alias_ldouble_other_r): New macro.
25781 (libm_alias_ldouble_other): Likewise.
25782 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25783 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25784 (libm_alias_double_other_r): New macro.
25785 (libm_alias_double_other): Likewise.
25786 (libm_alias_double_r): Use libm_alias_double_other_r.
25787 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25788 (libm_alias_ldouble_other_r): New macro.
25789 (libm_alias_ldouble_other): Likewise.
25790 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25791 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25792 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25793 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25794 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25795 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25796 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25797 * math/w_exp2f.c: Use libm_alias_float_other.
25798 * math/w_expf.c: Likewise.
25799 * math/w_log2f.c: Likewise.
25800 * math/w_logf.c: Likewise.
25801 * math/w_powf.c: Likewise.
25802 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25803 [!__exp2f]: Use libm_alias_float_other.
25804 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25805 [!__expf]: Use libm_alias_float_other.
25806 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25807 [!__log2f]: Use libm_alias_float_other.
25808 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25809 [!__logf]: Use libm_alias_float_other.
25810 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25811 [!__powf]: Use libm_alias_float_other.
25812
25813 2017-10-10 Florian Weimer <fweimer@redhat.com>
25814
25815 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25816 function.
25817 (_nss_files_gethostbyname3_r): Call it.
25818
25819 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25820
25821 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25822 error. Remove default definition of declare_mgen_alias.
25823 [!declare_mgen_alias_r]: Likewise.
25824 * sysdeps/generic/math-type-macros-double.h
25825 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25826 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25827 (declare_mgen_alias_r): Likewise.
25828 * sysdeps/generic/math-type-macros-float128.h
25829 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25830 * sysdeps/generic/math-type-macros-ldouble.h
25831 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25832 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25833 macro.
25834 (declare_mgen_alias_r_s): Likewise.
25835 (declare_mgen_alias_r): Likewise.
25836 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25837 (lgamma_r): Define using libm_alias_double_r.
25838 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25839 (lgammaf_r): Define using libm_alias_float_r.
25840 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25841 (lgammal_r): Define using libm_alias_ldouble_r.
25842 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25843 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25844
25845 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25846
25847 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25848 extern declaration.
25849
25850 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25851
25852 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25853
25854 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25855
25856 [BZ #21326]
25857 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25858 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25859 * math/Makefile (test-math-cxx11): New test.
25860 * math/test-math-cxx11.cc: New file.
25861
25862 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25863
25864 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25865
25866 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25867 call to allocate the slave pty file descriptor.
25868
25869 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25870
25871 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25872 [!__fma] (fma): Define using libm_alias_double.
25873 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25874 [!__fma] (fma): Define using libm_alias_double.
25875
25876 * sysdeps/ieee754/float128/float128_private.h: Include
25877 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25878 (libm_alias_ldouble_r): Undefine and redefine.
25879 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25880 <libm-alias-ldouble.h>.
25881 (asinhl): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (atanl): Define using libm_alias_ldouble.
25885 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25886 <libm-alias-ldouble.h>.
25887 (cbrtl): Define using libm_alias_ldouble.
25888 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25889 <libm-alias-ldouble.h>.
25890 (ceill): Define using libm_alias_ldouble.
25891 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25892 <libm-alias-ldouble.h>.
25893 (copysignl): Define using libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25895 <libm-alias-ldouble.h>.
25896 (cosl): Define using libm_alias_ldouble.
25897 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25898 <libm-alias-ldouble.h>.
25899 (erfl): Define using libm_alias_ldouble.
25900 (erfcl): Likewise.
25901 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25902 <libm-alias-ldouble.h>.
25903 (expm1l): Define using libm_alias_ldouble.
25904 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25905 <libm-alias-ldouble.h>.
25906 (fabsl): Define using libm_alias_ldouble.
25907 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25908 <libm-alias-ldouble.h>.
25909 (floorl): Define using libm_alias_ldouble.
25910 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25911 <libm-alias-ldouble.h>.
25912 (fmal): Define using libm_alias_ldouble.
25913 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25914 <libm-alias-ldouble.h>.
25915 (frexpl): Define using libm_alias_ldouble.
25916 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25917 libm_alias_ldouble.
25918 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25919 <libm-alias-ldouble.h>.
25920 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25921 libm_alias_ldouble.
25922 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25923 <libm-alias-ldouble.h>.
25924 (getpayloadl): Define using libm_alias_ldouble.
25925 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25926 <libm-alias-ldouble.h>.
25927 (llrintl): Define using libm_alias_ldouble.
25928 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25929 <libm-alias-ldouble.h>.
25930 (llroundl): Define using libm_alias_ldouble.
25931 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25932 <libm-alias-ldouble.h>.
25933 (logbl): Define using libm_alias_ldouble.
25934 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25935 <libm-alias-ldouble.h>.
25936 (lrintl): Define using libm_alias_ldouble.
25937 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25938 <libm-alias-ldouble.h>.
25939 (lroundl): Define using libm_alias_ldouble.
25940 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25941 <libm-alias-ldouble.h>.
25942 (modfl): Define using libm_alias_ldouble.
25943 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25944 <libm-alias-ldouble.h>.
25945 (nearbyintl): Define using libm_alias_ldouble.
25946 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25947 <libm-alias-ldouble.h>.
25948 (nextafterl): Define using libm_alias_ldouble.
25949 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25950 <libm-alias-ldouble.h>.
25951 (nextupl): Define using libm_alias_ldouble.
25952 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25953 <libm-alias-ldouble.h>.
25954 (remquol): Define using libm_alias_ldouble.
25955 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25956 <libm-alias-ldouble.h>.
25957 (rintl): Define using libm_alias_ldouble.
25958 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25959 <libm-alias-ldouble.h>.
25960 (roundevenl): Define using libm_alias_ldouble.
25961 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25962 <libm-alias-ldouble.h>.
25963 (roundl): Define using libm_alias_ldouble.
25964 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25965 using libm_alias_ldouble.
25966 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25967 <libm-alias-ldouble.h>.
25968 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25969 Define using libm_alias_ldouble.
25970 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25971 <libm-alias-ldouble.h>.
25972 (sincosl): Define using libm_alias_ldouble.
25973 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25974 <libm-alias-ldouble.h>.
25975 (sinl): Define using libm_alias_ldouble.
25976 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25977 <libm-alias-ldouble.h>.
25978 (tanhl): Define using libm_alias_ldouble.
25979 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25980 <libm-alias-ldouble.h>.
25981 (tanl): Define using libm_alias_ldouble.
25982 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25983 <libm-alias-ldouble.h>.
25984 (totalorderl): Define using libm_alias_ldouble.
25985 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25986 <libm-alias-ldouble.h>.
25987 (totalordermagl): Define using libm_alias_ldouble.
25988 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25989 <libm-alias-ldouble.h>.
25990 (truncl): Define using libm_alias_ldouble.
25991 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25992 libm_alias_ldouble.
25993 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25994 libm_alias_ldouble.
25995 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25996 <libm-alias-ldouble.h>.
25997 (weak_alias): Do not undefine and redefine.
25998 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25999 (copysignl): Define with long_double_symbol only if [IS_IN
26000 (libc)].
26001 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
26002 <libm-alias-ldouble.h>.
26003 (weak_alias): Do not undefine and redefine.
26004 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26005 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
26006 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
26007 <libm-alias-ldouble.h>.
26008 (weak_alias): Do not undefine and redefine.
26009 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26010 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
26011 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
26012 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
26013 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
26014 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
26015 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
26016 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
26017 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
26018 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
26019 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
26020 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
26021 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
26022 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
26023 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
26024 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
26025 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
26026 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
26027 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
26028 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
26029 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
26030 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26031 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26032 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26033 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26034 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26035
26036 2017-10-06 Carlos O'Donell <carlos@redhat.com>
26037
26038 [BZ #22111]
26039 * malloc/malloc.c (tcache_shutting_down): Use bool type.
26040 (tcache_thread_freeres): Set tcache_shutting_down before
26041 freeing the tcache.
26042 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26043 * malloc/tst-malloc-tcache-leak.c: New file.
26044
26045 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26046
26047 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26048 back to powerpc32 file.
26049 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26050 (memrchr): Add __memrchr_power8 to ifunc list.
26051 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26052 extra bytes for unaligned inputs.
26053
26054 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26055
26056 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26057 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26058 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26059 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26060 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26061
26062 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26063
26064 * sysdeps/arm/libm-test-ulps: Update.
26065
26066 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26067 <libm-alias-ldouble.h>.
26068 (asinhl): Define using libm_alias_ldouble.
26069 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26070 <libm-alias-ldouble.h>.
26071 (cbrtl): Define using libm_alias_ldouble.
26072 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26073 <libm-alias-ldouble.h>.
26074 (copysignl): Define using libm_alias_ldouble.
26075 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26076 <libm-alias-ldouble.h>.
26077 (cosl): Define using libm_alias_ldouble.
26078 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26079 <libm-alias-ldouble.h>.
26080 (erfl): Define using libm_alias_ldouble.
26081 (erfcl): Likewise.
26082 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26083 <libm-alias-ldouble.h>.
26084 (fmal): Define using libm_alias_ldouble.
26085 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26086 <libm-alias-ldouble.h>.
26087 (frexpl): Define using libm_alias_ldouble.
26088 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26089 libm_alias_ldouble.
26090 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26091 <libm-alias-ldouble.h>.
26092 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26093 libm_alias_ldouble.
26094 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26095 <libm-alias-ldouble.h>.
26096 (getpayloadl): Define using libm_alias_ldouble.
26097 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26098 <libm-alias-ldouble.h>.
26099 (llrintl): Define using libm_alias_ldouble.
26100 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26101 <libm-alias-ldouble.h>.
26102 (llroundl): Define using libm_alias_ldouble.
26103 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26104 <libm-alias-ldouble.h>.
26105 (lrintl): Define using libm_alias_ldouble.
26106 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26107 <libm-alias-ldouble.h>.
26108 (lroundl): Define using libm_alias_ldouble.
26109 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26110 <libm-alias-ldouble.h>.
26111 (modfl): Define using libm_alias_ldouble.
26112 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26113 <libm-alias-ldouble.h>.
26114 (nextupl): Define using libm_alias_ldouble.
26115 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26116 <libm-alias-ldouble.h>.
26117 (remquol): Define using libm_alias_ldouble.
26118 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26119 <libm-alias-ldouble.h>.
26120 (roundevenl): Define using libm_alias_ldouble.
26121 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26122 <libm-alias-ldouble.h>.
26123 (roundl): Define using libm_alias_ldouble.
26124 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26125 using libm_alias_ldouble.
26126 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26127 <libm-alias-ldouble.h>.
26128 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26129 <libm-alias-ldouble.h>.
26130 (setpayloadsigl): Define using libm_alias_ldouble.
26131 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26132 <libm-alias-ldouble.h>.
26133 (sincosl): Define using libm_alias_ldouble.
26134 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26135 <libm-alias-ldouble.h>.
26136 (sinl): Define using libm_alias_ldouble.
26137 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26138 <libm-alias-ldouble.h>.
26139 (tanhl): Define using libm_alias_ldouble.
26140 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26141 <libm-alias-ldouble.h>.
26142 (tanl): Define using libm_alias_ldouble.
26143 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26144 <libm-alias-ldouble.h>.
26145 (totalorderl): Define using libm_alias_ldouble.
26146 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26147 <libm-alias-ldouble.h>.
26148 (totalordermagl): Define using libm_alias_ldouble.
26149 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26150 libm_alias_ldouble.
26151 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26152 libm_alias_ldouble.
26153
26154 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26155
26156 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26157 memmove_falkor.
26158 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26159 (__libc_ifunc_impl_list): Likewise.
26160 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26161 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26162
26163 * benchtests/bench-memmove-walk.c: New file.
26164 * benchtests/Makefile (string-benchset): Add it.
26165
26166 * benchtests/bench-memset-walk.c: New file.
26167 * benchtests/Makefile (string-benchset): Add it.
26168
26169 * benchtests/bench-memcpy-walk.c: New file.
26170 * benchtests/Makefile (string-benchset): Add it.
26171
26172 2017-10-05 Florian Weimer <fweimer@redhat.com>
26173
26174 nscd: Eliminate compilation time dependency in the build output.
26175 * nscd/nscd_stat.c (STATDATA_VERSION)
26176 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26177 (STATDATA_VERSION_FULL): New macro definitions.
26178 (compilation): Remove.
26179 (struct statdata): Adjust version member.
26180 (send_stats): Set version from STATDATA_VERSION_FULL.
26181 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26182
26183 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26184
26185 * configure.ac (--enable-add-ons): Remove option.
26186 (machine): Do not mention add-ons in comment.
26187 (LIBC_PRECONFIGURE): Likewise.
26188 (add_ons): Remove variable and sanity checks and logic to locate
26189 add-ons.
26190 (add_ons_automatic): Remove variable.
26191 (configured_add_ons): Likewise.
26192 (add_ons_sfx): Likewise.
26193 (add_ons_pfx): Likewise.
26194 (add_on_subdirs): Likewise.
26195 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26196 consideration of add-ons in Implies handling.
26197 (sysdeps_add_ons): Likewise.
26198 * configure: Regenerated.
26199 * libidn/configure.ac: Remove.
26200 * libidn/configure: Likewise.
26201 * sysdeps/unix/inet/configure.ac: New file.
26202 * sysdeps/unix/inet/configure: New generated file.
26203 * sysdeps/unix/inet/Subdirs: Add libidn.
26204 * Makeconfig (sysdeps-srcdirs): Remove variable.
26205 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26206 ($(common-objpfx)config.status): Do not depend on add-on files.
26207 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26208 comment.
26209 (all-subdirs): Do not include $(add-on-subdirs).
26210 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26211 * config.make.in (add-ons): Remove variable.
26212 (add-on-subdirs): Likewise.
26213 (sysdeps-add-ons): Likewise.
26214 * manual/Makefile (add-chapters): Remove.
26215 ($(objpfx)texis): Do not depend on $(add-chapters).
26216 (nonexamples): Do not handle $(add-chapters).
26217 (examples): Do not handle $(add-ons).
26218 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26219 libc-texinfo.sh.
26220 * manual/install.texi (Installation): Do not mention add-ons.
26221 (--enable-add-ons): Do not document configure option.
26222 * INSTALL: Regenerated.
26223 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26224 * manual/maint.texi (Hierarchy Conventions): Do not mention
26225 add-ons.
26226 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26227 --enable-add-ons.
26228 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26229 add-ons.
26230 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26231 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26232
26233 2017-10-05 Andreas Schwab <schwab@suse.de>
26234
26235 [BZ #15142]
26236 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26237 (_IO_flush_all_lockp): Always lock list_all_lock.
26238 (_IO_flush_all_linebuffered): Likewise.
26239 (_IO_unbuffer_all): Likewise.
26240
26241 2017-10-05 Florian Weimer <fweimer@redhat.com>
26242
26243 [BZ #15436]
26244 Do not flush stdio streams on abort.
26245 * stdlib/abort.c (fflush): Remove macro definition.
26246 (abort): Remove stages related to stdio flushing.
26247
26248 2017-10-05 Florian Weimer <fweimer@redhat.com>
26249
26250 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26251
26252 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26253
26254 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26255
26256 2017-10-05 Florian Weimer <fweimer@redhat.com>
26257
26258 * support/support_format_hostent.c (support_format_hostent): Add
26259 more error information for NETDB_INTERNAL.
26260
26261 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26262
26263 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26264 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26265 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26266 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26267 AC_DEFINE if multi-arch is enabled.
26268 * sysdeps/i386/configure: Regenerated.
26269
26270 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26271
26272 * Makeconfig (+link-static-before-libc): Use
26273 $(DEFAULT-LDFLAGS-$(@F)).
26274 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26275 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26276 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26277
26278 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 * elf/Makefile (tests): Add tst-main1.
26281 (modules-names): Add tst-main1mod.
26282 ($(objpfx)tst-main1): New.
26283 (CRT-tst-main1): Likewise.
26284 (LDFLAGS-tst-main1): Likewise.
26285 (LDLIBS-tst-main1): Likewise.
26286 (tst-main1mod.so-no-z-defs): Likewise.
26287 * elf/tst-main1.c: New file.
26288 * elf/tst-main1mod.c: Likewise.
26289
26290 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26291
26292 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26293
26294 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26295
26296 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26297 (fma): Define using libm_alias_double.
26298 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26299 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26300 <math_ldbl_opt.h>.
26301 (fmal): Do not define as compat symbol here.
26302 * sysdeps/alpha/fpu/s_fma.c: New file.
26303
26304 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26305
26306 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26307
26308 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26309
26310 [BZ #22229]
26311 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26312 <math_ldbl_opt.h>
26313 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26314 and libc.
26315 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26316 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26317 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26318 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26320 Include <math_ldbl_opt.h>
26321 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26322 and libc.
26323 (compat_symbol): Undefine and redefine.
26324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26325 <math_ldbl_opt.h>
26326 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26327 (compat_symbol): Undefine and redefine.
26328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26329 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26330 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26331 GLIBC_2_1 for libm.
26332 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26333 GLIBC_2.0 copysignl symbol.
26334 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26335 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26336
26337 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26338
26339 2017-10-04 Florian Weimer <fweimer@redhat.com>
26340
26341 * scripts/check-local-headers.sh: Ignore nspr4 header file
26342 directory in addition to nspr.
26343
26344 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26345
26346 [BZ #17956]
26347 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26348 * configure: Regenerate.
26349 * crypt/Makefile (nss-cpp-flags): New variable.
26350 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26351 (CPPFLAGS-md5-crypt.c): Use it.
26352 * scripts/check-local-headers.sh: Ignore nspr header file
26353 directory.
26354
26355 2017-10-04 Andreas Schwab <schwab@suse.de>
26356
26357 * nis/Makefile (services): Remove compat.
26358 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26359 ($(objpfx)libnss_compat.so): Remove rule.
26360 * nis/Versions (libnss_compat): Remove.
26361 * nss/Makefile (services): Add compat.
26362 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26363 * nss/Versions (libnss_compat): Define.
26364 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26365 Don't include <rpc/types.h>. Replace bool_t by bool.
26366 * nss/nss_compat/compat-initgroups.c: Likewise.
26367 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26368 instead of <rpcsrv/ypclnt.h>.
26369 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26370 yp_get_default_domain.
26371 * nss/nss_compat/compat-pwd.c: Likewise.
26372 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26373 yp_get_default_domain.
26374 * nss/nss_compat/nisdomain.c: New file.
26375 * nss/nss_compat/nisdomain.h: Likewise.
26376
26377 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26378
26379 [BZ #22244]
26380 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26381 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26382
26383 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26384
26385 [BZ #22243]
26386 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26387 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26388
26389 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26390
26391 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26392 "movl main@GOTOFF(%ebx), %eax".
26393
26394 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26395
26396 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26397 allow undefined _DYNAMIC in PIE libc.a.
26398 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26399 Likewse.
26400
26401 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26402
26403 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26404 check _DYNAMIC.
26405
26406 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26407
26408 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26409 check _DYNAMIC.
26410
26411 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26412
26413 * math/test-math-iscanonical.cc (error): Replace bool with int.
26414
26415 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26416
26417 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26418 (modf): Define using libm_alias_double, only if [!__modf].
26419 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26420 <libm-alias-double.h>.
26421 (modf): Define using libm_alias_double, only if [!__modf].
26422 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26423 compat symbol here.
26424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26425 (weak_alias): Do not undefine and redefine.
26426 (strong_alias): Likewise.
26427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26428 (weak_alias): Likewise.
26429 (strong_alias): Likewise.
26430
26431 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26432 (logb): Define using libm_alias_double, only if [!__logb].
26433 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26434 <libm-alias-double.h>.
26435 (logb): Define using libm_alias_double, only if [!__logb].
26436 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26438 (weak_alias): Do not undefine and redefine.
26439 (strong_alias): Likewise.
26440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26441 (weak_alias): Likewise.
26442 (strong_alias): Likewise.
26443
26444 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26445
26446 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26447 Check SHARED instead PIC.
26448
26449 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26450
26451 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26452 [!__fmaf] (fmaf): Define using libm_alias_float.
26453
26454 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26455 (frexp): Define using libm_alias_double.
26456 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26457 <libm-alias-double.h>.
26458 (frexp): Define using libm_alias_double.
26459 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26460 compat symbol here.
26461
26462 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26463
26464 [BZ #22235]
26465 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26466 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26467 (CFLAGS-test-math-iscanonical.cc): New variable.
26468 * math/test-math-iscanonical.cc: New file.
26469 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26470 Provide a C++ implementation based on function overloading,
26471 rather than using __MATH_TG, which uses C-only builtins.
26472 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26473 Likewise.
26474 * sysdeps/powerpc/powerpc64le/Makefile
26475 (CFLAGS-test-math-iscanonical.cc): New variable.
26476
26477 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26478
26479 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26480 (ceil): Define using libm_alias_double.
26481 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26482 (floor): Define using libm_alias_double.
26483 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26484 <libm-alias-double.h>.
26485 (llround): Define using libm_alias_double.
26486 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26487 <libm-alias-double.h>.
26488 (lround): Define using libm_alias_double.
26489 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26490 <libm-alias-double.h>.
26491 (nearbyint): Define using libm_alias_double.
26492 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26493 <libm-alias-double.h>.
26494 (remquo): Define using libm_alias_double.
26495 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26496 (rint): Define using libm_alias_double.
26497 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26498 (round): Define using libm_alias_double.
26499 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26500 (trunc): Define using libm_alias_double.
26501 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26502 <libm-alias-double.h>.
26503 (ceil): Define using libm_alias_double.
26504 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26505 <libm-alias-double.h>.
26506 (floor): Define using libm_alias_double.
26507 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26508 <libm-alias-double.h>.
26509 (llround): Define using libm_alias_double.
26510 [_LP64] (lround): Likewise.
26511 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26512 <libm-alias-double.h>.
26513 [!_LP64] (lround): Define using libm_alias_double.
26514 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26515 <libm-alias-double.h>.
26516 (nearbyint): Define using libm_alias_double.
26517 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26518 <libm-alias-double.h>.
26519 (remquo): Define using libm_alias_double.
26520 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26521 <libm-alias-double.h>.
26522 (rint): Define using libm_alias_double.
26523 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26524 <libm-alias-double.h>.
26525 (round): Define using libm_alias_double.
26526 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26527 <libm-alias-double.h>.
26528 (trunc): Define using libm_alias_double.
26529 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26530 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26531 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26532 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26533 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26534 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26535 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26536 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26537 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26538
26539 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26540
26541 * math/w_remainder.c: New file.
26542 * math/w_remainderf.c: New file.
26543 * math/w_remainderl.c: New file.
26544
26545 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26546
26547 * elf/rtld.c (BOOTSTRAP_MAP): New.
26548 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26549 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26550 Likewise.
26551 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26552 Likewise.
26553 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26554 Likewise.
26555
26556 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26557
26558 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26559 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26560 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26561 rtld_hidden_data_ver): Define to empty.
26562 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26563 __assert_perror_fail): Likewise.
26564 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26565 (__rewinddir): Likewise.
26566 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26567 (__profile_frequency): Likewise.
26568 * include/setjmp.h (__sigsetjmp): Likewise.
26569 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26570 __libc_sigaction): Likewise.
26571 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26572 not set hidden attribute.
26573 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26574 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26575 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26576 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26577 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26578 __fxstatat64): Likewise.
26579 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26580 (__uname): Likewise.
26581 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26582 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26583 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26584 (NO_RTLD_HIDDEN): Set.
26585 * sysdeps/mach/hurd/configure: Refresh.
26586 * config.h.in: Refresh.
26587
26588 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26589
26590 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26591 (atan): Define using libm_alias_double.
26592 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26593 (tan): Define using libm_alias_double.
26594 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26595 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26596
26597 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26598 define as weak alias of __atan. Do not define any aliases if
26599 [__atan].
26600 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26601 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26602 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26603 as weak alias of __tan. Do not define any aliases if [__tan].
26604 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26605 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26606 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26607 __atan.
26608 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26609 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26610 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26611 and define as weak alias of __atan.
26612 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26613 __atan.
26614 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26615 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26616 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26617 define as weak alias of __tan.
26618
26619 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26620
26621 * math/w_lgamma.c: New file.
26622 * math/w_lgammaf.c: New file.
26623 * math/w_lgammal.c: New file.
26624
26625 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26626
26627 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26628 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26629 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26630 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26631 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26632 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26633 * sysdeps/i386/fpu/w_log2f.c: New file.
26634 * sysdeps/i386/fpu/w_logf.c: New file.
26635 * sysdeps/i386/fpu/w_powf.c: New file.
26636 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26637 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26638 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26639
26640 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26641 H.J. Lu <hongjiu.lu@intel.com>
26642
26643 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26644 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26645 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26646 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26647 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26648 the new expf code.
26649 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26650 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26651 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26652 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26653 * sysdeps/i386/fpu/w_exp2f.c: New file.
26654 * sysdeps/i386/fpu/w_expf.c: New file.
26655 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26656 * sysdeps/x86_64/fpu/w_expf.c: New file.
26657
26658 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26659
26660 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26661 (log2f): Likewise.
26662 (powf): Likewise.
26663 * math/w_log2f.c: New file.
26664 * math/w_logf.c: New file.
26665 * math/w_powf.c: New file.
26666 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26667 * math/w_logf_compat.c (__logf_compat): Likewise.
26668 * math/w_powf_compat.c (__powf_compat): Likewise.
26669 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26670 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26671 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26672 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26673 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26674 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26675 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26676 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26677 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26680 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26681 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26682 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26683 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26685 Likewise.
26686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26687 Likewise.
26688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26689 Likewise.
26690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26691 Likewise.
26692 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26693 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26694 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26695 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26696 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26697 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26698 Likewise.
26699 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26700 Likewise.
26701 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26703 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26704
26705 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26706
26707 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26708 (sysdep_routines): Add memrchr_power8.
26709 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26710 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26711 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26712 New file.
26713 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26714 (memrchr): Add __memrchr_power8 to ifunc list.
26715 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26716
26717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26718
26719 [BZ #18822]
26720 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26721 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26722 libc_hidden_def.
26723 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26724 (__posix_fallocate64_l64): Likewise.
26725
26726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26727
26728 [BZ #18822]
26729 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26730 (__sched_setaffinity_new): Add libc_hidden_proto and
26731 libc_hidden_def.
26732
26733 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26734
26735 [BZ #18822]
26736 * include/glob.h (__glob64): Add libc_hidden_proto.
26737 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26738 libc_hidden_def.
26739
26740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26741
26742 [BZ #18822]
26743 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26744 attribute_hidden.
26745
26746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26747
26748 [BZ #18822]
26749 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26750
26751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26752
26753 [BZ #18822]
26754 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26755 libc_hidden_def.
26756
26757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26758
26759 [BZ #18822]
26760 * csu/version.c (__libc_print_version): Add attribute_hidden.
26761
26762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26763
26764 [BZ #18822]
26765 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26766
26767 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26768
26769 [BZ #18822]
26770 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26771
26772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26773
26774 [BZ #18822]
26775 * nscd/nscd_helper.c (__nis_hash): New prototype.
26776
26777 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26778
26779 [BZ #18822]
26780 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26781 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26782 libc_hidden_def.
26783 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26784 * termios/tcgetattr.c (__tcgetattr): Likewise.
26785
26786 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26787
26788 [BZ #18822]
26789 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26790 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26791 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26792 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26793 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26794
26795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 [BZ #18822]
26798 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26799
26800 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26801
26802 [BZ #18822]
26803 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26804 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26805
26806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26807
26808 [BZ #18822]
26809 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26810
26811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26812
26813 [BZ #18822]
26814 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26815 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26816
26817 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26818
26819 [BZ #18822]
26820 * include/ifreq.h: New file.
26821 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26822 (__ifreq): Likewise.
26823 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26824 (__ifreq): Likewise.
26825
26826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26827
26828 [BZ #18822]
26829 * include/idna.h: New file.
26830 * inet/getnameinfo.c: Include <idna.h> instead of
26831 <libidn/idna.h>.
26832 (__idna_to_unicode_lzlz): Removed.
26833 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26834 <libidn/idna.h>.
26835 (__idna_to_ascii_lz): Removed.
26836 (__idna_to_unicode_lzlz): Likewise.
26837
26838 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26839
26840 [BZ #18822]
26841 * include/plural-exp.h: New file.
26842 * intl/plural-exp.c: Include <plural-exp.h> instead of
26843 "plural-exp.h".
26844
26845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26846
26847 [BZ #18822]
26848 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26849 "getsourcefilter.h".
26850 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26851 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26852 "getsourcefilter.h".
26853 (__get_sol): Removed.
26854
26855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26856
26857 [BZ #18822]
26858 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26859 to ...
26860 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26861
26862 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26863
26864 [BZ #18822]
26865 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26866 attribute_hidden.
26867
26868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 [BZ #18822]
26871 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26872
26873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26874
26875 [BZ #18822]
26876 * include/search.h (__tdestroy): Add libc_hidden_proto.
26877 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26878
26879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 [BZ #18822]
26882 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26883
26884 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26885
26886 [BZ #18822]
26887 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26888 attribute_hidden.
26889
26890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26891
26892 [BZ #18822]
26893 * include/signal.h (__kill): Add libc_hidden_proto.
26894 (__sigblock): Likewise.
26895 (__sigprocmask): Likewise.
26896 (__sigaltstack): Likewise.
26897 * signal/kill.c (__kill): Add libc_hidden_def.
26898 * signal/sigblock.c (__sigblock): Likewise.
26899 * signal/sigprocmask.c (__sigprocmask): Likewise.
26900 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26901 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26902 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26903 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26904 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26905 Likewise.
26906 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26907 Likewise.
26908 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26909 (__sigprocmask): Likewise.
26910 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26911 Likewise.
26912 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26913 (__sigprocmask): Likewise.
26914 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26915 Likewise.
26916
26917 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26918
26919 [BZ #18822]
26920 * include/string.h (__strsep): Add libc_hidden_proto.
26921 * string/strsep.c (__strsep): Add libc_hidden_def.
26922
26923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26924
26925 [BZ #18822]
26926 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26927 attribute_hidden.
26928 (__spawni): Likewise.
26929
26930 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26931
26932 [BZ #18822]
26933 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26934 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26935 libc_hidden_def.
26936
26937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26938
26939 [BZ #18822]
26940 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26941
26942 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26943
26944 [BZ #18822]
26945 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26946 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26947 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26948 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26949 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26950 Likewise.
26951 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26952 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26953
26954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26955
26956 [BZ #18822]
26957 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26958 (__dcigettext): Likewise.
26959
26960 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26961
26962 [BZ #18822]
26963 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26964 libc_hidden_proto.
26965 (__get_nprocs): Likewise.
26966 (__get_phys_pages): Likewise.
26967 (__get_avphys_pages): Likewise.
26968 (__get_child_max): Add attribute_hidden.
26969 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26970 (__get_nprocs): Likewise.
26971 (__get_phys_pages): Likewise.
26972 (__get_avphys_pages): Likewise.
26973 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26974 libc_hidden_def.
26975 (__get_nprocs): Likewise.
26976 (__get_phys_pages): Likewise.
26977 (__get_avphys_pages): Likewise.
26978 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26979 libc_hidden_def.
26980 (__get_nprocs_conf): Likewise.
26981 (__get_phys_pages): Likewise.
26982 (__get_avphys_pages): Likewise.
26983
26984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26985
26986 [BZ #18822]
26987 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26988 attribute_hidden.
26989 (__netlink_close): Likewise.
26990 (__netlink_free_handle): Likewise.
26991 (__netlink_request): Likewise.
26992
26993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26994
26995 [BZ #18822]
26996 * include/rpc/rpc.h (__rpc_thread_variables): Add
26997 attribute_hidden.
26998 (__rpc_thread_svc_cleanup): Likewise.
26999 (__rpc_thread_clnt_cleanup): Likewise.
27000 (__rpc_thread_key_cleanup): Likewise.
27001
27002 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27003
27004 [BZ #18822]
27005 * include/sys/uio.h (__readv): Add libc_hidden_proto.
27006 (__writev): Likewise.
27007 * misc/readv.c (__readv): Add libc_hidden_def.
27008 * misc/writev.c (__writev): Likewise.
27009 * sysdeps/posix/readv.c (__readv): Likewise.
27010 * sysdeps/posix/writev.c (__writev): Likewise.
27011 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
27012 (__readv): Likewise.
27013 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
27014 (__writev): Likewise.
27015
27016 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27017
27018 [BZ #18822]
27019 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
27020 (__regcomp): Add libc_hidden_proto.
27021 (__regexec): Likewise.
27022 (__regfree): Likewise.
27023 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
27024 (__regfree): Likewise.
27025 * posix/regexec.c (__regexec): Likewise.
27026
27027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27028
27029 [BZ #18822]
27030 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27031 (__getutent): Likewise.
27032 (__getutid): Likewise.
27033 (__getutline): Likewise.
27034 (__pututline): Likewise.
27035 (__getutent_r): Likewise.
27036 (__getutid_r): Likewise.
27037 (__getutline_r): Likewise.
27038 (__utmpname): Add attribute_hidden.
27039 (__setutent): Likewise.
27040 (__endutent): Likewise.
27041 * login/getutent.c (__getutent): Add libc_hidden_def.
27042 * login/getutent_r.c (__getutent_r): Likewise.
27043 (__pututline): Likewise.
27044 * login/getutid.c (__getutid): Likewise.
27045 * login/getutid_r.c (__getutid_r): Likewise.
27046 * login/getutline.c (__getutline): Likewise.
27047 * login/getutline_r.c (__getutline_r): Likewise.
27048 * login/updwtmp.c (__updwtmp): Likewise.
27049
27050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27051
27052 [BZ #18822]
27053 * include/dirent.h (__opendir): Always add attribute_hidden.
27054 (__fdopendir): Likewise.
27055 (__closedir): Likewise.
27056 (__readdir): Likewise.
27057 (__readdir64): Add libc_hidden_proto.
27058 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27059 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27060 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27061 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27062 New alias.
27063
27064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27065
27066 [BZ #18822]
27067 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27068 * include/netdb.h (__gethostbyaddr_r): Likewise.
27069 (__gethostbyname_r): Likewise.
27070 (__gethostbyname2_r): Likewise.
27071 (__getnetbyaddr_r): Likewise.
27072 (__getnetbyname_r): Likewise.
27073 (__getservbyname_r): Likewise.
27074 (__getservbyport_r): Likewise.
27075 (__getprotobyname_r): Likewise.
27076 (__getprotobynumber_r): Likewise.
27077 (__getnetgrent_r): Likewise.
27078 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27079 (__getrpcbynumber_r): Likewise.
27080 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27081
27082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27083
27084 [BZ #18822]
27085 * include/stdio.h (__fcloseall): Add attribute_hidden.
27086 (__getline): Likewise.
27087 (__path_search): Likewise.
27088 (__gen_tempname): Likewise.
27089 (__libc_message): Likewise.
27090 (__flockfile): Likewise.
27091 (__funlockfile): Likewise.
27092 (__fxprintf): Likewise.
27093 (__fxprintf_nocancel): Likewise.
27094
27095 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27096
27097 [BZ #18822]
27098 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27099 (__sgetsgent_r): Likewise.
27100
27101 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27102
27103 [BZ #18822]
27104 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27105 (__statfs64): Likewise.
27106 (__fstatfs64): Likewise.
27107 * include/sys/statvfs.h (__statvfs64): Likewise.
27108 (__fstatvfs64): Likewise.
27109 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27110 (__statfs_filesize_max): Likewise.
27111 (__statfs_symlinks): Likewise.
27112 (__statfs_chown_restricted): Likewise.
27113
27114 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27115
27116 [BZ #18822]
27117 * include/time.h (__tzstring): Add attribute_hidden.
27118 (__tzfile_read): Likewise.
27119 (__tzfile_compute): Likewise.
27120 (__tzfile_default): Likewise.
27121 (__tzset_parse_tz): Likewise.
27122 (__offtime): Likewise.
27123 (__asctime_r): Likewise.
27124 (__tzset): Likewise.
27125 (__tz_convert): Likewise.
27126 (__getdate_r): Likewise.
27127 (__getclktck): Likewise.
27128
27129 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27130
27131 [BZ #18822]
27132 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27133 (__nscd_unmap): Likewise.
27134 (__nscd_cache_search): Likewise.
27135 (__nscd_get_nl_timestamp): Likewise.
27136 (__nscd_getpwnam_r): Likewise.
27137 (__nscd_getpwuid_r): Likewise.
27138 (__nscd_getgrnam_r): Likewise.
27139 (__nscd_getgrgid_r): Likewise.
27140 (__nscd_gethostbyname_r): Likewise.
27141 (__nscd_gethostbyname2_r): Likewise.
27142 (__nscd_gethostbyaddr_r): Likewise.
27143 (__nscd_getai): Likewise.
27144 (__nscd_getgrouplist): Likewise.
27145 (__nscd_getservbyname_r): Likewise.
27146 (__nscd_getservbyport_r): Likewise.
27147 (__nscd_innetgr): Likewise.
27148 (__nscd_setnetgrent): Likewise.
27149
27150 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27151
27152 [BZ #18822]
27153 * include/gmp.h: Declare internal functions only if _ISOMAC is
27154 undefined.
27155 (__mpn_extract_double): Add attribute_hidden.
27156 (__mpn_extract_long_double): Likewise.
27157 (__mpn_extract_float128): Likewise.
27158 (__mpn_construct_float): Likewise.
27159 (__mpn_construct_double): Likewise.
27160 (__mpn_construct_long_double): Likewise.
27161 (__mpn_construct_float128): Likewise.
27162 (mpn_add_1): Likewise.
27163 (mpn_addmul_1): Likewise.
27164 (mpn_add_n): Likewise.
27165 (mpn_cmp): Likewise.
27166 (mpn_divrem): Likewise.
27167 (mpn_lshift): Likewise.
27168 (mpn_mul): Likewise.
27169 (mpn_mul_1): Likewise.
27170 (mpn_rshift): Likewise.
27171 (mpn_sub_1): Likewise.
27172 (mpn_submul_1): Likewise.
27173 (mpn_sub_n): Likewise.
27174
27175 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27176
27177 [BZ #18822]
27178 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27179 (__wcscat): Likewise.
27180 (__btowc): Likewise.
27181 (__wcrtomb): Likewise.
27182 (__mbsrtowcs): Likewise.
27183 (__wcsrtombs): Likewise.
27184 (__mbsnrtowcs): Likewise.
27185 (__wcsnrtombs): Likewise.
27186 (__wcsncpy): Likewise.
27187 (__wcpncpy): Likewise.
27188 (__wmemcpy): Likewise.
27189 (__wmempcpy): Likewise.
27190 (__wmemmove): Likewise.
27191 (__wcschrnul): Likewise.
27192 (__vfwscanf): Likewise.
27193 (__vswprintf): Likewise.
27194 (__fwprintf): Likewise.
27195 (__vfwprintf): Likewise.
27196
27197 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27198
27199 [BZ #18822]
27200 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27201 (__getgrgid_r): Likewise.
27202 (__getgrnam_r): Likewise.
27203 * include/pwd.h (__getpwuid_r): Likewise.
27204 (__getpwnam_r): Likewise.
27205 (__fgetpwent_r): Likewise.
27206 * include/shadow.h (__getspnam_r): Likewise.
27207 (__sgetspent_r): Likewise.
27208 (__fgetspent_r): Likewise.
27209
27210 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27211
27212 [BZ #18822]
27213 * include/unistd.h (__access): Add attribute_hidden.
27214 (__lseek64): Likewise.
27215 (__libc_pread64): Likewise.
27216 (__pipe2): Likewise.
27217 (__sleep): Likewise.
27218 (__chdir): Likewise.
27219 (__fchdir): Likewise.
27220 (__getcwd): Likewise.
27221 (__rmdir): Likewise.
27222 (__execvpe): Likewise.
27223 (__execve): Likewise.
27224 (__setsid): Likewise.
27225 (__getuid): Likewise.
27226 (__geteuid): Likewise.
27227 (__getgid): Likewise.
27228 (__getegid): Likewise.
27229 (__getgroups): Likewise.
27230 (__group_member): Likewise.
27231 (__ttyname_r): Likewise.
27232 (__isatty): Likewise.
27233 (__readlink): Likewise.
27234 (__unlink): Likewise.
27235 (__gethostname): Likewise.
27236 (__profil): Likewise.
27237 (__getdtablesize): Likewise.
27238 (__brk): Likewise.
27239 (__ftruncate): Likewise.
27240 (__ftruncate64): Likewise.
27241
27242 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27243
27244 [BZ #18822]
27245 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27246 * argp/argp-fs-xinl.c: Likewise.
27247 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27248 * argp/argp-parse.c: Include <argp.h>.
27249 * argp/argp-xinl.c: Likewise.
27250 * include/argp-fmtstream.h: New file.
27251 * include/argp.h (__argp_error): Add attribute_hidden.
27252 (__argp_failure): Likewise.
27253 (__argp_input): Likewise.
27254 (__argp_state_help): Likewise.
27255
27256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27257
27258 [BZ #18822]
27259 * include/wchar.h (____wcstof_l_internal): New prototype.
27260 (____wcstod_l_internal): Likewise.
27261 (____wcstold_l_internal): Likewise.
27262 (____wcstol_l_internal): Likewise.
27263 (____wcstoul_l_internal): Likewise.
27264 (____wcstoll_l_internal): Likewise.
27265 (____wcstoull_l_internal): Likewise.
27266 (____wcstof128_l_internal): Likewise.
27267 * sysdeps/ieee754/float128/wcstof128.c
27268 (____wcstof128_l_internal): Removed.
27269 * sysdeps/ieee754/float128/wcstof128_l.c
27270 (____wcstof128_l_internal): Likewise.
27271 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27272 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27273 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27274 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27275 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27276 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27277 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27278 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27279 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27280 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27281
27282 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27283
27284 [BZ #18822]
27285 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27286 instead of <sys/statvfs.h>.
27287 (__internal_statvfs): Removed.
27288 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27289 instead of <sys/statvfs.h>.
27290 (__internal_statvfs64): Removed.
27291 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27292 "internal_statvfs.h" instead of <sys/statvfs.h>.
27293 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27294 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27295 instead of <sys/statvfs.h>.
27296 (__internal_statvfs): Removed.
27297 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27298 instead of <sys/statvfs.h>.
27299 (__internal_statvfs64): Removed.
27300
27301 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27302
27303 [BZ #18822]
27304 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27305 (__gconv_close): Likewise.
27306 (__gconv): Likewise.
27307 (__gconv_find_transform): Likewise.
27308 (__gconv_lookup_cache): Likewise.
27309 (__gconv_compare_alias_cache): Likewise.
27310 (__gconv_load_cache): Likewise.
27311 (__gconv_get_path): Likewise.
27312 (__gconv_close_transform): Likewise.
27313 (__gconv_release_cache): Likewise.
27314 (__gconv_find_shlib): Likewise.
27315 (__gconv_release_shlib): Likewise.
27316 (__gconv_get_builtin_trans): Likewise.
27317 (__gconv_compare_alias): Likewise.
27318 * include/dlfcn.h (_dlerror_run): Likewise.
27319 * include/stdio.h (__fortify_fail_abort): Likewise.
27320 * include/time.h (__tz_compute): Likewise.
27321 (__strptime_internal): Likewise.
27322 * intl/gettextP.h (_nl_find_domain): Likewise.
27323 (_nl_load_domain): Likewise.
27324 (_nl_find_msg): Likewise.
27325 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27326 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27327 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27328 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27329 (__gai_find_request): Likewise.
27330 (__gai_remove_request): Likewise.
27331 (__gai_notify): Likewise.
27332 (__gai_notify_only): Likewise.
27333 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27334 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27335 (_dl_non_dynamic_init): Likewise.
27336 (_dl_aux_init): Likewise.
27337 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27338 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27339 Likewise.
27340 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27341 (__wcsmbs_clone_conv): Likewise.
27342 (__wcsmbs_named_conv): Likewise.
27343
27344 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27345
27346 [BZ #18822]
27347 * include/stdlib.h (__random): Add attribute_hidden.
27348 (__random_r): Likewise.
27349 (__srandom_r): Likewise.
27350 (__initstate_r): Likewise.
27351 (__setstate_r): Likewise.
27352 (__erand48_r): Likewise.
27353 (__nrand48_r): Likewise.
27354 (__jrand48_r): Likewise.
27355 (__srand48_r): Likewise.
27356 (__seed48_r): Likewise.
27357 (__lcong48_r): Likewise.
27358 (__drand48_iterate): Likewise.
27359 (__setenv): Likewise.
27360 (__unsetenv): Likewise.
27361 (__clearenv): Likewise.
27362 (__ptsname_r): Likewise.
27363 (__posix_openpt): Likewise.
27364 (__add_to_environ): Likewise.
27365 (__realpath): Add libc_hidden_proto.
27366 (__ecvt_r): Likewise.
27367 (__fcvt_r): Likewise.
27368 (__qecvt_r): Likewise.
27369 (__qfcvt_r): Likewise.
27370 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27371 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27372
27373 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27374
27375 [BZ #18822]
27376 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27377 * include/time.h (__mktime_internal): Likewise.
27378 * libio/iolibio.h (__fopen_internal): Likewise.
27379
27380 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27381
27382 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27383 pointer in frame.
27384 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27385 Correct offset used to restore PIC register.
27386
27387 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27388
27389 [BZ libc/22165]
27390 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27391 code to load address of __getcontext_ret when generating PIC code.
27392
27393 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27394
27395 * elf/Makefile (tests-static-internal): Add
27396 tst-tls1-static-non-pie.
27397 (LDFLAGS-tst-tls1-static-non-pie): New.
27398 * elf/tst-tls1-static-non-pie.c: New file.
27399
27400 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27401
27402 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27403 (asinh): Define using libm_alias_double.
27404 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27405 (cbrt): Define using libm_alias_double.
27406 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27407 <libm-alias-double.h>.
27408 (copysign): Define using libm_alias_double.
27409 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27410 (erf): Define using libm_alias_double.
27411 (erfc): Likewise.
27412 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27413 (expm1): Define using libm_alias_double.
27414 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27415 (fabs): Define using libm_alias_double.
27416 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27417 libm_alias_double.
27418 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27419 <libm-alias-double.h>.
27420 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27421 libm_alias_double.
27422 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27423 <libm-alias-double.h>.
27424 (getpayload): Define using libm_alias_double.
27425 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27426 <libm-alias-double.h>.
27427 (llrint): Define using libm_alias_double.
27428 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27429 (lrint): Define using libm_alias_double.
27430 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27431 <libm-alias-double.h>.
27432 (nextup): Define using libm_alias_double.
27433 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27434 <libm-alias-double.h>.
27435 (roundeven): Define using libm_alias_double.
27436 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27437 libm_alias_double.
27438 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27439 <libm-alias-double.h>.
27440 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27441 using libm_alias_double.
27442 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27443 (cos): Define using libm_alias_double.
27444 (sin): Likewise.
27445 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27446 <libm-alias-double.h>.
27447 (sincos): Define using libm_alias_double.
27448 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27449 (tanh): Define using libm_alias_double.
27450 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27451 <libm-alias-double.h>.
27452 (totalorder): Define using libm_alias_double.
27453 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27454 <libm-alias-double.h>.
27455 (totalordermag): Define using libm_alias_double.
27456 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27457 libm_alias_double.
27458 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27459 libm_alias_double.
27460 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27461 <libm-alias-double.h>.
27462 (getpayload): Define using libm_alias_double.
27463 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27464 <libm-alias-double.h>.
27465 (roundeven): Define using libm_alias_double.
27466 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27467 <libm-alias-double.h>.
27468 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27469 <libm-alias-double.h>.
27470 (totalorder): Define using libm_alias_double.
27471 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27472 <libm-alias-double.h>.
27473 (totalordermag): Define using libm_alias_double.
27474 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27475 libc compat symbol here.
27476 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27477 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27478 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27479 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27480 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27481 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27482 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27483 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27484 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27485 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27486
27487 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27488
27489 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27490 _dl_relocate_static_pie instead of _dl_start to compute load
27491 address in static PIE. Return 0 if _DYNAMIC is undefined for
27492 static executable.
27493
27494 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27495
27496 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27497 _DYNAMIC is undefined for static executable.
27498
27499 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27500
27501 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27502
27503 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27504
27505 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27506
27507 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27508
27509 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27510 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27511 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27512 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27513 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27514 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27515 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27516 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27517 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27518 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27519 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27520 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27521 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27522 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27523 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27524 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27525 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27526
27527 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27528
27529 * math/bits/cmathcalls.h (cimag): Remove inline.
27530 (creal): Remove inline.
27531 (conj): Remove inline.
27532
27533 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27534
27535 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27536 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27537 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27538 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27539 (issignalingf_inline): Likewise.
27540 (POWF_LOG2_TABLE_BITS): Likewise.
27541 (POWF_LOG2_POLY_ORDER): Likewise.
27542 (POWF_SCALE_BITS): Likewise.
27543 (POWF_SCALE): Likewise.
27544 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27545 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27546 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27547
27548 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27549
27550 * math/Makefile (type-float-routines): Add e_log2f_data.
27551 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27552 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27553 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27554 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27555 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27556 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27557 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27558
27559 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27560
27561 * math/Makefile (type-float-routines): Add e_logf_data.
27562 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27563 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27564 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27565 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27566 * sysdeps/i386/fpu/e_logf_data.c: New file.
27567 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27568 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27569
27570 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27571
27572 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27573 undefined _DYNAMIC in PIE libc.a.
27574 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27575 Likewse.
27576
27577 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27578
27579 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27580 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27581 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27582 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27583 (__signbit): Remove.
27584 (__signbitl): Remove.
27585 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27586 (__signbit): Remove.
27587 (__signbitl): Remove.
27588 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27589 (__signbit): Remove.
27590 (__signbitl): Remove.
27591 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27592 (__signbit): Remove.
27593 (__signbitl): Remove.
27594 * sysdeps/tile/bits/mathinline.h: Delete file.
27595 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27596 (__signbit): Remove.
27597 (__signbitl): Remove.
27598
27599 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27600
27601 * math/math.h: Improve handling of C99 isgreater macros.
27602 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27603 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27604 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27605 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27606 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27607
27608 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27609
27610 * sysdeps/aarch64/libm-test-ulps: Update.
27611
27612 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27613
27614 [BZ #22225]
27615 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27616 math_opt_barrier on argument when doing arithmetic on it.
27617 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27618 Likewise. Use math_force_eval not math_opt_barrier after
27619 arithmetic.
27620 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27621 math_opt_barrier on argument when doing arithmetic on it.
27622 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27623 Likewise.
27624
27625 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27626
27627 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27628 libc_hidden_def.
27629 (__freeifaddrs): Likewise.
27630
27631 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27632
27633 * include/dirent.h (__dirfd): New declaration.
27634 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27635 alias.
27636 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27637 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27638 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27639 * include/unistd.h (__revoke): New declaration.
27640 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27641 alias.
27642 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27643 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27644 revoke.
27645 * include/dirent.h (__seekdir): New declaration.
27646 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27647 redefine as weak alias.
27648 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27649 of seekdir.
27650 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27651 and use libc_hidden_def on them.
27652 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27653 them.
27654 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27655 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27656 instead of getifaddrs and freeifaddrs.
27657
27658 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27659
27660 [BZ #18822]
27661 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27662 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27663 (__dso_handle): Remove declaration.
27664 * dlfcn/tstatexit.c (__dso_handle): Removed.
27665 (main): Don't check __dso_handle.
27666 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27667 (main): Don't check __dso_handle.
27668 * include/dso_handle.h: New file.
27669 * malloc/mtrace.c: Include <dso_handle.h>.
27670 (mtrace): Pass __dso_handle directly.
27671 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27672 (__dso_handle): Remove declaration.
27673 (__pthread_atfork): Pass __dso_handle directly.
27674 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27675 (__dso_handle): Removed.
27676 * posix/wordexp-test.c: Include <dso_handle.h>.
27677 (__dso_handle): Remove declaration.
27678 (__app_register_atfork): Pass __dso_handle directly.
27679 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27680 (__dso_handle): Remove declaration.
27681 (at_quick_exit): Pass __dso_handle directly.
27682 * stdlib/atexit.c: Include <dso_handle.h>.
27683 (__dso_handle): Remove declaration.
27684 (atexit): Pass __dso_handle directly.
27685 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27686 (__dso_handle): Removed.
27687
27688 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27689
27690 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27691 using VDSO.
27692
27693 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27694
27695 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27696 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27697 values to correct default value for given type.
27698
27699 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27700
27701 [BZ #22101]
27702 * elf/Makefile (tests): Add tst-debug1.
27703 ($(objpfx)tst-debug1): New.
27704 ($(objpfx)tst-debug1.out): Likewise.
27705 ($(objpfx)tst-debug1mod1.so): Likewise.
27706 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27707 with p_filesz == 0.
27708 * elf/tst-debug1.c: New file.
27709
27710 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27711
27712 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27713 Define using __ifunc.
27714
27715 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27716
27717 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27718 exp2f() values.
27719
27720 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27721
27722 [BZ #22156]
27723 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27724
27725 2017-09-26 Florian Weimer <fweimer@redhat.com>
27726
27727 * resolv/Makefile (tests-internal): Fix typo in comment.
27728
27729 2017-09-26 Florian Weimer <fweimer@redhat.com>
27730
27731 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27732
27733 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27734
27735 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27736 Use an union instead of a max_align_t array for __space,
27737 so that __space is the same size on all platforms.
27738 * malloc/scratch_buffer_grow_preserve.c
27739 (__libc_scratch_buffer_grow_preserve): Likewise.
27740
27741 [BZ #22183]
27742 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27743 version to 2.
27744 * posix/Makefile (routines): Add glob-lstat-compat and
27745 glob64-lstat-compat.
27746 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27747 * posix/glob-lstat-compat.c: New file.
27748 * posix/glob64-lstat-compat.c: Likewise.
27749 * posix/tst-glob_lstat_compat.c: Likewise.
27750 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27751 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27752 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27753 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27754 Likewise.
27755 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27756 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27757 * posix/glob.c (glob_lstat): New function.
27758 (glob): Rename to __glob and add versioned symbol to 2.27.
27759 (glob_in_dir): Use glob_lstat.
27760 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27761 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27762 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27763 2.27.
27764 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27765 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27766 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27767 gl_lstat on glob call.
27768 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27769 and glob64 symbols.
27770 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27771 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27772 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27773 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27774 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27775 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27776 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27777 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27778 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27779 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27780 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27781 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27783 Likewise.
27784 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27786 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27787 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27788 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27789 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27790 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27791 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27792 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27793 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27794 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27795 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27796
27797 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27798
27799 * configure.ac (AS): Require binutils 2.25 or later.
27800 * configure: Regenerated.
27801
27802 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27803
27804 [BZ #22207]
27805 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27806 VM size.
27807
27808 2017-09-25 DJ Delorie <dj@redhat.com>
27809
27810 [BZ #22161]
27811 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27812 resetting timeout.
27813
27814 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27815
27816 * sysdeps/ieee754/dbl-64/sincos32.h
27817 [SINCCOS32_H]: Remove define.
27818 [SINCOS32_H]: Define.
27819
27820 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27821
27822 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27823 (exp2f): Likewise.
27824 * math/w_exp2f.c: New file.
27825 * math/w_expf.c: New file.
27826 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27827 * math/w_expf_compat.c (__expf_compat): Likewise.
27828 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27829 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27830 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27831 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27832 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27833 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27834 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27835 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27836 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27837 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27838 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27839 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27840 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27841 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27843 Likewise.
27844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27845 Likewise.
27846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27847 Likewise.
27848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27849 Likewise.
27850 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27851 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27852 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27853 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27854 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27855 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27856 Likewise.
27857 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27858 Likewise.
27859 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27860 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27861 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27862
27863 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27864
27865 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27866 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27867 (roundtoint, converttoint): Likewise.
27868 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27869 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27870 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27871 * sysdeps/ieee754/flt-32/math_config.h: New file.
27872 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27873 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27874 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27875 * sysdeps/i386/fpu/math_errf.c: New file.
27876 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27877 * sysdeps/ia64/fpu/math_errf.c: New file.
27878 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27879 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27880
27881 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27882
27883 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27884 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27885 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27886 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27887 to make sure that these symbols are defined.
27888 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27889 of <limits.h>
27890 (__need_NULL): Do not define.
27891 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27892 alignment.
27893 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27894 CMGROUP_MAX, cmsgcred): Do not define.
27895 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27896 NULL.
27897 * bits/socket.h: Likewise.
27898 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27899 __gettimeofday instead of gettimeofday.
27900 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27901 instead of settimeofday.
27902
27903 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27904
27905 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27906 (asinhf): Define using libm_alias_float.
27907 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27908 (atanf): Define using libm_alias_float.
27909 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27910 (cbrtf): Define using libm_alias_float.
27911 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27912 (ceilf): Define using libm_alias_float.
27913 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27914 <libm-alias-float.h>.
27915 (copysignf): Define using libm_alias_float.
27916 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27917 (cosf): Define using libm_alias_float.
27918 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27919 (erff): Define using libm_alias_float.
27920 (erfcf): Likewise.
27921 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27922 (expm1f): Define using libm_alias_float.
27923 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27924 (fabsf): Define using libm_alias_float.
27925 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27926 (floorf): Define using libm_alias_float.
27927 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27928 (frexpf): Define using libm_alias_float.
27929 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27930 libm_alias_float.
27931 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27932 <libm-alias-float.h>.
27933 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27934 libm_alias_float.
27935 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27936 <libm-alias-float.h>.
27937 (getpayloadf): Define using libm_alias_float.
27938 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27939 <libm-alias-float.h>.
27940 (llrintf): Define using libm_alias_float.
27941 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27942 <libm-alias-float.h>.
27943 (llroundf): Define using libm_alias_float.
27944 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27945 (logbf): Define using libm_alias_float.
27946 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27947 (lrintf): Define using libm_alias_float.
27948 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27949 (lroundf): Define using libm_alias_float.
27950 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27951 (modff): Define using libm_alias_float.
27952 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27953 <libm-alias-float.h>.
27954 (nearbyintf): Define using libm_alias_float.
27955 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27956 <libm-alias-float.h>.
27957 (nextafterf): Define using libm_alias_float.
27958 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27959 <libm-alias-float.h>.
27960 (nextupf): Define using libm_alias_float.
27961 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27962 <libm-alias-float.h>.
27963 (remquof): Define using libm_alias_float.
27964 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27965 (rintf): Define using libm_alias_float.
27966 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27967 <libm-alias-float.h>.
27968 (roundevenf): Define using libm_alias_float.
27969 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27970 (roundf): Define using libm_alias_float.
27971 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27972 using libm_alias_float.
27973 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27974 <libm-alias-float.h>.
27975 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27976 Define using libm_alias_float.
27977 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27978 <libm-alias-float.h>.
27979 (sincosf): Define using libm_alias_float.
27980 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27981 (sinf): Define using libm_alias_float.
27982 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27983 (tanf): Define using libm_alias_float.
27984 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27985 (tanhf): Define using libm_alias_float.
27986 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27987 <libm-alias-float.h>.
27988 (totalorderf): Define using libm_alias_float.
27989 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27990 <libm-alias-float.h>.
27991 (totalordermagf): Define using libm_alias_float.
27992 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27993 (truncf): Define using libm_alias_float.
27994 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27995 libm_alias_float.
27996 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27997 libm_alias_float.
27998
27999 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28000
28001 [BZ #22146]
28002 math/math.h: Let fpclassify use the builtin in C++ mode, even
28003 when optimazing for size.
28004
28005 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28006
28007 * csu/Makefile (generated): Do not add version-info.h.
28008 (before-compile): Likewise.
28009 (all-Banner-files): Remove variable.
28010 ($(objpfx)version-info.h): Remove rule.
28011 * csu/version.c (banner): Do not include "version-info.h".
28012 * libidn/Banner: Remove.
28013 * manual/contrib.texi (Simon Josefsson): New entry.
28014
28015 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28016
28017 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
28018 Remove conditionals on LDBL_MANT_DIG.
28019 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28020 (__ieee754_lgammal_r): Likewise.
28021
28022 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28023
28024 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
28025 _Float128 and L().
28026 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
28027 _Float128 and L(). Replace _Float128 with long double and L(x)
28028 with xL, throughout the file.
28029 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28030 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28031 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28032 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28033
28034 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28035
28036 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28037 sysdeps/ieee754/ldbl-128ibm.
28038 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28039 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28040 of including it. Keep _Float128 and L() intact. These will be
28041 reviewed by a separate patch.
28042 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28043 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28044 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28045 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28046
28047 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28048
28049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28050 (__finitef128): Define to __redirect___finitef128.
28051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28052 (__isinff128): Define to __redirect___isinff128.
28053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28054 (__isnanf128): Define to __redirect___isnanf128.
28055
28056 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28057
28058 * sysdeps/powerpc/powerpc64le/Makefile
28059 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28060 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28061
28062 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28063 Carlos O'Donell <carlos@redhat.com>
28064
28065 [BZ #22180]
28066 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28067 * stdlib/test-dlclose-exit-race.c: New file.
28068 * stdlib/test-dlclose-exit-race-helper.c: New file.
28069 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28070
28071 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28072
28073 * crypt/Banner: Remove file.
28074 * nptl/Banner: Likewise.
28075 * resolv/Banner: Likewise.
28076 * soft-fp/Banner: Likewise.
28077 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28078 ($(objpfx)version.d): Remove dependency on banner.h.
28079 ($(objpfx)version.os): Likewise.
28080 * nptl/version.c (banner): Do not include banner.h.
28081 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28082 Jelinek and BIND code.
28083
28084 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28085 Carlos O'Donell <carlos@redhat.com>
28086
28087 * support/xdlfcn.h: New file.
28088 * support/xdlfcn.c: New file.
28089 * support/Makefile (libsupport-routines): Add xdlfcn.
28090 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28091
28092 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28093
28094 [BZ #20142]
28095 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28096 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28097 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28098 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28099 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28100 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28101 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28102 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28103
28104 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28105 Ricky Zhou <rickyz@google.com>
28106 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28107
28108 [BZ #14333]
28109 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28110 Remove atomics.
28111 (__new_exitfn): Fail registration when we finished at_exit processing.
28112 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28113 * stdlib/on_exit.c (__on_exit): Likewise.
28114 * stdlib/exit.c (__exit_funcs_done): New variable.
28115 (__run_exit_handlers): Use __exit_funcs_lock.
28116 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28117 declarations.
28118 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28119 (test-cxa_atexit-race, test-on_exit-race): New tests.
28120 * stdlib/test-atexit-race-common.c: New file.
28121 * stdlib/test-atexit-race.c: New file.
28122 * stdlib/test-at_quick_exit-race.c: New file.
28123 * stdlib/test-cxa_atexit-race.c: New file.
28124 * stdlib/test-on_exit-race.c: New file.
28125
28126 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28127
28128 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28129 * benchtests/exp2f-inputs: Copy of expf-inputs.
28130 * benchtests/log2f-inputs: Copy of logf-inputs.
28131
28132 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28133
28134 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28135 Explicitly take address of first element of array arguments in
28136 call to INLINE_SYSCALL.
28137
28138 2017-09-19 Andreas Schwab <schwab@suse.de>
28139
28140 [BZ #22134]
28141 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28142 execveat first.
28143 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28144 unimplemented.
28145 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28146 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28147 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28148 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28149 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28150 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28151 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28152 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28153 * posix/Makefile (tests): Add tst-fexecve.
28154 * posix/tst-fexecve.c: New file.
28155
28156 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28157
28158 * benchtests/Makefile: Add logf benchmark.
28159 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28160
28161 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28162
28163 * benchtests/Makefile: Add expf benchmark.
28164 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28165
28166 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28167
28168 * csu/Makefile: Add -funwind-tables to libc-start.c.
28169 * debug/Makefile: Add -funwind-tables to backtrace.c.
28170 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28171 * sysdeps/arm/Makefile: Likewise.
28172 * sysdeps/i386/Makefile: Likewise.
28173 * sysdeps/m68k/Makefile: Likewise.
28174 * sysdeps/mips/Makefile: Likewise.
28175 * sysdeps/nios2/Makefile: Likewise.
28176 * sysdeps/sh/Makefile: Likewise.
28177 * sysdeps/sparc/Makefile: Likewise.
28178
28179 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28180
28181 * benchtests/Makefile (bench-math): Add trunc and truncf.
28182 (CFLAGS-bench-trunc.c): New variable.
28183 (CFLAGS-bench-truncf.c): Likewise.
28184 * benchtests/trunc-inputs: New file.
28185 * benchtests/truncf-inputs: Likewise.
28186
28187 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28188
28189 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28190
28191 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28192
28193 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28194 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28195 redefine.
28196 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28197 (exp10l): Define as weak alias.
28198 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28199 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28200 and redefine.
28201 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28202 (remainderl): Define as weak alias.
28203
28204 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28205 (fmal): Define using libm_alias_ldouble.
28206 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28207 (acoshl): Define using libm_alias_ldouble.
28208 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28209 (acosl): Define using libm_alias_ldouble.
28210 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28211 (asinl): Define using libm_alias_ldouble.
28212 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28213 (atan2l): Define using libm_alias_ldouble.
28214 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28215 (atanhl): Define using libm_alias_ldouble.
28216 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28217 (coshl): Define using libm_alias_ldouble.
28218 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28219 (exp10l): Define using libm_alias_ldouble.
28220 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28221 (exp2l): Define using libm_alias_ldouble.
28222 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28223 (expl): Define using libm_alias_ldouble.
28224 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28225 (fmodl): Define using libm_alias_ldouble.
28226 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28227 (hypotl): Define using libm_alias_ldouble.
28228 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28229 (j0l): Define using libm_alias_ldouble.
28230 (y0l): Likewise.
28231 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28232 (j1l): Define using libm_alias_ldouble.
28233 (y1l): Likewise.
28234 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28235 (jnl): Define using libm_alias_ldouble.
28236 (ynl): Likewise.
28237 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28238 (log10l): Define using libm_alias_ldouble.
28239 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28240 (log2l): Define using libm_alias_ldouble.
28241 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28242 (logl): Define using libm_alias_ldouble.
28243 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28244 (powl): Define using libm_alias_ldouble.
28245 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28246 (remainderl): Define using libm_alias_ldouble.
28247 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28248 (sinhl): Define using libm_alias_ldouble.
28249 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28250 (sqrtl): Define using libm_alias_ldouble.
28251 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28252 (tgammal): Define using libm_alias_ldouble.
28253 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28254 (exp10l): Do not use long_double_symbol here.
28255 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28256 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28257 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28258 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28259 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28260 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28261 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28262 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28263 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28264 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28265 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28266 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28267 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28268 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28269 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28270 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28271 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28272 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28273 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28274 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28275 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28276 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28277
28278 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28279
28280 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28281 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28282
28283 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28284
28285 * io/read.c (read): Add libc_hidden_weak.
28286 * sysdeps/mach/hurd/read.c (read): Likewise.
28287 * io/write.c (write): Likewise.
28288 * sysdeps/mach/hurd/write.c (write): Likewise.
28289 * io/pread64.c (__pread64): Likewise.
28290 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28291 * posix/pread64.c (__pread64): Add libc_hidden_def.
28292
28293 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28294
28295 * benchtests/scripts/compare_strings.py: New option -g.
28296 (draw_graph): Print a message that a graph is being generated.
28297 (process_results): Generate graph only if -g is passed.
28298 (main): Process option -g.
28299
28300 * benchtests/scripts/compare_strings.py (process_results):
28301 Better spacing for output.
28302
28303 * benchtests/scripts/compare_strings.py: Use argparse.
28304 * benchtests/README: Document existence of compare_strings.py.
28305
28306 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28307
28308 * math/s_fma.c: Include <libm-alias-double.h>.
28309 (fma): Define using libm_alias_double.
28310 * math/s_nextafter.c: Include <libm-alias-double.h>.
28311 (nextafter): Define using libm_alias_double.
28312 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28313 (acos): Define using libm_alias_double.
28314 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28315 (aocsh): Define using libm_alias_double.
28316 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28317 (asin): Define using libm_alias_double.
28318 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28319 (atan2): Define using libm_alias_double.
28320 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28321 (atanh): Define using libm_alias_double.
28322 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28323 (cosh): Define using libm_alias_double.
28324 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28325 (exp10): Define using libm_alias_double.
28326 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28327 (exp2): Define using libm_alias_double.
28328 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28329 (exp): Define using libm_alias_double.
28330 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28331 (fmod): Define using libm_alias_double.
28332 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28333 (hypot): Define using libm_alias_double.
28334 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28335 (j0): Define using libm_alias_double.
28336 (y0): Likewise.
28337 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28338 (j1): Define using libm_alias_double.
28339 (y1): Likewise.
28340 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28341 (jn): Define using libm_alias_double.
28342 (yn): Likewise.
28343 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28344 (log10): Define using libm_alias_double.
28345 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28346 (log2): Define using libm_alias_double.
28347 * math/w_log_compat.c: Include <libm-alias-double.h>.
28348 (log): Define using libm_alias_double.
28349 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28350 (pow): Define using libm_alias_double.
28351 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28352 (remainder): Define using libm_alias_double.
28353 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28354 (sinh): Define using libm_alias_double.
28355 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28356 (sqrt): Define using libm_alias_double.
28357 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28358 (tgamma): Define using libm_alias_double.
28359 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28360 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28361 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28362 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28363 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28364 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28365 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28366 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28367 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28368 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28369 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28370 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28371 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28372 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28373 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28374 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28375 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28376 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28377 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28378 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28379 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28380 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28381 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28382 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28383 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28384
28385 * math/e_acoshl.c: Remove.
28386 * math/e_acosl.c: Likewise.
28387 * math/e_asinl.c: Likewise.
28388 * math/e_atan2l.c: Likewise.
28389 * math/e_atanhl.c: Likewise.
28390 * math/e_coshl.c: Likewise.
28391 * math/e_expl.c: Likewise.
28392 * math/e_fmodl.c: Likewise.
28393 * math/e_gammal_r.c: Likewise.
28394 * math/e_hypotl.c: Likewise.
28395 * math/e_j0l.c: Likewise.
28396 * math/e_j1l.c: Likewise.
28397 * math/e_jnl.c: Likewise.
28398 * math/e_lgammal_r.c: Likewise.
28399 * math/e_log10l.c: Likewise.
28400 * math/e_log2l.c: Likewise.
28401 * math/e_logl.c: Likewise.
28402 * math/e_powl.c: Likewise.
28403 * math/e_rem_pio2l.c: Likewise.
28404 * math/e_sinhl.c: Likewise.
28405 * math/e_sqrtf128.c: Likewise.
28406 * math/e_sqrtl.c: Likewise.
28407 * math/k_cosl.c: Likewise.
28408 * math/k_sinl.c: Likewise.
28409 * math/k_tanl.c: Likewise.
28410 * math/s_asinhl.c: Likewise.
28411 * math/s_atanl.c: Likewise.
28412 * math/s_cbrtl.c: Likewise.
28413 * math/s_erfl.c: Likewise.
28414 * math/s_expm1l.c: Likewise.
28415 * math/s_log1pl.c: Likewise.
28416 * math/s_tanhl.c: Likewise.
28417
28418 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28419
28420 [BZ #21745]
28421 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28422 [$(subdir) = math] (sysdep_calls): New variable. Has the
28423 previous contents of sysdep_routines, but re-sorted..
28424 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28425 sysdep_calls.
28426 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28427 defined in sysdep_calls and replace by the respective m_* names.
28428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28429 (compat_symbol): Undefine to avoid duplicated compat symbols in
28430 libc.
28431
28432 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28433
28434 * math/s_fmaf.c: Include <libm-alias-float.h>.
28435 (fmaf): Define using libm_alias_float.
28436 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28437 (acosf): Define using libm_alias_float.
28438 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28439 (acoshf): Define using libm_alias_float.
28440 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28441 (asinf): Define using libm_alias_float.
28442 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28443 (atan2f): Define using libm_alias_float.
28444 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28445 (atanhf): Define using libm_alias_float.
28446 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28447 (coshf): Define using libm_alias_float.
28448 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28449 (exp10f): Define using libm_alias_float.
28450 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28451 (fmodf): Define using libm_alias_float.
28452 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28453 (hypotf): Define using libm_alias_float.
28454 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28455 (j0f): Define using libm_alias_float.
28456 (y0f): Likewise.
28457 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28458 (j1f): Define using libm_alias_float.
28459 (y1f): Likewise.
28460 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28461 (jnf): Define using libm_alias_float.
28462 (ynf): Likewise.
28463 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28464 (log10f): Define using libm_alias_float.
28465 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28466 (log2f): Define using libm_alias_float.
28467 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28468 (logf): Define using libm_alias_float.
28469 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28470 (powf): Define using libm_alias_float.
28471 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28472 (remainderf): Define using libm_alias_float.
28473 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28474 (sinhf): Define using libm_alias_float.
28475 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28476 (sqrtf): Define using libm_alias_float.
28477 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28478 (tgammaf): Define using libm_alias_float.
28479
28480 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28481
28482 * include/math.h (roundeven): Change hidden_proto call to
28483 __roundeven.
28484 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28485 alias.
28486 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28487 (y0): Rename to __y0 and define as weak alias.
28488 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28489 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28490 alias.
28491 (y0f): Rename to __y0f and define as weak alias.
28492 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28493 alias.
28494 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28495 (y1): Rename to __y1 and define as weak alias.
28496 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28497 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28498 alias.
28499 (y1f): Rename to __y1f and define as weak alias.
28500 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28501 alias.
28502 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28503 (yn): Rename to __yn and define as weak alias.
28504 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28505 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28506 alias.
28507 (ynf): Rename to __ynf and define as weak alias.
28508 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28509 (fromfp): Define as weak alias.
28510 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28511 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28512 (fromfpx): Define as weak alias.
28513 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28514 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28515 __getpayload and define as weak alias.
28516 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28517 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28518 __roundeven and define as weak alias.
28519 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28520 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28521 __setpayload.
28522 (setpayload): Define as weak alias.
28523 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28524 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28525 __setpayloadsig.
28526 (setpayloadsig): Define as weak alias.
28527 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28528 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28529 __totalorder and define as weak alias.
28530 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28531 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28532 to __totalordermag and define as weak alias.
28533 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28534 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28535 (ufromfp): Define as weak alias.
28536 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28537 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28538 __ufromfpx.
28539 (ufromfpx): Define as weak alias.
28540 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28541 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28542 Rename to __getpayload and define as weak alias.
28543 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28544 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28545 Rename to __roundeven and define as weak alias.
28546 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28547 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28548 Rename to __totalorder and define as weak alias.
28549 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28550 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28551 (totalordermag): Rename to __totalordermag and define as weak
28552 alias.
28553 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28554 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28555 macro.
28556 (__roundevenl): Likewise.
28557 (__totalorderl): Likewise.
28558 (__totalordermagl): Likewise
28559 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28560 __fromfpf128.
28561 (fromfpf128): Define as weak alias.
28562 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28563 __fromfpxf128.
28564 (fromfpxf128): Define as weak alias.
28565 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28566 __setpayloadf128.
28567 (setpayloadf128): Define as weak alias.
28568 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28569 __setpayloadsigf128.
28570 (setpayloadsigf128): Define as weak alias.
28571 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28572 __ufromfpf128.
28573 (ufromfpf128): Define as weak alias.
28574 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28575 __ufromfpxf128.
28576 (ufromfpxf128): Define as weak alias.
28577 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28578 (fromfpf): Define as weak alias.
28579 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28580 __fromfpxf.
28581 (fromfpxf): Define as weak alias.
28582 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28583 __getpayloadf and define as weak alias.
28584 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28585 __roundevenf and define as weak alias.
28586 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28587 __setpayloadf.
28588 (setpayloadf): Define as weak alias.
28589 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28590 __setpayloadsigf.
28591 (setpayloadsigf): Define as weak alias.
28592 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28593 __totalorderf and define as weak alias.
28594 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28595 Rename to __totalordermagf and define as weak alias.
28596 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28597 __ufromfpf.
28598 (ufromfpf): Define as weak alias.
28599 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28600 __ufromfpxf.
28601 (ufromfpxf): Define as weak alias.
28602 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28603 __fromfpl.
28604 (fromfpl): Define as weak alias.
28605 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28606 __fromfpxl.
28607 (fromfpxl): Define as weak alias.
28608 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28609 to __getpayloadl and define as weak alias.
28610 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28611 __roundevenl and define as weak alias.
28612 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28613 __setpayloadl.
28614 (setpayloadl): Define as weak alias.
28615 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28616 __setpayloadsigl.
28617 (setpayloadsigl): Define as weak alias.
28618 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28619 to __totalorderl and define as weak alias.
28620 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28621 Rename to __totalordermagl and define as weak alias.
28622 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28623 __ufromfpl.
28624 (ufromfpl): Define as weak alias.
28625 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28626 __ufromfpxl.
28627 (ufromfpxl): Define as weak alias.
28628 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28629 __fromfpl.
28630 (fromfpl): Define as weak alias.
28631 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28632 __fromfpxl.
28633 (fromfpxl): Define as weak alias.
28634 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28635 Rename to __getpayloadl and define as weak alias.
28636 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28637 to __roundevenl and define as weak alias. Call __roundeven
28638 instead of roundeven.
28639 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28640 __setpayloadl.
28641 (setpayloadl): Define as weak alias.
28642 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28643 __setpayloadsigl.
28644 (setpayloadsigl): Define as weak alias.
28645 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28646 Rename to __totalorderl and define as weak alias.
28647 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28648 Rename to __totalordermagl and define as weak alias.
28649 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28650 __ufromfpl.
28651 (ufromfpl): Define as weak alias.
28652 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28653 __ufromfpxl.
28654 (ufromfpxl): Define as weak alias.
28655 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28656 __fromfpl.
28657 (fromfpl): Define as weak alias.
28658 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28659 __fromfpxl.
28660 (fromfpxl): Define as weak alias.
28661 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28662 __getpayloadl and define as weak alias.
28663 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28664 __roundevenl and define as weak alias.
28665 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28666 __setpayloadl.
28667 (setpayloadl): Define as weak alias.
28668 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28669 __setpayloadsigl.
28670 (setpayloadsigl): Define as weak alias.
28671 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28672 __totalorderl and define as weak alias.
28673 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28674 Rename to __totalordermagl and define as weak alias.
28675 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28676 __ufromfpl.
28677 (ufromfpl): Define as weak alias.
28678 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28679 __ufromfpxl.
28680 (ufromfpxl): Define as weak alias.
28681
28682 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28683
28684 * benchtests/bench-string.h (realloc_bufs): New function.
28685 (test_init): Call it.
28686 * benchtests/bench-memset-large.c (do_test): Likewise.
28687 * benchtests/bench-memset.c (do_test): Likewise.
28688
28689 * benchtests/bench-memset-large.c: Print output in JSON
28690 format.
28691 * benchtests/bench-memset.c: Likewise.
28692
28693 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28694
28695 [BZ #21084]
28696 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28697 * iconvdata/Makefile: Add IBM858.
28698 * iconvdata/gconv-modules: Likewise.
28699 * iconvdata/tst-tables.sh: Likewise.
28700 * iconvdata/ibm858.c: New file.
28701 * localedata/charmaps/IBM858: Likewise.
28702
28703 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28704
28705 [BZ #22023]
28706 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28707 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28708
28709 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28710
28711 [BZ #22112]
28712 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28713 and add tel_int_fmt.
28714
28715 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28716
28717 * sysdeps/generic/libm-alias-float128.h: New file.
28718 * sysdeps/generic/math-type-macros-float128.h: Include
28719 <libm-alias-float128.h>.
28720 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28721
28722 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28723
28724 * sysdeps/generic/libm-alias-ldouble.h: New file.
28725 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28726 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28727 * sysdeps/generic/math-type-macros-ldouble.h: Include
28728 <libm-alias-ldouble.h>.
28729 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28730 libm_alias_ldouble.
28731
28732 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28733
28734 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28735 * math/w_exp_compat.c: ... here.
28736 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28737 * math/w_expf_compat.c: ... here.
28738 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28739 * math/w_expl_compat.c: ... here.
28740 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28741 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28742 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28743 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28744
28745 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28746
28747 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28748 redefine.
28749 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28750 macro.
28751 (ldexpl): Only define as compat symbol for libc, not libm.
28752 (scalbnl): Define as compat symbol for libc here.
28753 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28754 define for [IS_IN (libc)].
28755 (__ldexpl_2): Remove alias.
28756 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28757 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28758 name in long_double_symbol call.
28759 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28760 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28761 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28762 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28763 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28764 Remove macro.
28765 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28766 Define as compat symbol.
28767
28768 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28769
28770 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28771 * sysdeps/unix/sysv/linux/alpha/Makefile
28772 [$(subdir) = csu] (sysdep_routines): Remove rule.
28773
28774 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28775
28776 * sysdeps/generic/libm-alias-double.h: New file.
28777 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28778 * sysdeps/generic/math-type-macros-double.h: Include
28779 <libm-alias-double.h>.
28780 [declare_mgen_alias] (declare_mgen_alias): Define to use
28781 libm_alias_double.
28782 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28783 (M_LIBM_NEED_COMPAT): Remove macro.
28784 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28785 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28786 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28787 code.
28788 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28789 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28790 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28791 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28792 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28793 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28794 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28795 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28796 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28797 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28798 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28799 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28800 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28801 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28802 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28803 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28804 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28805 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28806 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28807 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28808 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28809 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28810 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28811 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28812 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28813 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28814 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28815 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28816 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28817 macro.
28818 (declare_mgen_alias): New macro.
28819 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28820 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28822 (M_LIBM_NEED_COMPAT): Remove macro.
28823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28824 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28825 <first-versions.h>.
28826 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28827 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28828
28829 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28830
28831 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28832 (declare_mgen_alias_2): Remove.
28833 * sysdeps/generic/math-type-macros-double.h
28834 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28835 Likewise.
28836 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28837 alias.
28838 (ldexp): Define with declare_mgen_alias.
28839 (scalbn): Likewise.
28840
28841 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28842
28843 * grp/initgroups.c: Include config.h.
28844 (DEFAULT_CONFIG): New macro.
28845 (internal_getgrouplist): Use DEFAULT_CONFIG.
28846 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28847 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28848 (DEFAULT_DEFCONFIG): New macro.
28849 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28850 * nss/grp-lookup.c: Include config.h
28851 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28852 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28853 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28854 * manual/nss.texi: Update default values section.
28855
28856 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28857
28858 [BZ #21967]
28859 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28860 New.
28861 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28862 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28863 Handle MathVec_Prefer_No_AVX512.
28864 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28865 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28866 is set.
28867
28868 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28869
28870 * posix/sched_primax.c (__sched_get_priority_max): Add
28871 libc_hidden_def.
28872 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28873 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28874 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28875 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28876 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28877 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28878 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28879 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28880 Add aliases.
28881
28882 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28883
28884 * sysdeps/generic/libm-alias-float.h: New file.
28885 * sysdeps/generic/math-type-macros-float.h: Include
28886 <libm-alias-float.h>.
28887 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28888
28889 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28890
28891 [BZ #22093]
28892 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28893 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28894 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28895 (HWCAP_IMPORTANT): Likewise.
28896 (HWCAP_X86_64): New enum.
28897 (HWCAP_X86_AVX512_1): Updated.
28898 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28899 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28900 (modules-names): Add x86_64/tst-x86_64mod-1.
28901 (LDFLAGS-tst-x86_64mod-1.so): New.
28902 ($(objpfx)tst-x86_64-1): Likewise.
28903 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28904 (tst-x86_64-1-clean): Likewise.
28905 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28906 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28907
28908 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28909
28910 * po/sv.po: Update translations.
28911 * po/fr.po: Likewise.
28912
28913 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28914
28915 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28916 seconds.
28917 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28918 seconds.
28919 * elf/rtld-Rules: Fix $(error) use.
28920
28921 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28922
28923 [BZ #14925]
28924 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28925 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28926 * localedata/locales/bn_BD: “Bengali” was still used in some
28927 comments. Change it to “Bangla”.
28928
28929 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28930
28931 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28932
28933 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28934
28935 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28936 thunderx2t99p1 to list of cpu names.
28937 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28938 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28939
28940 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28941
28942 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28943 Use strcmp instead of tunable_is_name.
28944
28945 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28946
28947 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28948 (F_GET_RW_HINT): New macro.
28949 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28950 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28951 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28952 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28953 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28954 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28955 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28956 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28957 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28958
28959 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28960 (F_ADD_SEALS): New macro.
28961 [__USE_GNU] (F_GET_SEALS): Likewise.
28962 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28963 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28964 [__USE_GNU] (F_SEAL_GROW): Likewise.
28965 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28966
28967 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28968
28969 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28970 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28971 * posix/glob_internal.h (__glob_pattern_type):
28972 * posix/glob.c (glob):
28973 * posix/glob_pattern_p.c (__glob_pattern_p):
28974 Use them.
28975
28976 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28977 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28978 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28979 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28980 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28982 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28983 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28984 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28985 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28986 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28987 * sysdeps/wordsize-64/glob.c: Likewise.
28988 * sysdeps/wordsize-64/glob64.c: Likewise.
28989 * sysdeps/wordsize-64/globfree.c: Likewise.
28990 * sysdeps/wordsize-64/globfree64.c: Likewise.
28991 * sysdeps/unix/sysv/linux/glob.c: New file.
28992 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28993 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28994 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28995 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28996 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28997 adds !GLOB_NO_OLD_VERSION as an extra condition.
28998 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28999 using relative path instead of absolute one.
29000 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
29001 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29002 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29003 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
29004 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
29005 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
29006
29007 [BZ #1062]
29008 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
29009 (glob): Use the same scratch buffer for both getlogin_r and
29010 getpwnam_r. Don’t require preallocation of the login name. This
29011 simplifies storage allocation, and corrects the handling of
29012 long login names.
29013
29014 [BZ #1062]
29015 * posix/glob.c (glob): Port recent patches to platforms
29016 lacking getpwnam_r.
29017 (glob): Fix longstanding misuse of errno after getpwnam_r, which
29018 returns an error number rather than setting errno.
29019
29020 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
29021 instead of GCC extension.
29022 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
29023 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
29024 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
29025
29026 [BZ #866]
29027 [BZ #1062]
29028 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
29029 * posix/bug-glob1.c: Remove file.
29030 * posix/tst-glob_symlinks.c: New file.
29031 * posix/glob.c (__lstat64): New macro.
29032 (is_dir): New function.
29033 (glob, glob_in_dir): Match symlinks even if they are dangling.
29034 (link_stat, link_exists_p): Remove. All uses removed.
29035
29036 [BZ #1062]
29037 [BZ #19971]
29038 * posix/glob.c (struct readdir_result): Remove skip_entry member.
29039 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29040 All uses removed.
29041
29042 [BZ #1062]
29043 CVE-2017-15671
29044 * posix/Makefile (routines): Add globfree, globfree64, and
29045 glob_pattern_p.
29046 * posix/flexmember.h: New file.
29047 * posix/glob_internal.h: Likewise.
29048 * posix/glob_pattern_p.c: Likewise.
29049 * posix/globfree.c: Likewise.
29050 * posix/globfree64.c: Likewise.
29051 * sysdeps/gnu/globfree64.c: Likewise.
29052 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29053 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29054 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29055 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29056 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29057 * sysdeps/wordsize-64/globfree.c: Likewise.
29058 * sysdeps/wordsize-64/globfree64.c: Likewise.
29059 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29060 [NDEBUG): Remove comments.
29061 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29062 (dirent_type): New type. Use uint_fast8_t not
29063 uint8_t, as C99 does not require uint8_t.
29064 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29065 (struct readdir_result): Use dirent_type. Do not define skip_entry
29066 unless it is needed; this saves a byte on platforms lacking d_ino.
29067 (readdir_result_type, readdir_result_skip_entry):
29068 New functions, replacing ...
29069 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29070 these functions, which were removed. This makes the callers
29071 easier to read. All callers changed.
29072 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29073 (size_add_wrapv, glob_use_alloca): New static functions.
29074 (glob, glob_in_dir): Check for size_t overflow in several places,
29075 and fix some size_t checks that were not quite right.
29076 Remove old code using SHELL since Bash no longer
29077 uses this.
29078 (glob, prefix_array): Separate MS code better.
29079 (glob_in_dir): Remove old Amiga and VMS code.
29080 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29081 separate files.
29082 (glob_in_dir): Do not rely on undefined behavior in accessing
29083 struct members beyond their bounds. Use a flexible array member
29084 instead
29085 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29086 0/1. Caller changed.
29087 (glob): Fix memory leaks.
29088 * posix/glob64 (globfree64): Move to separate file.
29089 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29090 (globfree64): Remove hidden alias.
29091 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29092 oldglob.
29093 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29094 separate file.
29095 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29096 define.
29097 Move compat code to separate file.
29098 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29099 separate file.
29100
29101 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29102
29103 * resolv/tst-resolv-qtypes.c (domain): Changed to
29104 "const char domain[] =".
29105
29106 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29107
29108 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29109 version to 3.1.6.
29110
29111 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29112 (TCP_MD5SIG_EXT): Likewise.
29113 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29114 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29115 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29116
29117 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29118
29119 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29120
29121 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29122
29123 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29124
29125 [BZ #22100]
29126 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29127
29128 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29129
29130 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29131 before assuming that the file is empty. Avoid testing buffer content
29132 when nread == 0.
29133
29134 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29135
29136 [BZ #18858]
29137 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29138 Remove define.
29139 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29140 Likewise.
29141 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29142 Likewise.
29143 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29144 Likewise.
29145 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29146 Likewise.
29147 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29148 Likewise.
29149 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29150 Likewise.
29151
29152 2017-09-06 Florian Weimer <fweimer@redhat.com>
29153
29154 * malloc/dynarray_emplace_enlarge.c
29155 (__libc_dynarray_emplace_enlarge): Add missing else.
29156
29157 2017-09-06 Florian Weimer <fweimer@redhat.com>
29158
29159 [BZ #22096]
29160 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29161 case of failure to obtain the global conf object.
29162
29163 2017-09-06 Florian Weimer <fweimer@redhat.com>
29164
29165 [BZ #22095]
29166 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29167 dynarray allocation failure.
29168
29169 2017-09-06 Florian Weimer <fweimer@redhat.com>
29170
29171 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29172 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29173 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29174 New functions.
29175 (response): Call them. Add 'p', '6' flag processing.
29176 (test_reverse): New function.
29177 (test_get2_any): Call it.
29178 (test_no_inet6): Add 'p' test.
29179 (test_inet6): Likewise.
29180
29181 2017-09-06 Florian Weimer <fweimer@redhat.com>
29182
29183 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29184 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29185 the QNAME.
29186 (test_gai): Adjust query names. Add additional tests.
29187 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29188 test_get2. Adjust query names. Add additional tests.
29189 (test_no_inet6): New function, extracted from threadfunc.
29190 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29191 Add additional tests.
29192
29193 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29194
29195 [BZ #22070]
29196 * localedata/unicode-gen/utf8_gen.py: Set the width for
29197 characters with Prepended_Concatenation_Mark property to 1
29198 * localedata/charmaps/UTF-8: Updated using the improved script.
29199
29200 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29201
29202 [BZ #21750]
29203 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29204 use the range notation for all ranges of neighbouring characters
29205 with the same width.
29206
29207 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29208
29209 * sysdeps/generic/math-type-macros-double.h: Include
29210 <math-svid-compat.h>.
29211 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29212 * sysdeps/generic/math-type-macros-float.h: Include
29213 <math-svid-compat.h>.
29214 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29215 * sysdeps/generic/math-type-macros-ldouble.h: Include
29216 <math-svid-compat.h>.
29217 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29218 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29219 condition.
29220 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29221 * math/w_acosf_compat.c: Likewise.
29222 * math/w_acosh_compat.c: Likewise.
29223 * math/w_acoshf_compat.c: Likewise.
29224 * math/w_acoshl_compat.c: Likewise.
29225 * math/w_acosl_compat.c: Likewise.
29226 * math/w_asin_compat.c: Likewise.
29227 * math/w_asinf_compat.c: Likewise.
29228 * math/w_asinl_compat.c: Likewise.
29229 * math/w_atan2_compat.c: Likewise.
29230 * math/w_atan2f_compat.c: Likewise.
29231 * math/w_atan2l_compat.c: Likewise.
29232 * math/w_atanh_compat.c: Likewise.
29233 * math/w_atanhf_compat.c: Likewise.
29234 * math/w_atanhl_compat.c: Likewise.
29235 * math/w_cosh_compat.c: Likewise.
29236 * math/w_coshf_compat.c: Likewise.
29237 * math/w_coshl_compat.c: Likewise.
29238 * math/w_exp10_compat.c: Likewise.
29239 * math/w_exp10f_compat.c: Likewise.
29240 * math/w_exp10l_compat.c: Likewise.
29241 * math/w_exp2_compat.c: Likewise.
29242 * math/w_exp2f_compat.c: Likewise.
29243 * math/w_exp2l_compat.c: Likewise.
29244 * math/w_fmod_compat.c: Likewise.
29245 * math/w_fmodf_compat.c: Likewise.
29246 * math/w_fmodl_compat.c: Likewise.
29247 * math/w_hypot_compat.c: Likewise.
29248 * math/w_hypotf_compat.c: Likewise.
29249 * math/w_hypotl_compat.c: Likewise.
29250 * math/w_j0_compat.c: Likewise.
29251 * math/w_j0f_compat.c: Likewise.
29252 * math/w_j0l_compat.c: Likewise.
29253 * math/w_j1_compat.c: Likewise.
29254 * math/w_j1f_compat.c: Likewise.
29255 * math/w_j1l_compat.c: Likewise.
29256 * math/w_jn_compat.c: Likewise.
29257 * math/w_jnf_compat.c: Likewise.
29258 * math/w_jnl_compat.c: Likewise.
29259 * math/w_lgamma_r_compat.c: Likewise.
29260 * math/w_lgammaf_r_compat.c: Likewise.
29261 * math/w_lgammal_r_compat.c: Likewise.
29262 * math/w_log10_compat.c: Likewise.
29263 * math/w_log10f_compat.c: Likewise.
29264 * math/w_log10l_compat.c: Likewise.
29265 * math/w_log2_compat.c: Likewise.
29266 * math/w_log2f_compat.c: Likewise.
29267 * math/w_log2l_compat.c: Likewise.
29268 * math/w_log_compat.c: Likewise.
29269 * math/w_logf_compat.c: Likewise.
29270 * math/w_logl_compat.c: Likewise.
29271 * math/w_pow_compat.c: Likewise.
29272 * math/w_powf_compat.c: Likewise.
29273 * math/w_powl_compat.c: Likewise.
29274 * math/w_remainder_compat.c: Likewise.
29275 * math/w_remainderf_compat.c: Likewise.
29276 * math/w_remainderl_compat.c: Likewise.
29277 * math/w_sinh_compat.c: Likewise.
29278 * math/w_sinhf_compat.c: Likewise.
29279 * math/w_sinhl_compat.c: Likewise.
29280 * math/w_sqrt_compat.c: Likewise.
29281 * math/w_sqrtf_compat.c: Likewise.
29282 * math/w_sqrtl_compat.c: Likewise.
29283 * math/w_tgamma_compat.c: Likewise.
29284 * math/w_tgammaf_compat.c: Likewise.
29285 * math/w_tgammal_compat.c: Likewise.
29286 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29287 [LIBM_SVID_COMPAT].
29288 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29289 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29290 [LIBM_SVID_COMPAT].
29291 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29292 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29293 [LIBM_SVID_COMPAT].
29294 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29295 * sysdeps/i386/fpu/w_sqrt.c: New file.
29296 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29297 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29298 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29299 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29300 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29301 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29302 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29303 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29304 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29305 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29306 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29307 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29308 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29309 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29310 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29311 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29312 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29313 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29314 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29315 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29316 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29317 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29318 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29319 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29320 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29321 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29322 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29323 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29324 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29325 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29326 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29327 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29328 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29329 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29330 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29331 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29332 * sysdeps/ia64/fpu/w_log.c: Likewise.
29333 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29334 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29335 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29336 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29337 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29338 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29339 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29340 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29341 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29342 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29343 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29344 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29345 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29346 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29347 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29348 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29349 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29350 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29351 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29352 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29353 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29354 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29355 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29356 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29357 [LIBM_SVID_COMPAT].
29358 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29359 * sysdeps/ieee754/k_standard.c: Likewise.
29360 * sysdeps/ieee754/k_standardf.c: Likewise.
29361 * sysdeps/ieee754/k_standardl.c: Likewise.
29362 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29363 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29364 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29365 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29366 long_double_symbol call on [LIBM_SVID_COMPAT].
29367 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29368 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29369 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29370 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29371 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29372 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29373 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29374 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29375 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29376 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29377 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29378 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29379 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29380 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29381 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29382 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29383 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29384 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29385 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29386 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29387 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29388 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29389
29390 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29391
29392 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29393 * malloc/tst-mallocstate.c: Convert from test-skeleton
29394 to test-driver. Ifdef code using TEST_COMPAT macro.
29395 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29396 * math/test-matherr.c: Likewise.
29397
29398 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29399
29400 [BZ #22086]
29401 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29402 comparing word with byte-swapped constant.
29403
29404 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29405
29406 [BZ #20498]
29407 * locale/iso-639.def: add Miskito.
29408 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29409 * localedata/locales/miq_NI: New file.
29410
29411 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29412
29413 [BZ #18822]
29414 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29415 (__mkdir): Likewise.
29416 * io/chmod.c (__chmod): Add libc_hidden_def.
29417 * io/mkdir.c (__mkdir): Likewise.
29418 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29419 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29420 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29421 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29422
29423 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29424
29425 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29426 version to 4.13.
29427
29428 [BZ #22082]
29429 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29430 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29431
29432 2017-09-04 Florian Weimer <fweimer@redhat.com>
29433
29434 * math/math.h: Issue warning if log is defined.
29435
29436 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29437
29438 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29439 kernel version to 4.13.
29440
29441 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29442
29443 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29444 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29445 parameter.
29446 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29447 just <bits/types.h>.
29448 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29449 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29450 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29451 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29452 * misc/preadv2.c: Include <errno.h>.
29453 * misc/preadv64v2.c: Include <errno.h>.
29454 * misc/pwritev2.c: Include <errno.h>.
29455 * misc/pwritev64v2.c: Include <errno.h>.
29456 * sysdeps/posix/preadv2.c: Include <errno.h>.
29457 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29458 Fix <unistd.h> inclusion.
29459 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29460 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29461 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29462 __strtoul_internal): New functions.
29463 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29464 * sysdeps/posix/system.c: Include <sigsetops.h>.
29465 * sysdeps/mach/hurd/i386/Makefile
29466 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29467 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29468 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29469 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29470 __feraiseexcept_renamed to feraiseexcept instead of
29471 __GI_feraiseexcept.
29472 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29473 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29474 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29475 RWF_NOWAIT): Define to 0 if undefined already.
29476 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29477 boils down to 0.
29478 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29479 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29480
29481 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29482
29483 * manual/math.texi (pow10): Do not document.
29484 (pow10f): Likewise.
29485 (pow10l): Likewise.
29486 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29487 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29488 * math/libm-test-exp10.inc (pow10_test): Remove.
29489 (do_test): Do not call pow10.
29490 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29491 [NO_LONG_DOUBLE] (pow10l): Likewise.
29492 * math/w_exp10f_compat.c (pow10f): Likewise.
29493 * math/w_exp10l_compat.c (pow10l): Likewise.
29494 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29495 (pow10): Make into compat symbol.
29496 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29497 (pow10f): Make into compat symbol.
29498 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29499 (pow10l): Make into compat symbol.
29500 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29501 pow10.
29502 (CFLAGS-nldbl-pow10.c): Remove variable..
29503 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29504 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29505 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29506 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29507 Undefine and redefine.
29508 (pow10l): Make into compat symbol.
29509 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29510 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29511 * sysdeps/arm/libm-test-ulps: Likewise.
29512 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29513 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29514 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29515 * sysdeps/microblaze/libm-test-ulps: Likewise.
29516 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29517 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29518 * sysdeps/nios2/libm-test-ulps: Likewise.
29519 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29520 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29521 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29522 * sysdeps/sh/libm-test-ulps: Likewise.
29523 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29524 * sysdeps/tile/libm-test-ulps: Likewise.
29525 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29526
29527 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29528
29529 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29530
29531 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29532
29533 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29534 "../ChangeLog.old/ChangeLog.8".
29535 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29536 "../ChangeLog.old/ChangeLog.14".
29537
29538 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29539
29540 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29541 Threads Library.
29542
29543 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29544
29545 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29546
29547 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29548
29549 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29550 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29551
29552 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29553
29554 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29555 32 atexit handlers.
29556
29557 2017-09-01 Zack Weinberg <zackw@panix.com>
29558
29559 * math/math.h (HUGE_VAL): Improve commentary.
29560
29561 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29562 Andreas Schwab <schwab@suse.de>
29563
29564 [BZ #21530]
29565 * include/stdio.h (__gen_tempfd): New function.
29566 * stdio-common/Makefile (routines): Add gentempfd.
29567 * stdio-common/gentempfd.c: New file.
29568 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29569 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29570 unnamed file first.
29571
29572 2017-09-01 Florian Weimer <fweimer@redhat.com>
29573
29574 [BZ #21915]
29575 [BZ #21922]
29576 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29577 result to determine success or failure, not the errno value.
29578 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29579 (tst-nss-files-hosts-erange): Link with -ldl.
29580 * nss/tst-nss-files-hosts-erange.c: New file.
29581 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29582 (do_test): Add NO_DATA tests.
29583 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29584 (do_test): Call it.
29585
29586 2017-09-01 Florian Weimer <fweimer@redhat.com>
29587
29588 [BZ #21922]
29589 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29590 coming from gethostbyname2_r.
29591
29592 2017-09-01 Florian Weimer <fweimer@redhat.com>
29593
29594 * support/namespace.h (struct support_chroot_configuration): Add
29595 hosts, host_conf.
29596 (struct support_chroot): Add path_hosts, path_host_conf.
29597 * support/support_chroot.c (write_file): New function.
29598 (support_chroot_create): Call it to process /etc/resolv.conf,
29599 /etc/hosts, /etc/host.conf.
29600 (support_chroot_free): Update.
29601
29602 2017-09-01 Florian Weimer <fweimer@redhat.com>
29603
29604 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29605 status indicates it is set.
29606
29607 2017-09-01 Florian Weimer <fweimer@redhat.com>
29608
29609 [BZ #20532]
29610 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29611 function lookup failures more reliable.
29612
29613 2017-09-01 Florian Weimer <fweimer@redhat.com>
29614
29615 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29616 (getcanonname): Likewise.
29617 (gaih_inet): Likewise.
29618
29619 2017-09-01 Florian Weimer <fweimer@redhat.com>
29620
29621 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29622 (getcanonname): Likewise.
29623 (gaih_inet): Likewise.
29624
29625 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29626 Richard Henderson <rth@twiddle.net>
29627
29628 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29629 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29630 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29631 (IREG_SIZE, OREG_SIZE): New macros.
29632 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29633 (IREG_SIZE, OREG_SIZE): New macros.
29634 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29635 (IREG_SIZE): New macro.
29636 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29637 (IREG_SIZE): New macro.
29638 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29639 New includes.
29640 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29641 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29642 (__CONCATX): Handle exceptions correctly on large values that may
29643 set FE_INVALID.
29644 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29645 Initialize if not already set.
29646 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29647
29648 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29649
29650 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29651 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29652 Likewise.
29653 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29654 Likewise.
29655 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29656 Likewise.
29657 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29658 Likewise.
29659 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29660 Likewise.
29661 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29662 Likewise.
29663 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29664 Likewise.
29665 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29666 (NO_CANCELLATION): Likewise.
29667 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29668 Likewise.
29669 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29670 Likewise.
29671 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29672 Likewise.
29673 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29674 (NO_CANCELLATION): Likewise.
29675 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29676 (NO_CANCELLATION): Likewise.
29677 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29678 Likewise
29679 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29680 Likewise.
29681 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29682 Likewise.
29683 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29684 Likewise.
29685 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29686 hidden prototype.
29687 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29688 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29689
29690 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29691
29692 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29693 in resolver call.
29694
29695 2017-08-31 Florian Weimer <fweimer@redhat.com>
29696
29697 * include/libc-symbols.h (internal_function): Remove.
29698
29699 2017-08-31 Florian Weimer <fweimer@redhat.com>
29700
29701 * stdlib/fmtmsg.c (internal_addseverity): Remove
29702 internal_function.
29703
29704 2017-08-31 Florian Weimer <fweimer@redhat.com>
29705
29706 * stdio-common/printf_fp.c (group_number): Remove
29707 internal_function.
29708 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29709
29710 2017-08-31 Florian Weimer <fweimer@redhat.com>
29711
29712 * posix/fnmatch.c (internal_function): Remove definition.
29713 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29714 * posix/regcomp.c (peek_token, init_word_char)
29715 (duplicate_node_closure, fetch_token, peek_token)
29716 (peek_token_bracket, build_range_exp, build_collating_symbol):
29717 Likewise.
29718 * posix/regex_internal.c (re_string_construct_common)
29719 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29720 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29721 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29722 (re_string_translate_buffer, re_string_reconstruct)
29723 (re_string_peek_byte_case, re_string_fetch_byte_case)
29724 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29725 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29726 (re_node_set_add_intersect, re_node_set_init_union)
29727 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29728 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29729 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29730 (re_acquire_state_context): Likewise.
29731 * posix/regex_internal.h (internal_function): Remove definition.
29732 (re_string_realloc_buffers, build_wcs_buffer)
29733 (build_wcs_upper_buffer, build_upper_buffer)
29734 (re_string_translate_buffer, re_string_context_at)
29735 (re_string_char_size_at, re_string_wchar_at)
29736 (re_string_elem_size_at): Likewise.
29737 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29738 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29739 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29740 (re_search_internal, re_search_2_stub, re_search_stub)
29741 (re_copy_regs, prune_impossible_nodes, check_matching)
29742 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29743 (free_fail_stack_return, sift_states_iter_mb)
29744 (sift_states_backward, build_sifted_states)
29745 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29746 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29747 (check_subexp_limits, sift_states_bkref, merge_state_array)
29748 (find_recover_state, transit_state, merge_state_with_log)
29749 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29750 (transit_state_mb, transit_state_bkref, get_subexp)
29751 (get_subexp_sub, find_subexp_node, check_arrival)
29752 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29753 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29754 (check_node_accept_bytes, find_collation_sequence_value)
29755 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29756 (acquire_init_state_context, check_halt_node_context)
29757 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29758 (sub_epsilon_src_nodes): Likewise.
29759 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29760 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29761 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29762 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29763 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29764 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29765 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29766 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29767 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29768 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29769 (PREADV): Likewise.
29770 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29771 (PREADV): Likewise.
29772 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29773 (PWRITEV): Likewise.
29774 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29775 (PWRITEV): Likewise.
29776 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29777 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29778
29779 2017-08-31 Florian Weimer <fweimer@redhat.com>
29780
29781 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29782 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29783 Remove internal_function.
29784 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29785 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29786 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29787 (__deallocate_stack, __libc_pthread_init)
29788 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29789 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29790 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29791 Likewise.
29792 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29793 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29794 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29795 Likewise.
29796 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29797 (__pthread_mutex_unlock_usercnt): Likewise.
29798
29799 2017-08-31 Florian Weimer <fweimer@redhat.com>
29800
29801 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29802 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29803 (fts_safe_changedir): Remove internal_function.
29804 * io/ftw.c (internal_function): Remove definition.
29805 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29806
29807 2017-08-31 Florian Weimer <fweimer@redhat.com>
29808
29809 * inet/deadline.c (__deadline_current_time)
29810 (__deadline_from_timeval, __deadline_to_ms): Remove
29811 internal_function.
29812 * inet/getnameinfo.c (nrl_domainname): Likewise.
29813 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29814 * inet/inet6_option.c (add_pad): Likewise.
29815 * inet/net-internal.h (__deadline_current_time)
29816 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29817 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29818 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29819 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29820
29821 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29822
29823 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29824 include <bits/nan.h>.
29825 * math/Makefile (headers): Remove bits/nan.h.
29826 * bits/nan.h: Remove.
29827 * sysdeps/ieee754/bits/nan.h: Likewise.
29828 * sysdeps/mips/bits/nan.h: Likewise.
29829
29830 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29831 not include <bits/inf.h>.
29832 * math/Makefile (headers): Remove bits/inf.h.
29833 * bits/inf.h: Remove.
29834 * sysdeps/ieee754/bits/inf.h: Likewise.
29835
29836 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29837 bits/huge_vall.h or bits/huge_val_flt128.h.
29838 (HUGE_VAL): Define directly here.
29839 [__USE_ISOC99] (HUGE_VALF): Likewise.
29840 [__USE_ISOC99] (HUGE_VALL): Likewise.
29841 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29842 (HUGE_VAL_F128): Likewise.
29843 * math/Makefile (headers): Remove bits/huge_val.h,
29844 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29845 * bits/huge_val.h: Remove.
29846 * bits/huge_val_flt128.h: Likewise.
29847 * bits/huge_valf.h: Likewise.
29848 * bits/huge_vall.h: Likewise.
29849 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29850 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29851 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29852 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29853 * sysdeps/sh/bits/huge_val.h: Likewise.
29854 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29855 * sysdeps/x86/bits/huge_vall.h: Likewise.
29856
29857 2017-08-31 Florian Weimer <fweimer@redhat.com>
29858
29859 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29860 internal_function.
29861 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29862 Likewise.
29863 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29864 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29865 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29866 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29867 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29868 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29869 * elf/dl-libc.c (dlerror_run): Likewise.
29870 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29871 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29872 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29873 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29874 Likewise.
29875 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29876 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29877 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29878 * elf/dl-profile.c (_dl_start_profile): Likewise.
29879 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29880 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29881 Likewise.
29882 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29883 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29884 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29885 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29886 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29887 (_dl_allocate_tls_storage): Likewise.
29888 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29889 (_dl_check_all_versions): Likewise.
29890 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29891 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29892 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29893 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29894 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29895 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29896 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29897 internal_function from __dl_start.
29898 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29899 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29900 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29901 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29902 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29903 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29904 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29905 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29906 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29907 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29908 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29909 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29910 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29911 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29912 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29913 Likewise.
29914 (struct rtld_global_ro): Remove internal_function from the
29915 _dl_lookup_symbol_x member.
29916 (_dl_symbol_value): Remove. No longer defined anywhere.
29917 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29918 internal_function.
29919 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29920 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29921 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29922 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29923 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29924 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29925 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29926 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29927 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29928 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29929 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29930 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29931
29932 2017-08-31 Florian Weimer <fweimer@redhat.com>
29933
29934 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29935 Remove internal_function.
29936 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29937 Likewise.
29938 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29939 Likewise.
29940
29941 2017-08-31 Florian Weimer <fweimer@redhat.com>
29942
29943 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29944 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29945 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29946
29947 2017-08-31 Florian Weimer <fweimer@redhat.com>
29948
29949 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29950 (__gai_enqueue_request): Remove internal_function.
29951 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29952 (__gai_remove_request, __gai_notify, __gai_notify_only)
29953 (__gai_sigqueue): Likewise.
29954 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29955 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29956 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29957 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29958 Likewise.
29959
29960 2017-08-31 Florian Weimer <fweimer@redhat.com>
29961
29962 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29963 * include/dirent.h (__opendirat, __getdents, __getdents64)
29964 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29965 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29966 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29967 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29968 Likewise.
29969 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29970
29971 2017-08-31 Florian Weimer <fweimer@redhat.com>
29972
29973 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29974 internal_function.
29975 (GETCWD_RETURN_TYPE): Likewise.
29976
29977 2017-08-31 Florian Weimer <fweimer@redhat.com>
29978
29979 * include/time.h (__tz_compute, __strptime_internal): Remove
29980 internal_function.
29981 * time/strptime_l.c (__strptime_internal): Likewise.
29982 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29983
29984 2017-08-31 Florian Weimer <fweimer@redhat.com>
29985
29986 * iconv/gconv.c (__gconv): Remove internal_function.
29987 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29988 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29989 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29990 (__gconv_release_cache): Likewise.
29991 * iconv/gconv_close.c (__gconv_close): Likewise.
29992 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29993 (read_conf_file, __gconv_get_path): Likewise.
29994 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29995 (__gconv_release_step, gen_steps, increment_counter)
29996 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29997 (__gconv_close_transform, free_modules_db): Likewise.
29998 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29999 Likewise.
30000 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
30001 (__gconv_find_transform, __gconv_lookup_cache)
30002 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
30003 (__gconv_close_transform, __gconv_release_cache)
30004 (__gconv_loaded_object, __gconv_release_shlib)
30005 (__gconv_compare_alias): Likewise.
30006 * iconv/gconv_open.c (__gconv_open): Likewise.
30007 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
30008 * iconv/iconvconfig.c (add_module): Likewise.
30009 * intl/dcigettext.c (plural_lookup, guess_category_value)
30010 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
30011 * intl/eval-plural.h (plural_eval): Likewise.
30012 * intl/finddomain.c (_nl_find_domain): Likewise.
30013 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
30014 (_nl_load_domain, _nl_find_msg): Likewise.
30015 (internal_function): Remove definition.
30016 * intl/loadinfo.h (internal_function): Likewise.
30017 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
30018 internal_function.
30019 * intl/localealias.c (internal_function): Remove definition.
30020 (read_alias_file): Remove internal_function.
30021 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
30022 * intl/plural-exp.h (internal_function): Remove definition.
30023 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
30024 internal_function.
30025 * intl/plural.c: Regenerate.
30026 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
30027 * locale/coll-lookup.c (__collidx_table_lookup)
30028 (__collseq_table_lookup): Likewise.
30029 * locale/coll-lookup.h (__collidx_table_lookup)
30030 (__collseq_table_lookup): Likewise.
30031 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30032 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30033 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30034 (_nl_unload_locale): Likewise.
30035 * locale/localeinfo.h (struct __locale_data): Remove
30036 internal_function from cleanup member.
30037 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30038 (_nl_remove_locale, _nl_load_locale_from_archive)
30039 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30040 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30041 (_nl_cleanup_time): Remove internal_function.
30042 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30043 (_nl_parse_alt_digit): Likewise.
30044 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30045 (_nl_select_era_entry): Likewise.
30046 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30047 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30048 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30049 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30050 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30051
30052 2017-08-31 Florian Weimer <fweimer@redhat.com>
30053
30054 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30055 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30056 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30057 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30058 Likewise.
30059 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30060 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30061 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30062 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30063 Likewise.
30064 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30065
30066 2017-08-31 Florian Weimer <fweimer@redhat.com>
30067
30068 * misc/getttyent.c (skip, value): Remove internal_function.
30069 * misc/syslog.c (openlog_internal): Likewise.
30070 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30071
30072 2017-08-31 Florian Weimer <fweimer@redhat.com>
30073
30074 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30075 (__nss_rewrite_field): Remove internal_function.
30076 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30077 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30078 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30079 * nss/nsswitch.c (nss_parse_file, nss_getline)
30080 (nss_parse_service_list, nss_new_service): Likewise.
30081 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30082 * nss/valid_field.c (__nss_valid_field): Likewise.
30083 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30084
30085 2017-08-31 Florian Weimer <fweimer@redhat.com>
30086
30087 * malloc/arena.c (__malloc_fork_lock_parent)
30088 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30089 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30090 internal_function from defintions.
30091 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30092 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30093 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30094 internal_function from declarations.
30095 * malloc/malloc.c (internal_function): Do not define.
30096 (mem2mem_check): Remove internal_function from declaration.
30097 (munmap_chunk, mremap_chunk): Remove internal_function.
30098 * malloc/mtrace.c (tr_where): Likewise.
30099
30100 2017-08-31 Florian Weimer <fweimer@redhat.com>
30101
30102 * include/rpc/pmap_clnt.h (__get_socket): Remove
30103 internal_function.
30104 * sunrpc/auth_des.c (synchronize): Likewise.
30105 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30106 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30107 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30108 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30109 (key_call): Likewise.
30110 * sunrpc/pm_getport.c (__get_socket): Likewise.
30111 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30112 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30113 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30114 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30115 (invalidate): Likewise.
30116 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30117 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30118 (set_input_fragment, get_input_bytes): Likewise.
30119
30120 2017-08-31 Florian Weimer <fweimer@redhat.com>
30121
30122 * malloc/malloc.c (_int_free): Remove locked variable and related
30123 asserts.
30124
30125 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30126
30127 [BZ #22051]
30128 * Makerules (build-module-helper-objlist): Filter out
30129 $(elf-objpfx)sofini.os.
30130 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30131 needed.
30132
30133 2017-08-31 Florian Weimer <fweimer@redhat.com>
30134
30135 * libio/fcloseall.c: Assume weak_alias is defined.
30136 * libio/feof.c: Likewise.
30137 * libio/fileno.c: Likewise.
30138 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30139 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30140 definitions.
30141 (_IO_file_open): Call __open directly.
30142 (_IO_new_file_sync): Assume ESPIPE is defined.
30143 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30144 (_IO_new_file_write): Call __write directly.
30145 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30146 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30147 * libio/genops.c: Assume _LIBC is defined.
30148 (save_for_backup): Remove internal_function.
30149 * libio/getc.c: Assume weak_alias is defined.
30150 * libio/getwc.c: Likewise.
30151 * libio/iofclose.c: Assume _LIBC is defined.
30152 * libio/iofdopen.c: Likewise.
30153 (_IO_fcntl): Remove macro definition.
30154 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30155 Call __fcntl directly.
30156 * libio/iofflush.c: Assume weak_alias is defined.
30157 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30158 defined.
30159 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30160 * libio/iofgets.c: Likewise.
30161 * libio/iofopen.c: Assume _LIBC is defined.
30162 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30163 * libio/iofputs.c: Assume weak_alias is defined.
30164 * libio/iofread.c: Likewise.
30165 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30166 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30167 * libio/ioftell.c: Assume weak_alias is defined.
30168 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30169 * libio/iofwide.c: Assume _LIBC is defined.
30170 (_IO_fwide): Drop SHARED conditional because it is implied by
30171 SHLIB_COMPAT.
30172 * libio/iofwrite.c: Assume weak_alias is defined.
30173 * libio/iogetdelim.c: Likewise.
30174 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30175 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30176 (_IO_getwline): Call __wmemcpy directly.
30177 * libio/iopopen.c: Assume _LIBC is defined.
30178 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30179 (_IO_close): Remove macro definitions.
30180 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30181 _exit directly.
30182 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30183 directly.
30184 * libio/ioputs.c: Assume weak_alias is defined.
30185 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30186 * libio/iosetbuffer.c: Assume weak_alias is defined.
30187 * libio/iosetvbuf.c: Likewise.
30188 * libio/ioungetc.c: Likewise.
30189 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30190 libc_hidden_def, libc_hidden_weak, NULL are defined.
30191 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30192 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30193 defined.
30194 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30195 definitions.
30196 (_IO_old_file_init_internal): Drop SHARED conditional because it
30197 is implied by SHLIB_COMPAT.
30198 (_IO_old_file_fopen): Call __open directly.
30199 (_IO_old_file_sync): Assume ESPIPE is defined.
30200 (_IO_old_file_write): Call __write directly.
30201 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30202 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30203 Call __fcntl directly.
30204 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30205 (_IO_old_fgetpos): Assume EIO is defined.
30206 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30207 (_IO_old_fgetpos64): Assume EIO is defined.
30208 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30209 (_IO_old_fsetpos): Assume EIO is defined.
30210 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30211 (_IO_old_fsetpos64): Assume EIO is defined.
30212 * libio/oldiopopen.c: Assume _LIBC is defined.
30213 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30214 (_IO_close): Remove macro definitions.
30215 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30216 directly.
30217 (_IO_old_proc_close): Call __close, __waitpid directly.
30218 * libio/put.c: Assume weak_alias is defined.
30219 * libio/stdfiles.c: Assume _LIBC is defined.
30220 * libio/stdio.c: Likewise.
30221 * libio/wfileops.c: Likewise.
30222 (_IO_wfile_sync): Assume ESPIPE is defined.
30223 * libio/wgenops.c: Assume _LIBC is defined.
30224 (save_for_wbackup): Remove internal_function.
30225
30226 2017-08-31 Florian Weimer <fweimer@redhat.com>
30227
30228 * malloc/malloc.c (top_check): Change return type to void. Remove
30229 internal_function.
30230 * malloc/hooks.c (top_check): Likewise.
30231 (malloc_check, realloc_check, memalign_check): Adjust.
30232
30233 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30234
30235 [BZ #21457]
30236 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30237 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30238 sigcontext and namespace requirements.
30239 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30240 * sysdeps/m68k/sys/ucontext.h: Likewise.
30241 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30242 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30243 <bits/sigcontext.h>.
30244 (__ctx): Define earlier.
30245 (mcontext_t): Define structure contents rather than using struct
30246 sigcontext.
30247 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30248 __glibc_reserved1 instead of __reserved.
30249 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30250 <bits/sigcontext.h>.
30251 (__ctx): Define earlier.
30252 (mcontext_t): Define structure contents rather than using struct
30253 sigcontext.
30254 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30255 mcontext_t instead of struct sigcontext.
30256 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30257 <bits/sigcontext.h>.
30258 (__ctx): Define earlier.
30259 (mcontext_t): Define structure contents rather than using struct
30260 sigcontext.
30261 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30262 <bits/sigcontext.h>.
30263 (__ctx): Define earlier.
30264 (mcontext_t): Define structure contents rather than using struct
30265 sigcontext.
30266 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30267 mcontext_t instead of struct sigcontext.
30268 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30269 mcontext_t instead of struct sigcontext.
30270 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30271 <bits/sigcontext.h>.
30272 (__ctx): New macro.
30273 (struct __ia64_fpreg_mcontext): New type.
30274 (mcontext_t): Define structure contents rather than using struct
30275 sigcontext.
30276 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30277 (uc_sigmask): Define using __ctx.
30278 (uc_stack): Likewise.
30279 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30280 <bits/sigcontext.h>.
30281 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30282 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30283 <bits/sigcontext.h>.
30284 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30285 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30286 <bits/sigcontext.h>.
30287 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30288 <bits/sigcontext.h>.
30289 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30290 <bits/sigcontext.h>.
30291 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30292 <bits/sigcontext.h>.
30293 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30294 <bits/sigcontext.h>.
30295 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30296 <bits/sigcontext.h>.
30297 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30298 <bits/sigcontext.h>.
30299 (__ctx): Define earlier.
30300 (mcontext_t): Define structure contents rather than using struct
30301 sigcontext.
30302 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30303 <bits/sigcontext.h>. Include <bits/types.h>.
30304 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30305 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30306 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30307 (test-xfail-UNIX98/signal.h/conform): Likewise.
30308 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30309 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30310 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30311 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30312 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30313 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30314 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30315 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30316 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30317
30318 2017-08-30 Florian Weimer <fweimer@redhat.com>
30319
30320 * malloc/dynarray_emplace_enlarge.c
30321 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30322 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30323 * malloc/tst-dynarray.c (test_long_overflow): New function.
30324 (do_test): Call it.
30325
30326 2017-08-30 Florian Weimer <fweimer@redhat.com>
30327
30328 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30329 (set_arena_corrupt): Remove definitions.
30330 (mtrim): Do not check for corrupt arena.
30331 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30332 Likewise.
30333
30334 2017-08-30 Florian Weimer <fweimer@redhat.com>
30335
30336 [BZ #21754]
30337 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30338 check_action.
30339 (ptmalloc_init): Do not set or use check_action.
30340 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30341 call to malloc_printerr. Remove return statement.
30342 (free_check): Likewise. Remove arena unlock.
30343 (top_check): Update comment. Adjust call to malloc_printerr.
30344 Remove heap repair code.
30345 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30346 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30347 (sysmalloc): Adjust call to malloc_printerr.
30348 (munmap_chunk, __libc_realloc): Likewise. Remove return
30349 statement.
30350 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30351 Remove errout label and corresponding gotos.
30352 (_int_free): Likewise. Remove arena unlock.
30353 (do_set_mallopt_check): Do not set check_action.
30354 (malloc_printerr): Adjust parameter list. Do not mark arena as
30355 corrupt.
30356 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30357 comment.
30358 * manual/probes.texi (Memory Allocation Probes): Remove
30359 memory_mallopt_check_action.
30360
30361 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30362
30363 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30364 Use pointer to uint64_t instead of long int for sp.
30365
30366 2017-08-30 Florian Weimer <fweimer@redhat.com>
30367
30368 [BZ #21754]
30369 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30370 without printing a backtrace. Do not leak any information in the
30371 error message.
30372 * manual/memory.texi (Heap Consistency Checking): Update.
30373 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30374
30375 2017-08-30 Florian Weimer <fweimer@redhat.com>
30376
30377 Do not scale NPTL tests with available number of CPUs.
30378 * nptl/tst-cond16.c (count): Set to constant value of 8.
30379 * nptl/tst-cond18.c (count): Likewise.
30380
30381 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30382
30383 [BZ #22035]
30384 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30385 Define to take a second argument that is a macro that
30386 concatentates a suffix, not the suffix itself.
30387 (__CONCAT_d): New macro.
30388 (__CONCAT_f): Likewise.
30389 (__CONCAT_l): Likewise.
30390
30391 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30392
30393 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30394 by child.
30395
30396 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30397 Aurelien Jarno <aurelien@aurel32.net>
30398 Maciej W. Rozycki <macro@imgtec.com>
30399
30400 [BZ #21956]
30401 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30402 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30403 `mips16-syscall6' and `mips16-syscall7'.
30404 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30405 (CFLAGS-mips16-syscall7.c): Remove.
30406 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30407 Remove `__mips16_syscall5', `__mips16_syscall6' and
30408 `__mips16_syscall7'.
30409 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30410 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30411 `__mips_syscall_return'.
30412 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30413 (__mips16_syscall1): Likewise.
30414 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30415 (__mips16_syscall2): Likewise.
30416 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30417 (__mips16_syscall3): Likewise.
30418 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30419 (__mips16_syscall4): Likewise.
30420 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30421 Remove.
30422 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30423 Remove.
30424 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30425 Remove.
30426 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30427 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30428 `__mips16_syscall5'. Remove prototype.
30429 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30430 `__mips16_syscall6'. Remove prototype.
30431 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30432 `__mips16_syscall7'. Remove prototype.
30433 (__nomips16, __mips16_syscall_return): Move to...
30434 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30435 (__nomips16, __mips_syscall_return): ... here.
30436 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30437 `__mips16_syscall_return' to `__mips_syscall_return'.
30438 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30439 `internal_syscall##nr'.
30440 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30441 `internal_syscall##nr'.
30442 (FORCE_FRAME_POINTER): Remove.
30443 (__mips_syscall5): New prototype.
30444 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30445 (__mips_syscall6): New prototype.
30446 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30447 (__mips_syscall7): New prototype.
30448 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30449 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30450 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30451 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30452 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30453 (sysdep_routines): Add libc-do-syscall.
30454 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30455 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30456
30457 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30458
30459 [BZ #21672]
30460 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30461 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30462 (advise_stack_range): New function.
30463 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30464 stack non required to advise_stack_range at allocatestack.c
30465
30466 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30467
30468 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30469
30470 2017-08-29 Florian Weimer <fweimer@redhat.com>
30471
30472 [BZ #22026]
30473 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30474 __end_fct. Mangle __end_fct after setting it to NULL.
30475 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30476 (modules-names, modules-names-tests): Add
30477 tst-gconv-init-failure-mod.
30478 (gconv-modules): New target.
30479 (tst-gconv-init-failure-mod.so): Link against libsupport.
30480 (tst-gconv-init-failure): Depend on gconv-modules,
30481 tst-gconv-init-failure-mod.so.
30482 * iconv/tst-gconv-init-failure-mod.c: New file.
30483 * iconv/tst-gconv-init-failure.c: Likewise.
30484 * iconv/test-gconv-modules: Likewise.
30485
30486 2017-08-29 Florian Weimer <fweimer@redhat.com>
30487
30488 [BZ #22025]
30489 * iconv/gconv_db.c (free_derivation): Remove redundant
30490 parentheses.
30491 (gen_steps): Unconditionally mangle __btowc_fct after
30492 initialization.
30493 (increment_counter): Likewise. Do not call init_fct for internal
30494 modules.
30495
30496 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30497
30498 [BZ #22028]
30499 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30500 (_MSUF_): Remove macro.
30501 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30502 Likewise.
30503 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30504 (__REDIRFROM_X): New macro.
30505 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30506 Likewise.
30507 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30508 (__REDIRTO_X): Likewise.
30509 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30510 arguments.
30511 (__MATH_REDIRCALL_2): Likewise.
30512 (__MATH_REDIRCALL_INTERNAL): Likewise.
30513 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30514 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30515 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30516 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30517 * math/test-finite-macros.c: New file.
30518 * math/Makefile (tests): Add test-finite-macros.
30519 (CFLAGS-test-finite-macros.c): New variable.
30520
30521 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30522 Jeff Law <law@redhat.com>
30523
30524 [BZ #22025]
30525 Mangle NULL pointers in iconv/gconv.
30526 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30527 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30528 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30529 is non-NULL before demangling the end_fct. Check for NULL
30530 end_fct after demangling.
30531 (__gconv_release_step): Demangle the end_fct before checking
30532 it for NULL. Remove assert on __shlibc_handle != NULL.
30533 (gen_steps): Don't check btowc_fct for NULL before mangling.
30534 Demangle init_fct before checking for NULL.
30535 (increment_counter): Likewise.
30536 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30537 end_fct for NULL before mangling.
30538 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30539 for NULL.
30540
30541 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30542
30543 [BZ #21971]
30544 * locale/iso-639.def: add Morisyen.
30545
30546 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30547
30548 [BZ #21930]
30549 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30550 (iszero): New C++ implementation that does not use
30551 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30552 signaling nans are enabled, since __builtin_types_compatible_p
30553 is a C-only feature.
30554 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30555 defined, include ieee754_float128.h for access to the union and
30556 member ieee854_float128.ieee.
30557 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30558 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30559 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30560 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30561 options of test-math-zero on powerpc64le.
30562
30563 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30564
30565 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30566 Change double to float.
30567
30568 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30569
30570 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30571 unconditional.
30572 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30573 conditional code; define contents only for [LIBM_SVID_COMPAT].
30574
30575 2017-08-28 Florian Weimer <fweimer@redhat.com>
30576
30577 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30578 (abi-lp64_be-options): Remove.
30579 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30580 (abi-hard-options): Likewise.
30581 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30582 (abi-o32_hard-options, abi-o32_soft_2008-options)
30583 (abi-o32_hard_2008-options, abi-n32_soft-options)
30584 (abi-n32_hard-options, abi-n32_soft_2008-options)
30585 (abi-n32_hard_2008-options, abi-n64_soft-options)
30586 (abi-n64_hard-options, abi-n64_soft_2008-options)
30587 (abi-n64_hard_2008-options): Likewise.
30588 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30589 (abi-64-v1-options, abi-64-v2-options): Likewise.
30590 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30591 (abi-64-options): Likewise.
30592 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30593 (abi-64-options): Likewise.
30594 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30595 (abi-64-options): Likewise.
30596 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30597 (abi-64-options, abi-x32-options): Likewise.
30598
30599 2017-08-28 Florian Weimer <fweimer@redhat.com>
30600
30601 Store supported list of SYS_* system calls in the source tree.
30602 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30603 (bits/syscall.h): Generate from list file.
30604 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30605 [$(subdir) = misc] (tests): Add tst-syscall-list.
30606 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30607 [$(subdir) = misc] (tst-syscall-list-macros.list)
30608 [$(subdir) = misc] (tst-syscall-list-nr.list)
30609 (tst-syscall-list-sys.list): Helper targets for new
30610 tst-syscall-list test.
30611 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30612 tst-syscall-list.sh.
30613 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30614 target. Do not include bits/syscall.d.
30615 [$(subdir) = misc] (generated): Do not update.
30616 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30617 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30618 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30619 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30620
30621 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30622
30623 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30624 (tst-cxa_atexit, tst-on_exit): Likewise.
30625 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30626 tst-cxa_atexit, and tst-on_exit.
30627 * stdlib/tst-atexit-common.c: New file.
30628 * stdlib/tst-atexit.c: New file.
30629 * stdlib/tst-at_quick_exit.c: New file.
30630 * stdlib/tst-cxa_atexit.c: New file.
30631 * stdlib/tst-on_exit.c: New file.
30632
30633 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30634
30635 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30636 * mach/stack_chk_fail_local.c: New file.
30637 * hurd/stack_chk_fail_local.c: New file.
30638 * mach/Machrules ($(interface-library)-routines): Add
30639 stack_chk_fail_local.
30640 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30641 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30642 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30643 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30644 * hurd/Makefile (CFLAGS-hurdstartup.o,
30645 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30646
30647 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30648
30649 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30650 (index_cpu_*, index_arch_*): Removed.
30651
30652 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30653
30654 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30655 Use uint64_t instead of unsigned long.
30656
30657 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30658
30659 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30660 [__HAVE_DISTINCT_FLOAT128].
30661
30662 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30663 of <bits/math-finite.h>.
30664 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30665 inclusion of <bits/math-finite.h>.
30666 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30667 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30668 __NO_LONG_DOUBLE_MATH].
30669 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30670 (__MATH_REDIRCALL_2): Likewise.
30671 (__MATH_REDIRCALL_INTERNAL): Likewise.
30672 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30673 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30674 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30675
30676 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30677 Remove file.
30678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30679 Likewise.
30680 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30681 Likewise.
30682 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30683 Likewise.
30684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30685 Likewise.
30686 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30687 Likewise.
30688 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30689 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30690 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30691 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30693 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30694 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30695 w_sqrtf_compat-ppc32.
30696
30697 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30698
30699 * math/math.h [defined __cplusplus] (issignaling): In the long
30700 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30701 is not defined. Call __issignaling, otherwise.
30702
30703 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30704
30705 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30706 syscall definitions and replace __builtin_expect with __glibc_likely.
30707 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30708 syscall.
30709 (SYSCALL_CANCELLABLE): Removedefinition
30710 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30711 definition.
30712 (PSEUDO_END): Likewise.
30713 [IS_IN (libpthread)] (CENABLE): Likewise.
30714 [IS_IN (libpthread)] (CDISABLE): Likewise.
30715 [IS_IN (libc)] (CENABLE): Likewise.
30716 [IS_IN (libc)] (CENABLE): Likewise.
30717 [IS_IN (librt)] (CDISABLE): Likewise.
30718 [IS_IN (librt)] (CDISABLE): Likewise.
30719 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30720 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30721 definition.
30722 (PSEUDO_END): Likewise.
30723 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30724 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30725 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30726 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30727 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30728 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30729 (CENABLE): Likewise.
30730 (CDISABLE): Likewise.
30731 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30732 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30733 defintion.
30734 (PSEUDO_END): Likewise.
30735 [IS_IN (libpthread)] (CENABLE): Likewise.
30736 [IS_IN (libpthread)] (CDISABLE): Likewise.
30737 [IS_IN (libc)] (CENABLE): Likewise.
30738 [IS_IN (libc)] (CENABLE): Likewise.
30739 [IS_IN (librt)] (CDISABLE): Likewise.
30740 [IS_IN (librt)] (CDISABLE): Likewise.
30741 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30742 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30743 definition.
30744 (PSEUDO_END): Likewise.
30745 [IS_IN (libpthread)] (CENABLE): Likewise.
30746 [IS_IN (libpthread)] (CDISABLE): Likewise.
30747 [IS_IN (libc)] (CENABLE): Likewise.
30748 [IS_IN (libc)] (CENABLE): Likewise.
30749 [IS_IN (librt)] (CDISABLE): Likewise.
30750 [IS_IN (librt)] (CDISABLE): Likewise.
30751 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30752 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30753 definition.
30754 (PSEUDO_END): Likewise.
30755 [IS_IN (libpthread)] (CENABLE): Likewise.
30756 [IS_IN (libpthread)] (CDISABLE): Likewise.
30757 [IS_IN (libc)] (CENABLE): Likewise.
30758 [IS_IN (libc)] (CENABLE): Likewise.
30759 [IS_IN (librt)] (CDISABLE): Likewise.
30760 [IS_IN (librt)] (CDISABLE): Likewise.
30761 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30762 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30763 definition.
30764 (PSEUDO_END): Likewise.
30765 [IS_IN (libpthread)] (CENABLE): Likewise.
30766 [IS_IN (libpthread)] (CDISABLE): Likewise.
30767 [IS_IN (libc)] (CENABLE): Likewise.
30768 [IS_IN (libc)] (CENABLE): Likewise.
30769 [IS_IN (librt)] (CDISABLE): Likewise.
30770 [IS_IN (librt)] (CDISABLE): Likewise.
30771 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30772 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30773 definition.
30774 (PSEUDO_END): Likewise.
30775 [IS_IN (libpthread)] (CENABLE): Likewise.
30776 [IS_IN (libpthread)] (CDISABLE): Likewise.
30777 [IS_IN (libc)] (CENABLE): Likewise.
30778 [IS_IN (libc)] (CENABLE): Likewise.
30779 [IS_IN (librt)] (CDISABLE): Likewise.
30780 [IS_IN (librt)] (CDISABLE): Likewise.
30781 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30782 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30783 definition.
30784 (PSEUDO_END): Likewise.
30785 [IS_IN (libpthread)] (CENABLE): Likewise.
30786 [IS_IN (libpthread)] (CDISABLE): Likewise.
30787 [IS_IN (libc)] (CENABLE): Likewise.
30788 [IS_IN (libc)] (CENABLE): Likewise.
30789 [IS_IN (librt)] (CDISABLE): Likewise.
30790 [IS_IN (librt)] (CDISABLE): Likewise.
30791 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30792 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30793 Remove definition.
30794 (PSEUDO_END): Likewise.
30795 [IS_IN (libpthread)] (CENABLE): Likewise.
30796 [IS_IN (libpthread)] (CDISABLE): Likewise.
30797 [IS_IN (libc)] (CENABLE): Likewise.
30798 [IS_IN (libc)] (CENABLE): Likewise.
30799 [IS_IN (librt)] (CDISABLE): Likewise.
30800 [IS_IN (librt)] (CDISABLE): Likewise.
30801 (SINGLE_THREAD_P): Likewise.
30802 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30803 definition.
30804 (PSEUDO_END): Likewise.
30805 [IS_IN (libpthread)] (CENABLE): Likewise.
30806 [IS_IN (libpthread)] (CDISABLE): Likewise.
30807 [IS_IN (libc)] (CENABLE): Likewise.
30808 [IS_IN (libc)] (CENABLE): Likewise.
30809 [IS_IN (librt)] (CDISABLE): Likewise.
30810 [IS_IN (librt)] (CDISABLE): Likewise.
30811 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30812 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30813 definition.
30814 (PSEUDO_END): Likewise.
30815 [IS_IN (libpthread)] (CENABLE): Likewise.
30816 [IS_IN (libpthread)] (CDISABLE): Likewise.
30817 [IS_IN (libc)] (CENABLE): Likewise.
30818 [IS_IN (libc)] (CENABLE): Likewise.
30819 [IS_IN (librt)] (CDISABLE): Likewise.
30820 [IS_IN (librt)] (CDISABLE): Likewise.
30821 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30822 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30823 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30824 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30825 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30826 definition.
30827 (PSEUDO_END): Likewise.
30828 [IS_IN (libpthread)] (CENABLE): Likewise.
30829 [IS_IN (libpthread)] (CDISABLE): Likewise.
30830 [IS_IN (libc)] (CENABLE): Likewise.
30831 [IS_IN (libc)] (CENABLE): Likewise.
30832 [IS_IN (librt)] (CDISABLE): Likewise.
30833 [IS_IN (librt)] (CDISABLE): Likewise.
30834 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30835 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30836 definition.
30837 (PSEUDO_END): Likewise.
30838 [IS_IN (libpthread)] (CENABLE): Likewise.
30839 [IS_IN (libpthread)] (CDISABLE): Likewise.
30840 [IS_IN (libc)] (CENABLE): Likewise.
30841 [IS_IN (libc)] (CENABLE): Likewise.
30842 [IS_IN (librt)] (CDISABLE): Likewise.
30843 [IS_IN (librt)] (CDISABLE): Likewise.
30844 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30845 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30846 definition.
30847 (PSEUDO_END): Likewise.
30848 [IS_IN (libpthread)] (CENABLE): Likewise.
30849 [IS_IN (libpthread)] (CDISABLE): Likewise.
30850 [IS_IN (libc)] (CENABLE): Likewise.
30851 [IS_IN (libc)] (CENABLE): Likewise.
30852 [IS_IN (librt)] (CDISABLE): Likewise.
30853 [IS_IN (librt)] (CDISABLE): Likewise.
30854 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30855 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30856 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30857 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30858 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30859 definition.
30860 (PSEUDO_END): Likewise.
30861 [IS_IN (libpthread)] (CENABLE): Likewise.
30862 [IS_IN (libpthread)] (CDISABLE): Likewise.
30863 [IS_IN (libc)] (CENABLE): Likewise.
30864 [IS_IN (libc)] (CENABLE): Likewise.
30865 [IS_IN (librt)] (CDISABLE): Likewise.
30866 [IS_IN (librt)] (CDISABLE): Likewise.
30867 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30868 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30869 definition.
30870 (PSEUDO_END): Likewise.
30871 [IS_IN (libpthread)] (CENABLE): Likewise.
30872 [IS_IN (libpthread)] (CDISABLE): Likewise.
30873 [IS_IN (libc)] (CENABLE): Likewise.
30874 [IS_IN (libc)] (CENABLE): Likewise.
30875 [IS_IN (librt)] (CDISABLE): Likewise.
30876 [IS_IN (librt)] (CDISABLE): Likewise.
30877 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30878
30879 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30880
30881 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30882
30883 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30884
30885 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30886
30887 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30888
30889 [BZ #21982]
30890 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30891 middle and outer with size_t instead of int. Repleace %d and
30892 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30893 "MAX (outer, nchars - 64)" to support unsigned outer and
30894 nchars. Also exit loop when outer == 0.
30895
30896 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30897
30898 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30899 * include/signal.h (__sigsuspend_nocancel): Likewise.
30900 * include/time.h (__nanosleep_nocancel): Likewise.
30901 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30902 * login/utmp_file.c: Include non cancellable syscall header.
30903 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30904 prototype.
30905
30906 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30907
30908 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30909 .byte sequences with AVX512F instructions.
30910 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30911 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30912 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30913 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30914 Likewise.
30915 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30916 Likewise.
30917
30918 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30919 Steve Ellcey <sellcey@cavium.com>
30920
30921 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30922 Use PTR_REG macro in cmp instruction.
30923
30924 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30925
30926 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30927 Change the return type of the ifunc resolver to match the return
30928 type of the target function.
30929
30930 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30931
30932 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30933 (preadv64): Likewise.
30934 (pwrite64(: Likewise.
30935 (pwritev64): Likewise.
30936
30937 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30938 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30939 (LOAD_ARGS_0): Likewise.
30940 (LOAD_ARGS_1): Likewise.
30941 (LOAD_ARGS_2): Likewise.
30942 (LOAD_ARGS_3): Likewise.
30943 (LOAD_ARGS_4): Likewise.
30944 (LOAD_ARGS_5): Likewise.
30945 (LOAD_ARGS_6): Likewise.
30946 (LOAD_REGS_0): Likewise.
30947 (LOAD_REGS_1): Likewise.
30948 (LOAD_REGS_2): Likewise.
30949 (LOAD_REGS_3): Likewise.
30950 (LOAD_REGS_4): Likewise.
30951 (LOAD_REGS_5): Likewise.
30952 (LOAD_REGS_6): Likewise.
30953 (ASM_ARGS_0): Likewise.
30954 (ASM_ARGS_1): Likewise.
30955 (ASM_ARGS_2): Likewise.
30956 (ASM_ARGS_3): Likewise.
30957 (ASM_ARGS_4): Likewise.
30958 (ASM_ARGS_5): Likewise.
30959 (ASM_ARGS_6): Likewise.
30960 (LOAD_ARGS_TYPES_1): Likewise.
30961 (LOAD_ARGS_TYPES_2): Likewise.
30962 (LOAD_ARGS_TYPES_3): Likewise.
30963 (LOAD_ARGS_TYPES_4): Likewise.
30964 (LOAD_ARGS_TYPES_5): Likewise.
30965 (LOAD_ARGS_TYPES_6): Likewise.
30966 (LOAD_REGS_TYPES_1): Likewise.
30967 (LOAD_REGS_TYPES_2): Likewise.
30968 (LOAD_REGS_TYPES_3): Likewise.
30969 (LOAD_REGS_TYPES_4): Likewise.
30970 (LOAD_REGS_TYPES_5): Likewise.
30971 (LOAD_REGS_TYPES_6): Likewise.
30972 (TYPEFY): New define.
30973 (ARGIFY): Likewise.
30974 (internal_syscall0): Likewise.
30975 (internal_syscall1): Likewise.
30976 (internal_syscall2): Likewise.
30977 (internal_syscall3): Likewise.
30978 (internal_syscall4): Likewise.
30979 (internal_syscall5): Likewise.
30980 (internal_syscall6): Likewise.
30981 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30982 (INTERNAL_SYSCALL_NCS): Remove define.
30983 (internal_syscall1): Add define.
30984
30985 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30986
30987 * math/w_remainder_compat.c: Remove duplicate inclusion of
30988 math-svid-compat.h.
30989 * math/w_remainderf_compat.c: Likewise.
30990 * math/w_remainderl_compat.c: Likewise.
30991
30992 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30993
30994 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30995
30996 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30997
30998 [BZ #21684]
30999 * math/tgmath.h (__floating_type): Simplify definitions.
31000 (__real_integer_type): New macro.
31001 (__complex_integer_type): Likewise.
31002 (__expr_is_real): Likewise.
31003 (__tgmath_real_type_sub): Update comment to describe handling of
31004 complex types.
31005 (__tgmath_complex_type_sub): New macro.
31006 (__tgmath_complex_type): Likewise.
31007 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31008 (__TGMATH_CF128): Use __expr_is_real.
31009 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
31010 __expr_is_real.
31011 (__TGMATH_BINARY_REAL_IMAG): Likewise.
31012 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
31013 * math/gen-tgmath-tests.py (Type.create_type): Create complex
31014 integer types.
31015
31016 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31017
31018 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
31019 macro.
31020 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
31021 alias.
31022 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
31023 Likewise.
31024
31025 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
31026 nanosleep_not_cancel with __nanosleep_nocancel.
31027 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
31028 (__nanosleep_nocancel): New macro.
31029 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
31030 function.
31031 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31032 macro.
31033 (__nanosleep_nocancel): New prototype.
31034
31035 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31036 pause_not_cancel with __pause_nocancel.
31037 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31038 (__pause_nocancel): New macro.
31039 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31040 macro.
31041 (__pause_nocancel): New prototype.
31042 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31043
31044 2017-08-22 Martin Sebor <msebor@redhat.com>
31045
31046 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31047 to return a pointer to the same type as the target function.
31048
31049 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31050
31051 [BZ #18822]
31052 [BZ #21986]
31053 * include/printf.h (__printf_fphex): Add attribute_hidden.
31054 (__guess_grouping): New prototype.
31055 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31056 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31057 libc_hidden_proto and libc_hidden_def.
31058 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31059 (__vstrfmon_l): Remove the third argument passed to
31060 __guess_grouping.
31061
31062 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31063
31064 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31065 definition for issignaling that does not rely on __MATH_TG,
31066 since __MATH_TG uses __builtin_types_compatible_p, which is only
31067 available in C mode.
31068 (CFLAGS-test-math-issignaling.cc): New variable.
31069 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31070 * math/test-math-issignaling.cc: New test for C++ implementation
31071 of type-generic issignaling.
31072 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31073 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31074 options of test-math-issignaling on powerpc64le.
31075
31076 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31077
31078 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31079 building libc.a.
31080 (hidden_proto): Likewise.
31081 (hidden_tls_proto): Likewise.
31082 (__hidden_proto): Likewise.
31083
31084 2017-08-22 Florian Weimer <fweimer@redhat.com>
31085
31086 math: Statically link tests of internal functionality.
31087 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31088 atest-exp2.
31089 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31090 (gmp-objs): Remove assignment.
31091 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31092
31093 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31094
31095 [BZ #21987]
31096 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31097 and copy to ...
31098 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31099 ... here.
31100 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31101 ... and here.
31102
31103 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31104 variable definitions above inclusion of ../Rules.
31105
31106 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31107
31108 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31109 case calling __builtin_unreachable.
31110
31111 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31112
31113 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31114 __waitpid_nocancel.
31115 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31116 (__waitpid_nocancel): New macro.
31117 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31118 macro.
31119 (__waitpid_nocancel): Replace macro with a function.
31120 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31121 function.
31122
31123 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31124 __fcntl_nocancel.
31125 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31126 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31127
31128 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31129 __writev_nocancel_nostatus.
31130 (write_call_graph): Likewise.
31131 (write_bb_counts): Likewise.
31132 * resolv/herror.c (herror): Likewise.
31133 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31134 macro.
31135 (__writev_nocancel_nostatus): New macro.
31136 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31137 Remove macro.
31138 (__writev_nocancel_nostatus): New function.
31139
31140 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31141
31142 Revert:
31143 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31144
31145 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31146 building libc.a.
31147 (hidden_proto): Likewise.
31148 (hidden_tls_proto): Likewise.
31149 (__hidden_proto): Likewise.
31150
31151 [BZ #21973]
31152 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31153 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31155 Likewise.
31156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31157 Likewise.
31158 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31159 Likewise.
31160 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31161 Likewise.
31162 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31163 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31164 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31165 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31166 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31167 GLIBC_2.0 sqrtl symbol.
31168
31169 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31170 [__USE_MISC] (_LIB_VERSION): Likewise.
31171 [__USE_MISC] (struct exception): Likewise.
31172 [__USE_MISC] (matherr): Likewise.
31173 [__USE_MISC] (DOMAIN): Likewise.
31174 [__USE_MISC] (SING): Likewise.
31175 [__USE_MISC] (OVERFLOW): Likewise.
31176 [__USE_MISC] (UNDERFLOW): Likewise.
31177 [__USE_MISC] (TLOSS): Likewise.
31178 [__USE_MISC] (PLOSS): Likewise.
31179 [__USE_MISC] (HUGE): Likewise.
31180 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31181 * math/math-svid-compat.h: New file.
31182 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31183 and matherrl.
31184 * include/math.h [!_ISOMAC] (__matherr): Remove.
31185 * manual/arith.texi (FP Exceptions): Do not document matherr.
31186 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31187 (tests-internal): New variable.
31188 (install-lib): Do not add libieee.a.
31189 (non-lib.a): Likewise.
31190 (extra-objs): Do not add libieee.a and ieee-math.o.
31191 (CPPFLAGS-s_lib_version.c): Remove variable.
31192 ($(objpfx)libieee.a): Remove rule.
31193 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31194 * math/ieee-math.c: Remove.
31195 * math/libm-test-support.c (matherr): Remove.
31196 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31197 and license notices. Include <math-svid-compat.h> and
31198 <shlib-compat.h>.
31199 (matherr): Undefine as macro. Use compat_symbol_reference.
31200 (_LIB_VERSION): Likewise.
31201 * math/test-matherr-2.c: New file.
31202 * math/test-matherr-3.c: Likewise.
31203 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31204 declaration.
31205 (__kernel_standard_f): Likewise.
31206 (__kernel_standard_l): Likewise.
31207 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31208 <math_private.h>. Include <math-svid-compat.h>.
31209 (_LIB_VERSION): Undefine as macro.
31210 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31211 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31212 [LIBM_SVID_COMPAT], use compat_symbol.
31213 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31214 <math_private.h>. Include <math-svid-compat.h>.
31215 (matherr): Undefine as macro.
31216 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31217 compat_symbol.
31218 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31219 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31220 compat_symbol_reference.
31221 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31222 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31223 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31224 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31225 (MATHERR_D): Remove declaration.
31226 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31227 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31228 [LIBM_BUILD] (pmatherrf): Likewise.
31229 [LIBM_BUILD] (pmatherr): Likewise.
31230 [LIBM_BUILD] (pmatherrl): Likewise.
31231 (DOMAIN): Likewise.
31232 (SING): Likewise.
31233 (OVERFLOW): Likewise.
31234 (UNDERFLOW): Likewise.
31235 (TLOSS): Likewise.
31236 (PLOSS): Likewise.
31237 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31238 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31239 compat_symbol.
31240 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31241 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31242 compat_symbol.
31243 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31244 * math/w_acos_compat.c: Likewise.
31245 * math/w_acosf_compat.c: Likewise.
31246 * math/w_acosh_compat.c: Likewise.
31247 * math/w_acoshf_compat.c: Likewise.
31248 * math/w_acoshl_compat.c: Likewise.
31249 * math/w_acosl_compat.c: Likewise.
31250 * math/w_asin_compat.c: Likewise.
31251 * math/w_asinf_compat.c: Likewise.
31252 * math/w_asinl_compat.c: Likewise.
31253 * math/w_atan2_compat.c: Likewise.
31254 * math/w_atan2f_compat.c: Likewise.
31255 * math/w_atan2l_compat.c: Likewise.
31256 * math/w_atanh_compat.c: Likewise.
31257 * math/w_atanhf_compat.c: Likewise.
31258 * math/w_atanhl_compat.c: Likewise.
31259 * math/w_cosh_compat.c: Likewise.
31260 * math/w_coshf_compat.c: Likewise.
31261 * math/w_coshl_compat.c: Likewise.
31262 * math/w_exp10_compat.c: Likewise.
31263 * math/w_exp10f_compat.c: Likewise.
31264 * math/w_exp10l_compat.c: Likewise.
31265 * math/w_exp2_compat.c: Likewise.
31266 * math/w_exp2f_compat.c: Likewise.
31267 * math/w_exp2l_compat.c: Likewise.
31268 * math/w_fmod_compat.c: Likewise.
31269 * math/w_fmodf_compat.c: Likewise.
31270 * math/w_fmodl_compat.c: Likewise.
31271 * math/w_hypot_compat.c: Likewise.
31272 * math/w_hypotf_compat.c: Likewise.
31273 * math/w_hypotl_compat.c: Likewise.
31274 * math/w_j0_compat.c: Likewise.
31275 * math/w_j0f_compat.c: Likewise.
31276 * math/w_j0l_compat.c: Likewise.
31277 * math/w_j1_compat.c: Likewise.
31278 * math/w_j1f_compat.c: Likewise.
31279 * math/w_j1l_compat.c: Likewise.
31280 * math/w_jn_compat.c: Likewise.
31281 * math/w_jnf_compat.c: Likewise.
31282 * math/w_jnl_compat.c: Likewise.
31283 * math/w_lgamma_main.c: Likewise.
31284 * math/w_lgamma_r_compat.c: Likewise.
31285 * math/w_lgammaf_main.c: Likewise.
31286 * math/w_lgammaf_r_compat.c: Likewise.
31287 * math/w_lgammal_main.c: Likewise.
31288 * math/w_lgammal_r_compat.c: Likewise.
31289 * math/w_log10_compat.c: Likewise.
31290 * math/w_log10f_compat.c: Likewise.
31291 * math/w_log10l_compat.c: Likewise.
31292 * math/w_log2_compat.c: Likewise.
31293 * math/w_log2f_compat.c: Likewise.
31294 * math/w_log2l_compat.c: Likewise.
31295 * math/w_log_compat.c: Likewise.
31296 * math/w_logf_compat.c: Likewise.
31297 * math/w_logl_compat.c: Likewise.
31298 * math/w_pow_compat.c: Likewise.
31299 * math/w_powf_compat.c: Likewise.
31300 * math/w_powl_compat.c: Likewise.
31301 * math/w_remainder_compat.c: Likewise.
31302 * math/w_remainderf_compat.c: Likewise.
31303 * math/w_remainderl_compat.c: Likewise.
31304 * math/w_scalb_compat.c: Likewise.
31305 * math/w_scalbf_compat.c: Likewise.
31306 * math/w_scalbl_compat.c: Likewise.
31307 * math/w_sinh_compat.c: Likewise.
31308 * math/w_sinhf_compat.c: Likewise.
31309 * math/w_sinhl_compat.c: Likewise.
31310 * math/w_sqrt_compat.c: Likewise.
31311 * math/w_sqrtf_compat.c: Likewise.
31312 * math/w_sqrtl_compat.c: Likewise.
31313 * math/w_tgamma_compat.c: Likewise.
31314 * math/w_tgammaf_compat.c: Likewise.
31315 * math/w_tgammal_compat.c: Likewise.
31316 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31317 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31318 * sysdeps/ieee754/k_standard.c: Likewise.
31319 * sysdeps/ieee754/k_standardf.c: Likewise.
31320 * sysdeps/ieee754/k_standardl.c: Likewise.
31321 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31322 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31323 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31324 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31325 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31326 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31327 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31328 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31329 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31330 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31331 Likewise.
31332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31333 Likewise.
31334 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31335 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31336 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31337 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31338
31339 2017-08-21 Florian Weimer <fweimer@redhat.com>
31340
31341 [BZ #21864]
31342 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31343 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31344 Move before inclusion of ../Rules.
31345
31346 2017-08-21 Florian Weimer <fweimer@redhat.com>
31347
31348 [BZ #21972]
31349 * assert/assert.h (assert): Use static_cast (bool) for C++.
31350 Use the ternary operator in the warning branch for GNU C.
31351 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31352 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31353 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31354 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31355 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31356
31357 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31358
31359 [BZ #18822]
31360 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31361 (__syscall_clock_gettime): Add attribute_hidden.
31362 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31363 (__start_context): Likewise.
31364
31365 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31366
31367 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31368 building libc.a.
31369 (hidden_proto): Likewise.
31370 (hidden_tls_proto): Likewise.
31371 (__hidden_proto): Likewise.
31372
31373 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31374
31375 * include/libc-symbols.h (attribute_hidden): Enable hidden
31376 visibility in libc.a compiled with PIE.
31377
31378 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31379
31380 [BZ #18822]
31381 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31382 Add attribute_hidden.
31383
31384 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31385
31386 [BZ #21864]
31387 * Makerules (all-nonlib): Add $(others-extras).
31388 * catgets/Makefile (others-extras): New.
31389 * elf/Makefile (others-extras): Likewise.
31390 * nss/Makefile (others-extras): Likewise.
31391
31392 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31393
31394 [BZ #18822]
31395 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31396 * elf/dl-open.c: Include <libc-internal.h>.
31397 (__libc_multiple_libcs): Removed.
31398 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31399 <hp-timing.h>.
31400 * include/libc-internal.h (__libc_multiple_libcs): New.
31401 * misc/sbrk.c: Include <libc-internal.h>.
31402 (__libc_multiple_libcs): Removed.
31403
31404 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31405
31406 [BZ #18822]
31407 * grp/initgroups.c (__nss_group_database): Removed.
31408 (__nss_initgroups_database): Likewise.
31409 * nscd/gai.c (__nss_hosts_database): Likewise.
31410 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31411 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31412 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31413 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31414 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31415 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31416 attribute_hidden.
31417 * nss/nsswitch.c (__nss_database_custom): Define only if
31418 USE_NSCD is defined.
31419 (__nss_configure_lookup): Use __nss_database_custom only if
31420 USE_NSCD is defined.
31421 * nss/nsswitch.h (__nss_database_custom): Declare only if
31422 USE_NSCD is defined. Add attribute_hidden.
31423 (__nss_setent): Add attribute_hidden.
31424 (__nss_endent): Likewise.
31425 (__nss_getent_r): Likewise.
31426 (__nss_getent): Likewise.
31427 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31428
31429 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31430
31431 [BZ #18822]
31432 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31433 libc_hidden_proto and libc_hidden_def.
31434
31435 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31436
31437 [BZ #18822]
31438 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31439 Add libc_hidden_proto.
31440 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31441 Add libc_hidden_def.
31442
31443 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31444
31445 [BZ #21974]
31446 * gmon/Makefile (routines): Remove bb_init_func and
31447 bb_exit_func.
31448 (elide-routines.os): Removed.
31449 * gmon/bb_exit_func.c: Likewise.
31450 * gmon/bb_init_func.c: Likewise.
31451 * include/sys/gmon.h (__bb): Likewise.
31452 (__bb_init_func): Likewise.
31453 (__bb_exit_func): Likewise.
31454 * sysdeps/alpha/bb_init_func.S: Likewise.
31455
31456 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31457
31458 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31459 * include/setjmp.h (____longjmp_chk): Here. Add
31460 attribute_hidden.
31461
31462 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31463
31464 [BZ #18822]
31465 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31466 attribute_hidden.
31467 (__strspn_sse2): Likewise.
31468
31469 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31470
31471 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31472 (close_not_cancel_no_status): Likewise.
31473 (__close_nocancel): New macro.
31474 (__close_nocancel_nostatus): Likewise.
31475 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31476 macro.
31477 (close_not_cancel): Likewise.
31478 (close_not_cancel_no_status): Likewise.
31479 (__close_nocancel): New prototype.
31480 (__close_nocancel_nostatus): New function.
31481 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31482 * catgets/open_catalog.c (__open_catalog): Replace
31483 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31484 * gmon/gmon.c (write_gmon): Likewise.
31485 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31486 * intl/loadmsgcat.c (close): Likewise.
31487 * io/ftw.c (open_dir_stream): Likewise.
31488 (ftw_startup): Likewise.
31489 * libio/fileops.c (_IO_file_open): Likewise.
31490 (_IO_file_close_mmap): Likewise.
31491 (_IO_file_close): Likewise.
31492 * libio/iopopen.c (_IO_dup2): Likewise.
31493 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31494 * locale/loadlocale.c (_nl_load_locale): Likewise.
31495 * login/utmp_file.c (pututline_file): Likewise.
31496 (endutent_file): Likewise.
31497 * misc/daemon.c (daemon): Likewise.
31498 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31499 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31500 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31501 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31502 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31503 * nscd/nscd_helper.c (open_socket): Likewise.
31504 (__nscd_open_socket): Likewise.
31505 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31506 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31507 (__nscd_innetgr): Likewise.
31508 * nss/nss_db/db-open.c (internal_setent): Likewise.
31509 * resolv/res-close.c (__res_iclose): Likewise.
31510 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31511 * sysdeps/posix/closedir.c (__closedir): Likewise.
31512 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31513 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31514 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31515 (opendir_tail): Likewise.
31516 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31517 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31518 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31519 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31520 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31521 (gethostid): Likewise.
31522 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31523 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31524 Likewise.
31525 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31526 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31527 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31528 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31529 Likewise.
31530 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31531 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31532 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31533 Likewise.
31534 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31535 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31536 Likewise.
31537 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31538 Likewise.
31539 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31540 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31541 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31542 __close_nocancel.
31543
31544 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31545 (openat_not_cancel_3): Likewise.
31546 (openat64_not_cancel_3): Likewise).
31547 (openat_not_cancel_3): Likewise).
31548 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31549 macro.
31550 (openat_not_cancel_3): Likewise.
31551 (openat64_not_cancel): Likewise.
31552 (openat64_not_cancel_3): Likewise.
31553 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31554 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31555 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31556 __open{64}_nocancel.
31557 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31558 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31559 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31560
31561 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31562
31563 [BZ #18822]
31564 * include/argz.h (__argz_create_sep): New function prototype.
31565 (__argz_append): Likewise.
31566 (__argz_add): Likewise.
31567 (__argz_add_sep): Likewise.
31568 (__argz_delete): Likewise.
31569 (__argz_insert): Likewise.
31570 (__argz_replace): Likewise.
31571 * string/argz.h (__argz_create_sep): Removed.
31572 (__argz_append): Likewise.
31573 (__argz_add): Likewise.
31574 (__argz_add_sep): Likewise.
31575 (__argz_delete): Likewise.
31576 (__argz_insert): Likewise.
31577 (__argz_replace): Likewise.
31578
31579 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31580
31581 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31582 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31583 (GNU_PROPERTY_STACK_SIZE): Likewie.
31584 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31585 (GNU_PROPERTY_LOPROC): Likewise.
31586 (GNU_PROPERTY_HIPROC): Likewise.
31587 (GNU_PROPERTY_LOUSER): Likewise.
31588 (GNU_PROPERTY_HIUSER): Likewise.
31589 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31590 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31591 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31592 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31593 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31594 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31595 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31596 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31597 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31598 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31599 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31600 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31601 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31602 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31603 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31604 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31605 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31606 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31607 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31608 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31609 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31610 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31611 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31612
31613 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31614
31615 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31616 in C++ mode.
31617
31618 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31619
31620 [BZ #21930]
31621 * math/math.h (isinf): Check if in C or C++ mode before using
31622 __builtin_types_compatible_p, since this is a C mode feature.
31623
31624 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31625
31626 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31627 (__write_nocancel): New macro.
31628 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31629 Rewrite as a function prototype.
31630 (write_not_cancel): Remove macro.
31631 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31632 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31633 (write_gmon): Likewise.
31634 * libio/fileops.c (_IO_new_file_write): Likewise.
31635 * login/utmp_file.c (pututline_file): Likewise.
31636 (updwtmp_file): Likewise.
31637 * stdio-common/psiginfo.c (psiginfo): Likewise.
31638 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31639 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31640 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31641 Likewise.
31642 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31643 Likewise.
31644
31645 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31646 (__read_nocancel): New macro.
31647 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31648 __read_nocancel.
31649 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31650 macro.
31651 (__read_nocancel): New prototype.
31652 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31653 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31654 with __read_nocancel.
31655 * intl/loadmsgcat.c (read): Likewise.
31656 * libio/fileops.c (_IO_file_read): Likewise.
31657 * locale/loadlocale.c (_nl_load_locale): Likewise.
31658 * login/utmp_file.c (getutent_r_file): Likewise.
31659 (internal_getut_r): Likewise.
31660 (getutline_r_file): Likewise.
31661 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31662 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31663 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31664 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31665 Likewise.
31666 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31667 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31668 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31669 Likewise.
31670 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31671 Likewise.
31672 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31673 Likewise.
31674 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31675 Likewise.
31676 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31677
31678 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31679
31680 [BZ #21966]
31681 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31682 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31683 usable.
31684
31685 2017-08-17 DJ Delorie <dj@redhat.com>
31686
31687 * bug17079.c: Update to new test harness.
31688 * test-digits-dots.c: Likewise.
31689 * test-netdb.c: Likewise.
31690 * tst-field.c: Likewise.
31691 * tst-nss-getpwent.c: Likewise.
31692 * tst-nss-static.c: Likewise.
31693 * tst-nss-test1.c: Likewise.
31694 * tst-nss-test2.c: Likewise.
31695 * tst-nss-test3.c: Likewise.
31696 * tst-nss-test4.c: Likewise.
31697 * tst-nss-test5.c: Likewise.
31698
31699 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31700
31701 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31702 (open_not_cancel_2): Likewise.
31703 (open_nocancel): New macro.
31704 (open64_nocancel): Likewise.
31705 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31706 (open_not_cancel_2): Likewise.
31707 (__open_nocancel): New prototype.
31708 (__open64_nocancel): Likewise.
31709 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31710 __open_nocancel.
31711 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31712 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31713 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31714 with __open_nocancel.
31715 * csu/check_fds.c (check_one_fd): Likewise.
31716 * gmon/gmon.c (write_gmon): Likewise.
31717 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31718 * intl/loadmsgcat.c (open): Likewise.
31719 * libio/fileops.c (_IO_file_open): Likewise.
31720 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31721 * locale/loadlocale.c (_nl_load_locale): Likewise.
31722 * login/utmp_file.c (setutent_file): Likewise.
31723 * misc/daemon.c (daemon): Likewise.
31724 * nss/nss_db/db-open.c (internal_setent): Likewise.
31725 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31726 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31727 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31728 (__opendir): Likewise.
31729 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31730 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31731 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31732 (gethostid): Likewise.
31733 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31734 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31735 Likewise.
31736 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31737 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31738 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31739 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31740 Likewise.
31741 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31742 Likewise.
31743 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31744 Likewise.
31745 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31746 Likewise.
31747 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31748 Likewise.
31749 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31750 Likewise.
31751 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31752 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31753
31754 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31755
31756 * benchtests/bench-skeleton.c (main): Add support for
31757 latency benchmarking.
31758 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31759
31760 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31761
31762 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31763 the startup object.
31764
31765 2017-08-17 Florian Weimer <fweimer@redhat.com>
31766
31767 * include/sys/socket.h (__opensock): Remove internal_function.
31768 * socket/opensock.c (__opensock): Likewise.
31769 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31770
31771 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31772
31773 [BZ #21944]
31774 * signal/bits/types/__sigval_t.h: New file.
31775 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31776 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31777 and define sigval_t using __sigval_t.
31778 * include/bits/types/__sigval_t.h: New file.
31779 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31780 instead of <bits/types/__sigval_t.h>.
31781 (struct sigevent): Use __sigval_t instead of sigval_t.
31782 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31783 instead of <bits/types/__sigval_t.h>.
31784 (siginfo_t): Use __sigval_t instead of sigval_t.
31785 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31786 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31787 (struct sigevent): Use __sigval_t instead of sigval_t.
31788 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31789 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31790 (siginfo_t): Use __sigval_t instead of sigval_t.
31791 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31792
31793 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31794
31795 * NEWS: Remove "[Add new features here]" for 2.27.
31796
31797 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31798
31799 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31800 libc.so.
31801
31802 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31803
31804 * NEWS: Mention x86-64 FMA optimization.
31805
31806 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31807
31808 [BZ #21912]
31809 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31810 Add e_expf-fma.
31811 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31812 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31813 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31814
31815 2017-08-16 Andreas Schwab <schwab@suse.de>
31816
31817 [BZ #16750]
31818 CVE-2009-5064
31819 * elf/ldd.bash.in: Never run file directly.
31820
31821 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31822
31823 [BZ #21955]
31824 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31825 (L(SP_INF_0)): Likewise.
31826
31827 2017-08-15 Florian Weimer <fweimer@redhat.com>
31828
31829 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31830 run-built-tests.
31831
31832 2017-08-15 Florian Weimer <fweimer@redhat.com>
31833
31834 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31835 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31836 BROKEN_THREAD_SIGNALS code.
31837 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31838 request_list): Remove caller_pid member used for
31839 BROKEN_THREAD_SIGNALS.
31840 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31841 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31842 Remove BROKEN_THREAD_SIGNALS support.
31843 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31844 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31845
31846 2017-08-15 Florian Weimer <fweimer@redhat.com>
31847
31848 * gmon/Makefile (tests): Add tst-gmon.
31849 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31850 Set.
31851 (tests-special): Add tst-gmon-prof.out.
31852 (tst-gmon.out): Depend on clean-tst-gmon-data.
31853 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31854 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31855 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31856 startup object.
31857 * aclocal.m4 (GPROF): Set and substitute.
31858 * config.amke.in (GPROF): Set.
31859 * configure: Regenerate.
31860
31861 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31862
31863 * elf/elf.h A (NT_PPC_TAR): New macro.
31864 (NT_PPC_PPR): Likewise.
31865 (NT_PPC_DSCR): Likewise.
31866 (NT_PPC_EBB): Likewise.
31867 (NT_PPC_PMU): Likewise.
31868 (NT_PPC_TM_CGPR): Likewise.
31869 (NT_PPC_TM_CFPR): Likewise.
31870 (NT_PPC_TM_CVMX): Likewise.
31871 (NT_PPC_TM_CVSX): Likewise.
31872 (NT_PPC_TM_SPR): Likewise.
31873 (NT_PPC_TM_CTAR): Likewise.
31874 (NT_PPC_TM_CPPR): Likewise.
31875 (NT_PPC_TM_CDSCR): Likewise.
31876
31877 2017-08-15 Florian Weimer <fweimer@redhat.com>
31878
31879 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31880 regparm (2) instead of internal_function.
31881 (_MCOUNT_DECL): Adjust.
31882
31883 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31884
31885 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31886 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31887
31888 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31889
31890 * conform/data/sys/wait.h-data (si_value): Do not expect for
31891 XPG42.
31892
31893 2017-08-14 Florian Weimer <fweimer@redhat.com>
31894
31895 [BZ #21962]
31896 NSS: Create stubs for accidentally exported lookup functions.
31897 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31898 Remove declaration.
31899 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31900 (ether_hostton): Call __nss_ethers_lookup2 instead.
31901 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31902 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31903 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31904 (setup): Call __nss_netgroup_lookup2 instead.
31905 * nss/Makefile (routines): Add compat-lookup.
31906 * nss/Versions (GLIBC_2.27): Add symbol version.
31907 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31908 (DB_COMPAT_FCT): Remove.
31909 * nss/compat-lookup.c: New file.
31910 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31911 from databases.def.
31912 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31913 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31914 (netname2user): Call __nss_publickey_lookup2 instead.
31915 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31916 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31917 instead.
31918
31919 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31920 Sergei Trofimovich <slyfox@inbox.ru>
31921
31922 [BZ #21908]
31923 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31924 Rename to MMAP2_PAGE_UNIT.
31925 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31926 __OFF_T_MATCHES_OFF64_T is not defined.
31927 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31928 uint64_t.
31929 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31930 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31931
31932 2017-08-14 Florian Weimer <fweimer@redhat.com>
31933
31934 i386: Do not set internal_function.
31935 * config.h.in (USE_REGPARMS, internal_function): Remove.
31936 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31937 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31938
31939 2017-08-14 Florian Weimer <fweimer@redhat.com>
31940
31941 * elf/dl-init.c (_dl_init): Remove internal_function.
31942 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31943 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31944
31945 2017-08-14 Florian Weimer <fweimer@redhat.com>
31946
31947 * elf/rtld.c (_dl_start): Remove internal_function.
31948 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31949 _dl_start.
31950
31951 2017-08-14 Florian Weimer <fweimer@redhat.com>
31952
31953 * elf/dl-fini.c (_dl_fini): Remove internal_function
31954 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31955
31956 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31957
31958 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31959 (bit_cpu_SHSTK): Likewise.
31960 (index_cpu_IBT): Likewise.
31961 (index_cpu_SHSTK): Likewise.
31962 (reg_IBT): Likewise.
31963 (reg_SHSTK): Likewise.
31964 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31965 Handle index_cpu_IBT and index_cpu_SHSTK.
31966
31967 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31968
31969 [BZ #19982]
31970 * po/fr.po: Fix spelling mistake.
31971
31972 2017-08-13 Florian Weimer <fweimer@redhat.com>
31973
31974 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31975 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31976 (_dl_catch_error, _dl_receive_error): Likewise.
31977 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31978 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31979 (_dl_deallocate_tls): Likewise.
31980 * include/dlfcn.h (_dl_addr): Likewise.
31981 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31982 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31983 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31984 Likewise.
31985
31986 2017-08-13 Florian Weimer <fweimer@redhat.com>
31987
31988 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31989 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31990 internal_function.
31991 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31992
31993 2017-08-13 Florian Weimer <fweimer@redhat.com>
31994
31995 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31996 internal_function.
31997 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31998 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31999 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
32000 internal_function from _dl_make_stack_executable_hook member.
32001 (_dl_make_stack_executable): Remove internal_function.
32002 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
32003 Likewise.
32004 * sysdeps/unix/sysv/linux/dl-execstack.c
32005 (_dl_make_stack_executable): Likewise.
32006
32007 2017-08-13 Florian Weimer <fweimer@redhat.com>
32008
32009 * sysdeps/unix/sysv/linux/netlinkaccess.h
32010 (__netlink_assert_response): Remove internal_function.
32011 * sysdeps/unix/sysv/linux/netlink_assert_response.c
32012 (__netlink_assert_response): Likewise.
32013
32014 2017-08-13 Florian Weimer <fweimer@redhat.com>
32015
32016 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
32017 internal_function.
32018 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
32019
32020 2017-08-13 Florian Weimer <fweimer@redhat.com>
32021
32022 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
32023 internal_function.
32024 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
32025 * inet/netgroup.h (__internal_setnetgrent)
32026 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32027 * inet/getnetgrent_r.c (__internal_setnetgrent)
32028 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32029 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
32030 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32031 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32032 * nss/nsswitch.h (db_lookup_function): Likewise.
32033
32034 2017-08-13 Florian Weimer <fweimer@redhat.com>
32035
32036 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32037 Remove internal_function.
32038 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32039 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32040 message argument on the stack.
32041 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32042 Likeweise.
32043
32044 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32045
32046 Adapt test case data to the changes in the thousands
32047 separators.
32048
32049 [BZ #20756]
32050 * localedata/tst-langinfo.sh: Adapt test case data.
32051 * stdlib/tst-strfmon_l.c: Likewise.
32052 * stdlib/tst-strtod4.c: Likewise.
32053 * stdlib/tst-strtod5i.c: Likewise.
32054
32055 2017-08-11 Florian Weimer <fweimer@redhat.com>
32056
32057 [BZ #21242]
32058 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32059 Suppress pedantic warning resulting from statement expression.
32060 (__ASSERT_FUNCTION): Add missing __extension__.
32061
32062 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32063
32064 * benchtests/bench-memmove-large.c: Print output in JSON
32065 format.
32066 * benchtests/bench-memmove.c: Likewise.
32067
32068 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32069 * benchtests/bench-memchr.c (do_one_test): Likewise.
32070 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32071 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32072 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32073 * benchtests/bench-memmove.c (do_one_test): Likewise.
32074 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32075 * benchtests/bench-memset.c (do_one_test): Likewise.
32076 * benchtests/bench-string.h (test_init): Remove memsets.
32077
32078 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32079
32080 * manual/lang.texi
32081 (Computing the Width of an Integer Data Type): Rename section to
32082 "Width of an Integer Type". Remove inaccurate statement regarding
32083 lack of C language facilities for determining width of integer
32084 types, and reorder content to improve flow and context of
32085 discussion.
32086
32087 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32088
32089 * lang.texi (va_copy): Change standard from ISO to C99.
32090 (__va_copy): Add standard and header annotation.
32091 Update description for clarity of origins and current use.
32092
32093 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32094
32095 [BZ #21941]
32096 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32097 xssqrtqp requires operands to be in Vector Registers
32098 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32099 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32100 (__ieee754_sqrtf128): Likewise.
32101
32102 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32103
32104 * sysdeps/aarch64/memcmp.S (memcmp):
32105 Rewrite of optimized memcmp.
32106
32107 2017-08-10 Florian Weimer <fweimer@redhat.com>
32108
32109 Introduce ld.so exceptions.
32110 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32111 (_dl_exception_create, _dl_exception_create_format)
32112 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32113 (_dl_catch_exception): Declare.
32114 (_dl_catch_error): Update comment.
32115 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32116 errstring, malloced members with exception member.
32117 (_dl_out_of_memory): Remove.
32118 (fatal_error): New function, extracted from _dl_signal_error.
32119 (_dl_signal_exception, _dl_signal_cexception): New functions.
32120 (_dl_signal_error): Call _dl_exception_create to allocate an
32121 exception object.
32122 (_dl_catch_exception): New function, based on _dl_catch_error.
32123 (_dl_catch_error): Implement using _dl_catch_exception.
32124 * elf/dl-exception.c: New file.
32125 * elf/Makefile (dl-routines): Add dl-exception.
32126 (elide-routines.os): Likewise.
32127 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32128 _dl_exception_create_format, _dl_exception_free.
32129 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32130 _dl_signal_exception.
32131 * elf/dl-lookup.c (make_string): Remove.
32132 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32133 _dl_signal_cexception, _dl_exception_free.
32134 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32135 _dl_signal_exception.
32136 * elf/dl-sym.c (do_sym): Likewise.
32137 * elf/dl-version.c (make_string): Remove.
32138 (match_symbol): Use _dl_exception_create_format,
32139 _dl_signal_cexception, _dl_exception_free.
32140 (_dl_check_map_versions): Likewise.
32141 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32142 _dl_catch_exception.
32143 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32144 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32145 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32146 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32147 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32148 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32149 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32150 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32151 Likewise.
32152 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32154 (ld.so): Likewise.
32155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32156 (ld.so): Likewise.
32157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32158 Likewise.
32159 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32160 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32161 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32162 Likewise.
32163 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32164 Likewise.
32165 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32166
32167 2017-08-10 Florian Weimer <fweimer@redhat.com>
32168
32169 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32170 attribute_hidden, internal_function.
32171 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32172 internal_function.
32173
32174 2017-08-10 Florian Weimer <fweimer@redhat.com>
32175
32176 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32177 function which calls __builtin_unreachable.
32178
32179 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32180
32181 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32182 Indian monetary formatting
32183 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32184 test cases.
32185
32186 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32187
32188 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32189 Fix typo in comment.
32190
32191 [BZ #21928]
32192 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32193 PTRACE_SEIZE_DEVEL): Remove.
32194 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32195 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32196 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32197 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32198 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32199
32200 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32201
32202 * posix/bits/types.h (__qaddr_t): Remove.
32203
32204 [BZ #21457]
32205 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32206 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32207 __glibc_reserved1.
32208 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32209 (ucontext_t): Use __ctx with uc_flags.
32210 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32211 (__ctxt): Likewise.
32212 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32213 __glibc_reserved1.
32214 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32215 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32216 __glibc_reserved1.
32217 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32218 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32219 __glibc_reserved1.
32220 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32221 macro.
32222 (ucontext_t): Use __ctx with uc_flags.
32223 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32224 (ucontext_t): Use __ctx with uc_flags.
32225 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32226 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32227 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32228 (ucontext_t): Use __ctx with uc_flags.
32229 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32230 undefine further down.
32231 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32232 __glibc_reserved1.
32233 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32234 undefine further down.
32235 (ucontext_t): Use __ctx with uc_flags.
32236 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32237 undefine further down.
32238 (ucontext_t): Use __ctx with uc_flags.
32239 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32240 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32241 Rename uc_pad to __glibc_reserved1.
32242 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32243 undefine further down.
32244 (ucontext_t): Use __ctx with uc_flags.
32245 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32246 further down.
32247 (ucontext_t): Use __ctx with uc_flags.
32248 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32249 __ctx with uc_flags.
32250 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32251 (ucontext_t): Use __ctx with uc_flags.
32252 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32253 __ctx with uc_flags.
32254
32255 2017-08-09 Florian Weimer <fweimer@redhat.com>
32256
32257 [BZ #21932]
32258 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32259 before early return.
32260
32261 2017-08-09 Andreas Schwab <schwab@suse.de>
32262
32263 [BZ #21041]
32264 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32265 renamed alias.
32266
32267 [BZ #21041]
32268 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32269 tst-compat-forwarder.
32270 (modules-names): Add tst-compat-forwarder-mod.
32271 ($(objpfx)tst-compat-forwarder): Depend on
32272 $(objpfx)tst-compat-forwarder-mod.so.
32273 * nptl/tst-compat-forwarder.c: New file.
32274 * nptl/tst-compat-forwarder-mod.c: New file.
32275
32276 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32277
32278 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32279 comments.
32280
32281 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32282 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32283 memcpy_falkor.
32284 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32285 Bump.
32286 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32287 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32288 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32289 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32290 Add falkor.
32291 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32292 New macro.
32293
32294 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32295
32296 [BZ #759]
32297 * manual/setjmp.texi (getcontex): Document uc_stack value
32298 compatibility differences.
32299
32300 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32301
32302 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32303 (old_malloc_hook): Likewise.
32304 (old_memalign_hook): Likewise.
32305 (old_realloc_hook): Likewise.
32306 (struct hdr): Likewise.
32307 (flood): Likewise.
32308 (freehook): Likewise.
32309 (mallochook): Likewise.
32310 (memalignhook): Likewise.
32311 (reallochook): Likewise.
32312 (mprobe): Likewise.
32313 * malloc/mtrace.c (mallwatch): Likewise.
32314 (tr_old_free_hook): Likewise.
32315 (tr_old_malloc_hook): Likewise.
32316 (tr_old_realloc_hook): Likewise.
32317 (tr_old_memalign_hook): Likewise.
32318 (tr_where): Likewise.
32319 (lock_and_info): Likewise.
32320 (tr_freehook): Likewise.
32321 (tr_mallochook): Likewise.
32322 (tr_reallochook): Likewise.
32323 (tr_memalignhook): Likewise.
32324 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32325 * misc/mmap.c (__mmap): Likewise.
32326 * misc/mmap64.c (__mmap64): Likewise.
32327 * misc/mprotect.c (__mprotect): Likewise.
32328 * misc/msync.c (msync): Likewise.
32329 * misc/munmap.c (__munmap): Likewise.
32330 * posix/posix_madvise.c (posix_madvise): Likewise.
32331 * socket/send.c (__send): Likewise.
32332 * socket/sendto.c (__sendto): Likewise.
32333 * socket/setsockopt.c (__setsockopt): Likewise.
32334 * string/memcmp.c (__ptr_t): Remove macro.
32335 (MEMCMP): Use void * instead of ptr_t.
32336 * string/memrchr.c (__ptr_t): Remove macro.
32337 (__memrchr): Use void * instead of ptr_t.
32338 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32339 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32340 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32341 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32342 * sysdeps/mach/msync.c (msync): Likewise.
32343 * sysdeps/mach/munmap.c (__munmap): Likewise.
32344 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32345 Likewise.
32346 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32347 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32348 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32349 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32350 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32351 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32352 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32353 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32354 Likewise.
32355 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32356 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32357 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32358 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32359 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32360 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32361 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32362 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32363 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32364 Likewise.
32365 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32366 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32367 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32368 (MEMCMP): Use void * instead of ptr_t.
32369 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32370 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32371
32372 2017-08-08 Florian Weimer <fweimer@redhat.com>
32373
32374 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32375 return statement.
32376
32377 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32378
32379 [BZ #21913]
32380 * csu/libc-tls.c: Include <startup.h> first.
32381 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32382 * elf/dl-tunables.c: Include <startup.h> first.
32383 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32384 * sysdeps/generic/startup.h: New file.
32385 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32386 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32387 (I386_USE_SYSENTER): New. Defined to 0.
32388
32389 2017-08-08 Andreas Schwab <schwab@suse.de>
32390
32391 [BZ #21041]
32392 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32393 * nptl/pt-system.c (system): Likewise.
32394
32395 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32396
32397 [BZ #21780]
32398 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32399 EOPNOTSUPP.
32400 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32401 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32402 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32403 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32404 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32405 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32406 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32407
32408 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32409
32410 [BZ #21899]
32411 * bits/sigaction.h (struct sigaction): Define sa_handler and
32412 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32413 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32414 [__USE_XOPEN_EXTENDED].
32415 (SA_RESTART): Likewise.
32416 (SA_NODEFER): Likewise.
32417 (SA_RESETHAND): Likewise.
32418 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32419 (struct sigaction): Define sa_handler and sa_sigaction using union
32420 also for [__USE_XOPEN_EXTENDED].
32421 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32422 [__USE_XOPEN_EXTENDED].
32423 (SA_RESTART): Likewise.
32424 (SA_NODEFER): Likewise.
32425 (SA_RESETHAND): Likewise.
32426 * sysdeps/unix/sysv/linux/bits/sigaction.h
32427 (struct sigaction): Define sa_handler and sa_sigaction using union
32428 also for [__USE_XOPEN_EXTENDED].
32429 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32430 [__USE_XOPEN_EXTENDED].
32431 (SA_RESTART): Likewise.
32432 (SA_NODEFER): Likewise.
32433 (SA_RESETHAND): Likewise.
32434 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32435 (struct sigaction): Define sa_handler and sa_sigaction using union
32436 also for [__USE_XOPEN_EXTENDED].
32437 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32438 [__USE_XOPEN_EXTENDED].
32439 (SA_RESTART): Likewise.
32440 (SA_NODEFER): Likewise.
32441 (SA_RESETHAND): Likewise.
32442 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32443 (struct sigaction): Define sa_handler and sa_sigaction using union
32444 also for [__USE_XOPEN_EXTENDED].
32445 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32446 [__USE_XOPEN_EXTENDED].
32447 (SA_RESTART): Likewise.
32448 (SA_NODEFER): Likewise.
32449 (SA_RESETHAND): Likewise.
32450 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32451 (struct sigaction): Define sa_handler and sa_sigaction using union
32452 also for [__USE_XOPEN_EXTENDED].
32453 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32454 [__USE_XOPEN_EXTENDED].
32455 (SA_RESTART): Likewise.
32456 (SA_NODEFER): Likewise.
32457 (SA_RESETHAND): Likewise.
32458 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32459 (struct sigaction): Define sa_handler and sa_sigaction using union
32460 also for [__USE_XOPEN_EXTENDED].
32461 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32462 [__USE_XOPEN_EXTENDED].
32463 (SA_RESTART): Likewise.
32464 (SA_NODEFER): Likewise.
32465 (SA_RESETHAND): Likewise.
32466 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32467 (struct sigaction): Define sa_handler and sa_sigaction using union
32468 also for [__USE_XOPEN_EXTENDED].
32469 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32470 [__USE_XOPEN_EXTENDED].
32471 (SA_RESTART): Likewise.
32472 (SA_NODEFER): Likewise. Define directly rather than as alias.
32473 (SA_RESETHAND): Likewise.
32474 (SA_INTERRUPT): Define only for [__USE_MISC].
32475 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32476 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32477 [__USE_MISC].
32478 (SA_STACK): Define only for [__USE_MISC].
32479 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32480 (struct sigaction): Define sa_handler and sa_sigaction using union
32481 also for [__USE_XOPEN_EXTENDED].
32482 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32483 [__USE_XOPEN_EXTENDED].
32484 (SA_RESTART): Likewise.
32485 (SA_NODEFER): Likewise.
32486 (SA_RESETHAND): Likewise.
32487 (SA_NOPTRACE): Define only for [__USE_MISC].
32488
32489 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32490 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32491 (struct catalog_info): Likewise.
32492 * inet/htontest.c (lo): Likewise.
32493 (foo): Likewise.
32494 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32495 * inet/inet_net.c (inet_network): Likewise.
32496 * inet/inet_netof.c (inet_netof): Likewise.
32497 * inet/rcmd.c (__ivaliduser): Likewise.
32498 (iruserok): Likewise.
32499 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32500 * locale/programs/locale-spec.c (locale_special): Likewise.
32501 * nis/nis_findserv.c (struct findserv_req): Likewise.
32502 (__nis_findfastest_with_timeout): Likewise.
32503 * nss/test-netdb.c (test_network): Likewise.
32504 * resolv/inet_neta.c (inet_neta): Likewise.
32505 * resolv/ns_date.c (ns_datetosecs): Likewise.
32506 (SECS_PER_DAY): Likewise.
32507 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32508 Likewise.
32509 * resolv/res_comp.c (__putlong): Likewise.
32510 (__putshort): Likewise.
32511 (_getlong): Likewise.
32512 (_getshort): Likewise.
32513 * resolv/res_debug.c (p_time): Likewise.
32514 (precsize_ntoa): Likewise.
32515 (precsize_aton): Likewise.
32516 (latlon2ul): Likewise.
32517 (loc_aton): Likewise.
32518 (loc_ntoa): Likewise.
32519 * resolv/res_hconf.c (struct netaddr): Likewise.
32520 (_res_hconf_reorder_addrs): Likewise.
32521 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32522 (clnttcp_control): Likewise.
32523 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32524 (clntudp_control): Likewise.
32525 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32526 (clntunix_control): Likewise.
32527 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32528 * sunrpc/rpc/auth.h (union des_block): Likewise.
32529 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32530 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32531 (xdrrec_create): Likewise.
32532 (xdrrec_endofrecord): Likewise.
32533 (flush_out): Likewise.
32534 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32535 (xdrstdio_putlong): Likewise.
32536 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32537 Likewise.
32538
32539 * misc/sys/cdefs.h (__long_double_t): Remove.
32540 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32541 instead of __long_double_t,
32542 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32543
32544 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32545
32546 * benchtests/scripts/compare_strings.py: Avoid display error when
32547 running on a text terminal.
32548
32549 * benchtests/scripts/compare_strings.py (main): Add an
32550 optional -base option.
32551 (process_results): New argument base_func.
32552
32553 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32554 hardcoding memcpy.
32555 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32556 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32557
32558 2017-08-07 Andreas Schwab <schwab@suse.de>
32559
32560 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32561 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32562 * intl/Makefile ($(objpfx)tst-gettext.out)
32563 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32564 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32565 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32566 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32567 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32568 * posix/Makefile ($(objpfx)globtest.out)
32569 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32570 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32571 ($(objpfx)tst-printf.out): Likewise.
32572 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32573 ($(objpfx)tst-setcontext3.out): Likewise.
32574
32575 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32576
32577 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32578 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32579 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32580 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32581 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32582 and mptan-fma.
32583 (CFLAGS-doasin-fma.c): New.
32584 (CFLAGS-dosincos-fma.c): Likewise.
32585 (CFLAGS-e_asin-fma.c): Likewise.
32586 (CFLAGS-e_atan2-fma.c): Likewise.
32587 (CFLAGS-e_exp-fma.c): Likewise.
32588 (CFLAGS-e_log-fma.c): Likewise.
32589 (CFLAGS-e_pow-fma.c): Likewise.
32590 (CFLAGS-halfulp-fma.c): Likewise.
32591 (CFLAGS-mpa-fma.c): Likewise.
32592 (CFLAGS-mpatan-fma.c): Likewise.
32593 (CFLAGS-mpatan2-fma.c): Likewise.
32594 (CFLAGS-mpexp-fma.c): Likewise.
32595 (CFLAGS-mplog-fma.c): Likewise.
32596 (CFLAGS-mpsqrt-fma.c): Likewise.
32597 (CFLAGS-mptan-fma.c): Likewise.
32598 (CFLAGS-s_atan-fma.c): Likewise.
32599 (CFLAGS-sincos32-fma.c): Likewise.
32600 (CFLAGS-slowexp-fma.c): Likewise.
32601 (CFLAGS-slowpow-fma.c): Likewise.
32602 (CFLAGS-s_sin-fma.c): Likewise.
32603 (CFLAGS-s_tan-fma.c): Likewise.
32604 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32605 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32606 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32607 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32608 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32609 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32610 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32611 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32612 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32613 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32614 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32615 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32616 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32617 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32618 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32619 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32620 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32621 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32622 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32623 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32624 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32625 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32626 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32627 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32628 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32629 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32630 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32631 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32632 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32633 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32634 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32635
32636 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32637
32638 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32639 (min_of_type_f): New macro.
32640 (min_of_type_): Likewise.
32641 (min_of_type_l): Likewise.
32642 (min_of_type_f128): Likewise.
32643 (min_of_type): Define using __MATH_TG and taking an expression
32644 argument.
32645 (math_check_force_underflow): Pass expression instead of type to
32646 min_of_type.
32647 (math_check_force_underflow_nonneg): Likewise.
32648
32649 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32650
32651 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32652 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32653 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32654
32655 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32656
32657 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32658 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32659 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32660 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32661 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32662 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32663 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32664 memmove_chk-nonshared and memset_chk-nonshared
32665 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32666 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32667 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32668 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32669 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32670 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32671 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32672 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32673 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32674 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32675 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32676 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32677 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32678 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32679 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32680 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32681 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32682 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32683 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32684 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32685 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32686 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32687 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32688 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32689 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32690 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32691 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32692 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32693 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32694 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32695 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32696 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32697 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32698 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32699 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32700 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32701 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32702 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32703 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32704 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32705 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32706 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32707 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32708 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32709 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32711 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32713 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32715 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32716 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32717 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32718 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32719 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32720 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32721 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32722 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32723 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32724 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32725 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32726 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32727 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32728 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32729 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32730 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32731 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32732 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32733 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32734 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32735 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32736 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32737 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32738 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32739 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32740 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32741 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32742 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32743 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32744 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32745 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32746 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32747 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32748 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32749 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32750 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32751 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32752 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32753 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32754 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32755 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32756 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32757 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32758 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32759 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32760 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32761 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32762 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32763 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32764 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32765 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32766 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32767 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32768 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32769 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32770 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32771 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32772 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32773
32774 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32775
32776 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32777 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32778 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32779 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32780 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32781 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32782 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32783 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32784 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32785 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32786 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32787 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32788 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32789 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32790 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32791 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32792 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32793 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32794 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32795 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32796 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32797 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32799 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32800 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32801 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32802 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32804 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32805 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32806 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32807 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32809 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32810 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32811 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32812 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32814 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32815 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32816 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32817 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32818 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32819 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32820 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32821 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32822 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32823 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32824 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32825 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32826 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32827 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32828 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32829 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32830 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32831 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32832 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32833 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32834 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32835 ...
32836 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32837 Don't include <sysdep.h> nor <init-arch.h>.
32838 (_ZGVbN2v_cos): Removed.
32839 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32840 ...
32841 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32842 Don't include <sysdep.h> nor <init-arch.h>.
32843 (_ZGVdN4v_cos): Removed.
32844 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32845 ...
32846 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32847 Don't include <sysdep.h> nor <init-arch.h>.
32848 (_ZGVeN8v_cos): Removed.
32849 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32850 ...
32851 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32852 Don't include <sysdep.h> nor <init-arch.h>.
32853 (_ZGVbN2v_exp): Removed.
32854 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32855 ...
32856 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32857 Don't include <sysdep.h> nor <init-arch.h>.
32858 (_ZGVdN4v_exp): Removed.
32859 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32860 ...
32861 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32862 Don't include <sysdep.h> nor <init-arch.h>.
32863 (_ZGVeN8v_exp): Removed.
32864 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32865 ...
32866 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32867 Don't include <sysdep.h> nor <init-arch.h>.
32868 (_ZGVbN2v_log): Removed.
32869 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32870 ...
32871 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32872 Don't include <sysdep.h> nor <init-arch.h>.
32873 (_ZGVdN4v_log): Removed.
32874 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32875 ...
32876 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32877 Don't include <sysdep.h> nor <init-arch.h>.
32878 (_ZGVeN8v_log): Removed.
32879 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32880 ...
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32882 Don't include <sysdep.h> nor <init-arch.h>.
32883 (_ZGVbN2vv_pow): Removed.
32884 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32885 ...
32886 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32887 Don't include <sysdep.h> nor <init-arch.h>.
32888 (_ZGVdN4vv_pow): Removed.
32889 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32890 ...
32891 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32892 Don't include <sysdep.h> nor <init-arch.h>.
32893 (_ZGVeN8vv_pow): Removed.
32894 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32895 ...
32896 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32897 Don't include <sysdep.h> nor <init-arch.h>.
32898 (_ZGVbN2v_sin): Removed.
32899 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32900 ...
32901 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32902 Don't include <sysdep.h> nor <init-arch.h>.
32903 (_ZGVbN4v_sin): Removed.
32904 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32905 ...
32906 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32907 Don't include <sysdep.h> nor <init-arch.h>.
32908 (_ZGVbN8v_sin): Removed.
32909 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32910 ...
32911 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32912 Don't include <sysdep.h> nor <init-arch.h>.
32913 (_ZGVbN2vvv_sincos): Removed.
32914 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32915 ...
32916 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32917 Don't include <sysdep.h> nor <init-arch.h>.
32918 (_ZGVdN4vvv_sincos): Removed.
32919 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32920 ...
32921 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32922 Don't include <sysdep.h> nor <init-arch.h>.
32923 (_ZGVeN8vvv_sincos): Removed.
32924 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32925 ...
32926 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32927 Don't include <sysdep.h> nor <init-arch.h>.
32928 (_ZGVeN16v_cosf): Removed.
32929 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32930 ...
32931 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32932 Don't include <sysdep.h> nor <init-arch.h>.
32933 (_ZGVbN4v_cosf): Removed.
32934 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32935 ...
32936 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32937 Don't include <sysdep.h> nor <init-arch.h>.
32938 (_ZGVdN8v_cosf): Removed.
32939 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32940 ...
32941 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32942 Don't include <sysdep.h> nor <init-arch.h>.
32943 (_ZGVeN16v_expf): Removed.
32944 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32945 ...
32946 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32947 Don't include <sysdep.h> nor <init-arch.h>.
32948 (_ZGVbN4v_expf): Removed.
32949 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32950 ...
32951 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32952 Don't include <sysdep.h> nor <init-arch.h>.
32953 (_ZGVdN8v_expf): Removed.
32954 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32955 ...
32956 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32957 Don't include <sysdep.h> nor <init-arch.h>.
32958 (_ZGVeN16v_logf): Removed.
32959 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32960 ...
32961 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32962 Don't include <sysdep.h> nor <init-arch.h>.
32963 (_ZGVbN4v_logf): Removed.
32964 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32965 ...
32966 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32967 Don't include <sysdep.h> nor <init-arch.h>.
32968 (_ZGVdN8v_logf): Removed.
32969 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32970 ...
32971 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32972 Don't include <sysdep.h> nor <init-arch.h>.
32973 (_ZGVeN16vv_powf): Removed.
32974 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32975 ...
32976 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32977 Don't include <sysdep.h> nor <init-arch.h>.
32978 (_ZGVbN4vv_powf): Removed.
32979 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32980 ...
32981 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32982 Don't include <sysdep.h> nor <init-arch.h>.
32983 (_ZGVdN8vv_powf): Removed.
32984 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32985 ...
32986 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32987 Don't include <sysdep.h> nor <init-arch.h>.
32988 (_ZGVeN16vvv_sincosf): Removed.
32989 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32990 ...
32991 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32992 Don't include <sysdep.h> nor <init-arch.h>.
32993 (_ZGVbN4vvv_sincosf): Removed.
32994 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32995 ...
32996 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32997 Don't include <sysdep.h> nor <init-arch.h>.
32998 (_ZGVdN8vvv_sincosf): Removed.
32999 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
33000 ...
33001 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
33002 Don't include <sysdep.h> nor <init-arch.h>.
33003 (_ZGVeN16v_sinf): Removed.
33004 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
33005 ...
33006 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
33007 Don't include <sysdep.h> nor <init-arch.h>.
33008 (_ZGVbN4v_sinf): Removed.
33009 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
33010 ...
33011 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
33012 Don't include <sysdep.h> nor <init-arch.h>.
33013 (_ZGVdN8v_sinf): Removed.
33014
33015 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33016
33017 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33018 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
33019 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
33020 s_rint-sse4_1 and s_rintf-sse4_1.
33021 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
33022 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
33023 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
33024 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
33025 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
33026 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
33027 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
33028 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
33029 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
33030 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33031 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
33032 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33033 (__ceil): Removed.
33034 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33035 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
33036 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33037 (__ceilf): Removed.
33038 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33039 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
33040 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33041 (__floor): Removed.
33042 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33043 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33044 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33045 (__floorf): Removed.
33046 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33047 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33048 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33049 (__nearbyint): Removed.
33050 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33051 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33052 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33053 (__nearbyintf): Removed.
33054 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33055 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33056 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33057 (__rint): Removed.
33058 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33059 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33060 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33061 (__rintf): Removed.
33062
33063 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33064
33065 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33066 SHARED. Avoid dynamic relocation against main in static PIE.
33067
33068 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33069
33070 [BZ #21815]
33071 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33072 (LDFLAGS-tst-prelink): Likewise.
33073
33074 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33075
33076 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33077 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33078 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33079 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33080 (INTERNAL_SYSCALL_NCS): Likewise.
33081 (LOADARGS_1): Likewise.
33082 (LOADARGS_5): Likewise.
33083 (RESTOREARGS_1): Likewise.
33084 (RESTOREARGS_5): Likewise.
33085
33086 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33087
33088 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33089 (MEMPCPY_SYMBOL): Likewise.
33090 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33091 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33092 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33093 in libc.a.
33094 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33095 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33096 Likewise.
33097 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33098 (__hidden_ver1): Don't use in libc.a.
33099 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33100 (__mempcpy): Don't create a weak alias in libc.a.
33101 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33102 libc.a.
33103 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33104 (__hidden_ver1): Don't use in libc.a.
33105
33106 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33107
33108 * config.make.in (have-insert): New.
33109 * configure.ac (libc_cv_insert): New. Set to yes if linker
33110 supports INSERT in linker script.
33111 (AC_SUBST(libc_cv_insert): New.
33112 * configure: Regenerated.
33113 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33114 if $(have-insert) == yes.
33115
33116 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33117
33118 * elf/Makefile (tests): Add vismain only if
33119 $(have-protected-data) == yes.
33120 (tests-pie): Likewise.
33121
33122 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33123
33124 [BZ #21871]
33125 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33126 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33127
33128 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33129
33130 [BZ #21790]
33131 * sysdeps/i386/i586/memset.S
33132 (__memset_zero_constant_len_parameter): Removed.
33133 * sysdeps/i386/i686/memset.S
33134 (__memset_zero_constant_len_parameter): Likewise.
33135 * sysdeps/i386/i686/multiarch/memset_chk.S
33136 (__memset_zero_constant_len_parameter): Likewise.
33137 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33138 Likewise.
33139
33140 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33141
33142 * stdlib/getentropy.c (getentropy): Change return type to int.
33143
33144 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33145
33146 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33147
33148 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33149
33150 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33151 u_intN_t.
33152 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33153 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33154 Likewise.
33155 (ieee_float_shape_type): Likewise.
33156 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33157 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33158 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33159 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33160 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33161 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33162 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33163 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33164 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33165 Likewise.
33166 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33167 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33168 (__ieee754_yn): Likewise.
33169 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33170 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33171 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33172 Likewise.
33173 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33174 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33175 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33176 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33177 (__erfc): Likewise.
33178 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33179 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33180 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33181 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33182 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33183 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33184 Likewise.
33185 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33186 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33187 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33188 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33189 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33190 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33191 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33192 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33193 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33194 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33195 (__issignaling): Likewise.
33196 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33197 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33198 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33199 Likewise.
33200 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33201 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33202 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33203 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33204 Likewise.
33205 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33206 Likewise.
33207 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33208 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33209 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33210 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33211 (__erfcf): Likewise.
33212 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33213 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33214 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33215 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33216 Likewise.
33217 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33218 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33219 Likewise.
33220 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33221 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33222 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33223 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33224 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33225 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33226 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33227 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33228 Likewise.
33229 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33230 Likewise.
33231 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33232 Likewise.
33233 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33234 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33235 Likewise.
33236 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33237 Likewise.
33238 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33239 (__ieee754_ynl): Likewise.
33240 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33241 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33242 Likewise.
33243 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33244 Likewise.
33245 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33246 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33247 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33248 Likewise.
33249 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33250 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33251 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33252 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33253 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33254 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33255 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33256 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33257 Likewise.
33258 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33259 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33260 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33261 Likewise.
33262 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33263 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33264 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33265 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33266 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33267 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33268 Likewise.
33269 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33270 Likewise.
33271 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33272 Likewise.
33273 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33274 Likewise.
33275 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33276 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33277 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33278 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33279 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33280 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33281 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33282 Likewise.
33283 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33284 Likewise.
33285 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33286 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33287 Likewise.
33288 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33289 (__ieee754_remainderl): Likewise.
33290 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33291 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33292 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33293 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33294 Likewise.
33295 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33296 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33297 Likewise.
33298 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33299 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33300 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33301 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33302 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33303 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33304 Likewise.
33305 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33306 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33307 (__ieee754_y0l): Likewise.
33308 (pzero): Likewise.
33309 (qzero): Likewise.
33310 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33311 (__ieee754_y1l): Likewise.
33312 (pone): Likewise.
33313 (qone): Likewise.
33314 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33315 (__ieee754_ynl): Likewise.
33316 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33317 (__ieee754_lgammal_r): Likewise.
33318 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33319 Likewise.
33320 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33321 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33322 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33323 (__erfcl): Likewise.
33324 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33325 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33326 Likewise.
33327 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33328 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33329 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33330 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33331 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33332 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33333 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33334 Likewise.
33335 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33336 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33337 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33338 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33339 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33340 Likewise.
33341 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33342 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33343 Likewise.
33344 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33345 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33346 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33347 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33348 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33349
33350 2017-08-03 Florian Weimer <fweimer@redhat.com>
33351
33352 [BZ #21885]
33353 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33354 on memory allocation failure.
33355
33356 2017-08-03 Alan Modra <amodra@gmail.com>
33357
33358 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33359 tst-tlsopt-powerpc.c with function name change and no test harness.
33360 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33361 Call tls_get_addr_opt_test.
33362 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33363 (modules-names): Add mod-tlsopt-powerpc.
33364 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33365 (tst-tlsopt-powerpc): Depend on .so.
33366 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33367 define. Expand use in TLS_GD and TLS_LD.
33368
33369 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33370
33371 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33372 function.
33373 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33374
33375 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33376
33377 [BZ #21686]
33378 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33379 comparing size with that of double.
33380 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33381 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33382 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33383 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33384 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33385 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33386 unsigned __int128 types.
33387
33388 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33389
33390 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33391 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33392 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33393 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33394 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33395
33396 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33397
33398 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33399
33400 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33401
33402 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33403 of SHARED.
33404 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33405 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33406 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33407 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33408 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33409 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33410 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33411
33412 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33413
33414 [BZ #21685]
33415 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33416 bit-field expressions passed to sizeof or typeof.
33417 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33418 (__TGMATH_F128): Likewise.
33419 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33420 (__TGMATH_CF128): Likewise.
33421 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33422 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33423 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33424 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33425 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33426 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33427 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33428 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33429 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33430 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33431 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33432 (__TGMATH_UNARY_IMAG): Likewise.
33433 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33434 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33435 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33436 type.
33437 (define_vars_for_type): Handle bit_field type specially.
33438 (Tests.__init__): Declare structure with bit-field element.
33439
33440 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33441
33442 [BZ #21791]
33443 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33444 (MEMCPY_CHK): Define only if SHARED is defined.
33445 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33446 Likewise.
33447 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33448 Likewise.
33449
33450 See ChangeLog.18 for earlier changes.