]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
c36f8fd9e6575216f8575f56c464f3c839bff019
[thirdparty/glibc.git] / ChangeLog
1 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
4 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
5 powerpc32 integer 0 converting to -0.
6
7 * benchtests/Makefile (bench-math): Add logb.
8 * benchtests/logb-inputs: New file.
9 * benchtests/logbf-inputs: New file.
10
11 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
12 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
13 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
14 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
15 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
16 Adjust include.
17 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
18 Likewise.
19 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
20 sysdep_routines): Add s_modf* objects.
21 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
22 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
23 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
24 to ...
25 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
26 ... here.
27 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
28 to ...
29 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
30 ... here.
31 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
32 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
33 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
34 to ...
35 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
36 ... here.
37 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
38 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
39 ... here.
40 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
41 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
42
43 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
44 twoM500, twoM600, two60factor, pdnum): Remove.
45 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
46 (__ieee754_hypot): Replace static variables with inline definition,
47 remove ununsed branches.
48 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
49 (libm-sysdep_routines): Remove e_hypot-* objects.
50 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
51 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
52 file.
53 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
54 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
55 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
56 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
57 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
58
59 * benchtests/Makefile (bench-math): Add hypot.
60 * benchtests/hypot-inputs: New file.
61
62 2019-07-08 Vincent Chen <vincentc@andestech.com>
63
64 * sysdeps/unix/sysv/linux/dl-vdso.h
65 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
66
67 2019-07-04 Andreas Schwab <schwab@suse.de>
68
69 [BZ #24484]
70 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
71
72 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
73
74 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
75 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
76 * sysdeps/aarch64/sys/ifunc.h: New file.
77 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
78 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
79
80 2019-07-01 Florian Weimer <fweimer@redhat.com>
81
82 [BZ #20188]
83 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
84 Replace __vfork with __libpthread_version_placeholder for
85 GLIBC_2.1.2.
86 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
87 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
88 libpthread-compat.
89 * nptl/pt-vfork.c: Remove file.
90 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
91 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
92 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
93 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
94 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
95 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
96 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
97 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
98 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
99 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
100 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
101 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
102 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
103 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
104 Remove vfork, __vfork.
105 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
106 Remove vfork.
107 (GLIBC_2.1.2): Replace __vfork with
108 __libpthread_version_placeholder.
109 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
110 Remove vfork, __vfork.
111 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
112 Likewise.
113 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
114 Remove vfork.
115 (GLIBC_2.1.2): Replace __vfork with
116 __libpthread_version_placeholder.
117 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
118 Remove vfork.
119 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
120 (GLIBC_2.4): Remove vfork, __vfork.
121 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
122 (GLIBC_2.0): Remove vfork.
123 (GLIBC_2.1.2): Replace __vfork with
124 __libpthread_version_placeholder.
125 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
126 (GLIBC_2.18): Remove vfork, __vfork.
127 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
128 (GLIBC_2.0): Remove vfork.
129 (GLIBC_2.2): Remove __vfork.
130 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
131 (GLIBC_2.2): Remove vfork, __vfork.
132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
133 (GLIBC_2.0): Remove vfork.
134 (GLIBC_2.1.2): Replace __vfork with
135 __libpthread_version_placeholder.
136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
137 (GLIBC_2.3): Remove vfork, __vfork.
138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
139 (GLIBC_2.17): Likewise.
140 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
141 (GLIBC_2.0): Remove vfork.
142 (GLIBC_2.1.2): Replace __vfork with
143 __libpthread_version_placeholder.
144 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
145 (GLIBC_2.2): Remove vfork, __vfork.
146 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
147 Likewise.
148 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
149 (GLIBC_2.0): Remove vfork.
150 (GLIBC_2.1.2): Replace __vfork with
151 __libpthread_version_placeholder.
152 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
153 (GLIBC_2.2): Remove vfork, __vfork.
154 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
155 (GLIBC_2.2.5): Likewise.
156 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
157 (GLIBC_2.16): Likewise.
158 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
159 Remove __errno_location.
160
161 2019-07-02 Florian Weimer <fweimer@redhat.com>
162
163 [BZ #24757]
164 * malloc/Depend: Add nptl and htl, due to potential indirect
165 libpthread dependency of memusagestat.
166
167 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
168
169 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
170 warning.
171
172 2019-07-01 Florian Weimer <fweimer@redhat.com>
173
174 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
175 variant for arm-linux-gnueabi.
176
177 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
178
179 [BZ #24259]
180 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
181 relocation.
182 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
183 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
184 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
185 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
186 and tst-cet-legacy-mod-6c.
187 (CFLAGS-tst-cet-legacy-5a.c): New.
188 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
189 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
190 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
191 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
192 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
193 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
194 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
195 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
196 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
197 ($(objpfx)tst-cet-legacy-5a): Likewise.
198 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
199 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
200 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
201 ($(objpfx)tst-cet-legacy-5b): Likewise.
202 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
203 (tst-cet-legacy-5b-ENV): Likewise.
204 ($(objpfx)tst-cet-legacy-6a): Likewise.
205 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
206 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
207 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
208 ($(objpfx)tst-cet-legacy-6b): Likewise.
209 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
210 (tst-cet-legacy-6b-ENV): Likewise.
211 * sysdeps/x86/tst-cet-legacy-5.c: New file.
212 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
213 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
214 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
215 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
216 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
217 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
218 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
219 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
220 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
221 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
222 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
223 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
224 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
225
226 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
227
228 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
229 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
230 (__fegetround_ISA300) New.
231 (__fegetround_ISA2) New.
232 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
233 (_FPU_MFFS): Move implementation...
234 (_FPU_GETCW): Here.
235 (_FPU_MFFSL): Move implementation....
236 (_FPU_GET_RC_ISA300): Here. New.
237 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
238 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
239 (fegetenv_status): New.
240 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
241 instead of fegetenv_register().
242 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
243
244 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
245
246 * benchtests/bench-math-inlines.c: Increase iterations.
247 * benchtests/bench-memcmp.c: Likewise.
248 * benchtests/bench-rawmemchr.c: Likewise.
249 * benchtests/bench-strcmp.c: Likewise.
250 * benchtests/bench-strcpy_chk.c: Likewise.
251 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
252 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
253 (INNER_LOOP_ITERS_SMALL): Likewise.
254 * benchtests/bench-strncat.c: Increase iterations.
255 * benchtests/bench-strncmp.c: Increase iterations.
256 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
257 * benchtests/bench-strrchr.c: Increase iterations.
258 * benchtests/bench-strstr.c: Keep iterations unchanged.
259 * benchtests/bench-strtod.c: Increase iterations.
260
261 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
262
263 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
264 with INNER_LOOP_ITERS_LARGE.
265 * benchtests/bench-memchr.c: Likewise.
266 * benchtests/bench-rawmemchr.c: Likewise.
267 * benchtests/bench-strcat.c: Likewise.
268 * benchtests/bench-strchr.c: Likewise.
269 * benchtests/bench-string.h: Likewise.
270 * benchtests/bench-strlen.c: Likewise.
271 * benchtests/bench-strncpy.c: Likewise.
272 * benchtests/bench-strnlen.c: Likewise.
273
274 2019-06-28 Florian Weimer <fweimer@redhat.com>
275
276 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
277 Use mmap instead of malloc. malloc with M_PERTURB writes to the
278 entire allocated memory range.
279
280 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
281
282 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
283 (prepare_version_base): New helper inline function.
284 (prepare_version): New macro replacing PREPARE_VERSION.
285 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
286
287 2019-06-28 Florian Weimer <fweimer@redhat.com>
288
289 [BZ #24741]
290 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
291 mismatch in a versioned symbol reference.
292 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
293 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
294 tst-sonamemove-dlopen.
295 (module-names): Add tst-sonamemove-linkmod1,
296 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
297 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
298 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
299 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
300 (tst-sonamemove-runmod1.so): Link against
301 tst-sonamemove-runmod2.so.
302 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
303 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
304 tst-sonamemove-runmod2.so.
305 (tst-sonamemove-dlopen): Link with -ldl.
306 (tst-sonamemove-dlopen.out): Likewise.
307 * elf/tst-sonamemove-link.c: New file.
308 * elf/tst-sonamemove-dlopen.c: Likewise.
309 * elf/tst-sonamemove-linkmod1.c: Likewise.
310 * elf/tst-sonamemove-linkmod1.map: Likewise.
311 * elf/tst-sonamemove-runmod1.c: Likewise.
312 * elf/tst-sonamemove-runmod1.map: Likewise.
313 * elf/tst-sonamemove-runmod2.c: Likewise.
314 * elf/tst-sonamemove-runmod2.map: Likewise.
315
316 2019-06-28 Florian Weimer <fweimer@redhat.com>
317
318 * support/xdlfcn.h (xdlvsym): Declare function.
319 * support/xdlfcn.c (xdlvsym): Define funciton.
320
321 2019-06-28 Florian Weimer <fweimer@redhat.com>
322
323 [BZ #24744]
324 io: Remove the copy_file_range emulation.
325 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
326 not define and call copy_file_range_compat.
327 * io/Makefile (tests-static, tests-internal): Do not add
328 tst-copy_file_range-compat.
329 * io/copy_file_range-compat.c: Remove file.
330 * io/copy_file_range.c (copy_file_range): Define as stub.
331 * io/tst-copy_file_range-compat.c: Remove file.
332 * io/tst-copy_file_range.c (xdevfile): Remove variable.
333 (typical_sizes): Update comment. Remove 16K sizes.
334 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
335 Remove variables.
336 (find_maximum_offset, pipe_as_source, pipe_as_destination)
337 (delayed_write_failure_beginning, delayed_write_failure_end)
338 (cross_device_failure, enospc_failure_1, enospc_failure)
339 (oappend_failure): Remove functions.
340 (tests): Adjust test case list.
341 (do_test): Remove file system search code. Check for ENOSYS from
342 copy_file_range. Do not free xdevfile.
343 * manual/llio.texi (Copying File Data): Document ENOSYS error from
344 copy_file_range. Do not document the EXDEV error, which future
345 kernels may not report. Update the wording to reflect that
346 further errors are possible.
347 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
348 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
349 not undefine.
350 * sysdeps/unix/sysv/linux/arm/kernel-features.h
351 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
352 Likewise.
353 * sysdeps/unix/sysv/linux/kernel-features.h
354 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
355 Remove definition.
356 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
357 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
358 not undefine.
359 * sysdeps/unix/sysv/linux/sh/kernel-features.h
360 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
361 Likewise.
362
363 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
364
365 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
366 used as a mask for the mode argument of __vfprintf_internal.
367 * stdio-common/printf-parse.h (printf_arg): New union member:
368 pa_float128.
369 * stdio-common/vfprintf-internal.c
370 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
371 (PARSE_FLOAT_VA_ARG): Likewise.
372 (SETUP_FLOAT128_INFO): Likewise.
373 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
374 SETUP_FLOAT128_INFO.
375 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
376 floating-point value to the new union member, pa_float128.
377 (printf_positional): Zero-initialize args_value[cnt] with memset.
378
379 2019-06-27 Florian Weimer <fweimer@redhat.com>
380
381 [BZ #24740]
382 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
383 buffer size if necessary.
384 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
385 Likewise.
386 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
387 New function.
388 (large_buffer_checks): Likewise.
389 (do_test): Call large_buffer_checks.
390
391 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
392
393 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
394 * sysdeps/x86/dl-lookupcfg.h: Here.
395 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
396
397 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
398
399 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
400 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
401 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
402 file.
403 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
404 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
405 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
406 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
407 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
408
409 * sysdeps/powerpc/powerpc32/fpu/Makefile
410 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
411 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
412 and fctidz optimization.
413 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
414 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
416 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
417 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
418 CFLAGS-s_lround-power5+.c): New rule.
419 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
420 New file.
421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
422 Likewise.
423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
424 Likewise.
425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
426 Likewise.
427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
428 Likewise.
429 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
430 Remove file.
431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
432 Likewise.
433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
434 Likewise.
435 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
436 Likewise.
437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
438 Likewise.
439 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
440 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
441 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
442 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
443 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
444 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
445 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
446
447 2019-06-26 Vincent Chen <vincentc@andestech.com>
448
449 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
450 specific system calls, fp_udfiex_crtl and udftrap.
451
452 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
453
454 * nptl/tst-eintr1.c (tf1): Add return statement.
455 (do_test): Remove unused th variable.
456
457 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
458
459 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
460 Return error if get_character fails.
461
462 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
463
464 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
465
466 2019-06-24 Rafal Luzynski <digitalfreak@lingonborough.com>
467
468 [BZ #24652]
469 * localedata/locales/szl_PL (day): Use the correct Unicode
470 sequences instead of non-ASCII characters.
471
472 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
473
474 [BZ #24652]
475 * localedata/locales/szl_PL (abday): Spelling corrections.
476 (day): Likewise.
477 (abmon): Likewise.
478 (mon): Rename to...
479 (alt_mon): This, then apply spelling corrections.
480 (mon): New entry, month names in the genitive case.
481
482 2019-06-21 Rafal Luzynski <digitalfreak@lingonborough.com>
483
484 [BZ #23831]
485 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
486 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
487 (thousands_sep): Likewise.
488 (grouping): Set to 3;3.
489
490 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
491
492 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
493 PREPARE_VERSION_KNOWN.
494 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
495 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
496 define.
497 (VDSO_HASH_LINUX_2_6_39): Likewise.
498 (VDSO_NAME_LINUX_4_9): Likewise.
499 (VDSO_HASH_LINUX_4_9): Likewise.
500 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
501 * sysdeps/unix/sysv/linux/powerpc/init-first.c
502 (_libc_vdso_platform_setup): Likewise.
503 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
504 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
505 Likewise.
506 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
507 Likewise.
508
509 2019-06-20 Mike Crowe <mac@mcrowe.com>
510
511 * nptl/eintr.c: Use libsupport.
512 * nptl/tst-eintr1.c: Likewise.
513 * nptl/tst-eintr2.c: Likewise.
514 * nptl/tst-eintr3.c: Likewise.
515 * nptl/tst-eintr4.c: Likewise.
516 * nptl/tst-eintr5.c: Likewise.
517 * nptl/tst-mutex-errorcheck.c: Likewise.
518 * nptl/tst-mutex5.c: Likewise.
519
520 * support/test-driver.h: Add verbose_printf macro.
521
522 * support/xtime.h: Add xclock_now() helper function.
523
524 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
525 Florian Weimer <fweimer@redhat.com>
526
527 [BZ #24228]
528 * libio/genops.c (_IO_unbuffer_all)
529 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
530 buffers and access _IO_FILE_complete members of legacy libio streams.
531 * libio/tst-bz24228.c: New file.
532 * libio/tst-bz24228.map: Likewise.
533 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
534 [build-shared] (generated): Add tst-bz24228.mtrace and
535 tst-bz24228.check.
536 [run-built-tests && build-shared] (tests-special): Add
537 $(objpfx)tst-bz24228-mem.out.
538 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
539 ($(objpfx)tst-bz24228-mem.out): New rule.
540
541 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
542
543 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
544 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
545 (__FPU_MFFSL): Likewise.
546 (_FPU_SETCW): Likewise.
547
548 2019-06-19 Stan Shebs <stanshebs@google.com>
549 Raoni Fassina Firmino <raoni@linux.ibm.com>
550
551 [BZ #24640]
552 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
553 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
554 static-linking version.
555 * sysdeps/unix/sysv/linux/powerpc/Makefile
556 (tests-static): Add test-gettimebasefreq-static.
557 (tests): Likewise.
558 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
559 New file.
560
561 2019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
562
563 [BZ #24614]
564 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
565 between the currency symbol and the minus sign).
566 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
567
568 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
569
570 [BZ #24556]
571 * string/test-strcasestr.c (check_result): Add NULL check.
572 * nss/tst-field.c (check_rewrite): Likewise.
573 * benchtests/bench-strstr.c (do_one_test): Likewise.
574 * string/test-strstr.c (check_result): Likewise.
575 * argp/argp-test.c (popt): Increase size of buf to 12.
576 * benchtests/bench-malloc-simple.c (bench):
577 Do not initialize tests array out of bounds.
578
579 2019-06-19 Florian Weimer <fweimer@redhat.com>
580
581 [BZ #24166]
582 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
583 dls_serpath field.
584
585 2019-06-18 Florian Weimer <fweimer@redhat.com>
586
587 [BZ #24323]
588 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
589 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
590 fail when called from dlopen.
591 * elf/Makefile [have-fpie && build-shared] (tests): Add
592 tst-dlopen-pie.
593 (tst-dlopen-pie): Link with -ldl.
594 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
595 * elf/tst-dlopen-pie.c (do_test): New file.
596
597 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
598
599 [BZ #24614]
600 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
601 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
602 between the currency symbol and the minus sign).
603 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
604 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
605
606 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
607
608 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
609 sysdep-rtld-routines): Remove rules.
610 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
611 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
612 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
613 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
614 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
615 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
616 vDSO path for SHARED.
617 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
618 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
619 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
620 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
621 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
622 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
623
624 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
625 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
626 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
627 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
628 CFLAGS-s_llround-power5+.c): New rule.
629 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
630 New file.
631 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
632 Likewise.
633 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
634 Likewise.
635 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
636 Likewise.
637 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
638 Likewise.
639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
640 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
642 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
644 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
645 * sysdeps/powerpc/powerpc64/fpu/Makefile
646 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
647 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
648 (libm-sysdep_routines): Remove s_llround-* objects.
649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
650 file.
651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
652 Likewise.
653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
654 Likewise.
655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
656 Likewise.
657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
658 Likewise.
659 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
660 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
661 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
662 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
663 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
664 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
665 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
666 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
667 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
668 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
669 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
670 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
671 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
672 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
673
674 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
675 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
676 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
677 * sysdeps/powerpc/powerpc32/fpu/Makefile
678 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
679 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
680 optimization.
681 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
682 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
683 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
685 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
686 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
687 CFLAGS-s_lrint-ppc32.c): New rule.
688 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
689 Remove file.
690 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
691 Likewise.
692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
693 Likewise.
694 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
695 Likewise.
696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
697 Likewise.
698 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
699 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
700 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
701 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
703 New file.
704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
705 Likewise.
706 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
707 Likewise.
708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
709 Likewise.
710 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
711 Likewise.
712
713 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
714 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
715 s_llrint-ppc64.
716 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
717 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
718 file.
719 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
720 Likewise.
721 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
722 Likewise.
723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
724 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
726 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
728 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
729 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
730 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
731 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
732 (libm-sysdep_routines): Remove s_llrint-* objects.
733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
734 file.
735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
736 Likewise.
737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
738 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
739 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
740 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
741 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
742 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
743 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
744 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
745 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
746 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
747
748 2019-06-14 Florian Weimer <fweimer@redhat.com>
749
750 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
751 argument to __glibc_has_include to inhibit macro expansion.
752
753 2019-06-14 Florian Weimer <fweimer@redhat.com>
754
755 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
756 function-like macro, so that __has_include can inhibit expansion
757 of its argument.
758
759 2019-06-13 Joseph Myers <joseph@codesourcery.com>
760
761 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
762 New macro.
763
764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
765 Allow memset in libc.so.
766
767 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
768
769 * sysdeps/aarch64/dl-dtprocnum.h: New file.
770 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
771 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
772 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
773 symbols at load time.
774 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
775
776 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
777
778 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
779 (DT_AARCH64_VARIANT_PCS): Define.
780
781 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
782
783 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
784 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
785 objects.
786 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
787 Remove file.
788 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
789 Likewise.
790 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
791 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
792 Likewise.
793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
794 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
795 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
796 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
797 Remove s_finite* objects.
798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
804 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
805 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
806 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
807 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
808
809 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
810 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
811
812 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
813 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
814 objects.
815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
816 Remove file.
817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
818 Likewise.
819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
820 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
821 Likewise.
822 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
823 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
824 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
825 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
826 Remove s_isinf* and s_isinf* objects.
827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
833 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
834 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
835 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
836 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
837
838 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
839 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
840
841 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
842 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
843 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
845 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
846 s_isnanf-* objects.
847 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
848 Remove file
849 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
850 Likewise.
851 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
852 Likewise.
853 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
854 Likewise.
855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
857 Likewise.
858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
859 Likewise.
860 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
861 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
862 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
863 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
864 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
865 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
866 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
867 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
868 Remove s_isnan-* and s_isnanf-* objects.
869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
872 Likewise.
873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
878 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
879 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
880 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
881 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
882 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
883 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
884 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
885 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
886
887 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
888 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
889
890 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
891 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
892 CFLAGS-bench-isfinite.c): New rule.
893 * benchtests/isnan-input: New file.
894 * benchtests/isinf-input: New file.
895 * benchtests/isfinite-input: New file.
896
897 * sysdeps/powerpc/fpu/s_copysign.c: New file.
898 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
899 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
900 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
902 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
903 s_copysign-ppc32.
904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
905 Remove file.
906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
907 Likewise.
908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
909 Likewise.
910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
911 Likewise.
912 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
913 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
914 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
915 Remove s_copysign-power6 s_copysign-ppc64.
916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
917 Remove file.
918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
919 Likewise.
920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
922 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
923 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
924 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
925 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
926
927 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
928 round_to_integer_float, round_mode): Add RINT handling.
929 (reset_fenv_mode): New symbol.
930 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
931 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
932 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
933 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
934 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
935 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
936
937 2019-06-12 Florian Weimer <fweimer@redhat.com>
938
939 [BZ #24632]
940 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
941 * libio/freopen.c (freopen): Use it.
942
943 2019-06-12 Florian Weimer <fweimer@redhat.com>
944
945 Linux: Deprecate sysctl.
946 * include/sysctl.h (__sysctl): Remove declaration.
947 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
948 check.
949 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
950 (sysctl): Add deprecation attribute.
951 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
952 directly, to avoid the deprecation warning. Do not include
953 <string.h>.
954 (__sysctl): Remove hidden alias.
955
956 2019-06-12 Florian Weimer <fweimer@redhat.com>
957
958 Linux: Use kernel headers for statx definitions if available.
959 * include/bits/statx-generic.h: New file.
960 * include/bits/types/struct_statx.h: Likewise.
961 * include/bits/types/struct_statx_timestamp.h: Likewise.
962 * io/Makefile (headers): Add bits/statx-generic.h.
963 * io/bits/statx-generic.h: New file. Partly copied from
964 io/bits/statx.h.
965 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
966 define original_statx.
967 * io/bits/types/struct_statx.h: Likewise.
968 * io/bits/types/struct_statx_timestamp.h: Likewise.
969 (statx_generic): Use original_statx.
970 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
971 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
972
973 2019-06-12 Florian Weimer <fweimer@redhat.com>
974
975 * misc/sys/cdefs.h (__glibc_has_include): Define.
976
977 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
978
979 * string/memmem.c (__memmem): Rewrite to improve performance.
980
981 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
982
983 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
984 warning.
985 (two_way_long_needle): Block inlining.
986 * string/strstr.c (strstr2): Add new function.
987 (strstr3): Likewise.
988 (STRSTR): Completely rewrite strstr to improve performance.
989
990 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
991
992 * benchtests/bench-strstr.c (test_hard_needle): New function.
993
994 2019-06-10 Joseph Myers <joseph@codesourcery.com>
995
996 * malloc/tst-calloc.c: Include <libc-diag.h>.
997 (null_test): Ignore -Wunused-result around calls to calloc.
998 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
999 (do_test): Ignore -Wunused-result around call to malloc.
1000
1001 2019-06-07 Florian Weimer <fweimer@redhat.com>
1002
1003 Linux: Add getdents64 system call.
1004 * include/dirnent.h (getdents): Add comment and change buffer
1005 argument type to void *.
1006 (getdents64): Likewise. Add hidden prototype.
1007 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
1008 getdents64.
1009 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
1010 Add tst-getdents64.
1011 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
1012 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
1013 argument type to void *.
1014 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
1015 Add hidden definition and getdents64 alias.
1016 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
1017 Likewise.
1018 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
1019 * manual/filesys.texi (Accessing Directories): Add Low-level
1020 Directory Access node reference.
1021 (Opening a Directory): Cross-reference it.
1022 (Low-level Directory Access): New node.
1023 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1024 getdents64.
1025 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1026 Likewise.
1027 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1028 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1029 Likewise.
1030 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1031 Likewise.
1032 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1033 Likewise.
1034 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1035 Likewise.
1036 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1037 Likewise.
1038 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1039 Likewise.
1040 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1041 Likewise.
1042 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1043 (GLIBC_2.30): Likewise.
1044 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1045 (GLIBC_2.30): Likewise.
1046 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1047 (GLIBC_2.30): Likewise.
1048 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1049 (GLIBC_2.30): Likewise.
1050 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1051 Likewise.
1052 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1053 (GLIBC_2.30): Likewise.
1054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1055 (GLIBC_2.30): Likewise.
1056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1057 (GLIBC_2.30): Likewise.
1058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1059 (GLIBC_2.30): Likewise.
1060 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1061 Likewise.
1062 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1063 Likewise.
1064 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1065 Likewise.
1066 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1067 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1068 Likewise.
1069 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1070 Likewise.
1071 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1072 Likewise.
1073 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1074 Likewise.
1075
1076 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
1077
1078 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
1079 (__FPU_MFFS): New.
1080 (__FPU_MFFSL): New.
1081 (_FPU_GET_RC): New.
1082 (_FPU_GETCW): Use __FPU_MFFS().
1083 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
1084
1085 2019-06-06 Florian Weimer <fweimer@redhat.com>
1086
1087 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
1088 internal GCC preprocessor identifier __has_include__.
1089
1090 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
1091
1092 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
1093 with call to equivalent function.
1094
1095 2019-06-04 Florian Weimer <fweimer@redhat.com>
1096
1097 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
1098 (do_release_shlib): Adjust for __twalk_r.
1099 (__gconv_release_shlib): Call __twalk_r.
1100
1101 2019-06-04 Andreas Schwab <schwab@suse.de>
1102
1103 [BZ #18830]
1104 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
1105 no irreversible characters occurred.
1106 * iconv/gconv_simple.c (internal_ucs4_loop)
1107 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
1108 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
1109 (ucs4_internal_loop_single, internal_ucs4le_loop)
1110 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
1111 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
1112 (ucs4le_internal_loop_single): Add const to outend.
1113 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
1114 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
1115 * iconv/Makefile (tests): Add tst-iconv7.
1116 * iconv/tst-iconv7.c: New file.
1117
1118 2019-06-03 Joseph Myers <joseph@codesourcery.com>
1119
1120 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
1121
1122 2019-06-01 Florian Weimer <fweimer@redhat.com>
1123
1124 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
1125 * sysdeps/unix/sysv/linux/arm/Makefile
1126 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
1127 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
1128 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
1129 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
1130 compatibility symbols.
1131
1132 2019-05-31 Florian Weimer <fweimer@redhat.com>
1133
1134 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
1135 system calls for the arm architecture: breakpoint, get_tls,
1136 set_tls, usr26, usr32.
1137
1138 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
1139
1140 * sysdeps/powerpc/Makefile
1141 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
1142 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
1143 Declare '.machine power7' to get support for ldbrx.
1144 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
1145 directive based on the directory of the file.
1146 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
1147 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
1148 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
1149 '.machine' directive.
1150 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
1151 (VADDUQM_V7_V8): Remove.
1152 (__STRCASECMP): Replace macros with actual instructions.
1153 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
1154 '.machine' directive.
1155 (VCLZD_V8_v7): Remove.
1156 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
1157
1158 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1159
1160 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
1161 Remove file.
1162 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
1163
1164 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1165
1166 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1167 NEARBYINT handling.
1168 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
1169 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
1170 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
1171 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
1172 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
1173 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1174
1175 2019-05-28 mansayk <6688000@gmail.com>
1176
1177 [BZ #24370]
1178 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
1179
1180 2019-05-28 mansayk <6688000@gmail.com>
1181
1182 [BZ #24369]
1183 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
1184 (abmon): Likewise, but remove the trailing dots.
1185
1186 2019-05-28 Joseph Myers <joseph@codesourcery.com>
1187
1188 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
1189
1190 2019-05-27 Florian Weimer <fweimer@redhat.com>
1191
1192 * nptl/nptl-init.c: Add comment.
1193
1194 2019-05-24 Florian Weimer <fweimer@redhat.com>
1195
1196 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
1197 struct in_addr/struct in6_addr alignment.
1198
1199 2019-05-23 Joseph Myers <joseph@codesourcery.com>
1200
1201 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1202 (F_SEAL_FUTURE_WRITE): New macro.
1203
1204 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
1205
1206 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
1207 * elf/tst-ldconfig-bad-aux-cache.c: New file.
1208 * elf/tst-ldconfig_aux-cache.root: New directory.
1209 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
1210 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
1211 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
1212
1213 2019-05-22 Zack Weinberg <zackw@panix.com>
1214
1215 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
1216 host type.
1217 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
1218 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
1219
1220 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
1221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
1223 Delete.
1224
1225 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
1226 Issue an #error if used with a compiler in SPE-float mode.
1227 * sysdeps/powerpc/powerpc32/__longjmp_common.S
1228 * sysdeps/powerpc/powerpc32/setjmp_common.S
1229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
1231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
1232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
1233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1235 Remove code to preserve SPE register state.
1236
1237 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
1238 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1239 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
1240 Remove __SPE__ ifndefs.
1241
1242 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
1243
1244 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
1245 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
1246 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
1247 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
1248 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
1249 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
1250 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
1251 (INNER_LOOP_ITERS_MEDIUM): New define.
1252 (INNER_LOOP_ITERS_SMALL): New define.
1253 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
1254 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
1255 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
1256 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
1257 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
1258
1259 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
1260
1261 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
1262 New define.
1263 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
1264 (SEMTIMEDOP_IPC_ARGS): Likewise.
1265
1266 2019-05-21 Florian Weimer <fweimer@redhat.com>
1267
1268 [BZ #24584]
1269 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
1270 before updating __counter field and release it afterwards. Add
1271 overflow check.
1272 * iconv/gconv.h (struct __gconv_step): Mention synchronization
1273 requirement for __counter member.
1274
1275 2019-05-21 Florian Weimer <fweimer@redhat.com>
1276
1277 [BZ #24583]
1278 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
1279 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
1280 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
1281 instead of __gconv_release_step.
1282 * libio/Makefile (tests): Add tst-wfile-gconv.
1283 (tests-container): Add tst-wfile-ascii.
1284 (tst-wfile-gconv-ENV): Enable mtrace.
1285 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
1286 (tests-special): Add tst-wfile-gconv-mem.out.
1287 (tst-wfile-gconv.out): Depend on locales.
1288 (tst-wfile-gconv-mem.out): Add mtrace rule.
1289 * libio/tst-wfile-ascii.c: New file.
1290 * libio/tst-wfile-gconv.c: Likewise.
1291
1292 2019-05-20 Florian Weimer <fweimer@redhat.com>
1293
1294 [BZ #24588]
1295 libio: Remove codecvt vtable.
1296 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
1297 __libio_codecvt.
1298 * libio/iofgetpos.c (_IO_new_fgetpos): Call
1299 __libio_codecvt_encoding.
1300 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
1301 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1302 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
1303 * libio/iofwide.c (__libio_codecvt): Remove variable.
1304 (_IO_fwide): Do not copy __libio_codecvt.
1305 (__libio_codecvt_out): Rename from do_out and export.
1306 (do_unshift): Remove function.
1307 (__libio_codecvt_in): Rename from do_in and export.
1308 (__libio_codecvt_encoding): Rename from do_encoding and export.
1309 (do_always_noconv): Remove function.
1310 (__libio_codecvt_length): Rename from do_length and export.
1311 (do_max_length): Remove function.
1312 * libio/libio.h (enum __codecvt_result): Remove definition; moved
1313 to libioP.h.
1314 (struct _IO_codecvt): Remove fields __codecvt_destr,
1315 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
1316 __codecvt_do_encoding, __codecvt_do_always_noconv,
1317 __codecvt_do_length, __codecvt_do_max_length.
1318 * libio/libioP.h (enum __codecvt_result): Define; moved from
1319 libio.h.
1320 (__libio_codecvt_out, __libio_codecvt_in)
1321 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
1322 functions.
1323 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
1324 (_IO_wfile_underflow): Call __libio_codecvt_in.
1325 (_IO_wfile_underflow): Likewise.
1326 (_IO_wfile_underflow_mmap): Likewise.
1327 (_IO_wfile_sync): Call __libio_codecvt_encoding,
1328 __libio_codecvt_length.
1329 (adjust_wide_data): Call __libio_codecvt_encoding,
1330 __libio_codecvt_in.
1331 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
1332 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
1333 __libio_codecvt_length.
1334
1335 2019-05-20 Florian Weimer <fweimer@redhat.com>
1336
1337 * support/support.h (support_sbindir_prefix): Declare.
1338 (support_install_rootsbindir): Update comment.
1339 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
1340 * support/support_paths.c (support_sbindir_prefix): Define.
1341
1342 2019-05-20 Mike Crowe <mac@mcrowe.com>
1343
1344 * support/timespec.c: Add backslash to correct newline in failure
1345 message.
1346
1347 * support/timespec.h: Correct confusing comment.
1348
1349 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1350
1351 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
1352 define.
1353 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
1354 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
1355 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
1356 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
1357
1358 [BZ #24570]
1359 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
1360 usage.
1361
1362 2019-05-20 Joseph Myers <joseph@codesourcery.com>
1363
1364 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
1365 (NT_ARM_PACG_KEYS): Likewise.
1366
1367 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
1368
1369 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
1370 (tcache_put): Remove redundant assert.
1371 (tcache_get): Remove redundant asserts.
1372 (__libc_malloc): Check tcache count is not zero.
1373 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
1374
1375 2019-05-17 Florian Weimer <fweimer@redhat.com>
1376
1377 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
1378
1379 2019-05-16 Joseph Myers <joseph@codesourcery.com>
1380
1381 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1382 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
1383 0x050100].
1384 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
1385 Likewise.
1386 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1387 (__ASSUME_STATX): Likewise.
1388
1389 2019-05-16 Florian Weimer <fweimer@redhat.com>
1390
1391 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
1392 flags argument.
1393 (LINE_PARSER): Do not map IPv4 addresses.
1394 (internal_nis_gethostent_r): Remove flags argument. Adjust call
1395 to parse_line.
1396 (_nss_nis_gethostent_r): Always pass AF_INET to
1397 internal_nis_gethostent_r.
1398 (internal_gethostbyname2_r): Remove flags argument. Adjust call
1399 to parse_line.
1400 (_nss_nis_gethostbyname2_r): Adjust call to
1401 internal_nis_gethostent_r.
1402 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
1403 call to internal_nis_gethostent_r.
1404 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
1405 from parse_line.
1406 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
1407 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1408 Remove flags argument. Do not map IPv4 addresses.
1409 (internal_nisplus_gethostent_r): Adjust call to
1410 _nss_nisplus_parse_hostent.
1411 (internal_gethostbyname2_r): Remove flags argument. Adjust call
1412 to _nss_nisplus_parse_hostent.
1413 (_nss_nisplus_gethostbyname2_r): Adjust call to
1414 internal_gethostbyname2_r.
1415 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
1416 Adjust call to internal_gethostbyname2_r.
1417 (_nss_nisplus_gethostbyaddr_r): Adjust call to
1418 _nss_nisplus_parse_hostent.
1419 (_nss_nisplus_gethostbyname4_r): Adjust call to
1420 internal_gethostbyname2_r.
1421
1422 2019-05-16 Florian Weimer <fweimer@redhat.com>
1423
1424 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
1425 Remove flags.
1426 (LINE_PARSER): Remove address mapping.
1427 (EXTRA_ARGS_VALUE): Remove flags argument.
1428 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
1429 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
1430 gethostbyname3_multi.
1431 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
1432 _nss_files_gethostbyname3_r.
1433 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
1434
1435 2019-05-16 Florian Weimer <fweimer@redhat.com>
1436
1437 * support/support_test_compare_blob.c (report_blob): Report
1438 incorrect NULL blobs.
1439
1440 2019-05-15 Mark Wielaard <mark@klomp.org>
1441
1442 [BZ# 24476]
1443 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
1444 __libc_once_get (once) and static_buf == NULL.
1445 (__dlerror): Check we have a valid key, set result to static_buf
1446 otherwise.
1447
1448 2019-05-15 Andreas Schwab <schwab@suse.de>
1449
1450 [BZ #20568]
1451 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
1452 __codecvt_do_length.
1453 * libio/Makefile (tests): Add tst-wfile-sync.
1454 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
1455 * libio/tst-wfile-sync.c: New file.
1456 * libio/tst-wfile-sync.input: New file.
1457
1458 2019-05-15 Florian Weimer <fweimer@redhat.com>
1459
1460 nss: Turn __nss_database_lookup into a compatibility symbol.
1461 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
1462 __nss_database_lookup.
1463 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
1464 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
1465 __nss_database_lookup.
1466 (__nss_next): Move to …
1467 * nss/compat-lookup.c (nss_next): … here. Change it to fail
1468 unconditionally.
1469 (__nss_database_lookup): New function.
1470 * nss/Versions (GLIBC_2.0): Update comment.
1471 (GLIBC_PRIVATE): Export __nss_database_lookup2.
1472 * grp/initgroups.c (internal_getgrouplist): Call
1473 __nss_database_lookup2 instead of __nss_database_lookup.
1474 * nscd/aicache.c (addhstaiX): Likewise.
1475 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1476 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1477 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1478 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1479 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1480 Likewise.
1481 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1482 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1483 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1484
1485 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
1486
1487 * support/support.h (support_install_rootsbindir): New variable.
1488 * support/support_paths.c: Likewise.
1489 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1490
1491 2019-05-15 Florian Weimer <fweimer@redhat.com>
1492
1493 * iconv/gconv.h (__gconv_transliterate): Move declaration …
1494 * iconv/gconv_int.h (__gconv_transliterate): … here.
1495 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1496 * iconv/skeleton.c: Likewise.
1497
1498 2019-05-14 Florian Weimer <fweimer@redhat.com>
1499
1500 Linux: Add the tgkill function.
1501 * bits/signal_ext.h: New file.
1502 * manual/signal.texi (Signaling Another Process): Document tgkill.
1503 * signal/Makefile (headers): Add bits/signal_ext.h.
1504 * signal/signal.h: Include <bits/signal_ext.h>.
1505 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1506 (tst-tgkill): Link with libpthread.
1507 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1508 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1509 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1510 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1511 tgkill.
1512 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1513 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1514 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1515 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1516 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1517 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1518 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1519 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1520 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1521 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1522 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1523 Likewise.
1524 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1525 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1526 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1528 Likewise.
1529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1530 Likewise.
1531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1532 Likewise.
1533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1534 Likewise.
1535 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1536 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1537 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1538 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1539 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1540 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1541 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1542 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1543
1544 2019-05-14 Carlos O'Donell <carlos@redhat.com>
1545
1546 * manual/search.texi (Tree Search Function): Adjust twalk_r
1547 documentation.
1548
1549 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1550
1551 [BZ #24544]
1552 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1553 pre-defined value.
1554
1555 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1556 * support/support.h (support_bindir_prefix): New variable.
1557 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1558
1559 * config.make.in (bindir): New variable.
1560
1561 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1562 (lll_trylock): Call __lll_trylock.
1563 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1564 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1565 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1566 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1567 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1568 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1569 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1570 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1571 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1572 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1573 lowlevellock-futex.h.
1574
1575 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1576 initialization for LLL_LOCK_INITIALIZER different than 0.
1577 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1578 Assume LLL_LOCK_INITIALIZER being 0.
1579 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1580 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1581 Likewise.
1582 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1583 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1584
1585 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1586 Optimize futex call and add systemtap probe.
1587
1588 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1589 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1590 __libc_disable_asynccancel, __librt_enable_asynccancel,
1591 __libc_disable_asynccancel, __librt_enable_asynccancel,
1592 __librt_disable_asynccancel): Move to ...
1593 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1594 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1595 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1596 * sysdeps/generic/single-thread.h: New file.
1597 * sysdeps/unix/sysdep.h: Include single-thread.h.
1598 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1599 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1600
1601 2019-05-08 Mike FABIAN <mfabian@redhat.com>
1602
1603 [BZ #24535]
1604 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1605 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1606 Unicode 12.1.0.
1607 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1608 * localedata/unicode-gen/PropList.txt: Likewise.
1609 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1610 * localedata/charmaps/UTF-8: Regenerate.
1611 * localedata/locales/i18n_ctype: Likewise.
1612 * localedata/locales/tr_TR: Likewise.
1613 * localedata/locales/translit_circle: Likewise.
1614 * localedata/locales/translit_cjk_compat: Likewise.
1615 * localedata/locales/translit_combining: Likewise.
1616 * localedata/locales/translit_compat: Likewise.
1617 * localedata/locales/translit_font: Likewise.
1618 * localedata/locales/translit_fraction: Likewise.
1619
1620 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1621
1622 [BZ #24531]
1623 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1624 (do_set_tcache_count): Only update if count is small enough.
1625 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1626
1627 2019-05-10 Florian Weimer <fweimer@redhat.com>
1628
1629 * nptl/sem_close.c (struct walk_closure): Define.
1630 (walker): Adjust for __twalk_r.
1631 (sem_close): Call __twalk_r.
1632
1633 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1634
1635 * support/timespec.c (test_timespec_before_impl,
1636 test_timespec_equal_or_after_impl): print timespec member as intmax_t
1637 insted of long int.
1638
1639 2019-05-09 Mike Crowe <mac@mcrowe.com>
1640
1641 * nptl/tst-abstime.c: Use libsupport.
1642
1643 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1644 small bug where only tv.tv_usec was checked which could cause an
1645 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1646 than a second.
1647
1648 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1649 libsupport.
1650
1651 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1652 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1653
1654 * nptl/tst-cond11.c: Use libsupport.
1655
1656 * support/timespec.h: New file. Provide timespec helper functions
1657 along with macros in the style of those in check.h.
1658 * support/timespec.c: New file. Implement check functions declared
1659 in support/timespec.h.
1660 * support/timespec-add.c: New file from gnulib containing
1661 timespec_add implementation that handles overflow.
1662 * support/timespec-sub.c: New file from gnulib containing
1663 timespec_sub implementation that handles overflow.
1664 * support/README: Mention timespec.h.
1665
1666 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
1667
1668 [BZ #24537]
1669 * nptl/Makefile: Move tst-eintr1 to xtests.
1670
1671 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1672
1673 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1674 TRUNC handling.
1675 (round_mode): Add definition for TRUNC.
1676 * sysdeps/powerpc/fpu/s_trunc.c: New file.
1677 * sysdeps/powerpc/fpu/s_truncf.c: New file.
1678 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1679 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1680 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1681 Likewise.
1682 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1683 Likewise.
1684 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1685 Likewise.
1686 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1687 Likewise.
1688 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1689 file.
1690 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1691 Likewise.
1692 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1693 Likewise.
1694 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1695 Likewise.
1696 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1697 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1698 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1699 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1700 s_truncf-power5+, and s_truncf-ppc64.
1701 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1702 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1703 file.
1704 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1706 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1707 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1708 file.
1709 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1710 Likewise.
1711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1712 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1713 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1714 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1715 s_truncf-power5+, and s_truncf-ppc64.
1716 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1717 file.
1718 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1719 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1720 Likewise.
1721 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1722 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1723 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1724 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1725 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1726
1727 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1728 ROUND handling.
1729 (round_mode): Add definition for ROUND.
1730 (round_to_integer_float): Likewise.
1731 * sysdeps/powerpc/fpu/s_round.c: New file.
1732 * sysdeps/powerpc/fpu/s_roundf.c: New file.
1733 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1734 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1735 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1736 Likewise.
1737 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1738 Likewise.
1739 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1740 Likewise.
1741 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1742 Likewise.
1743 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1744 file.
1745 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1746 Likewise.
1747 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1748 Likewise.
1749 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1750 Likewise.
1751 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1752 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1753 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1754 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1755 s_roundf-power5+, and s_roundf-ppc64.
1756 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1757 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1758 file.
1759 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1761 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1762 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1763 file.
1764 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1765 Likewise.
1766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1767 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1768 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1769 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1770 s_roundf-power5+, and s_roundf-ppc64.
1771 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1772 file.
1773 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1774 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1775 Likewise.
1776 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1777 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1778 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1779 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1780 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1781
1782 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1783 Add FLOOR option.
1784 (round_mode): Add definition for FLOOR.
1785 * sysdeps/powerpc/fpu/s_floor.c: New file.
1786 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1787 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1788 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1790 Remove file.
1791 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1792 Likewise
1793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1794 Likewise.
1795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1796 Likewise.
1797 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1798 New file.
1799 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1800 Likewise.
1801 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1802 Likewise.
1803 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1804 Likewise.
1805 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1806 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1807 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1808 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1809 s_floorf-power5+, and s_floorf-ppc64.
1810 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1811 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1812 file.
1813 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1815 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1816 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1817 file.
1818 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1819 Likewise.
1820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1821 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1822 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1823 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1824 s_floorf-power5+, and s_floorf-ppc64.
1825 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1826 file.
1827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1828 file.
1829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1830 Likewise.
1831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1832 Likewise.
1833 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1834 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1835 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1836 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1837
1838 2019-05-08 Mike Crowe <mac@mcrowe.com>
1839
1840 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1841 clock_gettime wrapper for use in tests that fails the test rather
1842 than returning failure.
1843
1844 * support/xtime.h: New file to declare xclock_gettime.
1845
1846 * support/Makefile: Add xclock_gettime.c.
1847
1848 * support/README: Mention xtime.h.
1849
1850 2019-05-08 Florian Weimer <fweimer@redhat.com>
1851
1852 malloc/tst-mallocfork2: Use process-shared barriers.
1853 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1854 (signal_count, sigusr1_sender_pid): Remove.
1855 (iterations): Define constant.
1856 (shared): New variable.
1857 (sigusr1_received): Update comment.
1858 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1859 (signal_sender): Optional use barriers to avoid sending signals
1860 during irrelevant times.
1861 (do_it): Initialize variable shared. Use xfork for error
1862 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1863 the iteration count, independent of signal delivery. Check for
1864 deadlocks in fork. Introduce barriers for reducing signal
1865 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1866 replaced by the barriers. Count signals during fork/free/malloc
1867 and report them.
1868 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1869
1870 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1871
1872 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1873 version to 5.1.
1874 (clock_adjtime64) New syscall.
1875 (clock_getres_time64) Likewise.
1876 (clock_gettime64) Likewise.
1877 (clock_nanosleep_time64) Likewise.
1878 (clock_settime64) Likewise.
1879 (futex_time64) Likewise.
1880 (io_pgetevents_time64) Likewise.
1881 (io_uring_enter) Likewise.
1882 (io_uring_register) Likewise.
1883 (io_uring_setup) Likewise.
1884 (mq_timedreceive_time64) Likewise.
1885 (mq_timedsend_time64) Likewise.
1886 (pidfd_send_signal) Likewise.
1887 (ppoll_time64) Likewise.
1888 (pselect6_time64) Likewise.
1889 (recvmmsg_time64) Likewise.
1890 (rt_sigtimedwait_time64) Likewise.
1891 (sched_rr_get_interval_time64) Likewise.
1892 (semtimedop_time64) Likewise.
1893 (timer_gettime64) Likewise.
1894 (timer_settime64) Likewise.
1895 (timerfd_gettime64) Likewise.
1896 (timerfd_settime64) Likewise.
1897 (utimensat_time64) Likewise.
1898
1899 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1900 version to 9 branch.
1901
1902 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1903
1904 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1905 __memmove_thunderx2 to the list of implementations
1906 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1907 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1908 (__memmove_thunderx2): Rewritten using SIMD ld/st
1909 (__memcpy_thunderx2): Fixed handling overlapping cases.
1910 Used ldp/stp instead of ldr/str if possible. Made loops
1911 tails branchless.
1912
1913 2019-05-03 Florian Weimer <fweimer@redhat.com>
1914
1915 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1916
1917 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1918
1919 [BZ #24506]
1920 * elf/tst-pldd.c (in_str_list): New function.
1921 (do_test): Add default names for ld and libc as one option.
1922
1923 2019-05-02 Florian Weimer <fweimer@redhat.com>
1924
1925 misc: Add twalk_r function.
1926 * include/search.h (__twalk_r): Declare.
1927 * manual/examples/twalk.c: New file.
1928 * manual/search.texi (Tree Search Function): Document twalk_r.
1929 * misc/Versions (2.30): Export twalk_r.
1930 (GLIBC_PRIVATE): Export __twalk_r.
1931 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1932 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1933 (twalk_r): Add weak alias.
1934 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1935 (walk_trace): New variable.
1936 (struct twalk_with_twalk_r_closure): Define.
1937 (twalk_with_twalk_r_action): New function.
1938 (twalk_with_twalk_r): Likewise.
1939 (walk_action): Call walk_trace_add.
1940 (walk_tree_with): Rename from walk_tree. Add walk argument.
1941 (walk_tree): New function.
1942 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1943 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1944 Likewise.
1945 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1946 Likewise.
1947 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1948 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1949 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1950 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1951 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1952 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1953 Likewise.
1954 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1955 Likewise.
1956 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1957 Likewise.
1958 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1959 (GLIBC_2.30): Likewise.
1960 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1961 (GLIBC_2.30): Likewise.
1962 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1963 (GLIBC_2.30): Likewise.
1964 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1965 (GLIBC_2.30): Likewise.
1966 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1967 Likewise.
1968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1969 (GLIBC_2.30): Likewise.
1970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1971 (GLIBC_2.30): Likewise.
1972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1973 (GLIBC_2.30): Likewise.
1974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1975 (GLIBC_2.30): Likewise.
1976 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1977 Likewise.
1978 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1979 Likewise.
1980 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1981 Likewise.
1982 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1983 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1984 Likewise.
1985 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1986 Likewise.
1987 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1988 Likewise.
1989 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1990 Likewise.
1991
1992 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1993
1994 Make mktime etc. compatible with __time64_t
1995 Keep these functions compatible with Gnulib while adding
1996 __time64_t support. The basic idea is to move private API
1997 declarations from include/time.h to time/mktime-internal.h, since
1998 the former file cannot easily be shared with Gnulib whereas the
1999 latter can.
2000 Also, do some other minor cleanup while in the neighborhood.
2001 * include/time.h: Include stdbool.h, time/mktime-internal.h.
2002 (__mktime_internal): Move this prototype to time/mktime-internal.h,
2003 since Gnulib needs it.
2004 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
2005 Move these macros to time/mktime-internal.h, since Gnulib needs them.
2006 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
2007 (in_time_t_range): New static function.
2008 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
2009 so that glibc users are not tempted to use __time64_t.
2010 * time/mktime-internal.h: Rewrite so that it does both glibc
2011 and Gnulib work. Include time.h if not _LIBC.
2012 (mktime_offset_t) [!_LIBC]: Define for gnulib.
2013 (__time64_t): New type or macro, moved here from
2014 posix/bits/types.h.
2015 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
2016 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
2017 from include/time.h.
2018 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
2019 New macros, taken from GNulib.
2020 (__mktime_internal): New prototype, moved here from include/time.h.
2021 * time/mktime.c (mktime_min, mktime_max, convert_time)
2022 (ranged_convert, __mktime_internal, __mktime64):
2023 * time/timegm.c (__timegm64):
2024 Use __time64_t, not time_t.
2025 * time/mktime.c: Stop worrying about whether time_t is floating-point.
2026 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
2027 Rename from mktime.
2028 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
2029 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
2030 for libc_hidden_def.
2031 Include errno.h.
2032 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
2033 Rename from timegm.
2034 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
2035
2036 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
2037
2038 [BZ #19444]
2039 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
2040 from `-Wmaybe-uninitialized'.
2041 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
2042
2043 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2044
2045 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
2046 function.
2047 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
2048 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
2049 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
2050 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
2051 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
2052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2053 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
2054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2055 Remove file.
2056 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
2057 Likewise.
2058 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2059 Likewise.
2060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
2061 Likewise.
2062 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
2063 New file.
2064 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
2065 Likewise.
2066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
2067 Likewise.
2068 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
2069 Likewise.
2070 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
2071 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
2072 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
2073 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
2074 Likewise.
2075 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
2076 Likewise.
2077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
2078 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
2079 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
2080 file.
2081 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
2082 Likewise.
2083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
2084 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
2085 * here.
2086 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2087 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
2088 s_ceilf-power5+, and s_ceilf-ppc64.
2089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
2090 file.
2091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
2092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
2093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
2094 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
2095 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
2096 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
2097 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
2098
2099 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
2100 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
2101 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
2102
2103 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
2104
2105 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
2106 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
2107 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
2108 (sem_getvalue): Likewise.
2109
2110 2019-04-26 Florian Weimer <fweimer@redhat.com>
2111
2112 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
2113 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
2114
2115 2019-04-26 Florian Weimer <fweimer@redhat.com>
2116
2117 Makeconfig: Move -Wl,-rpath-link options before library references.
2118 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
2119 (link-libc): Remove $(link-libc-rpath-link).
2120
2121 2019-04-25 Florian Weimer <fweimer@redhat.com>
2122
2123 * Makeconfig (+link-pie-before-libc): Remove $(CC).
2124 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
2125 (+link-static-before-libc): Remove $(CC).
2126 (+link-static, +link-static-tests): Add $(CC).
2127 (+link-before-libc): Remove $(CC).
2128 (+link, +link-pie, +link-pie-printers): Add $(CC).
2129
2130 2019-04-26 Florian Weimer <fweimer@redhat.com>
2131
2132 * Makeconfig (+link-pie-before-libc): Remove $(CC).
2133 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
2134 (+link-static-before-libc): Remove $(CC).
2135 (+link-static, +link-static-tests): Add $(CC).
2136 (+link-before-libc): Remove $(CC).
2137 (+link, +link-pie, +link-pie-printers): Add $(CC).
2138
2139 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
2140
2141 [BZ#24484]
2142 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
2143
2144 2019-04-25 Florian Weimer <fweimer@redhat.com>
2145
2146 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
2147 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
2148 (bench-link-targets): New variable.
2149 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
2150
2151 2019-04-25 Florian Weimer <fweimer@redhat.com>
2152
2153 Also enable BIND_NOW for programs if --enable-bind-now.
2154 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
2155 (+link-pie): Use $(link-extra-flags).
2156 (+link-static): Likewise.
2157 [! $(build-pie-default)] (+link): Likewise.
2158 * manual/install.texi (Configuring and compiling): Update
2159 --enable-bind-now description.
2160 * INSTALL: Regenerated.
2161
2162 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
2163
2164 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
2165 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
2166
2167 2019-04-24 Mike Frysinger <vapier@gentoo.org>
2168
2169 [BZ #18465]
2170 * malloc/Makefile (others): Add memusagestat.
2171 ($(objpfx)memusagestat): Delete rule.
2172 (LDLIBS-memusagestat): New variable.
2173
2174 2019-04-24 Florian Weimer <fweimer@redhat.com>
2175
2176 * locale/Makefile (tests-special): Guard setting by
2177 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
2178 to run while cross-compiling.
2179
2180 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2181
2182 [BZ #18035]
2183 * elf/Makefile (tests-container): Add tst-pldd.
2184 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
2185 (E(find_maps)): Avoid use alloca, use default read file operations
2186 instead of explicit LFS names, and fix infinite loop.
2187 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
2188 (get_process_info): Use _Static_assert instead of assert, use default
2189 directory operations instead of explicit LFS names, and free some
2190 leadek pointers.
2191 * elf/tst-pldd.c: New file.
2192
2193 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
2194
2195 * malloc/arena.c (do_set_mallopt_check): Removed.
2196
2197 2019-04-23 Florian Weimer <fweimer@redhat.com>
2198
2199 locale: Add LOCPATH diagnostics to the locale program.
2200 * locale/programs/locale.c (setlocale_failed): New variable.
2201 (try_setlocale): New function.
2202 (quote_string): Likewise.
2203 (setlocale_diagnostics): Likewise.
2204 (main): Call try_setlocale instead of setlocale. Call
2205 setlocale_diagnostics.
2206 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
2207 (tst-locale-locpath.out): New target.
2208 * locale/tst-locale-locpath.sh: New file.
2209
2210 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2211
2212 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
2213 to 2.30 notes.
2214
2215 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2216
2217 [BZ #23741]
2218 * malloc/hooks.c (malloc_check, realloc_check): Use
2219 __builtin_add_overflow on overflow check and adapt to
2220 checked_request2size change.
2221 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
2222 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
2223 allocation size to PTRDIFF_MAX.
2224 (REQUEST_OUT_OF_RANGE): Remove macro.
2225 (checked_request2size): Change to inline function and limit maximum
2226 requested size to PTRDIFF_MAX.
2227 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
2228 maximum allocation size to PTRDIFF_MAX.
2229 (_mid_memalign): Use _int_memalign call for overflow check.
2230 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
2231 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
2232 limit maximum requested size to PTRDIFF_MAX.
2233 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
2234 valloc, pvalloc): Add __attribute_alloc_size__.
2235 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
2236 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
2237 larger than PTRDIFF_MAX.
2238 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
2239 around tests of malloc with negative sizes.
2240 * malloc/tst-posix_memalign.c (do_test): Likewise.
2241 * malloc/tst-pvalloc.c (do_test): Likewise.
2242 * malloc/tst-valloc.c (do_test): Likewise.
2243 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
2244 with resulting size allocation larger than PTRDIFF_MAX with
2245 reallocarray_nowarn.
2246 (reallocarray_nowarn): New function.
2247 * NEWS: Mention the malloc function semantic change.
2248
2249 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2250
2251 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
2252 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2253
2254 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
2255 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
2256 * sysdeps/powerpc/fpu/s_fma.c: New file.
2257 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2258
2259 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
2260 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
2261
2262 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
2263 the magic flag store.
2264 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
2265 Likewise.
2266 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
2267 Likewise.
2268 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
2269 Remove rt_sigreturn call.
2270
2271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2272 Remove rt_sigreturn call.
2273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2274 Likewise.
2275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
2276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2277
2278 * support/Makefile (libsupport-routines): Add support_subprocess,
2279 xposix_spawn, xposix_spawn_file_actions_addclose, and
2280 xposix_spawn_file_actions_adddup2.
2281 (tst-support_capture_subprocess-ARGS): New rule.
2282 * support/capture_subprocess.h (support_capture_subprogram): New
2283 prototype.
2284 * support/support_capture_subprocess.c (support_capture_subprocess):
2285 Refactor to use support_subprocess and support_capture_poll.
2286 (support_capture_subprogram): New function.
2287 * support/tst-support_capture_subprocess.c (write_mode_to_str,
2288 str_to_write_mode, test_common, parse_int, handle_restart,
2289 do_subprocess, do_subprogram, do_multiple_tests): New functions.
2290 (do_test): Add support_capture_subprogram tests.
2291 * support/subprocess.h: New file.
2292 * support/support_subprocess.c: Likewise.
2293 * support/xposix_spawn.c: Likewise.
2294 * support/xposix_spawn_file_actions_addclose.c: Likewise.
2295 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
2296 * support/xspawn.h: Likewise.
2297
2298 2019-04-17 Mike Gerow <gerow@google.com>
2299
2300 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
2301 groups limit.
2302
2303 2019-04-11 Florian Weimer <fweimer@redhat.com>
2304
2305 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
2306 domain with empty string.
2307 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2308
2309 2019-04-11 Florian Weimer <fweimer@redhat.com>
2310
2311 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
2312 comment.
2313 (alloc_buffer_next): Change return type to non-const. Update
2314 comment.
2315
2316 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
2317
2318 * manual/time.texi (Formatting Calendar Time): Add missing percent
2319 sign to conversion specifier.
2320
2321 2019-04-09 Carlos O'Donell <carlos@redhat.com>
2322 Kwok Cheung Yeung <kcy@codesourcery.com>
2323
2324 [BZ #16573]
2325 * malloc/mtrace.c: Define prototypes for all hooks.
2326 (set_default_hooks): New function.
2327 (set_trace_hooks): Likewise.
2328 (save_default_hooks): Likewise.
2329 (tr_freehook): Use new s*_hooks functions.
2330 (tr_mallochook): Likewise.
2331 (tr_reallochook): Likewise.
2332 (tr_memalignhook): Likewise.
2333 (mtrace): Likewise.
2334 (muntrace): Likewise.
2335
2336 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
2337
2338 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
2339 (generic_stpcpy): New function.
2340 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
2341 (generic_stpncpy): New function.
2342 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
2343 (generic_strcat): New function.
2344 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
2345 (generic_strcpy): New function.
2346 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
2347 (STUPID_STRNCAT): Remove function.
2348 (generic_strncat): New function.
2349 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
2350 (STUPID_STRNCPY): Remove function.
2351 (generic_strncpy): New function.
2352 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
2353 (generic_strnlen): New function.
2354 (memchr_strnlen): New function.
2355 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
2356 (memchr_strlen): Likewise.
2357
2358 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
2359
2360 * benchtests/bench-strstr.c (input): Add realistic input text.
2361 (stupid_strstr): Remove function.
2362 (basic_strstr): Add function.
2363 (twoway_strstr): Add function.
2364 (do_one_test): Add result checking.
2365 (do_test): Use new input text. Remove accidental early matches.
2366 (test_main): Improve range of tests, reduce unaligned cases.
2367
2368 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
2369
2370 * benchtests/bench-memmem.c (simple_memmem): Remove function.
2371 (basic_memmem): Add function.
2372 (twoway_memmem): Add function.
2373
2374 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
2375
2376 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
2377 * benchtests/bench-malloc-thread.c: Likewise.
2378 * benchtests/bench-skeleton.c: Likewise.
2379 * benchtests/bench-strtod.c: Likewise.
2380 * benchtests/bench-timing.h: Likewise.
2381
2382 2019-04-08 Florian Weimer <fweimer@redhat.com>
2383
2384 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
2385 definitions.
2386 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
2387 RES_INSECURE2 security checks.
2388 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
2389 RES_INSECURE2 handling.
2390
2391 2019-04-08 Florian Weimer <fweimer@redhat.com>
2392
2393 resolv: Remove support for RES_USE_INET6 and the inet6 option.
2394 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
2395 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
2396 GETHOSTBYNAME.
2397 * resolv/Makefile (tests): Remove tst-res_use_inet6.
2398 (tests-internal): Update justification for tst-resolv-res_init,
2399 tst-resolv-res_init-thread.
2400 (tst-res_use_inet6): Remove target.
2401 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
2402 * resolv/res_debug.c (p_option): Remove "inet6" support.
2403 * resolv/res_init.c (res_setoptions): Likewise.
2404 * resolv/res_use_inet6.h: Remove file.
2405 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
2406 definition.
2407 (res_use_inet6): Always return false.
2408 * resolv/resolv.h (RES_USE_INET6): Remove definition.
2409 * resolv/resolv_context.h: Adjust file comment.
2410 (struct resolv_context): Update comment on __next field.
2411 (__resolv_context_put): Update comment.
2412 * resolv/tst-res_use_inet6.c: Remove file.
2413 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
2414 "inet6" support.
2415 (test_cases): Adjust test case.
2416 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
2417 (thread_byname2_af_inet6): Use old byname_inet6 code.
2418 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
2419 (gai): Remove do_inet6 argument.
2420 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
2421 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
2422 (thread_gai_unspec_inet6): Remove functions.
2423 (do_test): Adjust thread_funcs.
2424 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
2425 RES_USE_INET6 flag.
2426 (gaih_inet): Do not disable RES_USE_INET6 flag.
2427
2428 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2429
2430 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
2431 and remove redundant code.
2432
2433 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2434
2435 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
2436 New rule.
2437 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
2438 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
2439 Likewise.
2440 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
2441 Likewise.
2442 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
2443 Likewise.
2444 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
2445 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
2446 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
2447 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
2448 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
2449 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
2450 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2451 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
2452 wcsrchr-power7.
2453 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
2454 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2455 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2456 Remove wcsrchr optimizations.
2457 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2458
2459 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
2460 the loop unroll.
2461
2462 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
2463 New rule.
2464 * sysdeps/powerpc/power6/wcschr.c: Remove file.
2465 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
2466 Likewise.
2467 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
2468 Likewise.
2469 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
2470 Likewise.
2471 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2472 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2473 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2474 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2475 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2476 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2477 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2478 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2479 wcschr-power7.
2480 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2481 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2482 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2483 Remove wcschr optimizations.
2484 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2485
2486 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2487 the loop unroll.
2488
2489 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2490 New rule.
2491 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2492 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2493 Likewise.
2494 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2495 Likewise.
2496 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2497 Likewise.
2498 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2499 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2500 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2501 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2502 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2503 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2504 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2505 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2506 wcscpy-power7.
2507 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2508 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2509 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2510 Remove wcscpy optimizations.
2511 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2512
2513 * include/loop_unroll.h: New file.
2514 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2515 besides generic implementation.
2516
2517 2019-04-03 DJ Delorie <dj@redhat.com>
2518
2519 * time/tst-strftime3.c (tm_to_printed): Disable warning about
2520 snprintf truncating output.
2521
2522 2019-04-02 DJ Delorie <dj@redhat.com>
2523
2524 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
2525 warning.
2526
2527 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2528
2529 [BZ #22964]
2530 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2531 era.
2532 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2533 (mkreftable): Add rules for the new Japanese era and the new dates.
2534
2535 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2536 Rafal Luzynski <digitalfreak@lingonborough.com>
2537
2538 * time/tst-strftime2.c (date_t): Explicitly define the type.
2539 (dates): Use natural month and year numbers to express a date.
2540 (is_before): New function to compare dates.
2541 (mkreftable): Minor improvements to simplify maintenance.
2542 (do_test): Reflect the changes in dates array.
2543
2544 [BZ #24293]
2545 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2546 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2547 * time/tst-strftime2.c (locales): Likewise.
2548 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2549 2010-04-01, and 2011-04-01.
2550 (mkreftable): Add rules for the new locales and the new dates.
2551
2552 2019-04-01 Carlos O'Donell <carlos@redhat.com>
2553
2554 * localedata/locales/ja_JP: Add comments to era entries.
2555
2556 2019-04-01 DJ Delorie <dj@redhat.com>
2557
2558 [BZ #24394]
2559 * time/strptime_l.c (%Ey): Fix fencepost error.
2560 * time/tst-strftime3.c: New.
2561 * time/Makefile (tests): Add tst-strftime3.
2562
2563 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
2564
2565 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2566 conditional branch to DIVBYZERO. Fix unwind info.
2567 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2568 excb after conditional branch to $powerof2. Add missing unop
2569 instructions and .align directives and reorder instructions to
2570 match __divqu.
2571
2572 2019-04-01 Richard Henderson <rth@twiddle.net>
2573
2574 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2575 Do not redefine.
2576 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2577 Do not redefine.
2578
2579 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
2580
2581 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2582 $libc_cv_riscv_float_abi in `test' invocation.
2583 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2584
2585 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
2586
2587 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2588 asm with builtin.
2589 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2590 Likewise.
2591 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2592 (_GET_SI_FPSCR): Likewise.
2593 (_SET_SI_FPSCR): Likewise.
2594
2595 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2596
2597 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2598 clang 2.8.
2599 (signbit): Use builtin for clang 3.3.
2600 (isinf): Use builtin for clang 3.7.
2601
2602 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2603
2604 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2605
2606 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
2607
2608 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2609 quote in printf.
2610
2611 2019-03-25 Mike Crowe <mac@mcrowe.com>
2612
2613 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2614 pthread_rwlock_timedrdlock with calls to
2615 pthread_rwlock_timedwrlock to ensure that the latter is tested
2616 too. Use new function name in diagnostic messages too.
2617
2618 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2619 (do_test) Use libsupport test macros rather than hand-coded
2620 conditionals and error messages. Ensure that sem_init returns zero
2621 rather than not -1. Use <support/test-driver.c> rather than
2622 test-skeleton.c.
2623
2624 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2625 test macros rather than hand-coded conditionals and error messages.
2626 Use <support/test-driver.c> rather than test-skeleton.c.
2627
2628 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2629
2630 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2631
2632 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2633 (NT_MIPS_MSA): Likewise.
2634
2635 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2636
2637 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2638 * benchtests/README: Update description.
2639 * benchtests/bench-timing.h: Default to hp-timing.
2640 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2641 HP_TIMING_PRINT): Remove.
2642 (HP_TIMING_NOW): Add generic implementation.
2643 (hp_timing_t): Change to uint64_t.
2644
2645 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2646 HP_TIMING_INLINE.
2647 * nptl/descr.h: Likewise.
2648 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2649 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2650 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2651 Abstract hp-timing usage with RTLD_* macros.
2652 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2653 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2654 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2655 HP_TIMING_NONAVAIL): Likewise.
2656 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2657 Likewise.
2658 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2659 HP_SMALL_TIMING_AVAIL): Likewise.
2660 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2661 HP_SMALL_TIMING_AVAIL): Likewise.
2662 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2663 HP_SMALL_TIMING_AVAIL): Likewise.
2664 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2665 HP_SMALL_TIMING_AVAIL): Likewise.
2666 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2667 Likewise.
2668 * sysdeps/generic/hp-timing-common.h: Update comment with
2669 HP_TIMING_AVAIL removal.
2670
2671 * include/random-bits.h: New file.
2672 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2673 (__res_context_mkquery): Remove usage hp-timing usage and replace with
2674 random_bits.
2675 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2676 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2677 Likewise.
2678
2679 * include/libc-internal.h (__get_clockfreq): Remove prototype.
2680 * rt/Makefile (clock-routines): Remove get_clockfreq.
2681 * rt/get_clockfreq.c: Remove file.
2682 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2683 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2684 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2685 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2686 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2687
2688 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2689 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2690 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2691 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2692 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2693
2694 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2695 pthread_clock_settime.
2696 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2697 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2698 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2699 * elf/rtld.c (_dl_start_final): Likewise.
2700 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2701 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2702 Remove.
2703 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2704 (_dl_cpuclock_offset): Remove.
2705 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2706 cpuclock_offset_ununsed.
2707 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2708 cpuclock_offset set.
2709 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2710 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2711 * nptl/pthread_clock_gettime.c: Remove file.
2712 * nptl/pthread_clock_settime.c: Likewise.
2713 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2714 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2715 and CLOCK_PROCESS_CPUTIME_ID support.
2716 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2717 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2718 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2719 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2720 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2721 Likewise.
2722 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2723
2724 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2725
2726 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2727 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2728 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2729 New defines.
2730 * sysdeps/s390/memmem-arch13.S: New file.
2731 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2732 if it is only used as fallback.
2733 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2734 * sysdeps/s390/multiarch/ifunc-impl-list.c
2735 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2736
2737 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2738
2739 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2740 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2741 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2742 New defines.
2743 * sysdeps/s390/multiarch/ifunc-impl-list.c
2744 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2745 * sysdeps/s390/strstr-arch13.S: New file.
2746 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2747 if it is only used as fallback.
2748 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2749
2750 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2751
2752 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2753 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2754 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2755 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2756 ifunc selector.
2757 * sysdeps/s390/multiarch/ifunc-impl-list.c
2758 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2759 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2760 S390_IS_ARCH13_MIE3): New defines.
2761
2762 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2763
2764 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2765 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2766 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2767 * sysdeps/s390/configure: Regenerated.
2768
2769 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2770
2771 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2772 Add vxe2, vxp, dflt, sort flags.
2773 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2774 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2775 capabilities.
2776 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2777 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2778 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2779 HWCAP_S390_DFLT): Define.
2780
2781 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2782
2783 [BZ #24372]
2784 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2785 of compiler warning.
2786 * locale/programs/ld-collate.c (collate_output): Likewise.
2787
2788 2019-03-21 DJ Delorie <dj@redhat.com>
2789
2790 [BZ #24372]
2791 * iconv/iconvconfig.c (write_output): Replace floating point math
2792 with integer math to avoid imprecise results.
2793 * locale/programs/ld-collate.c (collate_output): Likewise.
2794
2795 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2796
2797 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2798 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2799
2800 2019-03-20 mansayk <6688000@gmail.com>
2801
2802 [BZ #24296]
2803 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2804 (abday): Likewise, but remove the trailing dots.
2805
2806 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2807
2808 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2809 macro.
2810 (HWCAP_PACA): Likewise.
2811 (HWCAP_PACG): Likewise.
2812 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2813 Increase to 32.
2814 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2815
2816 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2817
2818 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2819 should be handled.
2820
2821 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2822
2823 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2824 version to 5.0.
2825 (old_getpagesize): New syscall.
2826
2827 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2828
2829 [BZ #24293]
2830 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2831 * localedata/locales/cmn_TW (era): Likewise.
2832 * localedata/locales/hak_TW (era): Likewise.
2833 * localedata/locales/lzh_TW (era): Likewise.
2834 * localedata/locales/nan_TW (era): Likewise.
2835
2836 2019-03-14 Adam Maris <amaris@redhat.com>
2837
2838 * malloc/malloc.c (_int_malloc): Check for large bin list
2839 corruption when inserting unsorted chunk.
2840
2841 2019-03-14 Florian Weimer <fweimer@redhat.com>
2842
2843 Remove obsolete, never-implemented XSI STREAMS declarations.
2844 * manual/terminal.texi (Allocation): Remove portability note and
2845 adjust example.
2846 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2847 _SC_STREAMS.
2848 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2849 * sysdeps/unix/inet/Subdirs (streams): Remove.
2850 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2851 (conformtest-headers-UNIX98): Likewise.
2852 (conformtest-headers-XOPEN2K): Likewise.
2853 (conformtest-headers-POSIX2008): Likewise.
2854 * posix/compat-streams.c: New file.
2855 * posix/Makefile (routines): Add it.
2856 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2857 getpmsg, isastream, putmsg, putpmsg.
2858 (GLIBC_2.30): New section.
2859 * bits/stropts.h: Remove file.
2860 * bits/xtitypes.h: Likewise.
2861 * conform/data/stropts.h-data: Likewise.
2862 * include/stropts.h: Likewise.
2863 * include/sys/stropts.h: Likewise.
2864 * include/xtitypes.h: Likewise.
2865 * streams/Makefile: Likewise.
2866 * streams/fattach.c: Likewise.
2867 * streams/fdetach.c: Likewise.
2868 * streams/getmsg.c: Likewise.
2869 * streams/getpmsg.c: Likewise.
2870 * streams/isastream.c: Likewise.
2871 * streams/putmsg.c: Likewise.
2872 * streams/putpmsg.c: Likewise.
2873 * streams/stropts.h: Likewise.
2874 * streams/sys/stropts.h: Likewise.
2875 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2876 * sysdeps/s390/bits/xtitypes.h: Likewise.
2877 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2878 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2879 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2880 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2881 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2882 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2883 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2884 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2885 * sysdeps/x86/bits/xtitypes.h: Likewise.
2886
2887 2019-03-14 Florian Weimer <fweimer@redhat.com>
2888
2889 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2890 libnss_files.
2891 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2892 but not with libnss_files.
2893 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2894
2895 2019-03-14 Zack Weinberg <zackw@panix.com>
2896
2897 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2898 Specify encoding="utf-8" when opening headers to check.
2899
2900 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2901
2902 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2903 version to 5.0.
2904 (Context.checkout_tar): Handle variable major version for Linux
2905 kernel.
2906
2907 2019-03-13 Florian Weimer <fweimer@redhat.com>
2908
2909 [BZ #24047]
2910 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2911
2912 2019-03-13 Zack Weinberg <zackw@panix.com>
2913
2914 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2915 Move to stdlib.
2916 * include/inttypes.h: Adjust to match.
2917 * include/stdint.h: New wrapper.
2918
2919 2019-03-13 Zack Weinberg <zackw@panix.com>
2920
2921 * scripts/check-obsolete-constructs.py: New test script.
2922 * scripts/check-installed-headers.sh: Remove tests for
2923 obsolete typedefs, superseded by check-obsolete-constructs.py.
2924 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2925 as a special test. Update commentary.
2926 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2927 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2928 Update commentary.
2929 * posix/sys/types.h (__u_intN_t): Remove.
2930 (u_int8_t): Typedef using __uint8_t.
2931 (u_int16_t): Typedef using __uint16_t.
2932 (u_int32_t): Typedef using __uint32_t.
2933 (u_int64_t): Typedef using __uint64_t.
2934
2935 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2936
2937 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2938 call _dl_procinfo.
2939 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2940 Ignore types other than AT_HWCAP.
2941 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2942 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2943 Likewise.
2944 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2945 in the case of falling back to generic output mechanism.
2946 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2947 Likewise.
2948
2949 2019-03-12 Florian Weimer <fweimer@redhat.com>
2950
2951 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2952
2953 2019-03-12 Florian Weimer <fweimer@redhat.com>
2954
2955 [BZ #24047]
2956 resolv: Enable full ICMP errors for UDP DNS sockets
2957 * resolv/res_enable_icmp.c: New file.
2958 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2959 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2960 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2961 socket.
2962
2963 2019-03-11 Mao Han <han_mao@c-sky.com>
2964
2965 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2966 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2967
2968 2019-03-11 Mao Han <han_mao@c-sky.com>
2969
2970 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2971 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2972 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2973
2974 2019-03-11 Mao Han <han_mao@c-sky.com>
2975
2976 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2977 directly.
2978 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2979 definition.
2980
2981 2019-03-11 Mao Han <han_mao@c-sky.com>
2982
2983 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2984 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2985 in mcontext_t
2986
2987 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2988
2989 [BZ #24307]
2990 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2991 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2992 Unicode 12.0.0.
2993 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2994 * localedata/unicode-gen/PropList.txt: Likewise.
2995 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2996 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2997 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2998 * localedata/charmaps/UTF-8: Regenerate.
2999 * localedata/locales/i18n_ctype: Likewise.
3000 * localedata/locales/tr_TR: Likewise.
3001 * localedata/locales/translit_circle: Likewise.
3002 * localedata/locales/translit_cjk_compat: Likewise.
3003 * localedata/locales/translit_combining: Likewise.
3004 * localedata/locales/translit_compat: Likewise.
3005 * localedata/locales/translit_font: Likewise.
3006 * localedata/locales/translit_fraction: Likewise.
3007
3008 2019-03-07 Joseph Myers <joseph@codesourcery.com>
3009
3010 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
3011 than after operators.
3012 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
3013 (setitimer_locked): Likewise.
3014 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3015 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3016 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
3017 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
3018 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
3019 (PPC_CPU_SUPPORTED): Likewise.
3020 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
3021 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
3022 (stat_overflow): Likewise.
3023 (statfs_overflow): Likewise.
3024 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
3025 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
3026 (eq_ttyname_r): Likewise.
3027 (run_chroot_tests): Likewise.
3028
3029 2019-03-07 Florian Weimer <fweimer@redhat.com>
3030
3031 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
3032 header check.
3033
3034 2019-03-07 Martin Liska <mliska@suse.cz>
3035
3036 * math/Makefile: Change location where math-vector-fortran.h is
3037 installed.
3038 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
3039 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
3040 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
3041 * scripts/check-installed-headers.sh: Skip Fortran header files.
3042 * scripts/check-wrapper-headers.py: Likewise.
3043
3044 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3045
3046 * nptl/nptl-init.c (__have_futex_clock_realtime,
3047 __have_futex_clock_realtime): Remove definition.
3048 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
3049 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
3050 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
3051 __ASSUME_FUTEX_CLOCK_REALTIME support.
3052 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3053 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3054 * sysdeps/unix/sysv/linux/kernel-features.h
3055 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
3056 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
3057 Adjust comment.
3058
3059 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3060
3061 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
3062 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
3063 __GI___wcscpy and wcscpy.
3064
3065 2019-03-04 Florian Weimer <fweimer@redhat.com>
3066
3067 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
3068 declaration.
3069 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
3070 defined.
3071
3072 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
3073
3074 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
3075 * sysdeps/s390/s390-32/sysdep.h: Likewise.
3076
3077 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
3078
3079 [BZ #24162]
3080 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
3081 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
3082
3083 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3084
3085 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
3086 tests.
3087 (do_test): Likewise.
3088 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
3089 (do_test_call_varg): Likewise.
3090 (do_test_call_rarg): Likewise.
3091 * sysdeps/ieee754/ldbl-opt/Makefile
3092 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
3093 tst-nldbl-error.
3094 ($(objpfx)tst-nldbl-warn.c): New rule.
3095 ($(objpfx)tst-nldbl-error.c): Likewise.
3096 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
3097 New variables.
3098
3099 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3100
3101 [BZ #23984]
3102 * include/bits/error-ldbl.h: New file.
3103 * include/error.h: Include stdarg.h. Declare internal functions
3104 __error_internal and __error_at_line_internal.
3105 * misc/Makefile (headers): Add bits/error-ldbl.h.
3106 * misc/bits/error-ldbl.h: New file.
3107 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
3108 avoid the inclusion of bits/error.h.
3109 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
3110 and __nldbl_error_at_line.
3111 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
3112 (__nldbl_error, __ndlbl_error_at_line): New functions.
3113 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
3114 Redirect error and error_at_line.
3115 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3117 Likewise.
3118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3119 Likewise.
3120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3121 Likewise.
3122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3123 Likewise.
3124 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3125 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3126 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3127
3128 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3129
3130 [BZ #23984]
3131 * include/bits/err-ldbl.h: New file.
3132 * include/err.h: Add prototypes for the internal functions:
3133 __vwarnx_internal and __vwarn_internal.
3134 * misc/Makefile (headers): Add bits/err-ldbl.h.
3135 * misc/bits/err-ldbl.h: New file.
3136 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
3137 defined, i.e.: when -mlong-double-64 is in use.
3138 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
3139 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
3140 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
3141 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
3142 (VA_CALL): New macro.
3143 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
3144 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
3145 functions.
3146 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
3147 declare prototypes for the new functions.
3148 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3150 Likewise.
3151 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3152 Likewise.
3153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3154 Likewise.
3155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3156 Likewise.
3157 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3158 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3159 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3160
3161 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3162
3163 * sysdeps/ieee754/ldbl-opt/Makefile
3164 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
3165 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
3166 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
3167
3168 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3169
3170 [BZ #23983]
3171 * argp/Makefile (headers): Add bits/argp-ldbl.h.
3172 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
3173 * argp/bits/argp-ldbl.h: New file.
3174 * include/argp.h: Include stdarg.h. Add prototypes for internal
3175 functions: __argp_error_internal and __argp_failure_internal.
3176 * include/bits/argp-ldbl.h: New file.
3177 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
3178 __nldbl_argp_error and __nldbl_argp_failure.
3179 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
3180 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
3181 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
3182 Redirect argp_error and argp_failure calls.
3183 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3185 Likewise.
3186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3187 Likewise.
3188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3189 Likewise.
3190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3191 Likewise.
3192 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3193 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3194 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3195
3196 2019-03-01 Florian Weimer <fweimer@redhat.com>
3197
3198 [BZ #20419]
3199 * elf/tst-big-note-lib.S: Create a syntactically valid note.
3200 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
3201 code, to avoid creating an ABI tag note.
3202 (modules-names-nobuild): Add tst-big-note-lib.
3203
3204 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
3205
3206 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
3207 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
3208
3209 2019-03-01 Florian Weimer <fweimer@redhat.com>
3210
3211 [BZ #20271]
3212 * sysdeps/unix/sysv/linux/netlink_assert_response.c
3213 (__netlink_assert_response): Add additional missing newlines.
3214
3215 2019-02-28 Joseph Myers <joseph@codesourcery.com>
3216
3217 * sysdeps/powerpc/powerpc32/dl-machine.c
3218 (__elf_machine_fixup_plt): Use space before '('.
3219 (__process_machine_rela): Likewise.
3220 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
3221 Likewise.
3222 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
3223 Likewise.
3224 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
3225 Likewise.
3226 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
3227 (pattern): Likewise.
3228 (delta): Likewise.
3229 (check_result): Likewise.
3230 (check_excepts): Likewise.
3231 (check_op): Likewise.
3232 (fail_xr): Likewise.
3233 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
3234 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
3235 (SCNHSZ): Likewise.
3236 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
3237 Likewise.
3238 (ARGS): Likewise.
3239 (__makecontext): Likewise.
3240 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
3241 Likewise.
3242
3243 2019-02-28 Florian Weimer <fweimer@redhat.com>
3244
3245 [BZ #23937]
3246 elf: Add test with a local IFUNC resolver.
3247 * elf/ifuncmain9.c: New file.
3248 * elf/ifuncmain9pic.c: Likewise.
3249 * elf/ifuncmain9picstatic.c: Likewise.
3250 * elf/ifuncmain9pie.c: Likewise.
3251 * elf/ifuncmain9static.c: Likewise.
3252 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
3253 ifuncmain9static, ifuncmain9picstatic.
3254 * elf/Makefile [multi-arch && build-shared] (tests-internal):
3255 Add ifuncmain9, ifuncmain9pic.
3256 * elf/Makefile [multi-arch && build-shared && have-fpie]
3257 (ifunc-pie-tests): Add ifuncmain9pie.
3258 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
3259 (CFLAGS-ifuncmain9picstatic.c): Likewise.
3260 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
3261
3262 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
3263
3264 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
3265 * configure: Regenerated.
3266 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
3267
3268 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3269
3270 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
3271 symbol as __wcspcy instead of wcscpy.
3272
3273 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
3274
3275 * include/stdio.h (__renameat2): New hidden prototype.
3276 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
3277 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
3278 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
3279 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
3280
3281 2019-02-27 Joseph Myers <joseph@codesourcery.com>
3282
3283 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
3284 if statement.
3285
3286 * benchtests/bench-strcpy.c (do_test): Use space before '('.
3287 * benchtests/bench-string.h (cmdline_process_function): Likewise.
3288 * benchtests/bench-strlen.c (do_test): Likewise.
3289 (test_main): Likewise.
3290 * catgets/gencat.c (read_old): Likewise.
3291 * elf/cache.c (load_aux_cache): Likewise.
3292 * iconvdata/bug-iconv8.c (do_test): Likewise.
3293 * math/test-tgmath-ret.c (do_test): Likewise.
3294 * nis/nis_call.c (rec_dirsearch): Likewise.
3295 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3296 * nptl/tst-audit-threads.c (do_test): Likewise.
3297 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
3298 * nss/nss_test1.c (init): Likewise.
3299 * nss/test-netdb.c (test_hosts): Likewise.
3300 * posix/execvpe.c (maybe_script_execute): Likewise.
3301 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
3302 * stdio-common/tst-printf.c (do_test): Likewise.
3303 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
3304 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
3305 * stdlib/qsort.c (STACK_SIZE): Likewise.
3306 * stdlib/test-canon.c (do_test): Likewise.
3307 * stdlib/tst-swapcontext1.c (do_test): Likewise.
3308 * string/memcmp.c (OPSIZ): Likewise.
3309 * string/test-strcpy.c (do_test): Likewise.
3310 (do_random_tests): Likewise.
3311 * string/test-strlen.c (do_test): Likewise.
3312 (test_main): Likewise.
3313 * string/test-strrchr.c (do_test): Likewise.
3314 (do_random_tests): Likewise.
3315 * string/tester.c (test_memrchr): Likewise.
3316 (test_memchr): Likewise.
3317 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
3318 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
3319 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
3320 (read_encoded_value_with_base): Likewise.
3321 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
3322 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
3323 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
3324 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3325 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
3326 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
3327 Likewise.
3328 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
3329 Likewise.
3330 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
3331 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
3332 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
3333 Likewise.
3334 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
3335 Likewise.
3336 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
3337 Likewise.
3338 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3339 Likewise.
3340 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
3341 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
3342 (FP_XSTATE_MAGIC2_SIZE): Likewise.
3343 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
3344 * time/test_time.c (main): Likewise.
3345
3346 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3347
3348 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
3349
3350 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
3351 wmemcpy.
3352
3353 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
3354 wmemcpy.
3355
3356 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3357
3358 * include/wchar.h (__wcscpy): New prototype.
3359 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
3360 (__wcscpy): Route internal symbol to generic implementation.
3361 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
3362 Add internal __wcscpy alias.
3363 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
3364 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
3365 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
3366 * wcsmbs/wcscpy.c (wcscpy): Add
3367 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
3368 use generic implementation.
3369 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
3370
3371 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
3372 wmemset.
3373
3374 * sysdeps/m68k/wcpcpy.c: Remove file.
3375 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3376
3377 2019-02-26 Joseph Myers <joseph@codesourcery.com>
3378
3379 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
3380 than after operators.
3381 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3382 * sysdeps/mach/hurd/getcwd.c
3383 (__hurd_canonicalize_directory_name_internal): Likewise.
3384 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
3385 (pthread_mutex_consistent): Likewise.
3386 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
3387 Likewise.
3388 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
3389 (__pthread_mutex_transfer_np): Likewise.
3390 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
3391 (__pthread_mutex_unlock): Likewise.
3392 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
3393 (mtx_owned_p): Likewise.
3394 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
3395 (pthread_mutexattr_getrobust): Likewise.
3396 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
3397 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3398 Likewise.
3399 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3400 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
3401 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3402 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
3403 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3404 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3405 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
3406 Likewise.
3407 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
3408 Likewise.
3409 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
3410 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
3411 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
3412 (____longjmp_chk): Likewise.
3413 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
3414 Likewise.
3415 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3416 (INTERNAL_SYSCALL): Likewise.
3417 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3418 (INTERNAL_SYSCALL): Likewise.
3419 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3420 (__get_clockfreq_via_cpuinfo): Likewise.
3421
3422 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
3423 comments.
3424 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
3425 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
3426 (WORD_COPY_BWD): Likewise.
3427 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3428 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3429 Likewise.
3430 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
3431 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
3432 comment.
3433 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
3434
3435 2019-02-25 Joseph Myers <joseph@codesourcery.com>
3436
3437 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
3438 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
3439 rather than after operators.
3440 * elf/cache.c (print_cache): Likewise.
3441 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
3442 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
3443 * hurd/hurdinit.c (_hurd_setproc): Likewise.
3444 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3445 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
3446 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
3447 (reauth_proc): Likewise.
3448 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
3449 (__file_name_split_at): Likewise.
3450 (__directory_name_split_at): Likewise.
3451 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3452 * hurd/port2fd.c (_hurd_port2fd): Likewise.
3453 * iconv/gconv_dl.c (do_print): Likewise.
3454 * inet/netinet/in.h (struct sockaddr_in): Likewise.
3455 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
3456 * locale/setlocale.c (new_composite_name): Likewise.
3457 * malloc/memusagestat.c (main): Likewise.
3458 * misc/fstab.c (fstab_convert): Likewise.
3459 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3460 Likewise.
3461 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
3462 (getgrent_next_file): Likewise.
3463 (internal_getgrnam_r): Likewise.
3464 (internal_getgrgid_r): Likewise.
3465 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
3466 Likewise.
3467 (internal_getgrent_r): Likewise.
3468 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3469 (getpwent_next_nss): Likewise.
3470 (getpwent_next_file): Likewise.
3471 (internal_getpwnam_r): Likewise.
3472 (internal_getpwuid_r): Likewise.
3473 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3474 Likewise.
3475 (getspent_next_nss): Likewise.
3476 (internal_getspnam_r): Likewise.
3477 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3478 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3479 * string/strchr.c (STRCHR): Likewise.
3480 * string/strchrnul.c (STRCHRNUL): Likewise.
3481 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3482 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3483 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3484 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3485 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3486 Likewise.
3487 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3488 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3489 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3490 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3491 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3492 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3493 (open_file): Likewise.
3494 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3495 (pthread_mutexattr_setprotocol): Likewise.
3496 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3497 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3498 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3499 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3500 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3501 Likewise.
3502 (elf_machine_rela): Likewise.
3503 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3504 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3505 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3506 * sysdeps/posix/rename.c (rename): Likewise.
3507 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3508 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3509 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3510 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3511 * sysdeps/unix/grantpt.c (grantpt): Likewise.
3512 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3513 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3514 Likewise.
3515 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3516 Likewise.
3517 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3518 * time/tzfile.c (__tzfile_compute): Likewise.
3519
3520 2019-02-22 Joseph Myers <joseph@codesourcery.com>
3521
3522 * benchtests/bench-memmem.c (simple_memmem): Break lines before
3523 rather than after operators.
3524 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3525 * crypt/md5.c (md5_finish_ctx): Likewise.
3526 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3527 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3528 * elf/cache.c (load_aux_cache): Likewise.
3529 * elf/dl-load.c (open_verify): Likewise.
3530 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3531 * elf/readelflib.c (process_elf_file): Likewise.
3532 * elf/rtld.c (dl_main): Likewise.
3533 * elf/sprof.c (generate_call_graph): Likewise.
3534 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3535 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3536 * hurd/dtable.c (reauth_dtable): Likewise.
3537 * hurd/getdport.c (__getdport): Likewise.
3538 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3539 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3540 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3541 Likewise.
3542 * hurd/hurdioctl.c (fioctl): Likewise.
3543 * hurd/hurdselect.c (_hurd_select): Likewise.
3544 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3545 (STOPSIGS): Likewise.
3546 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3547 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3548 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3549 * hurd/msgportdemux.c (msgport_server): Likewise.
3550 * hurd/setauth.c (_hurd_setauth): Likewise.
3551 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3552 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3553 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3554 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3555 * login/tst-utmp.c (do_check): Likewise.
3556 (simulate_login): Likewise.
3557 * mach/lowlevellock.h (lll_lock): Likewise.
3558 (lll_trylock): Likewise.
3559 * math/test-fenv.c (ALL_EXC): Likewise.
3560 * math/test-fenvinline.c (ALL_EXC): Likewise.
3561 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3562 * nis/nis_call.c (__do_niscall3): Likewise.
3563 * nis/nis_callback.c (cb_prog_1): Likewise.
3564 * nis/nis_defaults.c (searchaccess): Likewise.
3565 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3566 * nis/nis_ismember.c (internal_ismember): Likewise.
3567 * nis/nis_local_names.c (nis_local_principal): Likewise.
3568 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3569 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3570 Likewise.
3571 * nis/ypclnt.c (yp_match): Likewise.
3572 (yp_first): Likewise.
3573 (yp_next): Likewise.
3574 (yp_master): Likewise.
3575 (yp_order): Likewise.
3576 * nscd/hstcache.c (cache_addhst): Likewise.
3577 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3578 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3579 (internal_getpwuid_r): Likewise.
3580 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3581 * posix/glob.h (__GLOB_FLAGS): Likewise.
3582 * posix/regcomp.c (peek_token): Likewise.
3583 (peek_token_bracket): Likewise.
3584 (parse_expression): Likewise.
3585 * posix/regexec.c (sift_states_iter_mb): Likewise.
3586 (check_node_accept_bytes): Likewise.
3587 * posix/tst-spawn3.c (do_test): Likewise.
3588 * posix/wordexp-test.c (testit): Likewise.
3589 * posix/wordexp.c (parse_tilde): Likewise.
3590 (exec_comm): Likewise.
3591 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3592 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3593 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3594 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3595 * stdio-common/tst-fileno.c (do_test): Likewise.
3596 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3597 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3598 * stdlib/strtod_l.c (round_and_return): Likewise.
3599 (____STRTOF_INTERNAL): Likewise.
3600 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3601 * string/strcspn.c (STRCSPN): Likewise.
3602 * string/test-memmem.c (simple_memmem): Likewise.
3603 * termios/tcsetattr.c (tcsetattr): Likewise.
3604 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3605 * time/asctime.c (asctime_internal): Likewise.
3606 * time/strptime_l.c (__strptime_internal): Likewise.
3607 * time/sys/time.h (timercmp): Likewise.
3608 * time/tzfile.c (__tzfile_compute): Likewise.
3609
3610 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
3611
3612 [BZ #21915]
3613 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3614
3615 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3616
3617 * argp/argp-help.c (__argp_error_internal): New function,
3618 renamed from __argp_error, but that takes a 'mode_flags'
3619 parameter to control the format of long double parameters.
3620 (__argp_error): Converted into a call __argp_error_internal.
3621 (__argp_failure_internal): New function, renamed from
3622 __argp_failure, but that takes a 'mode_flags' parameter.
3623 (__argp_failure): Converted into a call __argp_failure_internal.
3624 * misc/err.c (__vwarnx_internal): New function, renamed from
3625 vwarnx, but that takes a 'mode_flags' parameter.
3626 (vwarnx): Converted into a call to __vwarnx_internal.
3627 (__vwarn_internal): New function, renamed from vwarn, but that
3628 takes a 'mode_flags' parameter.
3629 (vwarn): Converted into a call to __vwarn_internal.
3630 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3631 call to __vfxprintf with 'mode_flags'.
3632 (__error_internal): New function, renamed from error, but that
3633 takes a 'mode_flags' parameter.
3634 (error): Converted into a call to __error_internal.
3635 (__error_at_line_internal): New function, renamed from
3636 error_at_line, but that takes a 'mode_flags' parameter.
3637 (error_at_line): Converted into a call to
3638 __error_at_line_internal.
3639 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3640 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3641 Likewise.
3642
3643 2019-02-20 Martin Liska <mliska@suse.cz>
3644
3645 * math/Makefile: Install math-vector-fortran.h.
3646 * bits/math-vector-fortran.h: New file.
3647 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3648
3649 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3650
3651 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3652 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3653
3654 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
3655
3656 * nptl/pthread_mutex_trylock.c: Fix comment.
3657
3658 2019-02-19 Carlos O'Donell <carlos@redhat.com>
3659
3660 * nptl/pthread_tryjoin.c: Fix comment.
3661
3662 2019-02-18 Joseph Myers <joseph@codesourcery.com>
3663
3664 [BZ #24231]
3665 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3666 after R_SPARC_H34 case.
3667
3668 2019-02-18 Florian Weimer <fweimer@redhat.com>
3669
3670 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3671 (getanswer): Do not call Dprintf.
3672 (res_gethostbyname2_context): Likewise.
3673 (res_gethostbyaddr_context): Likewise.
3674
3675 2019-02-18 Florian Weimer <fweimer@redhat.com>
3676
3677 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3678 declaration.
3679 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3680 Remove definitions.
3681 * libio/stdfiles.c: Update comment.
3682 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
3683 set _IO_stdin, _IO_stdout, _IO_stderr.
3684 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3685 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3686 inline function.
3687 (_IO_deallocate_file): New inline function.
3688 * libio/iolibio.h (_IO_vprintf): Remove definition.
3689 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3690 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3691 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3692 _IO_legacy_file.
3693 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3694 __builtin_expect. Use _IO_legacy_file.
3695
3696 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
3697
3698 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3699 Initialize ctid with a known value and remove update of ctid
3700 after clone.
3701 (wait_tid): Adjust arguments and call futex_wait with ctid_val
3702 as assumed current value of ctid_ptr.
3703
3704 2019-02-16 Florian Weimer <fweimer@redhat.com>
3705
3706 Check that non-sysdeps headers have wrapper headers.
3707 * scripts/check-wrapper-headers.py: New file.
3708 * Makefile (tests-special): Add check-wrapper-headers.out.
3709 (check-wrapper-headers.out): New target.
3710 * Rules (tests-special): Add check-wrapper-headers.out.
3711 (check-wrapper-headers.out): New target.
3712
3713 2019-02-16 Florian Weimer <fweimer@redhat.com>
3714
3715 Add missing header wrappers under include/.
3716 * include/ar.h: New file.
3717 * include/bits/mqueue2.h: Likewise.
3718 * include/bits/stdio.h: Likewise.
3719 * include/bits/stdio2.h: Likewise.
3720 * include/fstab.h: Likewise.
3721 * include/fts.h: Likewise.
3722 * include/lastlog.h: Likewise.
3723 * include/netinet/icmp6.h: Likewise.
3724 * include/netinet/igmp.h: Likewise.
3725 * include/netinet/ip6.h: Likewise.
3726 * include/re_comp.h: Likewise.
3727 * include/regexp.h: Likewise.
3728 * include/rpcsvc/bootparam.h: Likewise.
3729 * include/rpcsvc/yp_prot.h: Likewise.
3730 * include/sys/random.h: Likewise.
3731 * include/sys/stropts.h: Likewise.
3732 * include/sys/ttychars.h: Likewise.
3733 * include/sys/vfs.h: Likewise.
3734 * include/wait.h: Likewise.
3735
3736 2019-02-16 Florian Weimer <fweimer@redhat.com>
3737
3738 * nptl_db/proc_service.h: Move to ...
3739 * sysdeps/nptl/proc_service.h: ... here.
3740 * nptl_db/thread_db.h: Move to ...
3741 * sysdeps/nptl/thread_db.h: ... here.
3742 * nptl/descr.h: Include <thread_db.h>.
3743
3744 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3745
3746 * io/Makefile (tests): Add tst-lockf.
3747 * io/lockf.c (lockf): Use __fcntl and only define for
3748 !__OFF_T_MATCHES_OFF64_T.
3749 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3750 __OFF_T_MATCHES_OFF64_T case.
3751 * io/tst-lockf.c: New file.
3752 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3753 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3754 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3755 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3756 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3758 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3759 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3760 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3761
3762 2019-02-15 Florian Weimer <fweimer@redhat.com>
3763
3764 [BZ #24211]
3765 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3766 pd->result after the thread descriptor has been freed.
3767
3768 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3769
3770 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3771 from function return type.
3772
3773 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3774
3775 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3776
3777 * scripts/test_printers_common.py: Set TERM to a known harmless
3778 value.
3779
3780 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3781
3782 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3783 (xdr_u_int): Likewise.
3784 (xdr_enum): Likewise.
3785 (xdr_bytes): Reword fall-through comment.
3786 (xdr_string): Likewise.
3787
3788 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3789
3790 [BZ #2421]
3791 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3792 (tests): Add tst-join8 tst-join9.
3793 * nptl/lll_timedwait_tid.c: Remove file.
3794 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3795 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3796 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3797 * nptl/pthread_join_common.c (timedwait_tid): New function.
3798 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3799 is set.
3800 * nptl/tst-join5.c (thread_join): New function.
3801 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3802 check.
3803 * nptl/tst-join8.c: New file.
3804 * nptl/tst-join9.c: Likewise.
3805 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3806 lll_futex_timed_wait_cancel): Add generic macros.
3807 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3808 Remove definitions.
3809 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3810 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3811 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3812 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3813 Remove function.
3814 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3815 Likewise.
3816 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3817 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3818 (lll_futex_timed_wait_cancel): New macro.
3819
3820 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3821
3822 * benchtests/Makefile: Add malloc-simple benchmark.
3823 * benchtests/bench-malloc-simple.c: New benchmark.
3824
3825 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3826
3827 * benchtests/bench-memmove.c (do_one_test): Remove unused
3828 ORIG_SRC.
3829 (do_test): Adjust.
3830 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3831 ORIG_SRC.
3832 (do_test): Adjust.
3833
3834 2019-01-13 Jim Wilson <jimw@sifive.com>
3835
3836 [BZ #24040]
3837 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3838 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3839 (func): New.
3840 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3841 call func directly.
3842 * nptl/Makefile (tests): Add tst-unwind-thread.
3843 (CFLAGS-tst-unwind-thread.c): Define.
3844 * nptl/tst-unwind-thread.c: New file.
3845 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3846 as undefined.
3847
3848 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3849
3850 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3851 comment wording.
3852 * nis/nis_call.c (__do_niscall3): Likewise.
3853
3854 * catgets/gencat.c (normalize_line): Use braces around empty
3855 'else' body.
3856 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3857 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3858 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3859 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3860 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3861 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3862 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3863 definition.
3864
3865 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3866 execlp returns.
3867
3868 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3869
3870 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3871 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3872 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3873 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3874 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3875 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3876 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3877 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3878 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3879 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3880 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3881 * benchtests/bench-bcopy.c: Delete file.
3882 * benchtests/bench-bzero.c: Likewise.
3883 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3884 (simple_memccpy): Remove.
3885 (generic_memccpy): Add function.
3886 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3887 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3888 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3889 (generic_mempcpy): Add new function.
3890 * benchtests/bench-memset.c (simple_bzero): Remove.
3891 (builtin_bzero): Remove.
3892 (builtin_memset): Remove.
3893 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3894 (generic_rawmemchr): Add new function.
3895
3896 2019-02-12 Florian Weimer <fweimer@redhat.com>
3897
3898 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3899
3900 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3901
3902 [BZ #24122]
3903 * elf/Makefile (tests): Add tst-audit13.
3904 (modules-names): Add tst-audit13mod1.
3905 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3906 rule.
3907 * elf/tst-audit13.c: New file.
3908 * elf/tst-audit13mod1.c: Likewise.
3909
3910 2019-02-12 Florian Weimer <fweimer@redhat.com>
3911
3912 [BZ #24122]
3913 * elf/rtld.c (unload_audit_module): New function.
3914 (report_audit_module_load_error): Likewise.
3915 (load_audit_module): Likewise. Extracted from dl_main. Call
3916 _dl_close if the laversion symbol cannot be found. Use early
3917 returns for error handling. Add malloc error check. Check for a
3918 zero return value from la_version. Remove spurious comment about
3919 static TLS initialization. Remove useless casts.
3920 (notify_audit_modules_of_loaded_object): New function. Extracted
3921 from dl_main.
3922 (load_audit_module): Likewise.
3923 (dl_main): Call load_audit_modules.
3924
3925 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3926
3927 * elf/dl-exception.c (_dl_exception_create_format): Add
3928 fall-through comments.
3929 * elf/ldconfig.c (parse_conf_include): Likewise.
3930 * elf/rtld.c (print_statistics): Likewise.
3931 * locale/programs/charmap.c (parse_charmap): Likewise.
3932 * misc/mntent_r.c (__getmntent_r): Likewise.
3933 * posix/wordexp.c (parse_arith): Likewise.
3934 (parse_backtick): Likewise.
3935 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3936 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3937 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3938
3939 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3940
3941 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3942 Use float instead of double.
3943
3944 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3945
3946 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3947
3948 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3949
3950 * sysdeps/powerpc/bits/mathinline.h: Remove.
3951
3952 2019-02-08 Florian Weimer <fweimer@redhat.com>
3953
3954 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3955 * math/bits/math-finite.h: Move to ...
3956 * bits/math-finite.h: ... here.
3957
3958 2019-02-08 Florian Weimer <fweimer@redhat.com>
3959
3960 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3961 * bits/unistd_ext.h: here.
3962
3963 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3964
3965 [BZ #21915]
3966 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3967 * nss/tst-nss-files-hosts-long.c: New file.
3968 * nss/tst-nss-files-hosts-long.root: New directory.
3969 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3970 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3971
3972 2019-02-08 Florian Weimer <fweimer@redhat.com>
3973
3974 * include/bits/unistd_ext.h: Remove file.
3975 * posix/bits/unistd_ext.h: Move to ...
3976 * sysdeps/generic/bits/unistd_ext.h: ... here.
3977
3978 2019-02-08 Florian Weimer <fweimer@redhat.com>
3979
3980 * include/bits/unistd_ext.h: New file.
3981
3982 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3983
3984 * time/tst-strftime2.c: Use array_length macros instead of magic
3985 numbers.
3986
3987 2019-02-08 Florian Weimer <fweimer@redhat.com>
3988
3989 [BZ #24161]
3990 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3991 argument.
3992 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3993 locking if the new do_locking argument is true.
3994 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3995 __run_fork_handlers.
3996
3997 2019-02-08 Florian Weimer <fweimer@redhat.com>
3998
3999 [BZ #6399]
4000 Linux: Add gettid system call wrapper.
4001 * posix/Makefile (headers): Add bits/unistd_ext.h.
4002 * posix/bits/unistd_ext.h: New file.
4003 * posix/unistd.h: Include it.
4004 * manual/process.texi (Process Identification): Document gettid.
4005 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
4006 tst-gettid, tst-gettid-kill.
4007 (tst-gettid): Link with $(shared-thread-library).
4008 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
4009 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
4010 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
4011 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
4012 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
4013 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4014 Add gettid.
4015 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4016 Likewise.
4017 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4018 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
4019 Likewise.
4020 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
4021 Likewise.
4022 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
4023 Likewise.
4024 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
4025 Likewise.
4026 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4027 Likewise.
4028 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4029 Likewise.
4030 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4031 Likewise.
4032 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4033 (GLIBC_2.30): Likewise.
4034 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4035 (GLIBC_2.30): Likewise.
4036 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4037 (GLIBC_2.30): Likewise.
4038 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4039 (GLIBC_2.30): Likewise.
4040 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4041 Likewise.
4042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4043 (GLIBC_2.30): Likewise.
4044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4045 (GLIBC_2.30): Likewise.
4046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4047 (GLIBC_2.30): Likewise.
4048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4049 (GLIBC_2.30): Likewise.
4050 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4051 Likewise.
4052 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4053 Likewise.
4054 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4055 Likewise.
4056 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4057 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4058 Likewise.
4059 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4060 Likewise.
4061 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4062 Likewise.
4063 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4064 Likewise.
4065 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
4066
4067 2019-02-08 Florian Weimer <fweimer@redhat.com>
4068
4069 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
4070 compatibility symbols.
4071
4072 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
4073
4074 [BZ #24180]
4075 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
4076 Add compiler barriers and comments.
4077
4078 2019-02-07 Florian Weimer <fweimer@redhat.com>
4079
4080 * include/array_length.h (array_length): Do not use a statement
4081 expression and _Static_assert, so that array_length can be used at
4082 file scope and as a constant expression.
4083
4084 2019-02-07 Florian Weimer <fweimer@redhat.com>
4085
4086 * support/xdlfcn.h (xdlmopen): Declare.
4087 * support/xdlmopen.c: New file.
4088 * support/Makefile (libsupport-routines): Add xdlmopen.
4089
4090 2019-02-06 Joseph Myers <joseph@codesourcery.com>
4091
4092 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
4093 before return type, without separate inline.
4094 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
4095 * elf/dl-tunables.h (tunable_is_name): Likewise.
4096 * malloc/malloc.c (do_set_trim_threshold): Likewise.
4097 (do_set_top_pad): Likewise.
4098 (do_set_mmap_threshold): Likewise.
4099 (do_set_mmaps_max): Likewise.
4100 (do_set_mallopt_check): Likewise.
4101 (do_set_perturb_byte): Likewise.
4102 (do_set_arena_test): Likewise.
4103 (do_set_arena_max): Likewise.
4104 (do_set_tcache_max): Likewise.
4105 (do_set_tcache_count): Likewise.
4106 (do_set_tcache_unsorted_limit): Likewise.
4107 * nis/nis_subr.c (count_dots): Likewise.
4108 * nptl/allocatestack.c (advise_stack_range): Likewise.
4109 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
4110 (do_sin): Likewise.
4111 (reduce_sincos): Likewise.
4112 (do_sincos): Likewise.
4113 * sysdeps/unix/sysv/linux/x86/elision-conf.c
4114 (do_set_elision_enable): Likewise.
4115 (TUNABLE_CALLBACK_FNDECL): Likewise.
4116
4117 2019-02-06 Florian Weimer <fweimer@redhat.com>
4118
4119 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
4120 (xdlsym): Use dlerror to detect a NULL symbol.
4121
4122 2019-02-06 Florian Weimer <fweimer@redhat.com>
4123
4124 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
4125 <stap-probe.h>.
4126 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4127
4128 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
4129
4130 * libio/tst-bz24153.c (wide): Use wide char format specifier.
4131
4132 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
4133
4134 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
4135 __wmemcmp and weak alias to wmemcmp.
4136
4137 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
4138
4139 [BZ #23403]
4140 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
4141 TLS_TCB_AT_TP tls variant.
4142 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
4143 Add alignment checks.
4144 * support/Makefile (libsupport-routines): Add xposix_memalign and
4145 xpthread_setstack.
4146 * support/support.h: Add xposix_memalign.
4147 * support/xthread.h: Add xpthread_attr_setstack.
4148 * support/xposix_memalign.c: New File.
4149 * support/xpthread_attr_setstack.c: Likewise.
4150
4151 2019-02-05 Florian Weimer <fweimer@redhat.com>
4152
4153 [BZ #24164]
4154 arm: Use "nr" constraint for Systemtap probes, to avoid the
4155 compiler using memory operands for constants, due to the "o"
4156 alternative in the default "nor" constraint.
4157 * include/stap-probe.h [USE_STAP_PROBE]: Include
4158 <stap-probe-machine.h>
4159 * sysdeps/generic/stap-probe-machine.h: New file.
4160 * sysdeps/arm/stap-probe-machine.h: Likewise.
4161
4162 2019-02-04 Joseph Myers <joseph@codesourcery.com>
4163
4164 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
4165 with 0, not tcache->entries[tc_idx].
4166
4167 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
4168 once.
4169
4170 2019-02-04 Andreas Schwab <schwab@suse.de>
4171
4172 [BZ #16976]
4173 [BZ #17396]
4174 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
4175 looking up collating elements match against (wide) character
4176 sequence instead of name. Correct alignment adjustment.
4177 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
4178 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
4179 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
4180 (LOCALES): Add cs_CZ.ISO-8859-2.
4181 * posix/tst-fnmatch4.c: New file.
4182 * posix/tst-fnmatch5.c: New file.
4183 * include/wchar.h (__wmemcmp): Declare.
4184 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
4185 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
4186 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
4187 * sysdeps/s390/wmemcmp.c: Likewise.
4188
4189 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
4190
4191 [BZ #24155]
4192 CVE-2019-7309
4193 * NEWS: Updated for CVE-2019-7309.
4194 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
4195 upper 32 bits of RDX register for x32. Use unsigned Jcc
4196 instructions, instead of signed.
4197 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
4198 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
4199
4200 2019-02-04 Florian Weimer <fweimer@redhat.com>
4201
4202 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
4203 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
4204 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
4205 Likewise.
4206 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
4207 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
4208 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
4209 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
4210 Likewise.
4211 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
4212 Likewise.
4213 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
4214 Likewise.
4215 (posix_spawn_file_actions_addopen): Likewise.
4216 (posix_spawn_file_actions_addclose): Likewise.
4217 (posix_spawn_file_actions_adddup2): Likewise.
4218 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
4219 qualifiers.
4220 (posix_spawn_file_actions_addfchdir_np): Likewise.
4221
4222 2019-02-04 David Newall <glibc@davidnewall.com>
4223
4224 elf: Implement --preload option for the dynamic linker.
4225 * elf/rtld.c (preloadarg): New variable.
4226 (handle_preload_list): Pass through “where” argument to
4227 do_preload.
4228 (dl_main): Handle "--preload" and add second call to
4229 handle_preload_list.
4230 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
4231 (tst-rtld-preload-OBJS): Set variable.
4232 (tst-rtld-preload.out): New target.
4233 * elf/tst-rtld-preload.sh: New file.
4234
4235 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
4236
4237 * Makefile (testrun.sh): Exit in case of incorrect argument.
4238
4239 2019-02-04 Florian Weimer <fweimer@redhat.com>
4240
4241 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
4242 alignment gaps.
4243
4244 2019-02-03 Florian Weimer <fweimer@redhat.com>
4245
4246 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
4247 implicit overflow checks.
4248
4249 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
4250
4251 * stdlib/isomac.c: Include <unistd.h>.
4252
4253 2019-02-03 Florian Weimer <fweimer@redhat.com>
4254
4255 * include/time.h (__tzfile_default): Use int, not long int, for
4256 the GMT offsets.
4257 * time/tzfile.c (struct ttinfo): Change type of the offset member
4258 to int.
4259 (__tzfile_read): Remove useless cast.
4260 (__tzfile_default): Adjust prototype.
4261 * time/tzset.c (tz_rule): Change type of the offset member to int.
4262 (parse_offset): Change the type of the sign variable to int.
4263
4264 2019-02-03 Florian Weimer <fweimer@redhat.com>
4265
4266 [BZ #24153]
4267 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
4268 * libio/getchar.c (getchar): Likewise.
4269 * libio/getchar_u.c (getchar_unlocked): Likewise.
4270 * libio/getwchar.c (getwchar): Likewise.
4271 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
4272 * libio/iogets.c (_IO_gets): Likewise.
4273 * libio/vscanf.c (_IO_vscanf): Likewise.
4274 * libio/vwscanf.c (__vwscanf): Likewise.
4275 * libio/tst-bz24153.c: New file.
4276 * libio/Makefile (tests): Add it.
4277
4278 2019-02-02 Florian Weimer <fweimer@redhat.com>
4279
4280 [BZ #14829]
4281 * manual/resource.texi (Basic Scheduling Functions): Add
4282 portability note. Change process to task throughout the section.
4283 Remove incorrect comment about sched_yield as it affects
4284 tasks/threads, not entire processes.
4285 * sysdeps/unix/sysv/linux/bits/posix_opt.h
4286 (_POSIX_PRIORITY_SCHEDULING): Update comment.
4287
4288 2019-02-01 Joseph Myers <joseph@codesourcery.com>
4289
4290 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
4291 * configure: Regenerated.
4292 * manual/install.texi (Tools for Compilation): Update minimum GCC
4293 version.
4294 * INSTALL: Regenerated.
4295
4296 2019-02-01 Florian Weimer <fweimer@redhat.com>
4297
4298 * support/support_test_compare_string.c
4299 (support_test_compare_string): Use "string" in error message.
4300 * support/tst-test_compare_string.c (do_test): Adjust.
4301
4302 2019-02-01 Florian Weimer <fweimer@redhat.com>
4303
4304 * support/support_format_address_family.c
4305 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
4306
4307 2019-02-01 Florian Weimer <fweimer@redhat.com>
4308
4309 * manual/socket.texi (Internet Address Formats): Clarify the byte
4310 order of struct sockaddr_in, struct sockaddr_in6. Document
4311 sin6_flowinfo and sin6_scope_id.
4312
4313 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
4314
4315 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
4316 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
4317 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
4318 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
4319 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
4320 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
4321
4322 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
4323
4324 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
4325 [!MEMCHR](MEMCHR): Set to __memchr.
4326 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4327 Add memchr_generic and memchr_nosimd.
4328 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4329 (__libc_ifunc_impl_list): Add memchr ifuncs.
4330 * sysdeps/aarch64/multiarch/memchr.c: New file.
4331 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
4332 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
4333
4334 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
4335
4336 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4337 Add memset_emag.
4338 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4339 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
4340 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
4341 Add IS_EMAG check for ifunc dispatch.
4342 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
4343 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
4344
4345 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
4346
4347 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
4348 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4349 Add emag.
4350 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
4351 New macro.
4352
4353 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
4354
4355 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
4356
4357 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
4358
4359 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
4360 syscall-template file.
4361
4362 2019-01-31 Carlos O'Donell <carlos@redhat.com>
4363 Torvald Riegel <triegel@redhat.com>
4364 Rik Prohaska <prohaska7@gmail.com>
4365
4366 [BZ# 23844]
4367 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
4368 tst-rwlock-trywrlock-stall.
4369 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
4370 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
4371 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
4372 Set __wrphase_fute to 1 only if we started the write phase.
4373 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
4374 * nptl/tst-rwlock-trywrlock-stall.c: New file.
4375 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
4376 * support/xpthread_rwlock_destroy.c: New file.
4377 * support/xthread.h: Declare xpthread_rwlock_destroy.
4378
4379 2019-02-01 Joseph Myers <joseph@codesourcery.com>
4380
4381 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4382 version to 4.0.2.
4383
4384 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4385
4386 [BZ #24051]
4387 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
4388 * libio/fileops.c (_IO_new_file_underflow): Likewise
4389 * libio/wfileops.c (_IO_wfile_underflow): Likewise
4390 * libio/putchar.c (putchar): Likewise.
4391 * libio/putchar_u.c (putchar_unlocked): Likewise.
4392 * libio/putwchar.c (putchar): Likewise.
4393 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
4394 * libio/tst-bz24051.c: New test.
4395 * libio/Makefile (tests): Add tst-bz24051
4396
4397 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
4398
4399 CVE-2019-9169
4400 regex: fix read overrun [BZ #24114]
4401 Problem found by AddressSanitizer, reported by Hongxu Chen in:
4402 https://debbugs.gnu.org/34140
4403 * posix/regexec.c (proceed_next_node):
4404 Do not read past end of input buffer.
4405
4406 2019-01-31 Florian Weimer <fweimer@redhat.com>
4407
4408 [BZ #24059]
4409 * nss/nss_files/files-alias.c (get_next_alias): Handle
4410 continuation line without newline at the end.
4411 * nss/tst-nss-files-alias-truncated.c: New file.
4412 * nss/Makefile [$(build-shared)] (tests): Add
4413 tst-nss-files-alias-truncated.
4414 (tst-nss-files-alias-truncated): Link with libnss_files.so.
4415 * support/namespace.h (struct support_chroot_configuration): Add
4416 aliases member.
4417 (struct support_chroot): Add path_aliases member.
4418 * support/support_chroot.c (support_chroot_create): Handle
4419 aliases.
4420 (support_chroot_free): Free path_aliases.
4421
4422 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
4423
4424 * version.h (RELEASE): Set to "development".
4425 (VERSION): Set to "2.29.9000".
4426 * NEWS: Add section for 2.30.
4427
4428 * version.h (RELEASE): Set to "stable".
4429 (VERSION): Set to "2.29".
4430 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
4431
4432 * NEWS: Add the list of bugs fixed in 2.29.
4433 * manual/contrib.texi: Update contributors list with some more
4434 names.
4435 * manual/install.texi: Update latest versions of packages
4436 tested.
4437 * INSTALL: Regenerated.
4438
4439 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
4440
4441 * po/be.po: Update translations.
4442 * po/bg.po: Likewise.
4443 * po/ca.po: Likewise.
4444 * po/cs.po: Likewise.
4445 * po/da.po: Likewise.
4446 * po/de.po: Likewise.
4447 * po/el.po: Likewise.
4448 * po/eo.po: Likewise.
4449 * po/es.po: Likewise.
4450 * po/fi.po: Likewise.
4451 * po/fr.po: Likewise.
4452 * po/gl.po: Likewise.
4453 * po/hr.po: Likewise.
4454 * po/hu.po: Likewise.
4455 * po/ia.po: Likewise.
4456 * po/id.po: Likewise.
4457 * po/it.po: Likewise.
4458 * po/ja.po: Likewise.
4459 * po/ko.po: Likewise.
4460 * po/lt.po: Likewise.
4461 * po/nb.po: Likewise.
4462 * po/nl.po: Likewise.
4463 * po/pl.po: Likewise.
4464 * po/pt_BR.po: Likewise.
4465 * po/ru.po: Likewise.
4466 * po/rw.po: Likewise.
4467 * po/sk.po: Likewise.
4468 * po/sl.po: Likewise.
4469 * po/sv.po: Likewise.
4470 * po/tr.po: Likewise.
4471 * po/uk.po: Likewise.
4472 * po/vi.po: Likewise.
4473 * po/zh_CN.po: Likewise.
4474 * po/zh_TW.po: Likewise.
4475
4476 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4477
4478 [BZ #24130]
4479 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4480 of $f3 register on $y_is_neg path.
4481
4482 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4483
4484 [BZ #24110]
4485 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4486 sigaltstack.ss_flags.
4487
4488 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
4489
4490 [BZ #23758]
4491 * manual/time.texi (strftime): Document "%Ey".
4492 * time/strftime_l.c (__strftime_internal): Set the default width
4493 padding with zero of "%Ey" to 2.
4494
4495 [BZ #24096]
4496 * manual/time.texi (strftime): Document "%EC" and "%EY".
4497 * time/Makefile (tests): Add tst-strftime2.
4498 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4499 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4500 override padding for "%Ey".
4501 If an optional flag ('_' or '-') is specified to "%EY", interpret the
4502 "%Ey" in the subformat as if decorated with that flag.
4503 * time/tst-strftime2.c: New file.
4504
4505 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4506
4507 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4508 are not defined.
4509
4510 [BZ #24122]
4511 * elf/Makefile (tests): Add tst-audit13.
4512 (modules-names): Add tst-audit13mod1.
4513 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4514 rule.
4515 * elf/rtld.c (dl_main): Handle invalid audit module version.
4516 * elf/tst-audit13.c: New file.
4517 * elf/tst-audit13mod1.c: Likewise.
4518
4519 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4520
4521 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4522 returned by __hurd_at_flags.
4523 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4524 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4525 directly instead of __hurd_file_name_lookup.
4526
4527 2019-01-21 Joseph Myers <joseph@codesourcery.com>
4528
4529 * scripts/build-many-glibcs.py (Context.checkout): Default
4530 binutils version to 2.32 branch.
4531
4532 2019-01-21 Florian Weimer <fweimer@redhat.com>
4533
4534 [BZ #20018]
4535 CVE-2016-10739
4536 resolv: Reject trailing characters in host names
4537 * include/arpa/inet.h (__inet_aton_exact): Declare.
4538 (inet_aton): Remove hidden prototype. No longer used internally.
4539 * nscd/gai.c (__inet_aton): Do not define.
4540 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4541 * nss/digits_dots.c (__inet_aton): Likewise.
4542 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4543 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4544 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4545 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4546 (tst-resolv-trailing): Likewise.
4547 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4548 libc.
4549 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4550 Make static. Add endp parameter.
4551 (__inet_aton_exact): New function.
4552 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4553 (__inet_addr): Call inet_aton_end.
4554 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4555 not just IPv6. Call __inet_aton_exact.
4556 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4557 (tests): Make const. Add additional test cases with trailing
4558 characters.
4559 (do_test): Use array_length.
4560 * resolv/tst-inet_aton_exact.c: New file.
4561 * resolv/tst-resolv-trailing.c: Likewise.
4562 * resolv/tst-resolv-nondecimal.c: Likewise.
4563 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4564
4565 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4566
4567 [BZ# 24097]
4568 CVE-2019-6488
4569 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4570 Clear the upper 32 bits of RSI register.
4571 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4572 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4573 and tst-size_t-wcsnlen.
4574 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4575 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4576
4577 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4578
4579 [BZ# 24097]
4580 CVE-2019-6488
4581 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4582 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4583 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4584 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4585 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4586
4587 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4588
4589 [BZ# 24097]
4590 CVE-2019-6488
4591 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4592 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4593 * sysdeps/x86_64/strcmp.S: Likewise.
4594 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4595 tst-size_t-strncmp and tst-size_t-wcsncmp.
4596 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4597 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4598 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4599
4600 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4601
4602 [BZ# 24097]
4603 CVE-2019-6488
4604 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4605 RDX_LP for length. Clear the upper 32 bits of RDX register.
4606 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4607 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4608 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4609 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4610
4611 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4612
4613 [BZ# 24097]
4614 CVE-2019-6488
4615 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4616 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4617 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4618 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4619
4620 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4621
4622 [BZ# 24097]
4623 CVE-2019-6488
4624 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4625 length. Clear the upper 32 bits of RDX register.
4626 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4627 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4628 Likewise.
4629 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4630 Likewise.
4631 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4632 tst-size_t-wmemchr.
4633 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4634
4635 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4636
4637 [BZ# 24097]
4638 CVE-2019-6488
4639 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4640 length. Clear the upper 32 bits of RDX register.
4641 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4642 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4643 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4644 tst-size_t-wmemcmp.
4645 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4646 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4647
4648 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4649
4650 [BZ# 24097]
4651 CVE-2019-6488
4652 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
4653 upper 32 bits of RDX register.
4654 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4655 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4656 tst-size_t-wmemchr.
4657 * sysdeps/x86_64/x32/test-size_t.h: New file.
4658 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4659 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4660
4661 2019-01-18 Florian Weimer <fweimer@redhat.com>
4662
4663 [BZ #24112]
4664 resolv: Do not send queries for non-host-names in nss_dns.
4665 * resolv/nss_dns/dns-host.c (check_name): New function.
4666 (_nss_dns_gethostbyname2_r): Use it.
4667 (_nss_dns_gethostbyname_r): Likewise.
4668 (_nss_dns_gethostbyname4_r): Likewise.
4669
4670 2019-01-21 Florian Weimer <fweimer@redhat.com>
4671
4672 * resolv/inet_addr.c: Reformat to GNU style.
4673 (__inet_addr, __inet_aton): Update comment.
4674
4675 2019-01-18 Florian Weimer <fweimer@redhat.com>
4676
4677 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4678 ("malloc: Use current (C11-style) atomics for fastbin access").
4679 This commit introduces a substantial performance regression on
4680 POWER and Aarch64.
4681 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4682 (REMOVE_FB): Define.
4683 (_int_malloc): Use it and reindent.
4684 (_int_free): Use CAS loop with
4685 catomic_compare_and_exchange_val_rel.
4686 (malloc_consolidate): Use atomic_exchange_acq.
4687
4688
4689 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4690
4691 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
4692 -Wl,-z,now.
4693 (LDFLAGS-tst-minsigstksz-2): Likewise.
4694 (LDFLAGS-tst-minsigstksz-3): Likewise.
4695 (LDFLAGS-tst-minsigstksz-3a): Likewise.
4696 (LDFLAGS-tst-minsigstksz-4): Likewise.
4697
4698 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
4699
4700 * manual/time.texi (strftime): Fix the wording to "alternative" rather
4701 than "alternate".
4702
4703 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
4704
4705 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4706
4707 2019-01-16 Zack Weinberg <zackw@panix.com>
4708
4709 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4710 (xget_sigstack_location): New test support functions.
4711 * support/xsigstack.c: New file, implementing them.
4712 * support/tst-xsigstack.c: New test for them.
4713 * support/Makefile: Update.
4714
4715 * signal/tst-minsigstksz-1.c
4716 * signal/tst-minsigstksz-2.c
4717 * signal/tst-minsigstksz-3.c
4718 * signal/tst-minsigstksz-3a.c
4719 * signal/tst-minsigstksz-4.c: New tests.
4720 * signal/Makefile: Run them.
4721
4722 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4723
4724 * po/libc.pot: Regenerate.
4725
4726 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4727
4728 * math/libm-test-fma.inc (fma_test_data): Set
4729 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4730
4731 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4732
4733 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4734 (do_test): Changed __vector __int128_t to __vector unsigned int.
4735
4736 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4737
4738 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4739 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4740 stpcpy-avx2 and stpncpy-avx2.
4741 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4742 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4743 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4744 and __stpncpy_avx2.
4745 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4746 ifunc-strcpy.h}: rename header for a more generic name.
4747 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4748 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4749 AVX unaligned load is fast and vzeroupper is preferred.
4750 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4751 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4752 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4753 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4754 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4755 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4756
4757 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4758
4759 * argp/argp-help.c: Fix typo in comment.
4760 * misc/sys/cdefs.h: Likewise.
4761 * posix/regexec.c (sift_states_iter_mb): Likewise.
4762 * socket/sockatmark.c: Likewise.
4763 * socket/sys/socket.h: Likewise.
4764 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4765 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4766 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4767 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4768 * sysdeps/unix/sockatmark.c: Likewise.
4769 * time/strptime_l.c: Likewise.
4770
4771 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4772
4773 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4774 missing space after the cast of "_NL_CURRENT".
4775
4776 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4777
4778 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4779 ifdef to fix read of VSCR.
4780 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4781 tst-ucontext-ppc64-vscr.c to test list.
4782 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4783
4784 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4785
4786 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4787 fall-through.
4788
4789 2019-01-09 Jim Wilson <jimw@sifive.com>
4790
4791 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4792
4793 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4794
4795 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4796 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4797 __memcpy_falkor for ares.
4798 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4799 Add new define.
4800 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4801 Add ares cpu.
4802
4803 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4804
4805 [BZ #24066]
4806 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4807 4_FP_W_TYPEs are used for IEEE quad precision.
4808 * soft-fp/extendhftf2.c: Likewise.
4809 * soft-fp/extendsftf2.c: Likewise.
4810 * soft-fp/extendxftf2.c: Likewise.
4811 * soft-fp/trunctfdf2.c: Likewise.
4812 * soft-fp/trunctfhf2.c: Likewise.
4813 * soft-fp/trunctfsf2.c: Likewise.
4814 * soft-fp/trunctfxf2.c: Likewise.
4815 * sysdeps/alpha/ots_cvttx.c: Likewise.
4816 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4817 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4818 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4819 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4820 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4821 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4822 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4823 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4824 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4825 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4826 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4827 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4828 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4829 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4830 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4831 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4832 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4833
4834 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4835
4836 [BZ #24024]
4837 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4838 code with -fmath-errno.
4839 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4840 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4841 * string/test-strerror-errno.c: New file.
4842
4843 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4844
4845 [BZ #24046]
4846 * localedata/locales/en_US (date_fmt): Add, set to
4847 "%a %d %b %Y %r %Z".
4848
4849 2019-01-07 Florian Weimer <fweimer@redhat.com>
4850
4851 [BZ #24063]
4852 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4853 instead of @var{errno}.
4854 (Parsing of Integers): Likewise.
4855 (Parsing of Floats): Likewise.
4856 * manual/filesys.texi (Working with Directory Trees): Likewise.
4857 (Temporary Files): Likewise.
4858 * manual/job.texi (Terminal Access Functions): Likewise.
4859 * manual/llio.texi (Synchronizing I/O): Likewise.
4860 * manual/math.texi (SVID Random): Likewise.
4861 * manual/message.texi (The catgets Functions): Likewise.
4862 (Translation with gettext): Likewise.
4863 (Locating gettext catalog): Likewise.
4864 (Charset conversion in gettext): Likewise.
4865 * manual/nss.texi (NSS Module Function Internals): Likewise.
4866 * manual/search.texi (Hash Search Function): Likewise.
4867 * manual/setjmp.texi (System V contexts): Likewise.
4868 * manual/time.texi (Sleeping): Likewise.
4869 * manual/users.texi (Lookup User): Likewise.
4870 (Lookup Group): Likewise.
4871
4872 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4873
4874 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4875 fix typo.
4876
4877 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4878
4879 [BZ #19444]
4880 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4881 __builtin_unreachable for default case in switch.
4882 (__ieee754_yn): Likewise.
4883 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4884 (__ieee754_ynl): Likewise.
4885 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4886 (__ieee754_ynl): Likewise.
4887 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4888 (__ieee754_ynl): Likewise.
4889
4890 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4891
4892 * manual/maint.texi: Use @{ and @}.
4893
4894 2019-01-04 Florian Weimer <fweimer@redhat.com>
4895
4896 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4897 function.
4898 (do_in_chroot_1): Call it.
4899 (run_chroot_tests):
4900 Improve error reporting in case it is not possible to create a
4901 collision for the PTY name required by the test.
4902
4903 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4904
4905 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4906 lll_wait_tid with timeout.
4907 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4908 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4909 futex_reltimed_wait_cancelable for cancelabla mode.
4910 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4911 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4912 macros.
4913 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4914 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4915 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4916 SYSCALL_CANCEL_NCS): New macro.
4917 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4918 (lll_timedwait_tid): Remove macro.
4919 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4920 Likewise.
4921 (lll_timedwait_tid): Likewise.
4922 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4923 Likewise.
4924 (lll_timedwait_tid): Likewise.
4925 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4926 Likewise.
4927 (lll_timedwait_tid): Likewise.
4928 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4929 Use INTERNAL_SYSCALL_CANCEL.
4930 * sysdeps/unix/sysv/linux/futex-internal.h
4931 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4932 instead of __pthread_{enable,disable}_asynccancel.
4933 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4934 (lll_futex_wait_cancel): New macro.
4935
4936 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4937 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4938
4939 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4940 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4941
4942 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4943 in backtrace analysis.
4944 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4945 side-effects.
4946 (tf_send): Likewise.
4947
4948 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4949 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4950 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4951 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4952 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4953 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4954 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4955 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4956 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4957 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4958 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4959 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4960 Likewise.
4961 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4962 tst-cancel-wrappers.sh.
4963 (generated): Remove tst-cancel-wrappers.out.
4964 (tst-cancel-wrappers.out): Remove rule.
4965 * nptl/tst-cancel-wrappers.sh: Remove file.
4966
4967 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4968
4969 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4970 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4971 Update.
4972
4973 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4974
4975 [BZ #23640]
4976 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4977 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4978 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4979 close-on-exec reset for adddup2 file action.
4980 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4981
4982 2019-01-03 Zack Weinberg <zackw@panix.com>
4983
4984 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4985 parameter. Only use deprecated scanf when __USE_GNU is defined
4986 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4987 than 201103L, whichever is relevant for the language being compiled.
4988
4989 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4990 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4991 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4992 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4993 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4994
4995 * libio/iovsscanf.c
4996 * libio/fwscanf.c
4997 * libio/iovswscanf.c
4998 * libio/swscanf.c
4999 * libio/vscanf.c
5000 * libio/vwscanf.c
5001 * libio/wscanf.c
5002 * stdio-common/fscanf.c
5003 * stdio-common/scanf.c
5004 * stdio-common/vfscanf.c
5005 * stdio-common/vfwscanf.c
5006 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5007 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
5008 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
5009 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
5010 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
5011 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
5012 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
5013 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
5014 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
5015 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
5016 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
5017 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
5018 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
5019 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
5020 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
5021
5022 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
5023 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
5024 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
5025 not sscanf.
5026 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
5027 with a preprocessor macro.
5028
5029 * stdio-common/bug21.c, stdio-common/scanf14.c:
5030 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
5031 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
5032 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
5033 to xscanf, xfscanf, xsscanf.
5034
5035 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
5036 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
5037 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
5038 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
5039 xfscanf, xsscanf.
5040 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
5041 override feature selection macros or provide definitions of u_char etc.
5042 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
5043 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
5044 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
5045 with -std=gnu89.
5046
5047 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5048
5049 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5050 bits/termios-misc.h.
5051 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
5052 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5053 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5054 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5055 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
5056 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
5057
5058 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
5059 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5060 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
5061 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
5062 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
5063 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
5064 termios-misc.h.
5065 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
5066 (sysdep_headers): Add termios-misc.h.
5067
5068 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
5069 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5070 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5071
5072 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5073 termios-tcflow.h.
5074 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
5075 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
5076 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
5077 TCSAFLUSH): Move to termios-tcflow.h.
5078 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5079 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5080 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5081 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5082
5083 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5084 termios-c_lflag.h.
5085 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
5086 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
5087 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
5088 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
5089 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
5090 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
5091 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
5092 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
5093 Likewise.
5094 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5095 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5096 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5097 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5098
5099 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5100 termios-c_cflag.h.
5101 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
5102 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
5103 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
5104 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
5105 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
5106 termios-c_cflag.h.
5107 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5108 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5109 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5110 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5111
5112 [BZ #23783]
5113 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5114 termios-baud.h.
5115 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
5116 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
5117 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
5118 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
5119 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
5120 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
5121 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
5122 __MAX_BAUD): Move to termios-baud.h.
5123 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
5124 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
5125 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5126 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5127 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5128
5129 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
5130 termios-c_oflag.h.
5131 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
5132 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
5133 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
5134 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
5135 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
5136 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
5137 termios-c_oflag.h.
5138 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
5139 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
5140 FFR1): Likewise.
5141 [USE_MISC] (XTABS): Likewise.
5142 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5143 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5144 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5145 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
5146
5147 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
5148 termios-c_iflag.h.
5149 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
5150 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
5151 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
5152 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
5153 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
5154 IUTF8): Move to termios-c_iflag.h.
5155 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5156 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5157 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5158 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5159
5160 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
5161 termios-cc.h.
5162 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
5163 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
5164 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
5165 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
5166 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
5167 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
5168 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
5169 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
5170 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5171 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5172 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5173 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5174
5175 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
5176 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
5177 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
5178 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
5179 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5180 termios-struct.h.
5181 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
5182 termios-struct.h.
5183 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
5184 Likewise.
5185 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
5186 Likewise.
5187 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
5188 Likewise.
5189 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
5190 Likewise.
5191 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
5192 _HAVE_C_OSPEED): Define.
5193 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
5194 _HAVE_C_OSPEED): Likewise.
5195 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
5196 _HAVE_C_OSPEED): Likewise.
5197 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
5198 (cfsetospeed): Check for define value instead of existence.
5199 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
5200 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5201 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
5202 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5203 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
5204
5205 [BZ #17783]
5206 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
5207 Define.
5208 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5209 (TIOCSER_TEMT): Likewise.
5210 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
5211 (TEOCSER_TEMT): Likewise.
5212
5213 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
5214
5215 [BZ #24011]
5216 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
5217
5218 2019-01-02 Joseph Myers <joseph@codesourcery.com>
5219
5220 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5221
5222 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5223
5224 * sysdeps/htl/pt-barrierattr-setpshared.c
5225 (pthread_barrierattr_setpshared): Add stub warning.
5226 * sysdeps/htl/pt-condattr-setpshared.c
5227 (pthread_condattr_setpshared): Likewise.
5228 * sysdeps/htl/pt-mutexattr-setpshared.c
5229 (pthread_mutexattr_setpshared): Likewise.
5230 * sysdeps/htl/pt-rwlockattr-setpshared.c
5231 (pthread_rwlockattr_setpshared): Likewise.
5232 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
5233 (pthread_mutexattr_setpshared): Likewise.
5234
5235 2019-01-02 Joseph Myers <joseph@codesourcery.com>
5236
5237 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
5238 constants to match with Linux 4.20.
5239
5240 * sysdeps/mips/mips32/libm-test-ulps: Update.
5241 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5242
5243 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
5244
5245 [BZ #24034]
5246 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
5247 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
5248 than __typeof (...) for the a_ptr variable.
5249
5250 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5251
5252 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
5253 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
5254 * libio/Makefile (tests): Add tst-sprintf-ub and
5255 tst-sprintf-chk-ub.
5256 (CFLAGS-tst-sprintf-ub.c): New variable.
5257 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
5258 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
5259 destination buffer and check for overflows in fortified mode.
5260 * libio/libioP.h (PRINTF_CHK): New macro.
5261 * libio/tst-sprintf-chk-ub.c: New file.
5262 * libio/tst-sprintf-ub.c: Likewise.
5263
5264 2019-01-02 Florian Weimer <fweimer@redhat.com>
5265
5266 [BZ #24018]
5267 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
5268 failure.
5269
5270 2019-01-02 Florian Weimer <fweimer@redhat.com>
5271
5272 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
5273
5274 2019-01-01 Joseph Myers <joseph@codesourcery.com>
5275
5276 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
5277 macro.
5278
5279 * sysdeps/unix/sysv/linux/netpacket/packet.h
5280 (PACKET_IGNORE_OUTGOING): New macro.
5281
5282 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
5283 macro.
5284
5285 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5286 version to 4.20.
5287 (riscv_flush_icache): New syscall.
5288
5289 * manual/texinfo.tex: Update to version 2018-12-28.17 with
5290 trailing whitespace removed.
5291 * scripts/config.guess: Update to version 2019-01-01.
5292 * scripts/config.sub: Update to version 2019-01-01.
5293 * scripts/move-if-change: Update from gnulib.
5294
5295 * NEWS: Update copyright dates.
5296 * catgets/gencat.c (print_version): Likewise.
5297 * csu/version.c (banner): Likewise.
5298 * debug/catchsegv.sh: Likewise.
5299 * debug/pcprofiledump.c (print_version): Likewise.
5300 * debug/xtrace.sh (do_version): Likewise.
5301 * elf/ldconfig.c (print_version): Likewise.
5302 * elf/ldd.bash.in: Likewise.
5303 * elf/pldd.c (print_version): Likewise.
5304 * elf/sotruss.sh: Likewise.
5305 * elf/sprof.c (print_version): Likewise.
5306 * iconv/iconv_prog.c (print_version): Likewise.
5307 * iconv/iconvconfig.c (print_version): Likewise.
5308 * locale/programs/locale.c (print_version): Likewise.
5309 * locale/programs/localedef.c (print_version): Likewise.
5310 * login/programs/pt_chown.c (print_version): Likewise.
5311 * malloc/memusage.sh (do_version): Likewise.
5312 * malloc/memusagestat.c (print_version): Likewise.
5313 * malloc/mtrace.pl: Likewise.
5314 * manual/libc.texinfo: Likewise.
5315 * nptl/version.c (banner): Likewise.
5316 * nscd/nscd.c (print_version): Likewise.
5317 * nss/getent.c (print_version): Likewise.
5318 * nss/makedb.c (print_version): Likewise.
5319 * posix/getconf.c (main): Likewise.
5320 * scripts/test-installation.pl: Likewise.
5321 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5322
5323 * All files with FSF copyright notices: Update copyright dates
5324 using scripts/update-copyrights.
5325 * locale/programs/charmap-kw.h: Regenerated.
5326 * locale/programs/locfile-kw.h: Likewise.
5327
5328 2018-12-31 Joseph Myers <joseph@codesourcery.com>
5329
5330 * timezone/zdump.c: Update from tzcode 2018i.
5331 * timezone/zic.c: Likewise.
5332
5333 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
5334
5335 regex: improve Gnulib port to AIX
5336 From the glibc point of view, this removes duplicate macro
5337 definitions and is obviously safe.
5338 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
5339 * posix/regex_internal.h:
5340 (__attribute__, __attribute_warn_unused_result__):
5341 Remove; already defined elsewhere.
5342
5343 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
5344
5345 [BZ #24027]
5346 * malloc/malloc.c (_int_realloc): Always call memcpy for the
5347 copying operation. (ncopies had the wrong type, resulting in an
5348 integer wraparound and too few elements being copied.)
5349
5350 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
5351
5352 [BZ #24022]
5353 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
5354 <asm/syscalls.h> exists with __has_include__ before including it.
5355
5356 2018-12-31 Joseph Myers <joseph@codesourcery.com>
5357
5358 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5359 version to 4.20.
5360
5361 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
5362
5363 * hurd/lookup-retry: Include <unistd.h>.
5364 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
5365 Release it on return. Handle "pid" magical lookup retry.
5366
5367 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
5368
5369 [BZ #10496]
5370 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
5371 (t_fmt_ampm): Likewise.
5372 * localedata/locales/aa_ER (t_fmt): Likewise.
5373 (t_fmt_ampm): Likewise.
5374 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
5375 (t_fmt_ampm): Likewise.
5376 * localedata/locales/aa_ET (t_fmt): Likewise.
5377 (t_fmt_ampm): Likewise.
5378 * localedata/locales/am_ET (t_fmt): Likewise.
5379 (t_fmt_ampm): Likewise.
5380 * localedata/locales/byn_ER (t_fmt): Likewise.
5381 (t_fmt_ampm): Likewise.
5382 * localedata/locales/om_ET (t_fmt): Likewise.
5383 (t_fmt_ampm): Likewise.
5384 * localedata/locales/sid_ET (t_fmt): Likewise.
5385 (t_fmt_ampm): Likewise.
5386 * localedata/locales/so_DJ (t_fmt): Likewise.
5387 (t_fmt_ampm): Likewise.
5388 * localedata/locales/so_ET (t_fmt): Likewise.
5389 (t_fmt_ampm): Likewise.
5390 * localedata/locales/so_SO (t_fmt): Likewise.
5391 (t_fmt_ampm): Likewise.
5392 * localedata/locales/ti_ER (t_fmt): Likewise.
5393 (t_fmt_ampm): Likewise.
5394 * localedata/locales/ti_ET (t_fmt): Likewise.
5395 (t_fmt_ampm): Likewise.
5396 * localedata/locales/tig_ER (t_fmt): Likewise.
5397 (t_fmt_ampm): Likewise.
5398 * localedata/locales/wal_ET (t_fmt): Likewise.
5399 (t_fmt_ampm): Likewise.
5400
5401 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
5402 * localedata/locales/ar_IN (t_fmt): Likewise.
5403 * localedata/locales/bhb_IN (t_fmt): Likewise.
5404 * localedata/locales/bho_IN (t_fmt): Likewise.
5405 * localedata/locales/bi_VU (t_fmt): Likewise.
5406 * localedata/locales/bn_BD (t_fmt): Likewise.
5407 * localedata/locales/bn_IN (t_fmt): Likewise.
5408 * localedata/locales/brx_IN (t_fmt): Likewise.
5409 * localedata/locales/doi_IN (t_fmt): Likewise.
5410 * localedata/locales/en_HK (t_fmt): Likewise.
5411 (t_fmt_ampm): Likewise.
5412 * localedata/locales/en_IN (t_fmt): Likewise.
5413 * localedata/locales/en_PH (t_fmt): Likewise.
5414 * localedata/locales/gu_IN (t_fmt): Likewise.
5415 * localedata/locales/hi_IN (t_fmt): Likewise.
5416 * localedata/locales/hif_FJ (t_fmt): Likewise.
5417 * localedata/locales/hne_IN (t_fmt): Likewise.
5418 * localedata/locales/kn_IN (t_fmt): Likewise.
5419 * localedata/locales/kok_IN (t_fmt): Likewise.
5420 * localedata/locales/ks_IN (t_fmt): Likewise.
5421 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
5422 * localedata/locales/mag_IN (t_fmt): Likewise.
5423 * localedata/locales/mai_IN (t_fmt): Likewise.
5424 * localedata/locales/mjw_IN (t_fmt): Likewise.
5425 * localedata/locales/ml_IN (t_fmt): Likewise.
5426 * localedata/locales/mni_IN (t_fmt): Likewise.
5427 * localedata/locales/mr_IN (t_fmt): Likewise.
5428 * localedata/locales/ms_MY (t_fmt): Likewise.
5429 * localedata/locales/pa_IN (t_fmt): Likewise.
5430 * localedata/locales/raj_IN (t_fmt): Likewise.
5431 * localedata/locales/sa_IN (t_fmt): Likewise.
5432 * localedata/locales/sat_IN (t_fmt): Likewise.
5433 * localedata/locales/sd_IN (t_fmt): Likewise.
5434 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
5435 * localedata/locales/tcy_IN (t_fmt): Likewise.
5436 * localedata/locales/the_NP (t_fmt): Likewise.
5437 * localedata/locales/to_TO (t_fmt): Likewise.
5438 * localedata/locales/ur_IN (t_fmt): Likewise.
5439
5440 * localedata/locales/hif_FJ (d_t_fmt): Set to
5441 "%A %d %b %Y %I:%M:%S %p".
5442 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
5443
5444 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
5445 * localedata/locales/ar_BH (t_fmt): Likewise.
5446 * localedata/locales/ar_DZ (t_fmt): Likewise.
5447 * localedata/locales/ar_EG (t_fmt): Likewise.
5448 * localedata/locales/ar_IQ (t_fmt): Likewise.
5449 * localedata/locales/ar_JO (t_fmt): Likewise.
5450 * localedata/locales/ar_KW (t_fmt): Likewise.
5451 * localedata/locales/ar_LB (t_fmt): Likewise.
5452 * localedata/locales/ar_LY (t_fmt): Likewise.
5453 * localedata/locales/ar_OM (t_fmt): Likewise.
5454 * localedata/locales/ar_QA (t_fmt): Likewise.
5455 * localedata/locales/ar_SD (t_fmt): Likewise.
5456 * localedata/locales/ar_SS (t_fmt): Likewise.
5457 * localedata/locales/ar_SY (t_fmt): Likewise.
5458 * localedata/locales/ar_TN (t_fmt): Likewise.
5459 * localedata/locales/ar_YE (t_fmt): Likewise.
5460
5461 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
5462 (t_fmt_ampm): Likewise.
5463 * localedata/locales/gez_ET (t_fmt): Likewise.
5464 (t_fmt_ampm): Likewise.
5465
5466 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
5467 (t_fmt_ampm): Likewise.
5468 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
5469
5470 * localedata/locales/zh_HK (t_fmt):
5471 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5472
5473 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5474 because this locale does not use the 12-hour clock.
5475 (t_fmt): Set to "%Z %H:%M:%S".
5476 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5477
5478 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5479 because this locale does not use the 12-hour clock.
5480 (t_fmt): Set to "%H:%M:%S %Z".
5481 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5482
5483 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5484 because this locale does not use the 12-hour clock.
5485 (t_fmt): Set to "%T".
5486 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5487 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5488
5489 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5490 because this locale does not use the 12-hour clock.
5491 (t_fmt): Set to "%H:%M:%S %Z".
5492 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5493
5494 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5495 because this locale does not use the 12-hour clock.
5496 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5497 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5498
5499 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
5500
5501 [BZ #10496]
5502 [BZ #23724]
5503 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5504 (t_fmt_ampm): Likewise.
5505 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5506 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5507 (d_fmt): Set to "%-d.%-m.%y".
5508
5509 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5510
5511 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5512 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5513 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5514 Likewise.
5515 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5516 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5517 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5518 function.
5519 * support/blob_repeat.c (check_mul_overflow_size_t,
5520 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5521
5522 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
5523
5524 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5525
5526 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
5527
5528 regex: simplify Gnulib port
5529 This simplifies the code, by removing stuff intended for porting
5530 to Gnulib but no longer needed there.
5531 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5532 uses of libc_hidden_def, weak_alias.
5533 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5534 _Restrict_ except for public-facing headers.
5535 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5536 Remove; already defined elsewhere.
5537 * posix/regex.c, posix/regex_internal.h:
5538 Use __GNUC_PREREQ instead of rolling our own.
5539 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5540
5541 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
5542
5543 * benchtests/bench-strlen.c (generic_strlen): New function.
5544 (memchr_strlen): New function.
5545
5546 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5547
5548 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5549 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5550 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5551
5552 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5553
5554 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5555
5556 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5557
5558 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5559 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5560 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
5561 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5562 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5563 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5564 <sysdeps/ieee754/flt-32/s_sincosf.c>.
5565
5566 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5567
5568 [BZ #24023]
5569 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5570 PLT reference in libc.so.
5571 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5572 _Q_lltoq and _Q_qtod PLT references in libc.so.
5573
5574 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
5575
5576 * benchtests/bench-memchr.c: Cleanup defines.
5577 * benchtests/bench-memcmp.c: Likewise.
5578 * benchtests/bench-memset.c: Likewise.
5579 * benchtests/bench-memset-large.c: Likewise.
5580 * benchtests/bench-memset-walk.c: Likewise.
5581 * benchtests/bench-stpcpy.c: Likewise.
5582 * benchtests/bench-stpncpy.c: Likewise.
5583 * benchtests/bench-strcat.c: Likewise.
5584 * benchtests/bench-strchr.c: Likewise.
5585 * benchtests/bench-strcmp.c: Likewise.
5586 * benchtests/bench-strcpy.c: Likewise.
5587 * benchtests/bench-strcspn.c: Likewise.
5588 * benchtests/bench-string.h: Likewise.
5589 * benchtests/bench-strlen.c: Likewise.
5590 * benchtests/bench-strncat.c: Likewise.
5591 * benchtests/bench-strncmp.c: Likewise.
5592 * benchtests/bench-strncpy.c: Likewise.
5593 * benchtests/bench-strnlen.c: Likewise.
5594 * benchtests/bench-strpbrk.c: Likewise.
5595 * benchtests/bench-strrchr.c: Likewise.
5596 * benchtests/bench-strspn.c: Likewise.
5597
5598 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5599
5600 * stdlib/longlong.h: Update from GCC.
5601
5602 [BZ #23993]
5603 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5604 * configure: Regenerated.
5605 * manual/install.texi (Tools for Compilation): Update minimum GCC
5606 version.
5607 * INSTALL: Regenerated.
5608
5609 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
5610
5611 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5612
5613 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
5614
5615 * malloc/malloc.c (mremap_chunk): Additional checks.
5616
5617 2018-12-21 Mao Han <han_mao@c-sky.com>
5618
5619 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5620 * scripts/build-many-glibcs.py: Add C-SKY targets.
5621 * sysdeps/csky/Implies: New file.
5622 * sysdeps/csky/Makefile: Likewise.
5623 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5624 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5625 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5626 * sysdeps/csky/abiv2/memcmp.S: Likewise.
5627 * sysdeps/csky/abiv2/memcpy.S: Likewise.
5628 * sysdeps/csky/abiv2/memmove.S: Likewise.
5629 * sysdeps/csky/abiv2/memset.S: Likewise.
5630 * sysdeps/csky/abiv2/setjmp.S: Likewise.
5631 * sysdeps/csky/abiv2/start.S: Likewise.
5632 * sysdeps/csky/abiv2/strcmp.S: Likewise.
5633 * sysdeps/csky/abiv2/strcpy.S: Likewise.
5634 * sysdeps/csky/abiv2/strlen.S: Likewise.
5635 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5636 * sysdeps/csky/abort-instr.h: Likewise.
5637 * sysdeps/csky/atomic-machine.h: Likewise.
5638 * sysdeps/csky/bits/endian.h: Likewise.
5639 * sysdeps/csky/bits/fenv.h: Likewise.
5640 * sysdeps/csky/bits/link.h: Likewise.
5641 * sysdeps/csky/bits/setjmp.h: Likewise.
5642 * sysdeps/csky/bsd-_setjmp.S: Likewise.
5643 * sysdeps/csky/bsd-setjmp.S: Likewise.
5644 * sysdeps/csky/configure: Likewise.
5645 * sysdeps/csky/configure.ac: Likewise.
5646 * sysdeps/csky/dl-machine.h: Likewise.
5647 * sysdeps/csky/dl-procinfo.c: Likewise.
5648 * sysdeps/csky/dl-procinfo.h: Likewise.
5649 * sysdeps/csky/dl-sysdep.h: Likewise.
5650 * sysdeps/csky/dl-tls.h: Likewise.
5651 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5652 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5653 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5654 * sysdeps/csky/fpu/fegetenv.c: Likewise.
5655 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5656 * sysdeps/csky/fpu/fegetmode.c: Likewise.
5657 * sysdeps/csky/fpu/fegetround.c: Likewise.
5658 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5659 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5660 * sysdeps/csky/fpu/fenv_private.h: Likewise.
5661 * sysdeps/csky/fpu/fesetenv.c: Likewise.
5662 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5663 * sysdeps/csky/fpu/fesetmode.c: Likewise.
5664 * sysdeps/csky/fpu/fesetround.c: Likewise.
5665 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5666 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5667 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5668 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5669 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5670 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5671 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5672 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5673 * sysdeps/csky/fpu_control.h: Likewise.
5674 * sysdeps/csky/gccframe.h: Likewise.
5675 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5676 * sysdeps/csky/ldsodefs.h: Likewise.
5677 * sysdeps/csky/libc-tls.c: Likewise.
5678 * sysdeps/csky/linkmap.h: Likewise.
5679 * sysdeps/csky/machine-gmon.h: Likewise.
5680 * sysdeps/csky/memusage.h: Likewise.
5681 * sysdeps/csky/nofpu/Implies: Likewise.
5682 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5683 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5684 * sysdeps/csky/nptl/Makefile: Likewise.
5685 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5686 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5687 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5688 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5689 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5690 * sysdeps/csky/nptl/tls.h: Likewise.
5691 * sysdeps/csky/preconfigure: Likewise.
5692 * sysdeps/csky/sfp-machine.h: Likewise.
5693 * sysdeps/csky/sotruss-lib.c: Likewise.
5694 * sysdeps/csky/stackinfo.h: Likewise.
5695 * sysdeps/csky/sysdep.h: Likewise.
5696 * sysdeps/csky/tininess.h: Likewise.
5697 * sysdeps/csky/tst-audit.h: Likewise.
5698 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5699 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5700 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5701 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5702 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5703 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5704 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5705 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5706 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5707 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5708 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5709 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5710 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5711 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5712 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5713 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5714 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5715 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5716 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5717 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5718 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5719 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5720 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5721 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5722 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5723 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5724 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5725 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5726 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5727 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5728 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5729 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5730 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5731 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5732 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5733 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5734 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5735 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5736 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5737 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5738 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5739 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5740 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5741 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5742
5743 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5744
5745 * include/time.h (__difftime64): Add.
5746 * time/difftime.c (subtract): convert to 64-bit time.
5747 * time/difftime.c (__difftime64): Add.
5748 * time/difftime.c (__difftime): Wrap around __difftime64.
5749
5750 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5751
5752 * manual/examples/add.c: Remove redundant "if not".
5753 * manual/examples/argp-ex1.c: Likewise.
5754 * manual/examples/argp-ex2.c: Likewise.
5755 * manual/examples/argp-ex3.c: Likewise.
5756 * manual/examples/argp-ex4.c: Likewise.
5757 * manual/examples/atexit.c: Likewise.
5758 * manual/examples/db.c: Likewise.
5759 * manual/examples/dir.c: Likewise.
5760 * manual/examples/dir2.c: Likewise.
5761 * manual/examples/execinfo.c: Likewise.
5762 * manual/examples/filecli.c: Likewise.
5763 * manual/examples/filesrv.c: Likewise.
5764 * manual/examples/fmtmsgexpl.c: Likewise.
5765 * manual/examples/genpass.c: Likewise.
5766 * manual/examples/inetcli.c: Likewise.
5767 * manual/examples/inetsrv.c: Likewise.
5768 * manual/examples/isockad.c: Likewise.
5769 * manual/examples/longopt.c: Likewise.
5770 * manual/examples/memopen.c: Likewise.
5771 * manual/examples/memstrm.c: Likewise.
5772 * manual/examples/mkdirent.c: Likewise.
5773 * manual/examples/mkfsock.c: Likewise.
5774 * manual/examples/mkisock.c: Likewise.
5775 * manual/examples/mygetpass.c: Likewise.
5776 * manual/examples/pipe.c: Likewise.
5777 * manual/examples/popen.c: Likewise.
5778 * manual/examples/rprintf.c: Likewise.
5779 * manual/examples/search.c: Likewise.
5780 * manual/examples/select.c: Likewise.
5781 * manual/examples/setjmp.c: Likewise.
5782 * manual/examples/sigh1.c: Likewise.
5783 * manual/examples/sigusr.c: Likewise.
5784 * manual/examples/stpcpy.c: Likewise.
5785 * manual/examples/strdupa.c: Likewise.
5786 * manual/examples/strftim.c: Likewise.
5787 * manual/examples/subopt.c: Likewise.
5788 * manual/examples/swapcontext.c: Likewise.
5789 * manual/examples/termios.c: Likewise.
5790 * manual/examples/testopt.c: Likewise.
5791 * manual/examples/testpass.c: Likewise.
5792 * manual/examples/timeval_subtract.c: Likewise.
5793
5794 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5795
5796 * sysdeps/x86/fpu/math_private.h: New file.
5797 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5798
5799 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5800 definition.
5801 (cosh): Likewise.
5802 (tanh): Likewise.
5803
5804 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5805
5806 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5807 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5808 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5809 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5810 fields.
5811 (_dl_show_auxv): Give a special treatment to
5812 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5813 and AT_L3_CACHEGEOMETRY.
5814 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5815 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5816 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5817 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5818
5819 2018-12-19 Andreas Schwab <schwab@suse.de>
5820
5821 * nscd/connections.c (check_use): Don't abort on invalid len.
5822
5823 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5824
5825 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5826 values in the 64bit value cases.
5827
5828 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5829
5830 * include/time.h
5831 (__ctime64_r): Add.
5832 * time/ctime_r.c
5833 (__ctime64_r): Add.
5834 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5835
5836 * include/time.h
5837 (__ctime64): Add.
5838 * time/gmtime.c
5839 (__ctime64): Add.
5840 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5841
5842 * include/time.h
5843 (__gmtime64_r): Add.
5844 * time/gmtime.c
5845 (__gmtime64_r): Add.
5846 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5847
5848 * include/time.h
5849 (__gmtime64): Add.
5850 * time/gmtime.c
5851 (__gmtime64): Add.
5852 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5853
5854 * include/time.h
5855 (__localtime64_r): Add.
5856 * time/localtime.c
5857 (__localtime64_r): Add.
5858 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5859
5860 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5861
5862 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5863 kernel_sigction definition.
5864
5865 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5866
5867 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5868
5869 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5870 __syscall_rt_sigaction.
5871 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5872 (kernel_sigaction): Use Linux generic defintion.
5873 (STUB): Define.
5874 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5875 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5876 (__syscall_rt_sigaction): Remove implementation.
5877 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5878 hidden.
5879 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5880 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5881 INTERNAL_SYSCALL): Remove definitions.
5882 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5883 action and signal set size.
5884 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5885 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5886
5887 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5888 James Clarke <jrtc27@jrtc27.com>
5889
5890 [BZ #23967]
5891 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5892 Define if SA_RESTORER is defined.
5893 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5894 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5895 already defined.
5896 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5897 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5898 definitions.
5899 (HAS_SA_RESTORER): Define.
5900 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5901 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5902 (HAS_SA_RESTORER): Define.
5903 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5904 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5905 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5906 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5907 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5908
5909 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5910
5911 * sysdeps/unix/sysv/linux/kernel-features.h
5912 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5913 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5914 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5915 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5916 (__ASSUME_ST_INO_64_BIT): Likewise.
5917 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5918 <kernel-features.h>.
5919 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5920 Remove conditional code.
5921 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5922 <kernel-features.h>.
5923 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5924 Remove conditional code.
5925 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5926 <kernel-features.h>.
5927 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5928 Remove conditional code.
5929 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5930 <kernel-features.h>.
5931 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5932 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5933
5934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5935
5936 * sysdeps/s390/multiarch/ifunc-resolve.h
5937 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5938 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5939 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5940 Delete macro definition.
5941 (s390_libc_ifunc_init): Rename to
5942 s390_libc_ifunc_expr_stfle_init.
5943 * sysdeps/s390/bzero: Use
5944 s390_libc_ifunc_expr_stfle_init instead of
5945 s390_libc_ifunc_init.
5946 * sysdeps/s390/memcmp.c: Likewise.
5947 * sysdeps/s390/memcpy.c: Likewise.
5948 * sysdeps/s390/mempcpy.c: Likewise.
5949 * sysdeps/s390/memset.c: Likewise.
5950
5951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5952
5953 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5954 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5955
5956 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5957
5958 * sysdeps/s390/multiarch/Makefile
5959 (sysdep_routines): Remove wmemcmp variants.
5960 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5961 * sysdeps/s390/multiarch/ifunc-impl-list.c
5962 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5963 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5964 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5965 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5966 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5967 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5968 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5969 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5970
5971 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5972
5973 * sysdeps/s390/multiarch/Makefile
5974 (sysdep_routines): Remove wmemset variants.
5975 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5976 * sysdeps/s390/multiarch/ifunc-impl-list.c
5977 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5978 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5979 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5980 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5981 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5982 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5983 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5984 * sysdeps/s390/ifunc-wmemset.h: New file.
5985
5986 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5987
5988 * sysdeps/s390/multiarch/Makefile
5989 (sysdep_routines): Remove wmemchr variants.
5990 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5991 * sysdeps/s390/multiarch/ifunc-impl-list.c
5992 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5993 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5994 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5995 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5996 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5997 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5998 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5999 * sysdeps/s390/ifunc-wmemchr.h: New file.
6000
6001 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6002
6003 * sysdeps/s390/multiarch/Makefile
6004 (sysdep_routines): Remove wcscspn variants.
6005 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
6006 * sysdeps/s390/multiarch/ifunc-impl-list.c
6007 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
6008 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
6009 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
6010 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
6011 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
6012 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
6013 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
6014 * sysdeps/s390/ifunc-wcscspn.h: New file.
6015
6016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6017
6018 * sysdeps/s390/multiarch/Makefile
6019 (sysdep_routines): Remove wcspbrk variants.
6020 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
6021 * sysdeps/s390/multiarch/ifunc-impl-list.c
6022 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
6023 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
6024 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
6025 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
6026 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
6027 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
6028 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
6029 * sysdeps/s390/ifunc-wcspbrk.h: New file.
6030
6031 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6032
6033 * sysdeps/s390/multiarch/Makefile
6034 (sysdep_routines): Remove wcsspn variants.
6035 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
6036 * sysdeps/s390/multiarch/ifunc-impl-list.c
6037 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
6038 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
6039 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
6040 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
6041 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
6042 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
6043 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
6044 * sysdeps/s390/ifunc-wcsspn.h: New file.
6045
6046 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6047
6048 * sysdeps/s390/multiarch/Makefile
6049 (sysdep_routines): Remove wcsrchr variants.
6050 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
6051 * sysdeps/s390/multiarch/ifunc-impl-list.c
6052 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
6053 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
6054 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
6055 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
6056 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
6057 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
6058 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
6059 * sysdeps/s390/ifunc-wcsrchr.h: New file.
6060
6061 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6062
6063 * sysdeps/s390/multiarch/Makefile
6064 (sysdep_routines): Remove wcschrnul variants.
6065 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
6066 * sysdeps/s390/multiarch/ifunc-impl-list.c
6067 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
6068 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
6069 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
6070 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
6071 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
6072 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
6073 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
6074 * sysdeps/s390/ifunc-wcschrnul.h: New file.
6075
6076 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6077
6078 * sysdeps/s390/multiarch/Makefile
6079 (sysdep_routines): Remove wcschr variants.
6080 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
6081 * sysdeps/s390/multiarch/ifunc-impl-list.c
6082 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
6083 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
6084 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
6085 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
6086 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
6087 * sysdeps/s390/multiarch/wcschr.c: Move to ...
6088 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
6089 * sysdeps/s390/ifunc-wcschr.h: New file.
6090
6091 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6092
6093 * sysdeps/s390/multiarch/Makefile
6094 (sysdep_routines): Remove wcsncmp variants.
6095 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
6096 * sysdeps/s390/multiarch/ifunc-impl-list.c
6097 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
6098 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
6099 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
6100 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
6101 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
6102 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
6103 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
6104 * sysdeps/s390/ifunc-wcsncmp.h: New file.
6105
6106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6107
6108 * sysdeps/s390/multiarch/Makefile
6109 (sysdep_routines): Remove wcscmp variants.
6110 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
6111 * sysdeps/s390/multiarch/ifunc-impl-list.c
6112 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
6113 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
6114 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
6115 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
6116 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
6117 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
6118 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
6119 * sysdeps/s390/ifunc-wcscmp.h: New file.
6120
6121 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6122
6123 * sysdeps/s390/multiarch/Makefile
6124 (sysdep_routines): Remove wcsncat variants.
6125 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
6126 * sysdeps/s390/multiarch/ifunc-impl-list.c
6127 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
6128 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
6129 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
6130 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
6131 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
6132 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
6133 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
6134 * sysdeps/s390/ifunc-wcsncat.h: New file.
6135
6136 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6137
6138 * sysdeps/s390/multiarch/Makefile
6139 (sysdep_routines): Remove wcscat variants.
6140 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
6141 * sysdeps/s390/multiarch/ifunc-impl-list.c
6142 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
6143 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
6144 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
6145 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
6146 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
6147 * sysdeps/s390/multiarch/wcscat.c: Move to ...
6148 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
6149 * sysdeps/s390/ifunc-wcscat.h: New file.
6150
6151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6152
6153 * sysdeps/s390/multiarch/Makefile
6154 (sysdep_routines): Remove wcpncpy variants.
6155 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
6156 * sysdeps/s390/multiarch/ifunc-impl-list.c
6157 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
6158 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
6159 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
6160 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
6161 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
6162 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
6163 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
6164 * sysdeps/s390/ifunc-wcpncpy.h: New file.
6165
6166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6167
6168 * sysdeps/s390/multiarch/Makefile
6169 (sysdep_routines): Remove wcsncpy variants.
6170 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
6171 * sysdeps/s390/multiarch/ifunc-impl-list.c
6172 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
6173 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
6174 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
6175 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
6176 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
6177 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
6178 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
6179 * sysdeps/s390/ifunc-wcsncpy.h: New file.
6180
6181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6182
6183 * sysdeps/s390/multiarch/Makefile
6184 (sysdep_routines): Remove wcpcpy variants.
6185 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
6186 * sysdeps/s390/multiarch/ifunc-impl-list.c
6187 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
6188 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
6189 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
6190 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
6191 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
6192 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
6193 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
6194 * sysdeps/s390/ifunc-wcpcpy.h: New file.
6195
6196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6197
6198 * sysdeps/s390/multiarch/Makefile
6199 (sysdep_routines): Remove wcscpy variants.
6200 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
6201 * sysdeps/s390/multiarch/ifunc-impl-list.c
6202 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
6203 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
6204 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
6205 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
6206 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
6207 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
6208 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
6209 * sysdeps/s390/ifunc-wcscpy.h: New file.
6210
6211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6212
6213 * sysdeps/s390/multiarch/Makefile
6214 (sysdep_routines): Remove wcsnlen variants.
6215 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
6216 * sysdeps/s390/multiarch/ifunc-impl-list.c
6217 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
6218 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
6219 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
6220 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
6221 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
6222 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
6223 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
6224 * sysdeps/s390/ifunc-wcsnlen.h: New file.
6225
6226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6227
6228 * sysdeps/s390/multiarch/Makefile
6229 (sysdep_routines): Remove wcslen variants.
6230 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
6231 * sysdeps/s390/multiarch/ifunc-impl-list.c
6232 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
6233 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
6234 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
6235 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
6236 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
6237 * sysdeps/s390/multiarch/wcslen.c: Move to ...
6238 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
6239 * sysdeps/s390/ifunc-wcslen.h: New file.
6240
6241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6242
6243 * sysdeps/s390/multiarch/Makefile
6244 (sysdep_routines): Remove memrchr variants.
6245 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
6246 * sysdeps/s390/multiarch/ifunc-impl-list.c
6247 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
6248 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
6249 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
6250 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
6251 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
6252 * sysdeps/s390/multiarch/memrchr.c: Move to ...
6253 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
6254 * sysdeps/s390/ifunc-memrchr.h: New file.
6255
6256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6257
6258 * sysdeps/s390/multiarch/Makefile
6259 (sysdep_routines): Remove memccpy variants.
6260 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
6261 * sysdeps/s390/multiarch/ifunc-impl-list.c
6262 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
6263 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
6264 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
6265 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
6266 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
6267 * sysdeps/s390/multiarch/memccpy.c: Move to ...
6268 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
6269 * sysdeps/s390/ifunc-memccpy.h: New file.
6270
6271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6272
6273 * sysdeps/s390/multiarch/Makefile
6274 (sysdep_routines): Remove rawmemchr variants.
6275 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
6276 * sysdeps/s390/multiarch/ifunc-impl-list.c
6277 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
6278 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
6279 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
6280 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
6281 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
6282 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
6283 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
6284 * sysdeps/s390/ifunc-rawmemchr.h: New file.
6285
6286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6287
6288 * sysdeps/s390/multiarch/Makefile
6289 (sysdep_routines): Remove memchr variants.
6290 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
6291 * sysdeps/s390/multiarch/ifunc-impl-list.c
6292 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
6293 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
6294 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
6295 * sysdeps/s390/multiarch/memchr.c: Move to ...
6296 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
6297 * sysdeps/s390/ifunc-memchr.h: New file.
6298 * sysdeps/s390/s390-64/memchr.S: Move to ...
6299 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
6300 for 31/64bit and ifunc handling.
6301 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
6302 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
6303 * sysdeps/s390/s390-32/memchr.S: Likewise.
6304
6305 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6306
6307 * sysdeps/s390/multiarch/Makefile
6308 (sysdep_routines): Remove strcspn variants.
6309 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
6310 * sysdeps/s390/multiarch/ifunc-impl-list.c
6311 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
6312 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
6313 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
6314 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
6315 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
6316 * sysdeps/s390/multiarch/strcspn.c: Move to ...
6317 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
6318 * sysdeps/s390/ifunc-strcspn.h: New file.
6319
6320 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6321
6322 * sysdeps/s390/multiarch/Makefile
6323 (sysdep_routines): Remove strpbrk variants.
6324 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
6325 * sysdeps/s390/multiarch/ifunc-impl-list.c
6326 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
6327 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
6328 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
6329 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
6330 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
6331 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
6332 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
6333 * sysdeps/s390/ifunc-strpbrk.h: New file.
6334
6335 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6336
6337 * sysdeps/s390/multiarch/Makefile
6338 (sysdep_routines): Remove strspn variants.
6339 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
6340 * sysdeps/s390/multiarch/ifunc-impl-list.c
6341 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
6342 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
6343 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
6344 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
6345 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
6346 * sysdeps/s390/multiarch/strspn.c: Move to ...
6347 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
6348 * sysdeps/s390/ifunc-strspn.h: New file.
6349
6350 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6351
6352 * sysdeps/s390/multiarch/Makefile
6353 (sysdep_routines): Remove strrchr variants.
6354 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
6355 * sysdeps/s390/multiarch/ifunc-impl-list.c
6356 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
6357 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
6358 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
6359 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
6360 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
6361 * sysdeps/s390/multiarch/strrchr.c: Move to ...
6362 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
6363 * sysdeps/s390/ifunc-strrchr.h: New file.
6364
6365 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6366
6367 * sysdeps/s390/multiarch/Makefile
6368 (sysdep_routines): Remove strchrnul variants.
6369 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
6370 * sysdeps/s390/multiarch/ifunc-impl-list.c
6371 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
6372 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
6373 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
6374 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
6375 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
6376 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
6377 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
6378 * sysdeps/s390/ifunc-strchrnul.h: New file.
6379
6380 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6381
6382 * sysdeps/s390/multiarch/Makefile
6383 (sysdep_routines): Remove strchr variants.
6384 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
6385 * sysdeps/s390/multiarch/ifunc-impl-list.c
6386 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
6387 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
6388 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
6389 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
6390 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
6391 * sysdeps/s390/multiarch/strchr.c: Move to ...
6392 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
6393 * sysdeps/s390/ifunc-strchr.h: New file.
6394
6395 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6396
6397 * sysdeps/s390/multiarch/Makefile
6398 (sysdep_routines): Remove strncmp variants.
6399 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
6400 * sysdeps/s390/multiarch/ifunc-impl-list.c
6401 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
6402 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
6403 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
6404 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
6405 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
6406 * sysdeps/s390/multiarch/strncmp.c: Move to ...
6407 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
6408 * sysdeps/s390/ifunc-strncmp.h: New file.
6409
6410 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6411
6412 * sysdeps/s390/multiarch/Makefile
6413 (sysdep_routines): Remove strcmp variants.
6414 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
6415 * sysdeps/s390/multiarch/ifunc-impl-list.c
6416 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
6417 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
6418 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
6419 * sysdeps/s390/multiarch/strcmp.c: Move to ...
6420 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
6421 * sysdeps/s390/ifunc-strcmp.h: New file.
6422 * sysdeps/s390/s390-64/strcmp.S: Move to ...
6423 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
6424 for 31/64bit and ifunc handling.
6425 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
6426 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
6427 * sysdeps/s390/s390-32/strcmp.S: Likewise.
6428
6429 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6430
6431 * sysdeps/s390/multiarch/Makefile
6432 (sysdep_routines): Remove strncat variants.
6433 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
6434 * sysdeps/s390/multiarch/ifunc-impl-list.c
6435 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
6436 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
6437 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
6438 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
6439 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
6440 * sysdeps/s390/multiarch/strncat.c: Move to ...
6441 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
6442 * sysdeps/s390/ifunc-strncat.h: New file.
6443
6444 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6445
6446 * sysdeps/s390/multiarch/Makefile
6447 (sysdep_routines): Remove strcat variants.
6448 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
6449 * sysdeps/s390/multiarch/ifunc-impl-list.c
6450 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
6451 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
6452 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
6453 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
6454 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
6455 * sysdeps/s390/multiarch/strcat.c: Move to ...
6456 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
6457 * sysdeps/s390/ifunc-strcat.h: New file.
6458
6459 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6460
6461 * sysdeps/s390/multiarch/Makefile
6462 (sysdep_routines): Remove stpncpy variants.
6463 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
6464 * sysdeps/s390/multiarch/ifunc-impl-list.c
6465 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
6466 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
6467 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
6468 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
6469 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
6470 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6471 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6472 * sysdeps/s390/ifunc-stpncpy.h: New file.
6473
6474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6475
6476 * sysdeps/s390/multiarch/Makefile
6477 (sysdep_routines): Remove strncpy variants.
6478 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6479 * sysdeps/s390/multiarch/ifunc-impl-list.c
6480 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6481 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6482 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6483 * sysdeps/s390/multiarch/strncpy.c: Move to ...
6484 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6485 * sysdeps/s390/ifunc-strncpy.h: New file.
6486 * sysdeps/s390/s390-64/strncpy.S: Move to ...
6487 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6488 and adjust ifunc handling.
6489 * sysdeps/s390/s390-32/strncpy.S: Move to ...
6490 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6491 and adjust ifunc handling.
6492 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6493 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6494
6495 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6496
6497 * sysdeps/s390/multiarch/Makefile
6498 (sysdep_routines): Remove stpcpy variants.
6499 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6500 * sysdeps/s390/multiarch/ifunc-impl-list.c
6501 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6502 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6503 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6504 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6505 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6506 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6507 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6508 * sysdeps/s390/ifunc-stpcpy.h: New file.
6509
6510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6511
6512 * sysdeps/s390/multiarch/Makefile
6513 (sysdep_routines): Remove strcpy variants.
6514 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6515 * sysdeps/s390/multiarch/ifunc-impl-list.c
6516 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6517 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6518 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6519 * sysdeps/s390/multiarch/strcpy.c: Move to ...
6520 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6521 * sysdeps/s390/ifunc-strcpy.h: New file.
6522 * sysdeps/s390/s390-64/strcpy.S: Move to ...
6523 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6524 for 31/64bit and ifunc handling.
6525 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6526 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6527 * sysdeps/s390/s390-32/strcpy.S: Likewise.
6528
6529 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6530
6531 * sysdeps/s390/multiarch/Makefile
6532 (sysdep_routines): Remove strnlen variants.
6533 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6534 * sysdeps/s390/multiarch/ifunc-impl-list.c
6535 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6536 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6537 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6538 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6539 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6540 * sysdeps/s390/multiarch/strnlen.c: Move to ...
6541 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6542 * sysdeps/s390/ifunc-strnlen.h: New file.
6543
6544 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6545
6546 * sysdeps/s390/multiarch/Makefile
6547 (sysdep_routines): Remove strlen variants.
6548 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6549 * sysdeps/s390/multiarch/ifunc-impl-list.c
6550 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6551 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6552 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6553 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6554 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6555 * sysdeps/s390/multiarch/strlen.c: Move to ...
6556 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6557 * sysdeps/s390/ifunc-strlen.h: New file.
6558
6559 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6560
6561 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6562 * sysdeps/s390/multiarch/ifunc-impl-list.c
6563 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6564 * sysdeps/s390/ifunc-memmem.h: New file.
6565 * sysdeps/s390/memmem.c: Likewise.
6566 * sysdeps/s390/memmem-c.c: Likewise.
6567 * sysdeps/s390/memmem-vx.c: Likewise.
6568
6569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6570
6571 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6572 * sysdeps/s390/multiarch/ifunc-impl-list.c
6573 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6574 * sysdeps/s390/ifunc-strstr.h: New file.
6575 * sysdeps/s390/strstr.c: Likewise.
6576 * sysdeps/s390/strstr-c.c: Likewise.
6577 * sysdeps/s390/strstr-vx.c: Likewise.
6578
6579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6580
6581 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6582 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6583 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6584 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6585 New defines.
6586 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6587 * sysdeps/s390/memmove-c.c: New file.
6588 * sysdeps/s390/memmove.c: Likewise.
6589 * sysdeps/s390/multiarch/ifunc-impl-list.c
6590 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6591
6592 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6593
6594 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6595 * sysdeps/s390/configure.ac: Add check for z13 support.
6596 * sysdeps/s390/configure: Regenerated.
6597
6598 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6599
6600 * sysdeps/s390/memcopy.h: New file.
6601
6602 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6603
6604 * sysdeps/s390/s390-32/bcopy.S: Remove.
6605 * sysdeps/s390/s390-64/bcopy.S: Likewise.
6606
6607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6608
6609 * sysdeps/s390/ifunc-memcpy.h: New File.
6610 * sysdeps/s390/memcpy.S: Move to ...
6611 * sysdeps/s390/memcpy-z900.S ... here.
6612 Move implementations from memcpy-s390x.s to here.
6613 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6614 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6615 Remove memcpy/mempcpy variants.
6616 * sysdeps/s390/Makefile (sysdep_routines):
6617 Add memcpy/mempcpy variants.
6618 * sysdeps/s390/multiarch/ifunc-impl-list.c
6619 (__libc_ifunc_impl_list): Adjust ifunc variants for
6620 memcpy and mempcpy.
6621 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6622 to ...
6623 * sysdeps/s390/memcpy.c: ... here.
6624 Adjust ifunc variants for memcpy.
6625 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6626 * sysdeps/s390/mempcpy.c: ... here.
6627 Adjust ifunc variants for mempcpy.
6628 * sysdeps/s390/mempcpy.S: Delete file.
6629
6630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6631
6632 * sysdeps/s390/s390-64/memcpy.S: Move to ...
6633 * sysdeps/s390/memcpy.S: ... here.
6634 Adjust to be usable for 31/64bit.
6635 * sysdeps/s390/s390-32/memcpy.S: Delete File.
6636 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6637 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6638 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6639 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6640 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6641 Adjust to be usable for 31/64bit.
6642 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6643 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6644 * sysdeps/s390/multiarch/memcpy.c: ... here.
6645 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6646
6647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6648
6649 * sysdeps/s390/ifunc-memcmp.h: New File.
6650 * sysdeps/s390/memcmp.S: Move to ...
6651 * sysdeps/s390/memcmp-z900.S ... here.
6652 Move implementations from memcmp-s390x.s to here.
6653 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6654 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6655 Remove memcmp variants.
6656 * sysdeps/s390/Makefile (sysdep_routines):
6657 Add memcmp variants.
6658 * sysdeps/s390/multiarch/ifunc-impl-list.c
6659 (__libc_ifunc_impl_list): Adjust ifunc variants for
6660 memcmp.
6661 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6662 to ...
6663 * sysdeps/s390/memcmp.c: ... here.
6664 Adjust ifunc variants for memcmp.
6665
6666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6667
6668 * sysdeps/s390/s390-64/memcmp.S: Move to ...
6669 * sysdeps/s390/memcmp.S: ... here.
6670 Adjust to be usable for 31/64bit.
6671 * sysdeps/s390/s390-32/memcmp.S: Delete File.
6672 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6673 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6674 Remove memcmp.
6675 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6676 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6677 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6678 Adjust to be usable for 31/64bit.
6679 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6680 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6681 * sysdeps/s390/multiarch/memcmp.c: ... here.
6682 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6683
6684 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6685
6686 * sysdeps/s390/s390-32/bzero.S: Delete file.
6687 * sysdeps/s390/s390-64/bzero.S: Likewise.
6688 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6689 * sysdeps/s390/bzero.c: New file.
6690 * sysdeps/s390/memset-z900.S: Add bzero entry points.
6691 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6692 * sysdeps/s390/multiarch/ifunc-impl-list.c
6693 (__libc_ifunc_impl_list): Add bzero ifunc variants.
6694
6695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6696
6697 * sysdeps/s390/ifunc-memset.h: New File.
6698 * sysdeps/s390/memset.S: Move to ...
6699 * sysdeps/s390/memset-z900.S ... here.
6700 Move implementations from memset-s390x.s to here.
6701 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6702 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6703 Remove memset variants.
6704 * sysdeps/s390/Makefile (sysdep_routines):
6705 Add memset variants.
6706 * sysdeps/s390/multiarch/ifunc-impl-list.c
6707 (__libc_ifunc_impl_list): Adjust ifunc variants for
6708 memset.
6709 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6710 to ...
6711 * sysdeps/s390/memset.c: ... here.
6712 Adjust ifunc variants for memset.
6713
6714 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6715
6716 * sysdeps/s390/s390-64/memset.S: Move to ...
6717 * sysdeps/s390/memset.S: ... here.
6718 Adjust to be usable for 31/64bit.
6719 * sysdeps/s390/s390-32/memset.S: Delete File.
6720 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6721 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6722 Remove memset.
6723 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6724 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6725 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6726 Adjust to be usable for 31/64bit.
6727 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6728 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6729 * sysdeps/s390/multiarch/memset.c: ... here.
6730 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6731
6732 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6733
6734 * sysdeps/s390/multiarch/ifunc-resolve.h
6735 (s390_libc_ifunc_init, s390_libc_ifunc,
6736 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6737
6738 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6739
6740 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6741 * sysdeps/s390/configure.ac: Add check for z10 support.
6742 * sysdeps/s390/configure: Regenerated.
6743
6744 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
6745
6746 * sysdeps/i386/atomic-machine.h: Merged with ...
6747 * sysdeps/x86_64/atomic-machine.h: To ...
6748 * sysdeps/x86/atomic-machine.h: This. New file.
6749
6750 2018-12-18 Florian Weimer <fweimer@redhat.com>
6751
6752 Rewrite locale/gen-translit.pl in Python.
6753 * locale/Makefile (generated): Add C-translit.h.
6754 (before-compile): Add $(objpfx)C-translit.h.
6755 (C-translit.h): Move to $(objpfx). Create target directory.
6756 Build using Python script.
6757 * locale/gen-translit.py: New file.
6758 * locale/gen-translit.pl: Remove file.
6759 * locale/C-translit.h.in: Change comment character to '#' for
6760 easier parsing without a C preprocessor.
6761 * locale/C-translit.h: Remove generated file.
6762 * manual/install.texi (Tools for Compilation): Do not mention
6763 C-translit.h.
6764 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6765 Remove locale/C-translit.h.
6766 * scripts/update-copyrights: Likewise.
6767 * INSTALL: Regenerate.
6768
6769 2018-12-18 Florian Weimer <fweimer@redhat.com>
6770
6771 [BZ #23995]
6772 * localedata/locales/bi_VU: Remove executable bit from file.
6773
6774 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6775
6776 * include/time.h
6777 (__localtime64): Add.
6778 * manual/maint.texi: Document Y2038 symbol handling.
6779 * time/localtime.c
6780 (__localtime64): Add.
6781 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6782
6783 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6784
6785 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6786 Do not clobber r12.
6787
6788 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6789 to allow extra macros from first or second sources.
6790 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6791 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6792 (tests-special): Add $(objpfx)tst-mman-consts.out.
6793 ($(objpfx)tst-mman-consts.out): New makefile target.
6794
6795 2018-12-17 Mao Han <han_mao@c-sky.com>
6796
6797 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6798 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6799 without stat64 system call support.
6800 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6801 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6802 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6803 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6804 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6805 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6806 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6807 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6808 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6809 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6810 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6811
6812 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6813
6814 regex: fix storage-exhaustion error
6815 [BZ #18040]
6816 * posix/regexec.c (get_subexp):
6817 Do not continue if storage is exhausted.
6818
6819 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6820
6821 regex: fix heap-use-after-free error
6822 [BZ #18040]
6823 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6824 https://debbugs.gnu.org/32592
6825 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6826 call extend_buffers which reallocates the re_string_t internal buffer.
6827 Local variable 'buf' was not updated in such case, resulting in
6828 use-after-free.
6829 * posix/regexec.c (get_subexp): Update 'buf' after call to
6830 get_subexp_sub.
6831
6832 2018-12-15 Florian Weimer <fweimer@redhat.com>
6833
6834 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6835 (minimum_stride_size): Use it.
6836 (support_blob_repeat_allocate): Likewise.
6837
6838 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6839
6840 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6841 definition.
6842 (acosh): Likewise.
6843 (atanh): Likewise.
6844
6845 2018-12-14 Florian Weimer <fweimer@redhat.com>
6846
6847 * manual/process.texi (Process Creation Concepts): Remove
6848 documentation of process (ID) lifetime. List more process
6849 creation functions. Reference Process Identification section.
6850 (Process Identification): Add information about process ID
6851 lifetime. Describe Linux thread/task IDs.
6852 * manual/signal.texi (Signaling Another Process): Mention that the
6853 signal is always sent to the process.
6854
6855 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6856
6857 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6858 and tst-ldbl-efgcvt.
6859 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6860 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6861 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6862 (fcvt_tests, output_error, output_r_error, do_test): Use the
6863 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6864 select the type of floating-point variables and arguments; to
6865 produce extra tests for double and conversion specifiers for
6866 printf; and to set the names of called functions.
6867 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6868 in tst-efgcvt-template.c.
6869 * misc/tst-ldbl-efgcvt.c: Likewise.
6870
6871 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6872
6873 * nss/Makefile (tst-nss-test3.out): New rule.
6874
6875 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6876
6877 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6878 clobber sp.
6879
6880 2018-12-13 fanjinke <fanjinke@hygon.cn>
6881
6882 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6883 "HygonGenuine".
6884
6885 2018-12-13 Andreas Schwab <schwab@suse.de>
6886
6887 [BZ #23861]
6888 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6889 (__pthread_rwlock_rdlock_full): Update expected value for
6890 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6891 * nptl/tst-rwlock-pwn.c: New file.
6892 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6893
6894 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6895
6896 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6897 definition.
6898
6899 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6900
6901 * benchtests/scripts/compare_bench.py (do_compare): write to
6902 stderr in casestat is not present.
6903 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6904 stderr in case timings field is not present. Also string showing
6905 the output filename goes into the stderr.
6906
6907 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6908
6909 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6910 and ZeroDivisorError exceptions.
6911 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6912 argument to loop through user provided statistics.
6913 * benchtests/scripts/compare_bench.py (main): Include the --stats
6914 argument.
6915
6916 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6917
6918 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6919 instead of return.
6920
6921 2018-12-12 Florian Weimer <fweimer@redhat.com>
6922
6923 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6924 clause to copyright header.
6925
6926 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6927
6928 [BZ #23614]
6929 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6930 registers saved in the stack frame.
6931 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6932 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6933
6934 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6935
6936 * include/bits/monetary-ldbl.h: New file.
6937 * include/bits/printf-ldbl.h: Likewise.
6938 * include/bits/stdio-ldbl.h: Likewise.
6939 * include/bits/stdlib-ldbl.h: Likewise.
6940 * include/bits/syslog-ldbl.h: Likewise.
6941 * include/bits/wchar-ldbl.h: Likewise.
6942
6943 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6944
6945 * libio/libio.h: Remove redirection for _IO_vfprintf.
6946
6947 2018-12-11 Andreas Schwab <schwab@suse.de>
6948
6949 * Makerules: Remove all references to abilist-pattern.
6950 (update-all-abi): Simplify find expression.
6951
6952 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6953
6954 [BZ #23961]
6955 * math/auto-libm-test-in: Add new test case.
6956 * math/auto-libm-test-out-pow: Regenerated.
6957 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6958
6959 2018-12-10 DJ Delorie <dj@redhat.com>
6960
6961 [BZ #23948]
6962 * support/test-container.c: Move postclean step to before we
6963 change namespaces.
6964
6965 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6966
6967 * scripts/gen-as-const.py (main): Handle --python option.
6968 * scripts/gen-py-const.awk: Remove.
6969 * Makerules (py-const-script): Use gen-as-const.py.
6970 ($(py-const)): Likewise.
6971 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6972 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6973 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6974 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6975 ~PTHREAD_MUTEX_NO_ELISION_NP.
6976 * manual/README.pretty-printers: Update reference to
6977 gen-py-const.awk.
6978
6979 * scripts/glibcextract.py: New file.
6980 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6981 or tempfile. Import glibcexctract.
6982 (compute_c_consts): Remove. Moved to glibcextract.py.
6983 (gen_test): Update reference to compute_c_consts.
6984 (main): Likewise.
6985 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6986 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6987 * sysdeps/unix/sysv/linux/Makefile
6988 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6989 Redirect stderr as well as stdout.
6990
6991 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6992
6993 [BZ #19767]
6994 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6995 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6996 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6997 ALWAYS_USE_VSYSCALL.
6998 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6999 ALWAYS_USE_VSYSCALL.
7000 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
7001 ALWAYS_USE_VSYSCALL.
7002
7003 2018-12-10 Florian Weimer <fweimer@redhat.com>
7004
7005 [BZ #23972]
7006 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
7007 offset instead of count for clarity. Fix typo in comment.
7008 (__old_getdents64): Keep track of previous offset. Use it to call
7009 handle_overflow.
7010 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
7011 that d_off is never zero.
7012
7013 2018-12-10 Andreas Schwab <schwab@suse.de>
7014
7015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
7016 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
7017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
7018 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
7019 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
7020
7021 2018-12-10 Joseph Myers <joseph@codesourcery.com>
7022
7023 * timezone/private.h: Update from tzcode 2018g.
7024 * timezone/tzfile.h: Likewise.
7025 * timezone/tzselect.ksh: Likewise.
7026 * timezone/zdump.c: Likewise.
7027 * timezone/zic.c: Likewise.
7028
7029 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
7030
7031 [BZ #23490]
7032 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
7033 (do_test): Adjust buffer size and fix format.
7034
7035 2018-12-07 DJ Delorie <dj@redhat.com>
7036
7037 [BZ #23907]
7038 * malloc/tst-tcfree3.c: New.
7039 * malloc/Makefile: Add it.
7040
7041 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
7042
7043 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
7044
7045 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7046
7047 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
7048 used as a mask for the mode argument of __vfscanf_internal and
7049 __vfwscanf_internal.
7050 * stdio-common/vfscanf-internal.c
7051 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
7052 (__strtof128_internal): Define to __wcstof128_internal.
7053 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
7054 __strtof128_internal or __wcstof128_internal when the format of
7055 long double is the same as _Float128.
7056
7057 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
7058
7059 * include/unistd.h (__confstr): Add prototype and hidden prototype.
7060 * posix/confstr.c (confstr): Rename to __confstr.
7061 (__confstr): Add hidden def.
7062 (confstr): Add weak alias for __confstr.
7063 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
7064 confstr.
7065
7066 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
7067
7068 * NEWS: Mention getcpu.
7069 * include/sched.h (__getcpu): New libc_hidden_proto.
7070 * manual/resource.texi: Document getcpu.
7071 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
7072 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
7073 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
7074 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7075 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7076 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7077 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7078 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7079 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7080 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7081 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7082 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7083 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
7084 Likewise.
7085 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7086 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7087 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7089 Likewise.
7090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7091 Likewise.
7092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
7093 Likewise.
7094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
7095 Likewise.
7096 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7097 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7098 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7099 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7100 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7101 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7102 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7103 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7104 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
7105 * sysdeps/unix/sysv/linux/getcpu.c: New file.
7106 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
7107 Also check getcpu.
7108
7109 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7110
7111 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
7112 functions.
7113 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
7114
7115 2018-12-07 Florian Weimer <fweimer@redhat.com>
7116
7117 [BZ #17405]
7118 * posix/Makefile (routines): Add spawn_faction_addfchdir.
7119 * posix/Versions (GLIBC_2.29): Export
7120 posix_spawn_file_actions_addfchdir_np.
7121 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
7122 * posix/spawn_faction_destroy.c
7123 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
7124 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
7125 and the field action.fchdir_action.
7126 * posix/tst-spawn-chdir.c (add_chdir): New function.
7127 (do_test): Add do_fchdir loop. Call add_chdir.
7128 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
7129 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7130 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7131 posix_spawn_file_actions_addfchdir_np.
7132 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7133 Likewise.
7134 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7135 Likewise.
7136 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7137 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7138 Likewise.
7139 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7140 Likewise.
7141 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7142 Likewise.
7143 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7144 Likewise.
7145 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7146 Likewise.
7147 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7148 Likewise.
7149 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7150 (GLIBC_2.29): Likewise.
7151 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7152 (GLIBC_2.29): Likewise.
7153 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7154 (GLIBC_2.29): Likewise.
7155 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7156 (GLIBC_2.29): Likewise.
7157 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7158 Likewise.
7159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7160 (GLIBC_2.29): Likewise.
7161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7162 (GLIBC_2.29): Likewise.
7163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7164 (GLIBC_2.29): Likewise.
7165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7166 (GLIBC_2.29): Likewise.
7167 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7168 Likewise.
7169 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7170 Likewise.
7171 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7172 Likewise.
7173 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7174 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7175 Likewise.
7176 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7177 Likewise.
7178 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7179 Likewise.
7180 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7181 Likewise.
7182
7183 2018-12-06 Joseph Myers <joseph@codesourcery.com>
7184
7185 * manual/texinfo.tex: Update to version 2018-09-21.20 with
7186 trailing whitespace removed.
7187 * scripts/config.guess: Update to version 2018-11-28.
7188 * scripts/config.sub: Update to version 2018-11-28.
7189 * scripts/install-sh: Update to version 2018-03-11.20.
7190 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
7191 * scripts/move-if-change: Update to version 2018-03-07 03:47.
7192
7193 2018-12-07 Florian Weimer <fweimer@redhat.com>
7194
7195 [BZ #23927]
7196 CVE-2018-19591
7197 * inet/tst-if_index-long.c: New file.
7198 * inet/Makefile (tests): Add tst-if_index-long.
7199
7200 2018-12-07 Florian Weimer <fweimer@redhat.com>
7201
7202 * support/check.h (support_record_failure_is_failed): Declare.
7203 * support/descriptors.h: New file.
7204 * support/support_descriptors.c: Likewise.
7205 * support/tst-support_descriptors.c: Likewise.
7206 * support/support_record_failure.c
7207 (support_record_failure_is_failed): New function.
7208 * support/Makefile (libsupport-routines): Add support_descriptors.
7209 (tests): Add tst-support_descriptors.
7210
7211 2018-12-05 Zack Weinberg <zackw@panix.com>
7212 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7213
7214 * stdio-common/vfprintf-internal.c
7215 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
7216 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
7217 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
7218 and __no_long_double.
7219 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
7220 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
7221 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
7222 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
7223 and __nldbl_*syslog* functions.
7224 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
7225 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
7226 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
7227 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
7228 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
7229 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
7230 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
7231 (__nldbl_vwprintf, __nldbl_wprintf):
7232 Directly call the appropriate __v*printf_internal routine, passing
7233 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
7234 variable names.
7235 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
7236 (__nldbl___printf_chk, __nldbl___snprintf_chk)
7237 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
7238 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
7239 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
7240 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7241 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
7242 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
7243 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
7244 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
7245 Likewise, and also pass PRINTF_FORTIFY when appropriate.
7246 (__nldbl_syslog, __nldbl_vsyslog):
7247 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
7248 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7249 appropriate.
7250 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7251 appropriate.
7252
7253 2018-12-05 Zack Weinberg <zackw@panix.com>
7254 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7255
7256 [BZ #11319]
7257 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
7258 Moved here from debug/vsprintf_chk.c.
7259 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
7260 and completion logic for the strfile to match exactly what
7261 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
7262 _IO_str_init_static_internal instead of maxlen-1.
7263 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7264 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
7265 __vsprintf_internal.
7266
7267 * debug/vsprintf_chk.c (__vsprintf_chk)
7268 * debug/sprintf_chk.c (__sprintf_chk):
7269 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
7270 'flags' argument is positive, and slen as maxlen. No need to lock
7271 the FILE and/or construct a temporary FILE. Minimize and normalize
7272 header inclusions and variable names. Do not libc_hidden_def anything.
7273
7274 * debug/asprintf_chk.c (__asprintf_chk)
7275 * debug/dprintf_chk.c (__dprintf_chk)
7276 * debug/fprintf_chk.c (__fprintf_chk)
7277 * debug/fwprintf_chk.c (__fwprintf_chk)
7278 * debug/printf_chk.c (__printf_chk)
7279 * debug/snprintf_chk.c (__snprintf_chk)
7280 * debug/swprintf_chk.c (__swprintf_chk)
7281 * debug/vasprintf_chk.c (__vasprintf_chk)
7282 * debug/vdprintf_chk.c (__vdprintf_chk)
7283 * debug/vfprintf_chk.c (__vfprintf_chk)
7284 * debug/vfwprintf_chk.c (__vfwprintf_chk)
7285 * debug/vprintf_chk.c (__vprintf_chk)
7286 * debug/vsnprintf_chk.c (__vsnprintf_chk)
7287 * debug/vswprintf_chk.c (__vswprintf_chk)
7288 * debug/vwprintf_chk.c (__vwprintf_chk)
7289 * debug/wprintf_chk.c (__wprintf_chk):
7290 Directly call the corresponding vxxprintf_internal function, passing
7291 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
7292 the FILE and/or construct a temporary FILE. Minimize and normalize
7293 header inclusions and variable names. Do not libc_hidden_def anything.
7294
7295 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
7296 __obstack_vprintf_internal.
7297 (__obstack_vprintf_chk): Convert into a wrapper that calls
7298 __obstack_vprintf_internal (these two functions already had the
7299 same code) and move to new file...
7300 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
7301 file.
7302 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
7303 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
7304 * debug/Makefile (routines): Add vobprintf_chk.
7305
7306 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7307 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7308 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
7309 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7310 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
7311 (__nldbl___obstack_vfprintf_chk):
7312 Directly call the corresponding vxxprintf_internal function,
7313 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
7314 duplicate comparison of slen with 0 or maxlen from the corresponding
7315 non-__nldbl function.
7316
7317 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
7318 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
7319 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
7320 Remove libc_hidden_proto.
7321
7322 * stdio-common/vfprintf-internal.c
7323 (__vfprintf_internal, __vfwprintf_internal):
7324 Do not check _IO_FLAGS2_FORTIFY.
7325 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
7326 * libio/libioP.h: Update prototype of __vsprintf_internal and add
7327 a comment explaining why it has the maxlen argument.
7328 (_IO_acquire_lock_clear_flags2_fct): Remove.
7329 (_IO_acquire_lock_clear_flags2): Remove.
7330 (_IO_release_lock): Remove conditional statement which will
7331 now never execute.
7332 (_IO_acquire_lock): Remove variable which is now unused.
7333 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7334 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7335
7336 * stdio-common/Makefile (tests): Add tst-bz11319 and
7337 tst-bz11319-fortify2.
7338 (CFLAGS-tst-bz11319-fortify2.c): New macro.
7339 * stdio-common/tst-bz11319-fortify2.c: New file.
7340 * stdio-common/tst-bz11319.c: Likewise.
7341
7342 2018-12-05 Zack Weinberg <zackw@panix.com>
7343 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7344
7345 * misc/syslog.c: Include libioP.h, not iolibio.h.
7346 (__vsyslog_internal): New function with the former body of
7347 __vsyslog_chk; takes mode_flags argument same as
7348 __v*printf_internal. Call __vfprintf_internal directly.
7349
7350 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
7351 Remove libc_hidden_def.
7352 (__syslog, __syslog_chk): Use __vsyslog_internal.
7353 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
7354
7355 * include/sys/syslog.h: Add multiple inclusion guard.
7356 Add prototype for __vsyslog_internal.
7357 Remove declaration and libc_hidden_proto for __vsyslog_chk.
7358
7359 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
7360 Use __vsyslog_internal.
7361
7362 2018-12-05 Zack Weinberg <zackw@panix.com>
7363 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7364
7365 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
7366 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
7367 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
7368 New functions.
7369 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
7370 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
7371
7372 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
7373 Include wctype.h here if COMPILE_WPRINTF is defined.
7374 Define __vfprintf_internal or __vfwprintf_internal, depending
7375 on COMPILE_WPRINTF.
7376 Temporarily, on entry to this function, update mode_flags
7377 according to the environmental settings corresponding to
7378 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
7379 Throughout, check mode_flags instead of __ldbl_is_dbl and
7380 _IO_FLAGS2_FORTIFY on the destination FILE.
7381 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
7382 Include vfprintf-internal.c. Don't include wctype.h.
7383 * stdio-common/vfprintf.c: New file. Just define __vfprintf
7384 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
7385 and vfprintf.
7386 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
7387 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
7388 and vfwprintf.
7389 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
7390
7391 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
7392 and add mode_flags argument; use __vfprintf_internal.
7393 (__vdprintf): New function. Alias vdprintf to this.
7394 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
7395 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
7396 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
7397 (__obstack_printf): Use __obstack_printf_internal.
7398 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
7399 public aliases __vsnprintf and vsnprintf.
7400 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
7401 called internally.
7402 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
7403 public aliases _IO_vsprintf and vsprintf.
7404 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
7405 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
7406 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
7407 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
7408 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
7409
7410 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
7411 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
7412 * stdio-common/fprintf.c, stdio-common/fxprintf.c
7413 * stdio-common/printf.c: Use __vfprintf_internal.
7414
7415 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
7416 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
7417 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
7418
7419 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
7420 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
7421 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
7422 __vfwprintf_internal.
7423
7424 * libio/libio.h: Remove libc_hidden_proto and declaration for
7425 _IO_vfprintf.
7426 Remove declaration of _IO_vfwprintf.
7427 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
7428 _IO_vsprintf.
7429 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
7430 _IO_obstack_printf.
7431 * include/stdio.h: Add prototype for __vasprintf.
7432 (__vsnprintf): Remove declaration, because there are no more
7433 internal calls.
7434 * include/wchar.h (__vfwprintf, __vswprintf): Remove
7435 declaration, because there are no more internal calls.
7436
7437 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
7438 __vsnprintf_internal, instead of _IO_vsnprintf.
7439 * argp/argp-help.c (__argp_error, __argp_failure): Use
7440 __vasprintf_internal, instead of _IO_vasprintf.
7441 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
7442 redefine, because there are no more internal calls.
7443
7444 2018-12-05 Zack Weinberg <zackw@panix.com>
7445 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7446
7447 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
7448 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
7449 Include libio/strfile.h instead of libioP.h.
7450 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
7451 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
7452 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
7453 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
7454 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
7455 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
7456 necessary. Do not set __no_long_double. Normalize variable names.
7457 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
7458 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
7459 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
7460 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
7461 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
7462 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
7463 Call __vfscanf_internal / __vfwscanf_internal directly, passing
7464 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
7465 Do not set __no_long_double. Normalize variable names.
7466
7467 2018-12-05 Zack Weinberg <zackw@panix.com>
7468 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7469
7470 * stdio-common/isoc99_scanf.c
7471 * stdio-common/isoc99_fscanf.c
7472 * stdio-common/isoc99_sscanf.c
7473 * stdio-common/isoc99_vscanf.c
7474 * stdio-common/isoc99_vfscanf.c
7475 * stdio-common/isoc99_vsscanf.c
7476 * wcsmbs/isoc99_wscanf.c
7477 * wcsmbs/isoc99_fwscanf.c
7478 * wcsmbs/isoc99_swscanf.c
7479 * wcsmbs/isoc99_vwscanf.c
7480 * wcsmbs/isoc99_vfwscanf.c
7481 * wcsmbs/isoc99_vswscanf.c:
7482 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7483 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7484 No need to lock and unlock the FILE passed to that function.
7485
7486 * stdio-common/vfscanf-internal.c
7487 (__vfscanf_internal, __vfwscanf_internal):
7488 Don't look at _IO_FLAGS2_SCANF_STD.
7489 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7490 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7491 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7492
7493 2018-12-05 Zack Weinberg <zackw@panix.com>
7494 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7495
7496 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7497 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7498 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7499 * libio/strfile.h: Add multiple inclusion guard.
7500 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7501
7502 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7503 consistency with the other version of this file.
7504 (ldbl_compat_symbol): New macro.
7505 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7506 New macro.
7507
7508 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7509 Define __vfscanf_internal or __vfwscanf_internal, depending on
7510 COMPILE_WSCANF; don't define any other public symbols.
7511 Remove errval and code to set errp.
7512 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7513 as the mode_flags argument.
7514 (encode_error, conv_error, input_error): Don't set errval.
7515 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7516 Include vfscanf-internal.c.
7517 * stdio-common/vfscanf.c: New file defining the public entry
7518 point vfscanf, which calls __vfscanf_internal.
7519 * stdio-common/vfwscanf.c: New file defining the public entry
7520 point vfwscanf, which calls __vfwscanf_internal.
7521
7522 * stdio-common/iovfscanf.c: New file.
7523 * stdio-common/iovfwscanf.c: Likewise.
7524
7525 * stdio-common/Makefile (routines): Add vfscanf-internal,
7526 vfwscanf-internal, iovfscanf, iovfwscanf.
7527 * stdio-common/Versions: Mention GLIBC_2.29, so that
7528 it can be used in SHLIB_COMPAT expressions.
7529 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7530 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7531 Call __vfscanf_internal, instead of _IO_vfscanf.
7532 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7533 _IO_vfscanf.
7534 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7535 _IO_vfwscanf.
7536
7537 * libio/iovsscanf.c: Clean up includes, when possible. Use
7538 _IO_strfile_read or _IO_strfile_readw, when needed. Call
7539 __vfscanf_internal or __vfwscanf_internal directly.
7540 * libio/iovswscanf.c: Likewise.
7541 * libio/swscanf.c: Likewise.
7542 * libio/vscanf.c: Likewise.
7543 * libio/vwscanf.c: Likewise.
7544 * libio/wscanf.c: Likewise.
7545 * stdio-common/isoc99_fscanf.c: Likewise.
7546 * stdio-common/isoc99_scanf.c: Likewise.
7547 * stdio-common/isoc99_sscanf.c: Likewise.
7548 * stdio-common/isoc99_vfscanf.c: Likewise.
7549 * stdio-common/isoc99_vscanf.c: Likewise.
7550 * stdio-common/isoc99_vsscanf.c: Likewise.
7551 * stdio-common/scanf.c: Likewise.
7552 * stdio-common/sscanf.c: Likewise.
7553 * wcsmbs/isoc99_fwscanf.c: Likewise.
7554 * wcsmbs/isoc99_swscanf.c: Likewise.
7555 * wcsmbs/isoc99_vfwscanf.c: Likewise.
7556 * wcsmbs/isoc99_vswscanf.c: Likewise.
7557 * wcsmbs/isoc99_vwscanf.c: Likewise.
7558 * wcsmbs/isoc99_wscanf.c: Likewise.
7559
7560 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
7561
7562 * include/time.h
7563 (__tz_compute): Replace time_t with __time64_t.
7564 (__tz_convert): Replace time_t* with __time64_t.
7565 (__offtime): Replace time_t* with __time64_t.
7566 * time/gmtime.c
7567 (__gmtime_r): Adjust call to __tz_convert.
7568 (gmtime): Likewise.
7569 * time/localtime.c
7570 (__localtime_r): Likewise.
7571 (localtime): Likewise.
7572 * time/offtime.c: Replace time_t with __time64_t.
7573 * time/tzset.c: Likewise.
7574
7575 2018-12-04 Joseph Myers <joseph@codesourcery.com>
7576
7577 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7578 dynamic linker unless [$(run-built-tests) = yes].
7579
7580 2018-12-03 DJ Delorie <dj@delorie.com>
7581
7582 * support/test-container.c (check_for_unshare_hints): New.
7583 (main): Call it if unshare fails. Add support for "su" scriptlet
7584 command.
7585
7586 2018-12-03 Joseph Myers <joseph@codesourcery.com>
7587
7588 * scripts/gen-as-const.py (compute_c_consts): Take an argument
7589 'START' to indicate that start text should be output.
7590 (gen_test): Likewise.
7591 (main): Generate 'START' for first symbol or '--' line, or at end
7592 of input if not previously generated.
7593
7594 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
7595
7596 [BZ #19767]
7597 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7598 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7599 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7600 ALWAYS_USE_VSYSCALL.
7601
7602 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7603
7604 [BZ #23913]
7605 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7606 new_argv by one.
7607
7608 2018-12-03 Carlos O'Donell <carlos@redhat.com>
7609
7610 [BZ #23923]
7611 * locale/programs/localedef.c: Declare boolean hard_links default true.
7612 (options): Add --no-hard-links option.
7613 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7614 * locale/programs/localedef.h: Declare prototype for hard_links.
7615 * locale/programs/locfile.c (write_locale_data): Don't use hard
7616 links if hard_links is false.
7617
7618 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
7619
7620 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7621 cpu_features_basic.
7622 (__cache_sysconf): Likewise.
7623 (init_cacheinfo): Likewise.
7624 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7625 populate COMMON_CPUID_INDEX_80000007 and
7626 COMMON_CPUID_INDEX_80000008.
7627 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7628 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7629 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
7630 (init_cpu_features): Use _Static_assert on
7631 index_arch_Fast_Unaligned_Load.
7632 __get_cpuid_registers and __get_arch_feature. Updated for
7633 cpu_features_basic. Set stepping in cpu_features.
7634 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7635 (FEATURE_INDEX_2): New.
7636 (FEATURE_INDEX_MAX): Changed to enum.
7637 (COMMON_CPUID_INDEX_D_ECX_1): New.
7638 (COMMON_CPUID_INDEX_80000007): Likewise.
7639 (COMMON_CPUID_INDEX_80000008): Likewise.
7640 (cpuid_registers): Likewise.
7641 (cpu_features_basic): Likewise.
7642 (CPU_FEATURE_USABLE): Likewise.
7643 (bit_arch_XXX_Usable): Likewise.
7644 (cpu_features): Use cpuid_registers and cpu_features_basic.
7645 (bit_arch_XXX): Reweritten.
7646 (bit_cpu_XXX): Likewise.
7647 (index_cpu_XXX): Likewise.
7648 (reg_XXX): Likewise.
7649 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7650 <support/check.h>.
7651 (CHECK_CPU_FEATURE): New.
7652 (CHECK_CPU_FEATURE_USABLE): Likewise.
7653 (cpu_kinds): Likewise.
7654 (do_test): Print vendor, family, model and stepping. Check
7655 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7656 (TEST_FUNCTION): Removed.
7657 Include <support/test-driver.c> instead of
7658 "../../test-skeleton.c".
7659 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7660 Check POPCNT instead of POPCOUNT.
7661 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7662
7663 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7664
7665 * scripts/gen-as-const.py (main): Avoid emitting empty line when
7666 there is no element in `consts'.
7667
7668 2018-12-01 Florian Weimer <fweimer@redhat.com>
7669
7670 * support/support_capture_subprocess.c
7671 (support_capture_subprocess): Check that pipe descriptors have
7672 expected values. Close original pipe descriptors in subprocess.
7673
7674 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7675
7676 [BZ #23032]
7677 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7678 attr with __pthread_default_barrierattr.
7679 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7680 attr with __pthread_default_condattr.
7681 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7682 attr with __pthread_default_mutexattr.
7683 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7684 attr with __pthread_default_rwlockattr.
7685
7686 2018-12-01 Kemi Wang <kemi.wang@intel.com>
7687
7688 * manual/tunables.texi (POSIX Thread Tunables): New node.
7689 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7690 * nptl/nptl-init.c: Include pthread_mutex_conf.h
7691 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7692 __pthread_tunables_init.
7693 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7694 (max_adaptive_count): Define.
7695 * nptl/pthread_mutex_conf.c: New file.
7696 * nptl/pthread_mutex_conf.h: New file.
7697 * sysdeps/generic/adaptive_spin_count.h: New file.
7698 * sysdeps/nptl/dl-tunables.list: New file.
7699 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7700 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7701 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7702 Likewise.
7703
7704 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
7705
7706 [BZ #20544]
7707 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7708 * stdlib/on_exit.c (__on_exit): Likewise.
7709 * stdlib/Makefile (tests): Add tst-bz20544.
7710 * stdlib/tst-bz20544.c: New test.
7711
7712 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
7713
7714 [BZ #19767]
7715 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7716 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7717 New.
7718
7719 2018-11-30 Florian Weimer <fweimer@redhat.com>
7720
7721 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7722 Extend error logging.
7723 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7724 symbol.
7725
7726 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7727
7728 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7729 __sigismember instead of sigismember.
7730 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7731 cancel_handler): New definitions.
7732 (do_system): Use posix_spawn instead of fork and execl and remove
7733 reentracy code.
7734 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7735 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7736 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7737 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7738 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7739 * sysdeps/unix/sysv/linux/system.c: Likewise.
7740
7741 [BZ #22834]
7742 [BZ #17490]
7743 * NEWS: Add new semantic for atfork with popen and system.
7744 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7745 fork and execl.
7746
7747 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7748
7749 [BZ #23690]
7750 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7751 modification order when accessing reloc_result->addr.
7752 * include/link.h (reloc_result): Add field init.
7753 * nptl/Makefile (tests): Add tst-audit-threads.
7754 (modules-names): Add tst-audit-threads-mod1 and
7755 tst-audit-threads-mod2.
7756 Add rules to build tst-audit-threads.
7757 * nptl/tst-audit-threads-mod1.c: New file.
7758 * nptl/tst-audit-threads-mod2.c: Likewise.
7759 * nptl/tst-audit-threads.c: Likewise.
7760 * nptl/tst-audit-threads.h: Likewise.
7761
7762 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7763
7764 * scripts/gen-as-const.py: New file.
7765 * scripts/gen-as-const.awk: Remove.
7766 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7767 gen-as-const.py.
7768 ($(objpfx)test-as-const-%.c): Likewise.
7769
7770 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7771
7772 * elf/dl-exception.c: Include <_itoa.h>.
7773
7774 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7775
7776 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7777 returned by __f_setlk.
7778
7779 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7780 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7781
7782 * elf/Makefile (tests-internal): Add tst-create_format1.
7783 * elf/dl-exception.c (_dl_exception_create_format): Support
7784 %x, %lx and %zx.
7785 * elf/tst-create_format1.c: New file.
7786
7787 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7788
7789 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7790 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7791 gnulib.)
7792 * argp/argp-help.c (__argp_failure): Likewise.
7793
7794 2018-11-29 Mao Han <han_mao@c-sky.com>
7795
7796 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7797 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7798 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7799 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7800 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7801 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7802 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7803 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7804 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7805 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7806 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7807 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7808 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7809 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7810 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7811 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7812 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7813 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7814 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7815 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7816 (R_CKCORE_TLS_TPOFF32): New defines.
7817
7818 2018-11-29 Florian Weimer <fweimer@redhat.com>
7819
7820 * posix/Makefile (before-compile): Remove testcases.h and
7821 ptestcases.h.
7822 (generated): Add testcases.h and ptestcases.h.
7823 (testcases.h, ptestcases.h): Move to $(objpfx).
7824 (runtests.o): Add dependency on testcases.h.
7825 (runptests.o): Add dependency on ptestcases.h.
7826 * posix/testcases.h, posix/ptestcases.h: Remove files.
7827 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7828 not touch posix/testcases.h and posix/ptestcases.h.
7829
7830 2018-11-28 Florian Weimer <fweimer@redhat.com>
7831
7832 support: Add signal support to support_capture_subprocess_check.
7833 * support/capture_subprocess.h (support_capture_subprocess_check):
7834 Adjust comment and rename parameter.
7835 * support/support_capture_subprocess_check.c
7836 (print_actual_status): New function.
7837 (support_capture_subprocess_check): Support negative
7838 status_or_signal. Call print_actual_status.
7839 * support/tst-support_capture_subprocess.c (do_test): Call
7840 support_capture_subprocess_check.
7841 * libio/tst-vtables-common.c (termination_status)
7842 (init_termination_status): Remove.
7843 (check_for_termination): Adjust support_capture_subprocess_check
7844 call.
7845 (do_test): Remove call to init_termination_status.
7846
7847 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7848
7849 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7850 source directory instead of a copy.
7851 (CommandList.create_copy_dir): Remove.
7852
7853 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7854
7855 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7856
7857 2018-11-28 Florian Weimer <fweimer@redhat.com>
7858
7859 * support/support.h (support_quote_string): Do not use str
7860 parameter name.
7861
7862 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7863
7864 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7865 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7866
7867 2018-11-27 Florian Weimer <fweimer@redhat.com>
7868
7869 * support/support.h (support_quote_string): Declare.
7870 * support/support_quote_string.c: New file.
7871 * support/tst-support_quote_string.c: Likewise.
7872 * support/Makefile (libsupport-routines): Add
7873 support_quote_string.
7874 (tests): Add tst-support_quote_string.
7875
7876 2018-11-27 Florian Weimer <fweimer@redhat.com>
7877
7878 [BZ #23927]
7879 CVE-2018-19591
7880 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7881 descriptor leak in case of ENODEV error.
7882
7883 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7884
7885 [BZ #19767]
7886 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7887 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7888 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7889
7890 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7891
7892 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7893 Error for unknown lines.
7894
7895 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7896
7897 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7898 Touch additional files.
7899
7900 2018-11-26 Florian Weimer <fweimer@redhat.com>
7901
7902 [BZ #23907]
7903 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7904 double-frees.
7905
7906 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7907
7908 [BZ #19767]
7909 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7910 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7911 SHARED. Include sysdep.h.
7912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7913 ALWAYS_USE_VSYSCALL.
7914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7915 ALWAYS_USE_VSYSCALL.
7916
7917 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7918
7919 [BZ #19767]
7920 * nptl/Makefile (tests-static): Add tst-cond11-static.
7921 (tests): Likewise.
7922 * nptl/tst-cond11-static.c: New File.
7923 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7924 tst-affinity-static.
7925 (tests): Likewise.
7926 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7927 instead of SHARED.
7928 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7929 (USE_VSYSCALL): Likewise.
7930 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7931 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7932 instead of SHARED.
7933 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7934 SHARED.
7935 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7936 New.
7937
7938 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7939
7940 [BZ #23915]
7941 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7942 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7943 Undefine.
7944
7945 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7946
7947 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7948 (tst-cet-legacy-1a-ARGS): New.
7949 ($(objpfx)tst-cet-legacy-1a): New target.
7950 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7951
7952 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7953
7954 * conform/conformtest.py (CompileSubTest.__init__): Set
7955 self.run_early to False.
7956 (ExecuteSubTest.__init__): Likewise.
7957 (HeaderTests.run): Try running all non-optional, non-XFAILed
7958 compilation tests in a single execution of the compiler.
7959
7960 * conform/conformtest.py (CompileSubTest): New class.
7961 (ExecuteSubTest): Likewise.
7962 (ElementTest.run): Rename to gen_subtests. Append tests to
7963 self.subtests instead of running them.
7964 (ConstantTest.run): Likewise.
7965 (SymbolTest.run): Likewise.
7966 (TypeTest.run): Likewise.
7967 (TagTest.run): Likewise.
7968 (FunctionTest.run): Likewise.
7969 (VariableTest.run): Likewise.
7970 (MacroFunctionTest.run): Likewise.
7971 (MacroStrTest.run): Likewise.
7972 (HeaderTests.handle_test_line): Generate subtests for tests.
7973 (HeaderTests.run): Run subtests for tests.
7974
7975 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7976
7977 * math/Versions (GLIBC_2.29): Add pow.
7978 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7979 symbol.
7980 * math/w_pow.c: New file.
7981 * sysdeps/i386/fpu/w_pow.c: New file.
7982 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7983 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7984 and add necessary aliases.
7985 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7986 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7987 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7988 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7989 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7990 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7991 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7992 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7993 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7994 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7995 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7996 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7997 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7998 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7999 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8004 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8005 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8006 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8007 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8008 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8009 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8010 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8011 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
8012 __pow.
8013 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
8014 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
8015 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
8016
8017 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
8018
8019 * math/Versions (GLIBC_2.29): Add log2.
8020 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
8021 symbol.
8022 * math/w_log2.c: New file.
8023 * sysdeps/i386/fpu/w_log2.c: New file.
8024 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
8025 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
8026 and add necessary aliases.
8027 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
8028 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
8029 * sysdeps/mach/hurd/i386/libm.abilist: Update.
8030 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8031 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8032 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8033 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8034 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8035 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8036 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8037 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8038 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8039 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8040 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8041 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8046 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8047 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8048 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8049 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8050 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8051 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8052 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8053
8054 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
8055
8056 * math/Versions (GLIBC_2.29): Add log.
8057 * math/w_log_compat.c (__log_compat): Change to versioned compat
8058 symbol.
8059 * math/w_log.c: New file.
8060 * sysdeps/i386/fpu/w_log.c: New file.
8061 * sysdeps/ia64/fpu/e_log.S: Update.
8062 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
8063 and add necessary aliases.
8064 * sysdeps/ieee754/dbl-64/w_log.c: New file.
8065 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
8066 * sysdeps/mach/hurd/i386/libm.abilist: Update.
8067 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8068 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8069 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8070 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8071 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8072 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8073 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8074 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8075 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8076 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8077 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8078 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8079 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8083 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8084 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8085 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8086 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8087 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8088 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8089 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8090 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
8091 __log.
8092 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
8093 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
8094 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
8095 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
8096
8097 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
8098
8099 * math/Versions (GLIBC_2.29): Add exp and exp2.
8100 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
8101 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
8102 * math/w_exp_compat.c (__exp_compat): Likewise.
8103 * math/w_exp.c: New file.
8104 * math/w_exp2.c: New file.
8105 * sysdeps/i386/fpu/w_exp.c: New file.
8106 * sysdeps/i386/fpu/w_exp2.c: New file.
8107 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
8108 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
8109 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
8110 and add necessary aliases.
8111 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
8112 and add necessary aliases.
8113 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
8114 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
8115 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
8116 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
8117 * sysdeps/mach/hurd/i386/libm.abilist: Update.
8118 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8119 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8120 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8121 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8122 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8123 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8124 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8125 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8126 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8127 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8128 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8129 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8134 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8135 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8136 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8137 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8138 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8139 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8140 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8141 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
8142 (__ieee754_exp): Rename to __exp.
8143 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
8144 (__ieee754_exp): Rename to __exp.
8145 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
8146 (__ieee754_exp): Rename to __exp.
8147 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
8148 __exp.
8149 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
8150
8151 2018-11-20 DJ Delorie <dj@redhat.com>
8152
8153 * malloc/malloc.c (tcache_entry): Add key field.
8154 (tcache_put): Set it.
8155 (tcache_get): Likewise.
8156 (_int_free): Check for double free in tcache.
8157 * malloc/tst-tcfree1.c: New.
8158 * malloc/tst-tcfree2.c: New.
8159 * malloc/Makefile: Run the new tests.
8160 * manual/probes.texi: Document memory_tcache_double_free probe.
8161
8162 * dlfcn/dlerror.c (check_free): Prevent double frees.
8163
8164 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
8165
8166 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
8167
8168 2018-11-20 Joseph Myers <joseph@codesourcery.com>
8169
8170 * conform/conformtest.py (ElementTest.run): Use unique identifiers
8171 in tests. Use names for format arguments.
8172 (ConstantTest.run): Likewise.
8173 (SymbolTest.run): Likewise.
8174 (TypeTest.run): Likewise.
8175 (TagTest.run): Likewise.
8176 (FunctionTest.run): Likewise.
8177 (VariableTest.run): Likewise.
8178 (MacroFunctionTest.run): Likewise.
8179 (MacroStrTest.run): Likewise.
8180 (HeaderTests.__init__): Set self.num_tests.
8181 (HeaderTests.handle_test_line): Set test.num. Increment
8182 self.num_tests.
8183
8184 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
8185
8186 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
8187 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
8188 SEEK_SET.
8189
8190 2018-11-19 Mao Han <han_mao@c-sky.com>
8191
8192 * scripts/config.guess: Update to version 2018-08-29.
8193 * scripts/config.sub: Update to version 2018-08-29.
8194
8195 2018-11-19 Florian Weimer <fweimer@redhat.com>
8196
8197 support: Print timestamps in timeout handler.
8198 * support/support_test_main.c (print_timestamp): New function.
8199 (signal_handler): Use it to print the termination time and the
8200 time of the last write to standard output.
8201
8202 2018-11-16 Zack Weinberg <zackw@panix.com>
8203 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8204
8205 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
8206 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
8207 argument.
8208 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
8209 and add flags argument. Check flags instead of __ldbl_is_dbl when
8210 deciding whether to set is_long_double.
8211 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
8212 passing zero for flags argument.
8213 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
8214
8215 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8216 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
8217 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
8218 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
8219 variable names. Remove libc_hidden_def/libc_hidden_proto from
8220 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
8221 longer called from within the library.
8222 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
8223 for __nldbl___vstrfmon_l, declare it explicitly.
8224
8225 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
8226
8227 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
8228
8229 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
8230 macros
8231 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
8232 F_SETLK64, F_SETLKW64, respectively.
8233 * sysdeps/mach/hurd/f_setlk.c: New file.
8234 * sysdeps/mach/hurd/f_setlk.h: New file.
8235 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
8236 f_setlk.
8237 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
8238 (__libc_fcntl): Move non-flock operations to...
8239 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
8240 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
8241
8242 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
8243
8244 mktime: DEBUG_MKTIME cleanup
8245 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
8246 And it’s no longer needed now that glibc and Gnulib both have
8247 their own testing mechanisms for mktime.
8248 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
8249
8250 mktime: fix non-EOVERFLOW errno handling
8251 [BZ#23789]
8252 mktime was not properly reporting failures when the underlying
8253 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
8254 them like EOVERFLOW failures, and set errno to EOVERFLOW.
8255 The problem could happen on non-glibc platforms, with Gnulib.
8256 * time/mktime.c (guess_time_tm): Remove, replacing with ...
8257 (tm_diff): ... this simpler function, which does not change errno.
8258 All callers changed to deal with errno themselves.
8259 (ranged_convert, __mktime_internal): Return failure immediately if
8260 the underlying function reports any failure other than EOVERFLOW.
8261 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
8262 gap code fails.
8263
8264 mktime: fix bug with Y2038 DST transition
8265 [BZ#23789]
8266 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
8267 mishandle a DST transition that jumps over the Y2038 boundary.
8268 No such DST transitions are known so this is only a theoretical
8269 bug, but we might as well do things right.
8270
8271 mktime: make more room for overflow
8272 [BZ#23789]
8273 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
8274 This is so that we can add tm_diff results to a previous guess,
8275 which will be useful in a later patch.
8276
8277 mktime: simplify offset guess
8278 [BZ#23789]
8279 * time/mktime.c (__mktime_internal): Omit excess precision.
8280
8281 mktime: new test for mktime failure
8282 [BZ#23789]
8283 Based on a test suggested by Albert Aribaud in:
8284 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
8285 * time/Makefile (tests): Add bug-mktime4.
8286 * time/bug-mktime4.c: New file.
8287
8288 mktime: fix EOVERFLOW bug
8289 [BZ#23789]
8290 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
8291 Include libc-config.h, not config.h, for __set_errno.
8292 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
8293
8294 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8295
8296 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
8297 __attribute_copy__ to copy attributes from name. Drop static qualifier
8298 to avoid warnings about leaf attribute not having effect on static
8299 functions.
8300
8301 2018-11-13 Florian Weimer <fweimer@redhat.com>
8302
8303 * malloc/malloc.c (fastbin_push_entry): New function.
8304 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
8305 (REMOVE_FB): Remove macro.
8306 (_int_malloc): Use fastbin_pop_entry and reindent.
8307 (_int_free): Use fastbin_push_entry.
8308 (malloc_consolidate): Use atomic_exchange_acquire.
8309
8310 2018-11-13 Joseph Myers <joseph@codesourcery.com>
8311
8312 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
8313 alias attribute, not with strong_alias.
8314
8315 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
8316 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
8317 with additional parameter thread.
8318 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
8319 in terms of __hidden_ver2.
8320 (hidden_tls_def): New macro.
8321 (libc_hidden_tls_def): Likewise.
8322 (rtld_hidden_tls_def): Likewise.
8323 (libm_hidden_tls_def): Likewise.
8324 (libmvec_hidden_tls_def): Likewise.
8325 (libresolv_hidden_tls_def): Likewise.
8326 (librt_hidden_tls_def): Likewise.
8327 (libdl_hidden_tls_def): Likewise.
8328 (libnss_files_hidden_tls_def): Likewise.
8329 (libnsl_hidden_tls_def): Likewise.
8330 (libnss_nisplus_hidden_tls_def): Likewise.
8331 (libutil_hidden_tls_def): Likewise.
8332 (libutil_hidden_tls_def): Likweise.
8333 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
8334 libc_hidden_tls_def.
8335 (__sim_disabled_exceptions_thread): Likewise.
8336 (__sim_round_mode_thread): Likewise.
8337
8338 * sysdeps/sparc/sparc-ifunc.h [SHARED]
8339 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
8340 copy attributes from name.
8341
8342 2018-11-12 Joseph Myers <joseph@codesourcery.com>
8343
8344 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
8345 Use __attribute_copy__ to copy attributes from name.
8346
8347 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
8348 with __hidden_ver1 call.
8349 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
8350 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
8351 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
8352 (__cosf): Do not declare here.
8353 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
8354 (__sincosf): Do not declare here.
8355 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
8356 (__sinf): Do not declare here.
8357
8358 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
8359 (__BIG_ENDIAN): Likewise.
8360 (__BYTE_ORDER): Likewise.
8361 (strong_alias): Likewise.
8362 (_strong_alias): Likewise.
8363
8364 2018-11-12 Florian Weimer <fweimer@redhat.com>
8365
8366 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
8367 function. Move after the definition of in_smallbin_range. Do not
8368 use __builtin_expect for paths that lead to a noreturn function.
8369 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
8370 because it is unclear whether this is in fact an unlikely
8371 condition.
8372 (_int_malloc, _int_free): Adjust.
8373 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
8374 variables.
8375 * malloc/arena.c (heap_trim): Likewise.
8376
8377 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
8378
8379 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
8380 it, free it if needed.
8381 (reauthenticate): Test and use ccwdir.
8382 (child_init_port): In non-resetids case, test and use ccwdir.
8383 (child_chdir): New nested function to set ccwdir.
8384 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
8385 * hurd/hurd/port.h (_hurd_port_move): New function.
8386 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
8387 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
8388 * hurd/Versions (_hurd_port_move): Export function.
8389 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
8390 symbol.
8391 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
8392 of dtablesize for allocating dtable_cloexec.
8393
8394 2018-11-09 Martin Sebor <msebor@redhat.com>
8395
8396 * include/libc-symbols.h (__attribute_copy__): Define macro unless
8397 it's already defined.
8398 (_strong_alias): Use __attribute_copy__.
8399 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
8400 * misc/sys/cdefs.h (__attribute_copy__): New macro.
8401 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
8402 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
8403 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
8404 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
8405 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
8406 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
8407 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
8408 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
8409 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
8410 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
8411 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
8412 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
8413 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
8414 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
8415 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
8416 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
8417 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
8418
8419 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8420
8421 * misc/tst-efgcvt.c: Include support/check.h and
8422 support/test-driver.c. Do not include test-skeleton.c.
8423 (error_count): Remove.
8424 (output_error): Replace increments to error_count with calls to
8425 support_record_failure.
8426 (output_r_error): Likewise.
8427 (special): Likewise.
8428 (do_test): Unconditionally return zero.
8429 (TEST_FUNCTION): Remove.
8430
8431 2018-11-09 Joseph Myers <joseph@codesourcery.com>
8432
8433 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
8434 not $(@D)/scratch.
8435 ($(linknamespace-header-tests)): Likewise.
8436
8437 * conform/conformtest.py: New file.
8438 * conform/conformtest.pl: Remove.
8439 * conform/GlibcConform.pm: Likewise.
8440 * conform/glibcconform.py (KEYWORDS_C90): New constant.
8441 (KEYWORDS_C99): Likewise.
8442 (KEYWORDS): Likewise.
8443 * conform/Makefile ($(conformtest-header-tests)): Use
8444 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
8445 option. Use --header instead of --headers.
8446 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
8447 function entries.
8448 * conform/data/spawn.h-data: Likewise.
8449 * conform/data/fcntl.h-data (openat): Add space after function
8450 name.
8451 * conform/data/wchar.h-data (wcscasecmp): Likewise.
8452 (wcscasecmp_l): Likewise.
8453 * conform/data/termios.h-data (c_cc): Add space after element
8454 name.
8455
8456 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8457
8458 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
8459 instead of manually comparing and reporting mismatching strings.
8460 * misc/tst-ldbl-error.c (do_one_test): Likewise.
8461 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
8462
8463 2018-11-08 Joseph Myers <joseph@codesourcery.com>
8464
8465 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
8466 __ASSUME_SOCKETCALL.
8467 * sysdeps/unix/sysv/linux/i386/kernel-features.h
8468 (__ASSUME_SOCKETCALL): Remove.
8469 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8470 (__ASSUME_SOCKETCALL): Likewise.
8471 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8472 (__ASSUME_SOCKETCALL): Likewise.
8473 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8474 (__ASSUME_SOCKETCALL): Likewise.
8475 * sysdeps/unix/sysv/linux/s390/kernel-features.h
8476 (__ASSUME_SOCKETCALL): Likewise.
8477 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8478 (__ASSUME_SOCKETCALL): Likewise.
8479 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8480 (__ASSUME_SOCKETCALL): Likewise.
8481
8482 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
8483
8484 [BZ #23509]
8485 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8486 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8487 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8488 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8489 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
8490 lc_unknown.
8491
8492 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
8493
8494 [BZ #17630]
8495 * resolv/tst-resolv-network.c: Add test for getnetbyname.
8496
8497 2018-11-07 Joseph Myers <joseph@codesourcery.com>
8498
8499 [BZ #23867]
8500 * sysdeps/unix/sysv/linux/arm/kernel-features.h
8501 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8502 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8503 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8504
8505 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8506
8507 * support/support_test_compare_string.c
8508 (support_test_compare_string): Fix printf format.
8509
8510 2018-11-07 Florian Weimer <fweimer@redhat.com>
8511
8512 Implement TEST_COMPARE_STRING.
8513 * support/check.h (TEST_COMPARE_STRING): Define.
8514 (support_test_compare_string): Declare.
8515 * support/Makefile (libsupport-routines): Add
8516 support_test_compare_string.
8517 (tests): Add tst-test_compare_string.
8518 * support/support_test_compare_string.c: New file.
8519 * support/tst-test_compare_string.c: Likewise.
8520
8521 2018-11-07 Andreas Schwab <schwab@suse.de>
8522
8523 [BZ #23864]
8524 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8525 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8526 Undef.
8527
8528 2018-11-06 Joseph Myers <joseph@codesourcery.com>
8529
8530 [BZ #23862]
8531 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8532 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8533 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8534 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8535 Likewise.
8536
8537 2018-11-06 Florian Weimer <fweimer@redhat.com>
8538
8539 [BZ #17405]
8540 * posix/Makefile (routines): Add spawn_faction_addchdir.
8541 (tests): Add tst-spawn-chdir.
8542 * posix/Versions (GLIBC_2.29): Add
8543 posix_spawn_file_actions_addchdir_np.
8544 * posix/spawn_faction_addchdir.c: New file.
8545 * posix/spawn_faction_destroy.c
8546 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8547 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8548 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8549 chdir_action.
8550 * posix/tst-spawn-chdir.c: New file.
8551 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8552 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8553 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8554 posix_spawn_file_actions_addchdir_np.
8555 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8556 Likewise.
8557 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8558 Likewise.
8559 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8560 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8561 Likewise.
8562 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8563 Likewise.
8564 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8565 Likewise.
8566 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8567 Likewise.
8568 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8569 Likewise.
8570 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8571 Likewise.
8572 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8573 (GLIBC_2.29): Likewise.
8574 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8575 (GLIBC_2.29): Likewise.
8576 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8577 (GLIBC_2.29): Likewise.
8578 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8579 (GLIBC_2.29): Likewise.
8580 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8581 Likewise.
8582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8583 (GLIBC_2.29): Likewise.
8584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8585 (GLIBC_2.29): Likewise.
8586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8587 (GLIBC_2.29): Likewise.
8588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8589 (GLIBC_2.29): Likewise.
8590 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8591 Likewise.
8592 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8593 Likewise.
8594 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8595 Likewise.
8596 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8597 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8598 Likewise.
8599 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8600 Likewise.
8601 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8602 Likewise.
8603 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8604 Likewise.
8605
8606 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8607
8608 * misc/Makefile (tests): Add tst-ldbl-error.
8609 * misc/tst-ldbl-error.c: New file.
8610
8611 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8612
8613 * misc/Makefile (tests): Add tst-ldbl-warn.
8614 * misc/tst-ldbl-warn.c: New file.
8615
8616 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8617
8618 * argp/Makefile (tests): Add tst-ldbl-argp.
8619 * argp/tst-ldbl-argp.c: New file.
8620
8621 2018-11-05 Arjun Shankar <arjun@redhat.com>
8622
8623 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8624 __gconv_path_elem and call __gconv_get_path unconditionally.
8625
8626 2018-11-05 Andreas Schwab <schwab@suse.de>
8627
8628 [BZ #22927]
8629 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8630 creating the first helper thread failed.
8631
8632 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8633
8634 * sysdeps/mach/hurd/msync.c: New file.
8635
8636 2018-11-02 Florian Weimer <fweimer@redhat.com>
8637
8638 * support/shell-container.c (copy_func): Call
8639 support_copy_file_range instead of copy_file_range to support
8640 cross-device copies.
8641
8642 2018-11-02 Florian Weimer <fweimer@redhat.com>
8643
8644 * support/test-container.c: Include <libc-pointer-arith.h> for
8645 ALIGN_UP.
8646
8647 2018-11-01 Zong Li <zong@andestech.com>
8648
8649 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8650 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8651 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8652 (__FP_FRAC_SET_8): Add implementation for RV32 use.
8653
8654 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8655 variable to avoid overlap arguments.
8656
8657 2018-11-01 Joseph Myers <joseph@codesourcery.com>
8658
8659 * posix/bug-regex22.c (main): Use puts with distinct error
8660 messages for unexpected success of re_compile_pattern, not printf
8661 with NULL argument to %s.
8662
8663 * stdio-common/bug22.c: Include <libc-diag.h>.
8664 (do_test): Disable -Wformat-overflow= warnings around fprintf
8665 calls outputting more than INT_MAX characters.
8666 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8667 around printf call with NULL %s argument.
8668
8669 [BZ #23848]
8670 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8671 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8672 Undefine.
8673 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8674 (__ASSUME_RECVMSG_SYSCALL): Likewise.
8675 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8676 (__ASSUME_SENDTO_SYSCALL): Likewise.
8677 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8678 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8679 [!__arch64__].
8680 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8681 (__ASSUME_CONNECT_SYSCALL): Likewise.
8682 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8683 (__ASSUME_RECVFROM_SYSCALL): Likewise.
8684 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8685 Define.
8686 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8687 Likewise.
8688 [__LINUX_KERNEL_VERSION >= 0x040400]
8689 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8690 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8691 Remove.
8692 (listen): Likewise.
8693 (setsockopt): Likewise.
8694
8695 2018-11-01 Fredrik Noring <noring@nocrew.org>
8696
8697 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8698 with the ISA override.
8699
8700 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
8701
8702 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8703 #endif.
8704
8705 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8706
8707 * manual/errno.texi (EIEIO): Document how translators should
8708 translate the error message.
8709 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
8710 printing trailing whitespaces refused by git.
8711 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8712 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8713 * hurd/Makefile (user-interfaces): Add pci.
8714
8715 2018-10-30 Joseph Myers <joseph@codesourcery.com>
8716
8717 * conform/linknamespace.py: New file.
8718 * conform/linknamespace.pl: Remove file.
8719 * conform/Makefile ($(linknamespace-header-tests)): Use
8720 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
8721 option.
8722
8723 2018-10-30 Florian Weimer <fweimer@redhat.com>
8724
8725 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8726 memory leaks.
8727
8728 2018-10-30 Florian Weimer <fweimer@redhat.com>
8729
8730 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8731
8732 2018-10-30 Florian Weimer <fweimer@redhat.com>
8733
8734 * stdlib/tst-strtod-overflow.c (do_test): Switch to
8735 support_blob_repeat.
8736
8737 2018-10-30 Florian Weimer <fweimer@redhat.com>
8738
8739 Avoid spurious test failures in stdlib/test-bz22786.
8740 * support/Makefile (libsupport-routines): Add blob_repeat.
8741 (tests): Add tst-support_blob_repeat.
8742 * support/blob_repeat.h: New file.
8743 * support/blob_repeat.c: Likewise.
8744 * support/tst-support_blob_repeat.c: Likewise.
8745 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8746 support_blob_repeat_allocate.
8747
8748 2018-10-30 Andreas Schwab <schwab@suse.de>
8749
8750 [BZ #23125]
8751 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8752 Don't use tail call.
8753 * elf/tst-unwind-main.c: New file.
8754 * elf/Makefile (tests): Add tst-unwind-main.
8755 (CFLAGS-tst-unwind-main.c): Define.
8756
8757 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8758
8759 [BZ #23791]
8760 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8761 n_cs_precedes to 0.
8762 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8763
8764 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8765
8766 * conform/glibcconform.py: Do not import shutil.
8767 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8768 of mkdtemp.
8769
8770 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8771 critic_missing for versions before 3.4.
8772 * configure: Regenerated.
8773 * manual/install.texi (Tools for Compilation): Document
8774 requirement for Python to build glibc.
8775 * INSTALL: Regenerated.
8776 * Rules [PYTHON]: Make code unconditional.
8777 * benchtests/Makefile [PYTHON]: Likewise.
8778 * conform/Makefile [PYTHON]: Likewise.
8779 * manual/Makefile [PYTHON]: Likewise.
8780 * math/Makefile [PYTHON]: Likewise.
8781
8782 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8783
8784 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8785 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8786 answer to interrupt_operation, return EIEIO instead of EINTR.
8787 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8788 _hurd_intr_rpc_msg_about_to global point to start of controlled
8789 assembly snippet. Make it check canceled flag.
8790 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8791 the _hurd_intr_rpc_msg_about_to point.
8792 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8793 issue, remove cancel flag check.
8794
8795 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8796
8797 * scripts/build-many-glibcs.py: Remove compatibility for missing
8798 os.cpu_count and re.fullmatch.
8799
8800 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8801
8802 [BZ #23822]
8803 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8804 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8805 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8806
8807 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8808
8809 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8810 macro.
8811
8812 2018-10-25 Florian Weimer <fweimer@redhat.com>
8813
8814 [BZ #23562]
8815 [BZ #23821]
8816 XFAIL siginfo_t si_band conform test on sparc64.
8817 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8818 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8819 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8820 (conformtest-xfail-conds): Add sparc64-linux.
8821 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8822 sparc64.
8823 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8824
8825 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8826
8827 * elf/elf.h (NT_MIPS_DSP): New macro.
8828 (NT_MIPS_FP_MODE): Likewise.
8829
8830 2018-10-25 Zong Li <zong@andestech.com>
8831
8832 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8833 name by adding the file extension (.so).
8834
8835 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8836
8837 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8838 (test-xfail-ISO11/threads.h/linknamespace,
8839 test-xfail-ISO11/threads.h/conform): Add.
8840
8841 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8842
8843 * math/gen-libm-test.py: Import os.
8844 (ALL_FLOATS_MANUAL): New constant.
8845 (ALL_FLOATS_SUFFIX): Likewise.
8846 (Ulps.all_functions): New function.
8847 (real_all_ulps): Likewise.
8848 (generate_err_table_sub): Likewise.
8849 (generate_err_table): Likewise.
8850 (main): Handle -s and -m options.
8851 * manual/libm-err-tab.pl: Remove.
8852 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8853 instead of libm-err-tab.pl.
8854 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8855 != no].
8856 * manual/install.texi (Tools for Compilation): Document
8857 requirement for Python to build manual.
8858 * INSTALL: Regenerated.
8859
8860 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8861
8862 * bits/time64.h: New file.
8863 * include/time.h: Replace internal_time_t with __time64_t.
8864 * posix/bits/types (__time64_t): Add.
8865 * stdlib/Makefile: Add bits/time64.h to includes.
8866 * time/tzfile.c: Replace internal_time_t with __time64_t.
8867
8868 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8869
8870 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8871 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8872 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8873 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8874 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8875 prototype.
8876 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8877 * posix/spawn_faction_addclose.c
8878 (__posix_spawn_file_actions_addclose): Add hidden definition.
8879 * posix/spawn_faction_adddup2.c
8880 (__posix_spawn_file_actions_adddup2): Likewise.
8881 * posix/spawn_faction_destroy.c
8882 (__posix_spawn_file_actions_destroy): Likewise.
8883 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8884 Likewise.
8885 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8886 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8887 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8888 Likewise.
8889 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8890 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8891 Likewise.
8892
8893 2018-10-24 Andreas Schwab <schwab@suse.de>
8894
8895 [BZ #18093]
8896 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8897 format cache.
8898 * elf/cache.c (print_cache): Likewise.
8899
8900 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8901
8902 * bits/timesize.h: New file.
8903 * stdlib/Makefile (headers): Add bits/timesize.h.
8904 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8905 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8906 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8907 (__SEM_PAD_AFTER_TIME): Likewise.
8908 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8909 (__SHM_PAD_AFTER_TIME): Likewise.
8910 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8911 (__MSQ_PAD_BEFORE_TIME): Likewise.
8912 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8913 (__SEM_PAD_BEFORE_TIME): Likewise.
8914 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8915 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8916 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8917 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8918 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8919 (__MSQ_PAD_BEFORE_TIME): Likewise.
8920 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8921 (__SEM_PAD_BEFORE_TIME): Likewise.
8922 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8923 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8924 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8925 (__MSQ_PAD_BEFORE_TIME): Likewise.
8926 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8927 (__SEM_PAD_BEFORE_TIME): Likewise.
8928 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8929 (__SHM_PAD_BEFORE_TIME): Likewise.
8930 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8931 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8932 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8933
8934 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8935
8936 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8937 USE_RDTSCP is defined.
8938 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8939 USE_RDTSCP is defined.
8940
8941 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8942
8943 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8944 defined.
8945
8946 [BZ #23709]
8947 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8948 independently of other flags.
8949
8950 2018-10-23 Florian Weimer <fweimer@redhat.com>
8951
8952 * time/tst-mktime2.c (N_STRINGS): Remove.
8953 (set_timezone): New function.
8954 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8955 (mktime_test1): Report localtime failure and check errno value.
8956 Use TEST_COMPARE.
8957 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8958 (do_test): Remove alarm call. Use set_timezone and array_length.
8959
8960 2018-10-23 Andreas Schwab <schwab@suse.de>
8961
8962 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8963 (__start_context): Use END instead of PSEUDO_END.
8964
8965 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8966
8967 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8968 version to 4.19.
8969
8970 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8971 version to 4.19.
8972
8973 [BZ #23793]
8974 * wcsmbs/c32rtomb.c: New file.
8975 * wcsmbs/mbrtoc32.c: Likewise.
8976 * wcsmbs/tst-c32-state.c: Likewise.
8977 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8978 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8979 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8980 (tests): Add tst-c32-state.
8981 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8982 $(gen-locales).
8983
8984 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8985
8986 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8987 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8988
8989 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8990
8991 [BZ #23794]
8992 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8993 pair and return 0 in that case, and use saved character to
8994 interpret following character.
8995 * wcsmbs/tst-c16-surrogate.c: New file.
8996 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8997 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8998 Depend on $(gen-locales)
8999
9000 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9001
9002 [BZ #23562]
9003 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
9004 (struct siginfo_t): Use correct type for si_band.
9005
9006 2018-10-19 Florian Weimer <fweimer@redhat.com>
9007
9008 [BZ #23689]
9009 * resource/bits/types/struct_rusage.h (struct rusage): Update
9010 comment on struct. Remove extraneous field comment.
9011
9012 2018-10-18 David S. Miller <davem@davemloft.net>
9013
9014 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
9015 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
9016 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
9017 sysdep_routines in subdir elf.
9018 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
9019 version for __vdso_clock_gettime.
9020 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
9021 Define.
9022 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9023 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9024
9025 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
9026
9027 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
9028
9029 * sysdeps/i386/init-arch.h: Removed.
9030 * sysdeps/i386/i586/init-arch.h: Likewise.
9031 * sysdeps/i386/i686/init-arch.h: Likewise.
9032 * sysdeps/i386/i686/hp-timing.h: Likewise.
9033 * sysdeps/x86_64/hp-timing.h: Likewise.
9034 * sysdeps/i386/isa.h: New file.
9035 * sysdeps/i386/i586/isa.h: Likewise.
9036 * sysdeps/i386/i686/isa.h: Likewise.
9037 * sysdeps/x86_64/isa.h: Likewise.
9038 * sysdeps/x86/hp-timing.h: New file.
9039 * sysdeps/x86/init-arch.h: Include <isa.h>.
9040
9041 2018-10-17 Joseph Myers <joseph@codesourcery.com>
9042
9043 * math/libm-test-pow.inc (pow_test_data): Do not allow
9044 divide-by-zero exception for pow(+/- 0, -Inf).
9045
9046 2018-10-17 Zack Weinberg <zackw@panix.com>
9047
9048 * manual/job.texi (Job Control is Optional): Remove node, as
9049 job control has not been optional in quite some time.
9050 (Job Control): Mention briefly that systems older than
9051 POSIX.1-2001 might not support job control.
9052 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
9053 defined on systems conforming to POSIX.1-2001.
9054
9055 2018-10-17 Arjun Shankar <arjun@redhat.com>
9056
9057 [BZ #22062]
9058 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
9059 indentation.
9060 * (__gconv_read_conf): Mark function static.
9061 * (once): New static variable.
9062 * (__gconv_load_conf): New function.
9063 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
9064 * iconv/gconv_db.c (once): Remove static variable.
9065 * (__gconv_compare_alias): Use __gconv_load_conf instead of
9066 __gconv_read_conf.
9067 * (__gconv_find_transform): Likewise.
9068 * iconv/tst-iconv-mt.c: New test.
9069 * iconv/Makefile: Add tst-iconv_mt.
9070
9071 2018-10-17 Joseph Myers <joseph@codesourcery.com>
9072
9073 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9074 bits/shm-pad.h.
9075 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
9076 (shmatt_t): Define as __syscall_ulong_t.
9077 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
9078 and [__SHM_PAD_AFTER_TIME].
9079 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
9080 Define shm_segsz and associated padding based on
9081 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
9082 Use __syscall_ulong_t instead of unsigned long int.
9083 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
9084 unsigned long int.
9085 [__USE_MISC] (struct shm_info): Likewise.
9086 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
9087 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
9088 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
9089 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
9090 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
9091 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
9092 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
9093 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9094 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9095 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9096 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
9097
9098 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9099 bits/shmlba.h.
9100 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
9101 (SHMLBA): Remove macro.
9102 (__getpagesize): Remove function declaration.
9103 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
9104 <bits/shmlba.h>.
9105 (SHMLBA): Remove macro.
9106 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
9107 <bits/shmlba.h>.
9108 (SHMLBA): Remove macro.
9109 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
9110 <bits/shmlba.h>.
9111 (SHMLBA): Remove macro.
9112 (__getpagesize): Remove function declaration.
9113 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
9114 <bits/shmlba.h>.
9115 (SHMLBA): Remove macro.
9116 (__getshmlba): Remove function declaration.
9117 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
9118 (SHMLBA): Remove macro.
9119 (__getpagesize): Remove function declaration.
9120 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
9121 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
9122 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
9123 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
9124 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
9125 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
9126 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
9127 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
9128 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
9129 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
9130
9131 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
9132
9133 [BZ #23275]
9134 * nptl/tst-mutex10.c: New File.
9135 * nptl/Makefile (tests): Add tst-mutex10.
9136 (tst-mutex10-ENV): New variable.
9137 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
9138 Ensure that elision path is used if elision is available.
9139 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
9140 Likewise.
9141 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
9142 Likewise.
9143 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
9144 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
9145 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
9146 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
9147 Likewise.
9148 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
9149 (__pthread_mutex_cond_lock_adjust): Likewise.
9150 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
9151 Likewise.
9152 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
9153 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
9154 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
9155 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
9156 Add comments.
9157 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9158 Use atomic_load_relaxed and atomic_store_relaxed.
9159 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
9160 Use atomic_store_relaxed.
9161
9162 2018-10-17 Andreas Schwab <schwab@suse.de>
9163
9164 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
9165 * crypt/badsalttest.c (TIMEOUT): Likewise.
9166 * crypt/sha256c-test.c (TIMEOUT): Likewise.
9167 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
9168 * io/test-lfs.c (TIMEOUT): Likewise.
9169 * libio/tst-atime.c (TIMEOUT): Likewise.
9170 * localedata/tst-leaks.c (TIMEOUT): Likewise.
9171 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
9172 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
9173 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
9174 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
9175 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
9176 * nptl/tst-cond11.c (TIMEOUT): Likewise.
9177 * nptl/tst-cond14.c (TIMEOUT): Likewise.
9178 * nptl/tst-cond15.c (TIMEOUT): Likewise.
9179 * nptl/tst-cond24.c (TIMEOUT): Likewise.
9180 * nptl/tst-cond25.c (TIMEOUT): Likewise.
9181 * nptl/tst-kill2.c (TIMEOUT): Likewise.
9182 * nptl/tst-kill3.c (TIMEOUT): Likewise.
9183 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
9184 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
9185 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
9186 * nptl/tst-once2.c (TIMEOUT): Likewise.
9187 * nptl/tst-once3.c (TIMEOUT): Likewise.
9188 * nptl/tst-once4.c (TIMEOUT): Likewise.
9189 * nptl/tst-robust8.c (TIMEOUT): Likewise.
9190 * nptl/tst-robust9.c (TIMEOUT): Likewise.
9191 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
9192 * nptl/tst-sem14.c (TIMEOUT): Likewise.
9193 * nptl/tst-sem6.c (TIMEOUT): Likewise.
9194 * nptl/tst-signal3.c (TIMEOUT): Likewise.
9195 * nptl/tst-spin4.c (TIMEOUT): Likewise.
9196 * nptl/tst-tls3.c (TIMEOUT): Likewise.
9197 * nptl/tst-tls4.c (TIMEOUT): Likewise.
9198 * posix/tst-chmod.c (TIMEOUT): Likewise.
9199 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
9200 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
9201 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
9202 * posix/tst-regex2.c (TIMEOUT): Likewise.
9203 * posix/tst-waitid.c (TIMEOUT): Likewise.
9204 * rt/tst-aio.c (TIMEOUT): Likewise.
9205 * rt/tst-aio10.c (TIMEOUT): Likewise.
9206 * rt/tst-aio4.c (TIMEOUT): Likewise.
9207 * rt/tst-aio5.c (TIMEOUT): Likewise.
9208 * rt/tst-aio6.c (TIMEOUT): Likewise.
9209 * rt/tst-aio64.c (TIMEOUT): Likewise.
9210 * rt/tst-aio7.c (TIMEOUT): Likewise.
9211 * rt/tst-aio9.c (TIMEOUT): Likewise.
9212 * rt/tst-clock.c (TIMEOUT): Likewise.
9213 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
9214 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
9215 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
9216 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
9217 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
9218 * rt/tst-timer4.c (TIMEOUT): Likewise.
9219 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
9220 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
9221 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
9222 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
9223 * time/tst-ftime.c (TIMEOUT): Likewise.
9224 * timezone/tst-tzset.c (TIMEOUT): Likewise.
9225
9226 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
9227
9228 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
9229 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
9230 for thunderX2.
9231
9232 2018-10-15 Joseph Myers <joseph@codesourcery.com>
9233
9234 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9235 bits/sem-pad.h.
9236 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
9237 instead of <bits/wordsize.h>.
9238 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
9239 and [__SEM_PAD_AFTER_TIME].
9240 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
9241 __syscall_ulong_t instead of unsigned long int.
9242 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
9243 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
9244 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
9245 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
9246 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
9247 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
9248 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
9249 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
9250 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9251 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9252 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9253
9254 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
9255
9256 regex: simplify by using intprops.h
9257 [BZ#23744]
9258 * posix/regex_internal.h [_LIBC]: Include intprops.h.
9259 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
9260 intprops.h defines them.
9261
9262 regex: __builtin_expect → __glibc_unlikely
9263 [BZ#23744]
9264 This refactoring was prompted by a problem when the regex code is
9265 used as part of Gnulib and when the builder’s compiler does not grok
9266 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
9267 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
9268 Although this refactoring does not fix the problem directly,
9269 we might as well have Gawk use the now-preferred glibc style for when
9270 __builtin_expect is unavailable.
9271 * posix/regex_internal.h (BE): Remove.
9272 All uses replaced by __glibc_unlikely or __glibc_likely.
9273
9274 2018-10-11 Joseph Myers <joseph@codesourcery.com>
9275
9276 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9277 bits/msq-pad.h.
9278 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
9279 instead of <bits/wordsize.h>.
9280 (msgqnum_t): Define as __syscall_ulong_t.
9281 (msglen_t): Likewise.
9282 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
9283 and [__MSQ_PAD_AFTER_TIME].
9284 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
9285 __syscall_ulong_t instead of unsigned long int.
9286 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
9287 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
9288 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
9289 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
9290 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
9291 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
9292 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
9293 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
9294 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9295 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9296 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
9297
9298 2018-10-10 Joseph Myers <joseph@codesourcery.com>
9299
9300 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
9301 (struct shmid_ds): Condition padding after time fields on
9302 [__WORDSIZE == 32].
9303 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
9304 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
9305 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9306
9307 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
9308 (struct semid_ds): Condition padding after time fields on
9309 [__WORDSIZE == 32].
9310 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
9311 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
9312 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
9313 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9314
9315 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
9316 (struct msqid_ds): Condition padding after time fields on
9317 [__WORDSIZE == 32].
9318 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
9319 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
9320 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
9321 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9322
9323 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
9324
9325 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
9326
9327 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
9328
9329 * libio/tst-readline.c (TIMEOUT): Define.
9330
9331 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
9332
9333 mktime fix for Gnulib + coreutils
9334 [BZ#23745]
9335 This fix affects only Gnulib. Problem discovered when
9336 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
9337 * time/mktime.c:
9338 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
9339 Do not define since it is not used. Defining an unused static
9340 function prompts a warning from GCC when Coreutils is configured
9341 with --enable-gcc-warnings.
9342
9343 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9344
9345 * benchtests/scripts/compare_bench.py (main): set float type on
9346 threshold argument.
9347
9348 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
9349
9350 [BZ #23740]
9351 * localedata/locales/kl_GL (mon): Update, the relative case.
9352 (alt_mon): Add, fill with month names in the nominative case.
9353 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
9354 (d_fmt): Set to "%b %d %Y".
9355
9356 2018-10-04 Joseph Myers <joseph@codesourcery.com>
9357
9358 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
9359 <bits/mman-linux.h>.
9360 (PROT_READ): Don't define here.
9361 (PROT_WRITE): Likewise.
9362 (PROT_EXEC): Likewise.
9363 (PROT_NONE): Likewise.
9364 (PROT_GROWSDOWN): Likewise.
9365 (PROT_GROWSUP): Likewise.
9366 (MAP_SHARED): Likewise.
9367 (MAP_PRIVATE): Likewise.
9368 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
9369 [__USE_MISC] (MAP_FILE): Likewise.
9370 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
9371 [__USE_MISC] (MAP_ANON): Likewise.
9372 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
9373 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
9374 (MCL_CURRENT): Likewise.
9375 (MCL_FUTURE): Likewise.
9376 (MCL_ONFAULT): Likewise.
9377 [__USE_MISC] (MADV_NORMAL): Likewise.
9378 [__USE_MISC] (MADV_RANDOM): Likewise.
9379 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
9380 [__USE_MISC] (MADV_WILLNEED): Likewise.
9381 [__USE_MISC] (MADV_DONTNEED): Likewise.
9382 [__USE_MISC] (MADV_FREE): Likewise.
9383 [__USE_MISC] (MADV_REMOVE): Likewise.
9384 [__USE_MISC] (MADV_DONTFORK): Likewise.
9385 [__USE_MISC] (MADV_DOFORK): Likewise.
9386 [__USE_MISC] (MADV_HWPOISON): Likewise.
9387 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
9388 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
9389 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
9390 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
9391 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
9392 (__MAP_ANONYMOUS): New macro.
9393 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
9394 <bits/mman-linux.h> inclusion.
9395 (MAP_FIXED): Likewise.
9396 (MS_SYNC): Likewise.
9397 (MS_ASYNC): Likewise.
9398 (MS_INVALIDATE): Likewise.
9399 [__USE_MISC] (MADV_MERGEABLE): Likewise.
9400 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
9401 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
9402 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
9403 [__USE_MISC] (MADV_DONTDUMP): Likewise.
9404 [__USE_MISC] (MADV_DODUMP): Likewise.
9405 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
9406 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
9407
9408 [BZ #23735]
9409 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
9410 Define.
9411 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
9412 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
9413 Add test-nldbl-redirect.
9414 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
9415 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
9416 $(objpfx)libnldbl_nonshared.a.
9417
9418 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
9419
9420 * support/support.h (support_objdir_elf_ldso): New variable.
9421 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
9422 * support/Makefile (CFLAGS-support_paths.c): Add definition
9423 for OBJDIR_ELF_LDSO_PATH.
9424 * support/test-container.c (main): Search for the ld.so
9425 which is also used by the testsuite.
9426
9427 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
9428
9429 [BZ #20209]
9430 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
9431 should be "sap" rather than "sab".
9432 (day): Fix spelling of Sunday, should be "sapaat" rather than
9433 "sabaat".
9434
9435 2018-10-02 Joseph Myers <joseph@codesourcery.com>
9436
9437 * math/libm-test-fma.inc (fma_test_data): Add more tests.
9438
9439 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
9440
9441 [BZ #19444]
9442 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
9443 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
9444 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
9445
9446 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9447
9448 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
9449
9450 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
9451
9452 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
9453 Add -mrtm.
9454 (CFLAGS-elision-unlock.c): Likewise.
9455 (CFLAGS-elision-timed.c): Likewise.
9456 (CFLAGS-elision-trylock.c): Likewise.
9457 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
9458
9459 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9460
9461 [BZ #21037]
9462 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
9463 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
9464 new fd_to_filename interface.
9465 * libio/freopen64.c (freopen64): Likewise.
9466 * libio/tst-memstream.h: New file.
9467 * libio/tst-memstream4.c: Likewise.
9468 * libio/tst-wmemstream4.c: Likewise.
9469 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
9470 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9471 and remove internal dynamic allocation.
9472
9473 2018-10-01 Joseph Myers <joseph@codesourcery.com>
9474
9475 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9476 (MREMAP_MAYMOVE): Do not define here.
9477 [__USE_GNU] (MREMAP_FIXED): Likewise.
9478 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9479 (MREMAP_MAYMOVE): Define here instead.
9480 [__USE_GNU] (MREMAP_FIXED): Likewise.
9481 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9482 (MREMAP_MAYMOVE): Remove.
9483 [__USE_GNU] (MREMAP_FIXED): Likewise.
9484
9485 2018-09-28 Joseph Myers <joseph@codesourcery.com>
9486
9487 * math/fromfp.h: Do not include <math_private.h>.
9488 * math/s_cacosh_template.c: Likewise.
9489 * math/s_casin_template.c: Likewise.
9490 * math/s_casinh_template.c: Likewise.
9491 * math/s_ccos_template.c: Likewise.
9492 * math/s_cproj_template.c: Likewise.
9493 * math/s_fdim_template.c: Likewise.
9494 * math/s_fmaxmag_template.c: Likewise.
9495 * math/s_fminmag_template.c: Likewise.
9496 * math/s_iseqsig_template.c: Likewise.
9497 * math/s_ldexp_template.c: Likewise.
9498 * math/s_nextdown_template.c: Likewise.
9499 * math/w_log1p_template.c: Likewise.
9500 * math/w_scalbln_template.c: Likewise.
9501 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9502 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9503 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9504 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9505 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9506 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9507 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9508 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9509 * sysdeps/i386/fpu/s_atanl.c: Likewise.
9510 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9511 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9512 * sysdeps/i386/fpu/s_fdim.c: Likewise.
9513 * sysdeps/i386/fpu/s_logbl.c: Likewise.
9514 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9515 * sysdeps/i386/fpu/s_significandl.c: Likewise.
9516 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9517 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9518 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9519 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9520 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9521 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9522 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9523 * sysdeps/ieee754/k_standardf.c: Likewise.
9524 * sysdeps/ieee754/k_standardl.c: Likewise.
9525 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9526 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9527 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9528 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9529 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9530 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9531 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9532 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9533 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9534 * sysdeps/ieee754/s_signgam.c: Likewise.
9535 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9536 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9537 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9538 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9539 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9540 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9541 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9542 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9543 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9544 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9545 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9546 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9547 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9548 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9549 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9550 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9551 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9552 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9553 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9554 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9555 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9556 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9557 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9558 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9559 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9560 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9561 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9562 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9563 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9564 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9565 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9566 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9567 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9568 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9569 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9570 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9571 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9572 <math_private.h>.
9573 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9574
9575 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
9576
9577 [BZ #23716]
9578 * sysdeps/i386/dl-cet.c: Removed.
9579 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9580 prototype.
9581 (_dl_runtime_profile_shstk): Likewise.
9582 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9583 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9584
9585 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9586
9587 [BZ #23579]
9588 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9589 do_test_with_invalid_iov): New tests.
9590 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9591 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9592 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9593 errno is ENOSYS.
9594 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9595 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9596 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9597
9598 2018-09-27 Joseph Myers <joseph@codesourcery.com>
9599
9600 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9601 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9602 (MATH_REDIRECT_BINARY_ARGS): New macro.
9603 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9604 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9605 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9606 header inclusion.
9607 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9608 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9609 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9610 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9611 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9612 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9613 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9615 Likewise.
9616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9617 Likewise.
9618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9620 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9621 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9623 Likewise.
9624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9625 Likewise.
9626 * sysdeps/generic/math_private_calls.h
9627 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9628 Do not declare and define as an inline function.
9629 * math/divtc3.c (__divtc3): Use copysign functions instead of
9630 __copysign variants.
9631 * math/multc3.c (__multc3): Likewise.
9632 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9633 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9634 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9635 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9636 Likewise.
9637 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9638 (__ieee754_yn): Likewise.
9639 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9640 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9641 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9642 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9643 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9644 (__sin): Likewise.
9645 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9646 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9647 Likewise.
9648 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9649 Likewise.
9650 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9651 Likewise.
9652 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9653 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9654 Likewise.
9655 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9656 (__ieee754_ynf): Likewise.
9657 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9658 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9659 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9660 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9661 Likewise.
9662 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9663 (__ieee754_ynl): Likewise.
9664 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9665 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9666 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9667 Likewise.
9668 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9669 (__ieee754_ynl): Likewise.
9670 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9671 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9672 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9673 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9674 Likewise.
9675 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9676 (__ieee754_ynl)
9677 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9678 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9679 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9680 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9681 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9682
9683 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9684 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9685 using MATH_REDIRECT.
9686 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9687 header inclusion.
9688 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9689 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9690 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9691 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9692 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9693 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9694 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9695 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9697 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9699 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9700 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9701 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9702 (round): Redirect to __round.
9703 (__roundl): Call round instead of __round.
9704 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9705 Remove macro.
9706 [_ARCH_PWR5X] (__roundf): Likewise.
9707 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9708 functions instead of __round variants.
9709 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9710 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9711 Likewise.
9712 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9713 Likewise.
9714 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9715 Likewise.
9716 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9717 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9718 __lroundl.
9719 (__ieee754_expl): Call roundl instead of __roundl.
9720
9721 2018-09-27 Andreas Schwab <schwab@suse.de>
9722
9723 [BZ #23717]
9724 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9725 (do_test): Make st1 static.
9726
9727 2018-09-26 Andreas Schwab <schwab@suse.de>
9728
9729 [BZ #23707]
9730 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9731 * elf/Makefile (tests): Add tst-unwind-ctor.
9732 (modules-names): Add tst-unwind-ctor-lib.
9733 ($(objpfx)tst-unwind-ctor): Depend on
9734 $(objpfx)tst-unwind-ctor-lib.so.
9735
9736 2018-09-26 Joseph Myers <joseph@codesourcery.com>
9737
9738 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9739 file. Most contents moved from ....
9740 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
9741 and include <bits/mman-map-flags-generic.h>.
9742 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9743 (sysdep_headers): Add bits/mman-map-flags-generic.h.
9744 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9745 <bits/mman-map-flags-generic.h>.
9746 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9747 macros defined in <bits/mman-map-flags-generic.h>.
9748 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9749 <bits/mman-map-flags-generic.h>.
9750 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9751 defined in <bits/mman-map-flags-generic.h>.
9752
9753 2018-09-26 Andreas Schwab <schwab@suse.de>
9754
9755 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9756 output.
9757
9758 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9759 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9760 Fangrui Song <maskray@google.com>
9761
9762 [BZ #20480]
9763 * config.make.in (have-textrel_ifunc): New define.
9764 * configure.ac: Add check if linker supports textrel relocation with
9765 ifunc.
9766 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9767 tst-ifunc-textrel.
9768 (CFLAGS-tst-ifunc-textrel.c): New rule.
9769 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9770 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9771 * elf/tst-ifunc-textrel.c: New file.
9772
9773 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9774
9775 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9776 <bits/procfs-prregset.h>.
9777 (prgregset_t): Define using __prgregset_t.
9778 (prfpregset_t): Define using __prfpregset_t.
9779 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9780 (sysdep_headers): Add bits/procfs-prregset.h.
9781 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9782 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9783 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9784 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9785
9786 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9787 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9788 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9789 pr_uid and pr_gid.
9790 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9791 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9792 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9793 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9794 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9795 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9796 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9797 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9798 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9799 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9800 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9801 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9802 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9803 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9804 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9805 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9806 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9807 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9808 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9809 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9810 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9811 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9812 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9813 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9814
9815 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9816 AArch64 version. Include <bits/procfs.h>.
9817 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9818 (sysdep_headers): Add bits/procfs.h.
9819 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9820 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9821 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9822 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9823 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9824 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9825 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9826 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9827 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9828 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9829 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9830 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9831 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9832 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9833 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9834 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9835 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9836
9837 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9838
9839 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9840 Use libsupport.
9841
9842 2018-09-25 Arjun Shankar <arjun@redhat.com>
9843
9844 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9845 (__gconv_max_path_elem_len): Likewise.
9846 (__gconv_nmodules): Likewise.
9847 (__gconv_get_path): Likewise.
9848 (path_elem): Move to ...
9849 * iconv/gconv_conf.c: ... here.
9850 (__gconv_get_path): Mark function static.
9851 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9852 * iconv/gconv_open.c: ... here.
9853
9854 2018-09-24 Andreas Schwab <schwab@suse.de>
9855
9856 * scripts/haveversions.awk: New file.
9857 * Makerules ($(common-objpfx)Versions.def)
9858 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9859 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9860 Move rules ...
9861 * Makeconfig ($(common-objpfx)Versions.def)
9862 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9863 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9864 ... here.
9865 ($(common-objpfx)Versions.mk): New rule. Include it.
9866 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9867 Emit error if build-obsolete-nsl = yes.
9868 * manual/install.texi (Configuring and compiling): Describe
9869 --enable-obsolete-nsl as unavaiable after version 2.28.
9870 * INSTALL: Regenerate.
9871
9872 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9873
9874 * NEWS: Add note about new TLE support on powerpc64le.
9875 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9876 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9877 __ununsed1.
9878 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9879 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9880 * sysdeps/powerpc/powerpc32/sysdep.h,
9881 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9882 ABORT_TRANSACTION): Remove macros.
9883 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9884 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9885 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9887 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9888 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9889 usage.
9890 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9891
9892 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9893
9894 [BZ #10425]
9895 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9896 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9897 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9898 which is the same as in it_IT.
9899 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9900 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9901
9902 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9903
9904 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9905 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9906 using MATH_REDIRECT.
9907 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9908 header inclusion.
9909 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9910 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9911 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9912 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9913 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9914 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9919 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9920 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9921 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9922 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9923 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9924 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9925 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9926 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9927 (ceil): Redirect to __ceil.
9928 (floor): Redirect to __floor.
9929 (trunc): Redirect to __trunc.
9930 (__truncl): Call trunc instead of __trunc.
9931 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9932 Remove macro.
9933 [_ARCH_PWR5X] (__truncf): Likewise.
9934 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9935 trunc functions instead of __trunc variants.
9936 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9937 Likewise.
9938 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9939 Likewise.
9940 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9941 Likewise.
9942 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9943 Likewise.
9944
9945 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9946 [__i586__ || __pentium__].
9947 [__i486__]: Handle explicitly.
9948 (HAS_CPUID): Define to 1 if above macros are undefined.
9949 (HAS_I586): Likewise.
9950 (HAS_I686): Likewise.
9951
9952 2018-09-20 Florian Weimer <fweimer@redhat.com>
9953
9954 * misc/tst-gethostid.c: New file.
9955 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9956 (tst-gethostid): Link with -ldl.
9957
9958 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9959
9960 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9961 value from gethostbyname_r.
9962
9963 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9964
9965 * stdlib/tst-setcontext9.c (f1): Rename to...
9966 (f1a): ... this.
9967 (f1b): New function implementing lower half of f1 in alternate stack.
9968
9969 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9970
9971 Fix mktime localtime offset confusion
9972 [BZ #23603]
9973 * include/time.h (__mktime_internal): The localtime offset is now
9974 of type long int instead of time_t. This is the longstanding type
9975 in glibc, and it is more than enough to represent difference
9976 between localtime and gmtime even if it is 32 bits and time_t is
9977 64. Changing it now will let us avoid an unnecessary change when
9978 time_t is widened to 64 bits on 32-bit platforms.
9979 * time/mktime-internal.h (mktime_offset_t): Now long int.
9980
9981 Merge mktime, timegm from upstream Gnulib
9982 [BZ #23603][BZ #16346]
9983 This fixes some obscure problems with integer overflow.
9984 Although it looks scary, it is almost all a byte-for-byte copy
9985 from Gnulib, and the Gnulib code has been tested reasonably well.
9986 * include/intprops.h: New file, copied from Gnulib.
9987 * include/verify.h, time/mktime-internal.h:
9988 New tiny files, simplified from Gnulib.
9989 * time/mktime.c: Copy from Gnulib. This has the following changes:
9990 Do not include config.h if DEBUG_MKTIME is nonzero.
9991 Include stdbool.h, intprops.h, verify.h.
9992 Include string.h only if needed.
9993 Include stdlib.h on MS-Windows.
9994 Include mktime-internal.h.
9995 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9996 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9997 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9998 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9999 simplify later conditionals; default the others to zero. Use
10000 these conditionals to express only the code needed on the current
10001 platform. In uses of these conditionals, explicitly spell out how
10002 _LIBC affects things, so it’s easier to review from a glibc
10003 viewpoint.
10004 (WRAPV): Remove; no longer needed now that we have
10005 systematic overflow checking.
10006 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
10007 compartmentalize tzset issues. Move system-dependent tzsettish
10008 code here from mktime.
10009 (verify): Remove; now done by verify.h. All uses changed.
10010 (long_int): Use a more-conservative definition, to avoid
10011 integer overflow.
10012 (SHR): Remove, replacing with ...
10013 (shr): New function, which means we needn’t worry about side
10014 effects in args, and conversion analysis is simpler.
10015 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
10016 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
10017 (time_t_avg, time_t_add_ok): Remove.
10018 (mktime_min, mktime_max): New constants.
10019 (leapyear, isdst_differ): Use bool for booleans.
10020 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
10021 Use long_int, not time_t, for mktime differences.
10022 (long_int_avg): New function, replacing time_t_avg.
10023 INT_ADD_WRAPV replaces time_t_add_ok.
10024 (guess_time_tm): 6th arg is now long_int, not time_t const *.
10025 All uses changed.
10026 (convert_time): New function.
10027 (ranged_convert): Use it.
10028 (__mktime_internal): Last arg now points to mktime_offset_t, not
10029 time_t. All uses changed. This is a no-op on glibc, where
10030 mktime_offset_t is always time_t. Use int, not time_t, for UTC
10031 offset guess. Directly check for integer overflow instead of
10032 using a heuristic that works only 99.9...% of the time.
10033 Access *OFFSET only once, to avoid an unlikely race if the
10034 compiler delays a load and if this cascades into a signed integer
10035 overflow.
10036 (mktime): Move tzsettish code to my_tzset, and move
10037 localtime_offset to within mktime so that it doesn’t
10038 need a separate ifdef.
10039 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
10040 instead of localtime.
10041 * time/timegm.c: Copy from Gnulib. This has the following changes:
10042 Include mktime-internal.h.
10043 [!_LIBC]: Include config.h and time.h. Do not include
10044 timegm.h or time_r.h. Make __mktime_internal a macro,
10045 and include mktime-internal.h to get its declaration.
10046 (timegm): Temporary is now mktime_offset_t, not time_t.
10047 This affects only Gnulib.
10048
10049 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
10050
10051 [BZ #23637]
10052 * string/test-strstr.c (pr23637): New function.
10053 (test_main): Add tests with longer needles.
10054 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
10055 * string/strstr.c (AVAILABLE): Likewise.
10056
10057 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
10058
10059 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
10060
10061 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
10062
10063 * NEWS: Mention pow improvements.
10064 * math/Makefile (type-double-routines): Add e_pow_log_data.
10065 * sysdeps/generic/math_private.h (__exp1): Remove.
10066 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
10067 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
10068 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
10069 contraction.
10070 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
10071 (exp_inline): Remove.
10072 (__ieee754_exp): Only single double input is handled.
10073 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
10074 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
10075 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
10076 (__pow_log_data): Define.
10077 * sysdeps/ieee754/dbl-64/upow.h: Remove.
10078 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
10079 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
10080 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
10081 contraction.
10082 (CFLAGS-e_pow-fma4.c): Likewise.
10083
10084 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
10085
10086 Simplify tzfile fstat failure code
10087 [BZ #21716]
10088 * time/tzfile.c (__tzfile_read): Simplify slightly.
10089
10090 Fix tzfile low-memory assertion failure
10091 [BZ #21716]
10092 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
10093 when registering time zone abbreviations.
10094
10095 2018-09-18 Joseph Myers <joseph@codesourcery.com>
10096
10097 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
10098 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
10099 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10100 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
10101 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
10102 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
10103 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
10104 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10105 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10106
10107 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
10108 __ceil.
10109 (__ceill): Call ceil instead of __ceil.
10110 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
10111 __floor.
10112 (__floorl): Call floor instead of __floor.
10113
10114 2018-09-17 Joseph Myers <joseph@codesourcery.com>
10115
10116 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10117 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
10118 using MATH_REDIRECT.
10119 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
10120 header inclusion.
10121 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
10122 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10123 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10124 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
10125 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10126 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10127 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10128 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
10129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
10130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
10131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
10132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
10133 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10134 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10135 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
10136 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
10137 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10138 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10139 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
10140 Remove macro.
10141 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
10142 functions instead of __ceil variants.
10143 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10144 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
10145 Likewise.
10146 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
10147 Likewise.
10148 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
10149 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
10150 Likewise.
10151 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10152 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10153
10154 [BZ #21286]
10155 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
10156 constant.
10157 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
10158 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
10159 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
10160 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
10161 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
10162 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
10163 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
10164 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
10165 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
10166 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
10167 (ILL_BADIADDR): Remove constant.
10168 (TRAP_BRANCH): Likewise.
10169 (TRAP_HWBKPT): Likewise.
10170
10171 2018-09-14 Joseph Myers <joseph@codesourcery.com>
10172
10173 [BZ #23656]
10174 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
10175 Remove [_MIPS_SIM = _ABIN32] conditional case.
10176 (struct elf_prpsinfo): Likewise.
10177
10178 [BZ #23649]
10179 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
10180 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
10181 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
10182 Likewise.
10183 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
10184 elf_prpsinfo): Likewise.
10185 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
10186 elf_prpsinfo): Likewise.
10187 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
10188 Likewise.
10189
10190 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10191 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
10192 using MATH_REDIRECT.
10193 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
10194 header inclusion.
10195 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
10196 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10197 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10198 * sysdeps/i386/fpu/s_rintl.c: Likewise.
10199 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10200 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10201 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
10202 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10203 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10204 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10205 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
10206 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
10207 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
10208 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
10209 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
10210 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10211 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10212 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
10213 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
10214 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
10215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
10216 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
10217 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
10218 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10219 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10220 * sysdeps/x86_64/fpu/math_private.h: Remove file.
10221 * math/e_scalb.c (invalid_fn): Use rint functions instead of
10222 __rint variants.
10223 * math/e_scalbf.c (invalid_fn): Likewise.
10224 * math/e_scalbl.c (invalid_fn): Likewise.
10225 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10226 Likewise.
10227 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10228 Likewise.
10229 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
10230 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
10231 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10232 Likewise.
10233 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10234 Likewise.
10235 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10236 Likewise.
10237 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
10238 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
10239
10240 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10241 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
10242 New macro.
10243 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10244 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
10245 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10246 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
10247 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10248 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
10249 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10250 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
10251 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10252 && !NO_MATH_REDIRECT] (floor): Likewise.
10253 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
10254 header inclusion.
10255 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
10256 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10257 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10258 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
10259 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10260 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10261 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10262 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
10263 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
10264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
10265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
10266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
10267 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10268 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10269 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
10270 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
10271 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10272 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10273 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
10274 Remove macro.
10275 [_ARCH_PWR5X] (__floorf): Likewise.
10276 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
10277 inline function.
10278 [__SSE4_1__] (__floorf): Likewise.
10279 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
10280 instead of __floor variants.
10281 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
10282 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
10283 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
10284 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
10285 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
10286 * math/w_tgamma_compat.c (__tgamma): Likewise.
10287 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
10288 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
10289 * math/w_tgammal_compat.c (__tgammal): Likewise.
10290 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
10291 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10292 Likewise.
10293 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10294 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
10295 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10296 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10297 Likewise.
10298 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10299 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
10300 Likewise.
10301 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10302 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
10303 Likewise.
10304 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10305 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
10306 Likewise.
10307 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
10308 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
10309 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10310 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
10311 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10312 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10313
10314 2018-09-12 Joseph Myers <joseph@codesourcery.com>
10315
10316 * elf/Makefile (modules-names-tests): New variable.
10317
10318 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
10319
10320 * NEWS: Mention log2 improvements.
10321 * math/Makefile (type-double-routines): Add e_log2_data.
10322 * sysdeps/i386/fpu/e_log2_data.c: New file.
10323 * sysdeps/ia64/fpu/e_log2_data.c: New file.
10324 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
10325 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
10326 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
10327 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
10328 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
10329
10330 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
10331
10332 * NEWS: Mention log improvement.
10333 * math/Makefile (type-double-routines): Add e_log_data.
10334 * sysdeps/i386/fpu/e_log_data.c: New file.
10335 * sysdeps/ia64/fpu/e_log_data.c: New file.
10336 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
10337 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
10338 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
10339 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
10340 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
10341 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
10342
10343 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
10344 Xuepeng Guo <xuepeng.guo@intel.com>
10345
10346 [BZ #23606]
10347 * sysdeps/i386/start.S: Include <sysdep.h>
10348 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
10349 enabled. Add cfi_undefined (eip).
10350
10351 2018-09-11 Joseph Myers <joseph@codesourcery.com>
10352
10353 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
10354 (MOVQ): Likewise.
10355 (EXTRACT_WORDS64): Likewise.
10356 (INSERT_WORDS64): Likewise.
10357 (GET_FLOAT_WORD): Likewise.
10358 (SET_FLOAT_WORD): Likewise.
10359
10360 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
10361 argument.
10362 (Config.build_gcc): Use --disable-libsanitizer for first GCC
10363 build, but not for second build if --full-gcc. Use
10364 --enable-languages=all for second build if --full-gcc.
10365 (get_parser): Add --full-gcc option.
10366 (main): Update call to Context.
10367
10368 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
10369
10370 [BZ #10797]
10371 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
10372 Single Quotation Mark).
10373 (thousands_sep): Likewise.
10374 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
10375 * localedata/locales/it_IT (thousands_sep): Use ".".
10376 (grouping): Use "3;3".
10377
10378 2018-09-10 Joseph Myers <joseph@codesourcery.com>
10379
10380 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10381 x86_64 and i686 configs using --enable-obsolete-rpc
10382 --enable-obsolete-nsl.
10383
10384 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
10385
10386 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10387
10388 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
10389
10390 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
10391 Increment size of new_argv by one.
10392
10393 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
10394
10395 [BZ #17426]
10396 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
10397 * localedata/locales/ar_IN (d_fmt): Likewise.
10398 * localedata/locales/bhb_IN (d_fmt): Likewise.
10399 * localedata/locales/bho_IN (d_fmt): Likewise.
10400 * localedata/locales/bn_BD (d_fmt): Likewise.
10401 * localedata/locales/bn_IN (d_fmt): Likewise.
10402 * localedata/locales/doi_IN (d_fmt): Likewise.
10403 * localedata/locales/gu_IN (d_fmt): Likewise.
10404 * localedata/locales/hi_IN (d_fmt): Likewise.
10405 * localedata/locales/hne_IN (d_fmt): Likewise.
10406 * localedata/locales/kn_IN (d_fmt): Likewise.
10407 * localedata/locales/mag_IN (d_fmt): Likewise.
10408 * localedata/locales/mai_IN (d_fmt): Likewise.
10409 * localedata/locales/mjw_IN (d_fmt): Likewise.
10410 * localedata/locales/ml_IN (d_fmt): Likewise.
10411 * localedata/locales/mni_IN (d_fmt): Likewise.
10412 * localedata/locales/mr_IN (d_fmt): Likewise.
10413 * localedata/locales/pa_IN (d_fmt): Likewise.
10414 * localedata/locales/raj_IN (d_fmt): Likewise.
10415 * localedata/locales/sat_IN (d_fmt): Likewise.
10416 * localedata/locales/sd_IN (d_fmt): Likewise.
10417 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
10418 * localedata/locales/ta_IN (d_fmt): Likewise.
10419 * localedata/locales/ta_LK (d_fmt): Likewise.
10420 * localedata/locales/tcy_IN (d_fmt): Likewise.
10421 * localedata/locales/ur_IN (d_fmt): Likewise.
10422
10423 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
10424 * localedata/locales/ks_IN (d_fmt): Likewise.
10425 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
10426
10427 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
10428 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
10429 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
10430 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
10431
10432 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
10433
10434 * NEWS: Mention exp and exp2 improvements.
10435 * math/Makefile (libm-support): Remove t_exp.
10436 (type-double-routines): Add math_err and e_exp_data.
10437 * sysdeps/aarch64/libm-test-ulps: Update.
10438 * sysdeps/arm/libm-test-ulps: Update.
10439 * sysdeps/i386/fpu/e_exp_data.c: New file.
10440 * sysdeps/i386/fpu/math_err.c: New file.
10441 * sysdeps/i386/fpu/t_exp.c: Remove.
10442 * sysdeps/ia64/fpu/e_exp_data.c: New file.
10443 * sysdeps/ia64/fpu/math_err.c: New file.
10444 * sysdeps/ia64/fpu/t_exp.c: Remove.
10445 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
10446 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
10447 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
10448 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
10449 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
10450 * sysdeps/ieee754/dbl-64/math_config.h: New file.
10451 * sysdeps/ieee754/dbl-64/math_err.c: New file.
10452 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
10453 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
10454 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
10455 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
10456 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
10457 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
10458 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
10459 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10460 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10461
10462 2018-09-05 Joseph Myers <joseph@codesourcery.com>
10463
10464 * sysdeps/alpha/fpu/math_private.h: Remove.
10465
10466 * sysdeps/generic/math_private.h
10467 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
10468 Move this inline function ....
10469 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
10470 * include/math.h [!_ISOMAC]: To here....
10471
10472 2018-09-04 Joseph Myers <joseph@codesourcery.com>
10473
10474 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10475 code ....
10476 [!FE_HAVE_ROUNDING_MODES]: And this code ....
10477 * include/fenv.h [!_ISOMAC]: ... to here.
10478 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10479 (feraiseexcept): Likewise.
10480 * math/fromfp.h: Do not include <fenv_private.h>.
10481 * math/s_cexp_template.c: Likewise.
10482 * math/s_csin_template.c: Likewise.
10483 * math/s_csinh_template.c: Likewise.
10484 * math/s_ctan_template.c: Likewise.
10485 * math/s_ctanh_template.c: Likewise.
10486 * math/s_iseqsig_template.c: Likewise.
10487 * math/w_acos_compat.c: Likewise.
10488 * math/w_acosf_compat.c: Likewise.
10489 * math/w_acosl_compat.c: Likewise.
10490 * math/w_asin_compat.c: Likewise.
10491 * math/w_asinf_compat.c: Likewise.
10492 * math/w_asinl_compat.c: Likewise.
10493 * math/w_j0_compat.c: Likewise.
10494 * math/w_j0f_compat.c: Likewise.
10495 * math/w_j0l_compat.c: Likewise.
10496 * math/w_j1_compat.c: Likewise.
10497 * math/w_j1f_compat.c: Likewise.
10498 * math/w_j1l_compat.c: Likewise.
10499 * math/w_jn_compat.c: Likewise.
10500 * math/w_jnf_compat.c: Likewise.
10501 * math/w_log10_compat.c: Likewise.
10502 * math/w_log10f_compat.c: Likewise.
10503 * math/w_log10l_compat.c: Likewise.
10504 * math/w_log2_compat.c: Likewise.
10505 * math/w_log2f_compat.c: Likewise.
10506 * math/w_log2l_compat.c: Likewise.
10507 * math/w_log_compat.c: Likewise.
10508 * math/w_logf_compat.c: Likewise.
10509 * math/w_logl_compat.c: Likewise.
10510 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10511 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10512 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10513 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10514 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10515 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10516 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10517 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10518 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10519 * sysdeps/ieee754/k_standardl.c: Likewise.
10520 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10521 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10522 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10523 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10524 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10525 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10526 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10527 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10528 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10529 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10530 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10531 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10532 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10533 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10534 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10535 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10536 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10537 * math/w_ilogb_template.c: Include <fenv.h> instead of
10538 <fenv_private.h>.
10539 * math/w_llogb_template.c: Likewise.
10540 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10541 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10542
10543 2018-09-03 Joseph Myers <joseph@codesourcery.com>
10544
10545 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10546 * math/fromfp.h: Include <fenv_private.h>.
10547 * math/math-narrow.h: Likewise.
10548 * math/s_cexp_template.c: Likewise.
10549 * math/s_csin_template.c: Likewise.
10550 * math/s_csinh_template.c: Likewise.
10551 * math/s_ctan_template.c: Likewise.
10552 * math/s_ctanh_template.c: Likewise.
10553 * math/s_iseqsig_template.c: Likewise.
10554 * math/w_acos_compat.c: Likewise.
10555 * math/w_acosf_compat.c: Likewise.
10556 * math/w_acosl_compat.c: Likewise.
10557 * math/w_asin_compat.c: Likewise.
10558 * math/w_asinf_compat.c: Likewise.
10559 * math/w_asinl_compat.c: Likewise.
10560 * math/w_ilogb_template.c: Likewise.
10561 * math/w_j0_compat.c: Likewise.
10562 * math/w_j0f_compat.c: Likewise.
10563 * math/w_j0l_compat.c: Likewise.
10564 * math/w_j1_compat.c: Likewise.
10565 * math/w_j1f_compat.c: Likewise.
10566 * math/w_j1l_compat.c: Likewise.
10567 * math/w_jn_compat.c: Likewise.
10568 * math/w_jnf_compat.c: Likewise.
10569 * math/w_llogb_template.c: Likewise.
10570 * math/w_log10_compat.c: Likewise.
10571 * math/w_log10f_compat.c: Likewise.
10572 * math/w_log10l_compat.c: Likewise.
10573 * math/w_log2_compat.c: Likewise.
10574 * math/w_log2f_compat.c: Likewise.
10575 * math/w_log2l_compat.c: Likewise.
10576 * math/w_log_compat.c: Likewise.
10577 * math/w_logf_compat.c: Likewise.
10578 * math/w_logl_compat.c: Likewise.
10579 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10580 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10581 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10582 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10583 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10584 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10585 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10586 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10587 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10588 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10589 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10590 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10591 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10592 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10593 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10594 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10595 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10596 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10597 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10598 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10599 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10600 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10601 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10602 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10603 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10604 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10605 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10606 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10607 * sysdeps/ieee754/float128/float128_private.h: Likewise.
10608 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10609 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10610 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10611 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10612 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10613 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10614 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10615 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10616 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10617 * sysdeps/ieee754/k_standardl.c: Likewise.
10618 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10619 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10620 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10621 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10622 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10623 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10624 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10625 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10626 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10627 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10628 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10629 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10630 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10631 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10632 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10633 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10634 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10635 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10636 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10637 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10638 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10639 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10640 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10641 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10642 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10643 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10644 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10645 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10646 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10647 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10648 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10649 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10650 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10651 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10652 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10653 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10654 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10655 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10656 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10657 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10658 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10659 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10660 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10661 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10662 * sysdeps/riscv/rvd/s_finite.c: Likewise.
10663 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10664 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10665 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10666 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10667 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10668 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10669 * sysdeps/riscv/rvf/fegetround.c: Likewise.
10670 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10671 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10672 * sysdeps/riscv/rvf/fesetround.c: Likewise.
10673 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10674 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10675 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10676 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10677 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10678 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10679 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10680 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10681 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10682 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10683 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10684 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10685 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10686 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10687 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10688 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10689
10690 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10691
10692 [BZ #20271]
10693 * include/stdio.h (__libc_fatal): Mention newline in comment.
10694 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10695 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10696 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10697 * nss/nsswitch.c (__nss_next2): Likewise.
10698 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10699 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10700 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10701 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10702 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10703 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10704 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10705 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10706 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10707 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10708 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10709 * sysdeps/unix/sysv/linux/netlink_assert_response.c
10710 (__netlink_assert_response): Likewise.
10711
10712 2018-08-31 Joseph Myers <joseph@codesourcery.com>
10713
10714 * conform/glibcconform.py: New file.
10715 * conform/list-header-symbols.py: Likewise.
10716 * conform/list-header-symbols.pl: Remove.
10717 * conform/Makefile (tests-special): Only add linknamespace tests
10718 if [PYTHON].
10719 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10720
10721 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
10722
10723 [BZ #23597]
10724 * support/Makefile (libsupport-routines): Add
10725 support_copy_file_range and xcopy_file_range.
10726 * support/support.h: Include <sys/types.h>.
10727 (support_copy_file_range): New prototype.
10728 * support/support_copy_file_range.c: New file. Copied and
10729 modified from io/copy_file_range-compat.c.
10730 * support/test-container.c (copy_one_file): Call xcopy_file_rang
10731 instead of copy_file_range.
10732 * support/xcopy_file_range.c: New file.
10733 * support/xunistd.h (xcopy_file_range): New prototype.
10734
10735 2018-08-30 Carlos O'Donell <carlos@redhat.com>
10736
10737 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10738 xpthread_create and xpthread_join.
10739
10740 2018-08-30 Florian Weimer <fweimer@redhat.com>
10741
10742 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10743
10744 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
10745
10746 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10747 if malloc fails.
10748
10749 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10750
10751 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10752 and minus_oflow as non-finite.
10753
10754 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10755
10756 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10757 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10758 moved to fenv_private.h except for ...
10759 (TOINT_INTRINSICS): Kept in math_private.h.
10760 (roundtoint): Likewise.
10761 (converttoint): Likewise.
10762 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10763 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10764 * sysdeps/arm/math_private.h: Remove.
10765 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10766 ....
10767 * sysdeps/generic/math_private.h: ... this file. Include
10768 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10769 Include <fenv_private.h>. Remove functions and macros moved to
10770 fenv_private.h.
10771 * sysdeps/i386/fpu/math_private.h: Remove.
10772 * sysdeps/mips/math_private.h: Move to ....
10773 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10774 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10775 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10776 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10777 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10778 * sysdeps/powerpc/fpu/math_private.h: Do not include
10779 <fenv_private.h>.
10780 * sysdeps/riscv/rvf/math_private.h: Move to ....
10781 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10782 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10783 <fenv_private.h>.
10784 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10785 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10786 * sysdeps/sparc/fpu/math_private.h: Remove.
10787 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10788 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10789 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10790 <fenv_private.h>.
10791 * sysdeps/x86_64/fpu/math_private.h: Do not include
10792 <sysdeps/i386/fpu/fenv_private.h>.
10793
10794 2018-08-28 Florian Weimer <fweimer@redhat.com>
10795
10796 [BZ #23578]
10797 * posix/tst-regcomp-truncated.c: New file.
10798 * posix/Makefile (tests): Add it.
10799 (tst-regcomp-truncated.out): Depend on generated locales.
10800
10801 2018-08-28 Florian Weimer <fweimer@redhat.com>
10802
10803 * support/test-container.c (main): Treat unshare failure with
10804 EPERM as an unsupported test.
10805
10806 2018-08-28 Florian Weimer <fweimer@redhat.com>
10807
10808 [BZ #23520]
10809 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10810 * nscd/netgroupcache.c
10811 (addgetnetgrentX): Add tofreep parameter. Do not free
10812 heap-allocated buffer.
10813 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10814 (addgetnetgrentX_ignore): New function.
10815 (addgetnetgrent): Call it.
10816 (readdgetnetgrent): Likewise.
10817
10818 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10819
10820 * string/memmem.c: Use memcmp for first match.
10821
10822 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10823
10824 [BZ #17426]
10825 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10826
10827 2018-08-27 DJ Delorie <dj@redhat.com>
10828
10829 * support/Makefile (others): Don't list programs explicitly as a
10830 dependency of "others".
10831
10832 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10833
10834 * sysdeps/generic/math-tests-trap-force.h: New file.
10835 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10836 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10837 * sysdeps/powerpc/math-tests.h: Remove file.
10838 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10839
10840 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10841 Torvald Riegel <triegel@redhat.com>
10842
10843 [BZ #23538]
10844 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10845 Update r to include the set wake-request flag if waiters are
10846 remaining after spinning.
10847
10848 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10849
10850 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10851
10852 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10853
10854 [BZ #23578]
10855 regex: fix uninitialized memory access
10856 I introduced this bug into gnulib in commit
10857 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10858 eventually it was merged into glibc. The bug was found by
10859 project-repo <bugs@feusi.co> and reported here:
10860 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10861 Diagnosis and draft fix reported by Assaf Gordon here:
10862 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10863 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10864 * posix/regex_internal.c (build_wcs_upper_buffer):
10865 Fix bug when mbrtowc returns 0.
10866
10867 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10868
10869 * po/be.po: Update translation.
10870
10871 2018-08-24 DJ Delorie <dj@delorie.com>
10872
10873 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10874 $(libunwind).
10875
10876 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10877
10878 [BZ #23400]
10879 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10880 create temporary files in source tree.
10881
10882 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10883
10884 * sysdeps/generic/math-tests-trap.h: New file.
10885 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10886 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10887 * sysdeps/aarch64/math-tests.h: Remove file.
10888 * sysdeps/arm/math-tests.h: Likewise.
10889 * sysdeps/riscv/math-tests.h: Likewise.
10890 * sysdeps/aarch64/math-tests-trap.h: New file.
10891 * sysdeps/arm/math-tests-trap.h: Likewise.
10892 * sysdeps/riscv/math-tests-trap.h: Likewise.
10893
10894 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10895
10896 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10897 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10898 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10899 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10900 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10901 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10902 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10903 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10904 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10905 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10906 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10907 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10908 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10909 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10910 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10911 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10912 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10913 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10914
10915 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10916
10917 * sysdeps/generic/math-tests-exceptions.h: New file.
10918 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10919 (EXCEPTION_TESTS_float): Do not define here.
10920 (EXCEPTION_TESTS_double): Likewise.
10921 (EXCEPTION_TESTS_long_double): Likewise.
10922 (EXCEPTION_TESTS_float128): Likewise.
10923 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10924 Likewise.
10925 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10926 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10927 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10928 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10929 * sysdeps/mips/math-tests.h: Likewise.
10930 * sysdeps/nios2/math-tests.h: Likewise.
10931 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10932 (EXCEPTION_TESTS_float): Do not define here.
10933 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10934 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10935 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10936
10937 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10938
10939 * NEWS: Move optimized sinf entry to 2.29.
10940
10941 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10942
10943 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10944
10945 2018-08-22 DJ Delorie <dj@redhat.com>
10946
10947 * Makefile (testroot.pristine): New rules to initialize the
10948 test-in-container "testroot".
10949 * Makerules (all-testsuite): Add tests-container.
10950 * Rules (tests-expected): Add tests-container.
10951 (binaries-all-tests): Likewise.
10952 (tests-container): New, run these tests in the testroot container.
10953 * support/Makefile (others): Add *-container, support_paths.c,
10954 xmkdirp, and links-dso-program.
10955 * support/links-dso-program-c.c: New.
10956 * support/links-dso-program.cc: New.
10957 * support/test-container.c: New.
10958 * support/shell-container.c: New.
10959 * support/echo-container.c: New.
10960 * support/true-container.c: New.
10961 * support/xmkdirp.c: New.
10962 * support/xsymlink.c: New.
10963 * support/support_paths.c: New.
10964 * support/support.h: Add support paths prototypes.
10965 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10966
10967 * nss/tst-nss-test3.c: Convert to test-in-container.
10968 * nss/tst-nss-test3.root/: New.
10969
10970 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10971
10972 regex: port Gnulib code to z/OS POSIX environment
10973 Problem reported by Arnold Robbins in:
10974 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10975 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10976 Undef.
10977
10978 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10979
10980 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10981 (ROUNDING_TESTS_double): Remove.
10982 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10983 (ROUNDING_TESTS_double): Remove.
10984 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10985 (ROUNDING_TESTS_double): Remove.
10986 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10987 (ROUNDING_TESTS_float): Remove.
10988 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10989 (ROUNDING_TESTS_float): Remove.
10990 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10991 (ROUNDING_TESTS_float): Remove.
10992 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10993 !TEST_MATHVEC here.
10994 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10995 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10996
10997 * sysdeps/generic/math-tests-rounding.h: New file.
10998 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10999 (ROUNDING_TESTS_float): Do not define here.
11000 (ROUNDING_TESTS_double): Likewise.
11001 (ROUNDING_TESTS_long_double): Likewise.
11002 (ROUNDING_TESTS_float128): Likewise.
11003 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
11004 (ROUNDING_TESTS_double): Undefine before defining.
11005 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
11006 (ROUNDING_TESTS_double): Undefine before defining.
11007 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
11008 (ROUNDING_TESTS_double): Undefine before defining.
11009 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
11010 (ROUNDING_TESTS_float): Undefine before defining.
11011 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
11012 (ROUNDING_TESTS_float): Undefine before defining.
11013 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
11014 (ROUNDING_TESTS_float): Undefine before defining.
11015 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
11016 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
11017 not define here.
11018 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
11019 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
11020 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
11021 * sysdeps/riscv/math-tests.h [!__riscv_flen]
11022 (ROUNDING_TESTS_float): Do not define here.
11023 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
11024 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
11025 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
11026 (ROUNDING_TESTS_float): Likewise.
11027 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
11028 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
11029 * sysdeps/mips/math-tests.h [__mips_soft_float]
11030 (ROUNDING_TESTS_float): Likewise.
11031 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
11032 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
11033 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
11034 (ROUNDING_TESTS_double): Likewise.
11035 (ROUNDING_TESTS_long_double): Likewise.
11036
11037 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
11038
11039 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
11040 (PF_XDP): New macro.
11041 (AF_XDP): New macro.
11042 (SOL_XDP): New macro.
11043
11044 2018-08-21 Joseph Myers <joseph@codesourcery.com>
11045
11046 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
11047 (TCP_INQ): Likewise.
11048 (TCP_CM_INQ): Likewise.
11049 (TCP_REPAIR_ON): Likewise.
11050 (TCP_REPAIR_OFF): Likewise.
11051 (TCP_REPAIR_OFF_NO_WP): Likewise.
11052 (struct tcp_zerocopy_receive): New type.
11053
11054 2018-08-21 Florian Weimer <fweimer@redhat.com>
11055
11056 * support/support.h (support_descriptor_supports_holes): Declare.
11057 * support/Makefile (libsupport-routines): Add
11058 support_descriptor_supports_holes.
11059 * support/support_descriptor_supports_holes.c: New file.
11060 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
11061 and stop testing if holes are not supported.
11062 * io/test-lfs.c (do_prepare): Likewise.
11063 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
11064 Likewise.
11065 * timezone/tst-tzset.c (create_tz_file): Likewise.
11066 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
11067 variable.
11068 (do_prepare): Set it.
11069 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
11070
11071 2018-08-21 Florian Weimer <fweimer@redhat.com>
11072
11073 [BZ #17248]
11074 * Makeconfig (+cflags): Do not sort (and deduplicate).
11075
11076 2018-08-21 Florian Weimer <fweimer@redhat.com>
11077
11078 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
11079 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
11080
11081 2018-08-20 Florian Weimer <fweimer@redhat.com>
11082
11083 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
11084 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
11085
11086 2018-08-20 Joseph Myers <joseph@codesourcery.com>
11087
11088 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
11089 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
11090 and ssi_arch members.
11091
11092 * elf/elf.c (NT_VMCOREDD): New macro.
11093 (AT_MINSIGSTKSZ): Likewise.
11094
11095 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11096
11097 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
11098 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
11099 s_cosf-ppc64 and s_cosf-power8.
11100 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
11101 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11102 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11103 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
11105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
11106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
11107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
11108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
11109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
11110 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
11111 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
11112
11113 2018-08-17 Florian Weimer <fweimer@redhat.com>
11114
11115 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
11116
11117 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
11118
11119 * malloc/malloc.c (_int_malloc): Additional binning code checks.
11120
11121 2018-08-16 Florian Weimer <fweimer@redhat.com>
11122
11123 * configure.ac: Add --with-nonshared-cflags option.
11124 * config.make.in (extra-nonshared-cflags): Set variable.
11125 * Makeconfig (CFLAGS-.oS): Use it.
11126 * manual/install.texi (Configuring and compiling): Document
11127 --with-nonshared-cflags.
11128 * configure: Regenerate.
11129 * INSTALL: Likewise.
11130
11131 2018-08-16 Florian Weimer <fweimer@redhat.com>
11132
11133 * Makeconfig (ASFLAGS): Always append required assembler flags.
11134
11135 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
11136
11137 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
11138 (malloc_consolidate): Likewise.
11139
11140 2018-08-16 Pochang Chen <johnchen902@gmail.com>
11141
11142 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
11143
11144 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
11145
11146 * benchtests/bench-strlen.c (do_test): Allocate buffers before
11147 every strlen call.
11148
11149 * benchtests/bench-strlen.c: Print performance numbers in json.
11150
11151 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11152
11153 * sysdeps/powerpc/powerpc64/multiarch/Makefile
11154 (sysdep_routines): Build strcmp-power9 and strncmp-power9
11155 only for little endian.
11156 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11157 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
11158 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
11159 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
11160 Add check for little endian.
11161 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
11162 (__strcmp_power9): Add check for little endian.
11163 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
11164 Add check for little endian.
11165 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
11166 (__strncmp_power9): Add check for little endian.
11167 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
11168 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
11169 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
11170 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
11171 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
11172
11173 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
11174
11175 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
11176 [!STRLEN](STRLEN): Set to __strlen.
11177 * sysdeps/aarch64/multiarch/strlen.c: New file.
11178 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
11179 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
11180 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11181 (__libc_ifunc_impl_list): Add strlen.
11182 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11183 strlen_generic and strlen_asimd.
11184
11185 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
11186
11187 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
11188 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
11189 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11190
11191 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
11192
11193 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
11194
11195 2018-08-14 Florian Weimer <fweimer@redhat.com>
11196
11197 [BZ #23519]
11198 * include/stdio.h (__vfxprintf): Declare.
11199 * stdio-common/fxprintf.c (__vfxprintf): New function.
11200 (__fxprintf): Call it.
11201 * misc/err.c (convert_and_print): Remove function.
11202 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
11203 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
11204 * misc/Makefile (tests): Add tst-warn-wide.
11205 * misc/tst-warn-wide.c: New file.
11206
11207 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
11208 Szabolcs Nagy <szabolcs.nagy@arm.com>
11209
11210 * NEWS: Mention sinf, cosf, sincosf.
11211 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
11212 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
11213 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
11214 constants rather than including generic sincosf.h.
11215 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
11216 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
11217 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
11218 (reduced_cos): Remove.
11219 (sinf_poly): New function.
11220 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
11221
11222 2018-08-14 Florian Weimer <fweimer@redhat.com>
11223
11224 [BZ #23521]
11225 [BZ #23522]
11226 * nss/nss_files/files-alias.c (get_next_alias): During :include:
11227 processing, bail out if no room, and close the stream before
11228 returning ERANGE.
11229 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
11230 (tst-nss-files-alias-leak): Link with libdl.
11231 (tst-nss-files-alias-leak.out): Depend on nss_files.
11232
11233 * nss/tst-nss-files-alias-leak.c: New file.
11234
11235 2018-08-14 Florian Weimer <fweimer@redhat.com>
11236
11237 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
11238 server_user, stat_user.
11239
11240 2018-08-13 Joseph Myers <joseph@codesourcery.com>
11241
11242 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11243 version to 4.18.
11244 (io_pgetevents): New syscall.
11245 (rseq): Likewise.
11246
11247 * manual/install.texi (Configuring and compiling): Do not list
11248 tools used for testing pretty printers here.
11249 (Tools for Compilation): List Python, PExpect and GDB here.
11250 Update descriptions of uses of Perl and Python.
11251 * INSTALL: Regenerate.
11252
11253 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11254 version to 4.18.
11255
11256 2018-08-13 Florian Weimer <fweimer@redhat.com>
11257
11258 * misc/error.c (error): Add missing va_end call.
11259 (error_at_line): Likewise.
11260
11261 2018-08-13 Florian Weimer <fweimer@redhat.com>
11262
11263 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
11264
11265 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11266
11267 * benchtests/scripts/benchout.schema.json (properties): Add
11268 new properties.
11269
11270 * benchtests/bench-skeleton.c (main): Add duration and
11271 iterations attributes.
11272
11273 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
11274
11275 regex: Gnulib unibyte RRI uses bytes not chars
11276 Adjust the non-glibc code to agree with what Gawk needs for
11277 rational range interpretation (RRI) for regular expression ranges.
11278 In unibyte locales, Gawk wants ranges to use the underlying byte
11279 rather than the character code point. This change does not affect
11280 glibc proper.
11281 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
11282 In unibyte locales, use the byte value rather than
11283 running it through btowc.
11284
11285 2018-08-10 Joseph Myers <joseph@codesourcery.com>
11286
11287 * sysdeps/generic/math-tests-snan.h: New file.
11288 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
11289 (SNAN_TESTS_float): Do not define here.
11290 (SNAN_TESTS_double): Likewise.
11291 (SNAN_TESTS_long_double): Likewise.
11292 (SNAN_TESTS_float128): Likewise.
11293 * sysdeps/i386/fpu/math-tests-snan.h: New file.
11294 * sysdeps/i386/fpu/math-tests.h: Remove file.
11295 * sysdeps/ia64/math-tests-snan.h: New file.
11296 * sysdeps/ia64/math-tests.h: Remove file.
11297 * sysdeps/x86/math-tests.h: Likewise.
11298 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
11299
11300 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
11301 Szabolcs Nagy <szabolcs.nagy@arm.com>
11302
11303 * math/Makefile: Add s_sincosf_data.c.
11304 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
11305 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
11306 (sincosf_poly): Likewise.
11307 (reduce_small): Likewise.
11308 (reduce_large): Likewise.
11309 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
11310 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
11311 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
11312 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
11313
11314 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
11315 Szabolcs Nagy <szabolcs.nagy@arm.com>
11316
11317 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
11318 (converttoint): Use lround.
11319 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
11320 document the semantics when TOINT_INTRINSICS is set.
11321 (converttoint): Likewise.
11322 (TOINT_RINT): Remove.
11323 (TOINT_SHIFT): Remove.
11324 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
11325 path.
11326
11327 2018-08-10 Florian Weimer <fweimer@redhat.com>
11328
11329 [BZ #23497]
11330 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
11331 function.
11332 (__old_getdents64): Use getdents64. Convert entries without
11333 moving them.
11334 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
11335 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
11336 tst-readdir64-compat.
11337
11338 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11339
11340 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
11341 Fix unwind.
11342
11343 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11344
11345 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
11346 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
11347 code to s390x-mcount.h and #include it.
11348 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
11349 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
11350 (__fentry__): Add.
11351
11352 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11353
11354 * stdlib/Versions: Remove __fentry__.
11355 * sysdeps/i386/Versions: Add __fentry__.
11356 * sysdeps/x86_64/Versions: Add __fentry__.
11357
11358 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11359
11360 * sysdeps/s390/Makefile: Register the new tests.
11361 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
11362 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
11363 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
11364 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
11365 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
11366 * sysdeps/s390/tst-dl-runtime.c: New file.
11367
11368 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11369
11370 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11371 Do not clobber R0.
11372
11373 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11374
11375 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11376 Do not clobber R0.
11377
11378 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11379
11380 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11381 Do not clobber R0.
11382
11383 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11384
11385 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11386 Do not clobber R0.
11387
11388 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11389
11390 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11391 Use symbolic offsets for stack variables.
11392
11393 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11394
11395 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11396 Use symbolic offsets for stack variables.
11397
11398 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11399
11400 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11401 Use symbolic offsets for stack variables.
11402
11403 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11404
11405 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11406 Use symbolic offsets for stack variables.
11407
11408 2018-08-09 Joseph Myers <joseph@codesourcery.com>
11409
11410 * math/gen-libm-test.py: New file.
11411 * math/gen-libm-test.pl: Remove.
11412 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
11413 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
11414 gen-libm-test.pl.
11415 ($(libm-test-c-noauto-obj)): Likewise.
11416 ($(libm-test-c-auto-obj)): Likewise.
11417 ($(libm-test-c-narrow-obj)): Likewise.
11418 (regen-ulps): Likewise.
11419 * math/README.libm-test: Update references to gen-libm-test.pl.
11420 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
11421 referencing gen-libm-test.pl.
11422 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
11423 * math/libm-test-support.c: Likewise.
11424 * math/libm-test-support.h: Likewise.
11425 * sysdeps/generic/libm-test-ulps: Likewise.
11426
11427 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
11428
11429 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
11430 Fix value.
11431
11432 2018-08-08 Joseph Myers <joseph@codesourcery.com>
11433
11434 * math/libm-test-nextdown.inc (do_test): Move comment to ....
11435 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
11436
11437 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11438
11439 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
11440 symbols.
11441 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
11442 __pthread_setspecific): Add hidden proto.
11443 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
11444 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
11445
11446 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11447
11448 * benchtests/bench-string.h (buf1_size, buf2_size): New
11449 variables.
11450 (init_sizes): New function.
11451 (test_init): Use it.
11452 (alloc_buf, exit_error): New functions.
11453 (alloc_bufs): Use ALLOC_BUF.
11454 (realloc_bufs): Remove.
11455 * benchtests/bench-memcmp.c (do_test): Adjust.
11456 * benchtests/bench-memset-large.c (do_test): Likewise.
11457 * benchtests/bench-memset-walk.c (do_test): Likewise.
11458 * benchtests/bench-memset.c (do_test): Likewise.
11459 * benchtests/bench-strncmp.c (do_test): Likewise.
11460
11461 2018-08-06 Andreas Schwab <schwab@suse.de>
11462
11463 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
11464 of CONST_THREAD_AREA.
11465
11466 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
11467
11468 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
11469 (STATE_SAVE_MASK): Likewise.
11470 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11471 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11472 (STATE_SAVE_MASK): Likewise.
11473 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11474 instead of <cpu-features.h>.
11475
11476 2018-08-03 DJ Delorie <dj@redhat.com>
11477
11478 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11479 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11480
11481 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11482
11483 2018-08-03 Joseph Myers <joseph@codesourcery.com>
11484
11485 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11486 after TEST_* calls.
11487 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11488 * math/libm-test-logb.inc (logb_test_data): Likewise.
11489
11490 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
11491
11492 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11493 * string/strstr.c (AVAILABLE): Likewise.
11494
11495 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11496
11497 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11498 <init-arch.h>.
11499 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11500 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11501 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11502
11503 2018-08-03 Carlos O'Donell <carlos@redhat.com>
11504
11505 * po/be.po: Update translation.
11506
11507 * po/be.po: Update translation.
11508
11509 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11510
11511 * sysdeps/x86/cpu-features-offsets.sym
11512 (rtld_global_ro_offsetof): Removed.
11513 (CPU_FEATURES_SIZE): Likewise.
11514 (CPUID_OFFSET): Likewise.
11515 (CPUID_SIZE): Likewise.
11516 (CPUID_EAX_OFFSET): Likewise.
11517 (CPUID_EBX_OFFSET): Likewise.
11518 (CPUID_ECX_OFFSET): Likewise.
11519 (CPUID_EDX_OFFSET): Likewise.
11520 (FAMILY_OFFSET): Likewise.
11521 (MODEL_OFFSET): Likewise.
11522 (FEATURE_OFFSET): Likewise.
11523 (FEATURE_SIZ): Likewise.
11524 (COMMON_CPUID_INDEX_1): Likewise.
11525 (COMMON_CPUID_INDEX_7): Likewise.
11526 (FEATURE_INDEX_1): Likewise.
11527 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11528
11529 2018-08-02 Carlos O'Donell <carlos@redhat.com>
11530
11531 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11532 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11533 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11534 (install-locales): Depend on install-locale-archive.
11535 (install-locale-archive): Define.
11536 (install-locale-files): Define.
11537 (build-one-locale): Define macro.
11538 * manual/install.texi (Running make install): Document.
11539 * manual/INSTALL: Regenerate.
11540
11541 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
11542
11543 * benchtests/scripts/compare_strings.py: Import traceback.
11544 (parse_file): Pretty-print error.
11545
11546 * NEWS: Mention the change.
11547 * elf/dl-tunables.list: Rename tune namespace to cpu.
11548 * sysdeps/powerpc/dl-tunables.list: Likewise.
11549 * sysdeps/x86/dl-tunables.list: Likewise.
11550 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11551 cpu.name.
11552 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11553 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11554 * manual/README.tunables: Likewise.
11555 * manual/tunables.texi: Likewise.
11556 * sysdeps/powerpc/cpu-features.c: Likewise.
11557 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11558 (init_cpu_features): Likewise.
11559 * sysdeps/x86/cpu-features.c: Likewise.
11560 * sysdeps/x86/cpu-features.h: Likewise.
11561 * sysdeps/x86/cpu-tunables.c: Likewise.
11562 * sysdeps/x86_64/Makefile: Likewise.
11563 * sysdeps/x86/dl-cet.c: Likewise.
11564
11565 2018-08-02 Joseph Myers <joseph@codesourcery.com>
11566
11567 [BZ #23479]
11568 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11569 [__mips_hard_float].
11570 (FE_UNDERFLOW): Likewise.
11571 (FE_OVERFLOW): Likewise.
11572 (FE_DIVBYZERO): Likewise.
11573 (FE_INVALID): Likewise.
11574 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11575 (FE_TOWARDZERO): Define only if [__mips_hard_float].
11576 (FE_UPWARD): Likewise.
11577 (FE_DOWNWARD): Likewise.
11578 (__FE_UNDEFINED): Define if [!__mips_hard_float]
11579 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11580 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11581 [__mips_hard_float].
11582 (FP_ROUNDMODE): Likewise.
11583 (FP_RND_NEAREST): Likewise.
11584 (FP_RND_ZERO): Likewise.
11585 (FP_RND_PINF): Likewise.
11586 (FP_RND_MINF): Likewise.
11587 (FP_EX_INVALID): Likewise.
11588 (FP_EX_OVERFLOW): Likewise.
11589 (FP_EX_UNDERFLOW): Likewise.
11590 (FP_EX_DIVZERO): Likewise.
11591 (FP_EX_INEXACT): Likewise.
11592 (FP_INIT_ROUNDMODE): Likewise.
11593 * sysdeps/mips/nofpu/fesetenv.c: New file.
11594 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11595
11596 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11597
11598 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11599 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11600 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11601 conditional on [FE_UPWARD].
11602
11603 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
11604
11605 regex: fix memory leak in Gnulib
11606 Problem and fix reported by Assaf Gordon in:
11607 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11608 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11609 range_ends members too, as they are defined in 'struct
11610 re_charset_t' even if not _LIBC. This affects only Gnulib.
11611
11612 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
11613
11614 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11615 ...
11616 (get_common_indices): This.
11617 (init_cpu_features): Updated.
11618
11619 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11620
11621 * sysdeps/generic/math-tests-snan-payload.h: New file.
11622 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11623 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11624 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11625 * sysdeps/generic/math-tests.h: Include
11626 <math-tests-snan-payload.h>.
11627 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11628 * sysdeps/hppa/math-tests.h: Remove file.
11629 * sysdeps/mips/math-tests.h [!__mips_nan2008]
11630 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11631 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11632 Likewise.
11633
11634 * sysdeps/generic/math-tests-snan-cast.h: New file.
11635 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11636 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11637 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11638 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11639
11640 2018-08-01 Carlos O'Donel <carlos@redhat.com>
11641
11642 * version.h (RELEASE): Set to "development".
11643 (VERSION): Set to "2.28.9000".
11644 * NEWS (2.29): New section.
11645
11646 * version.h (RELEASE): Set to "stable".
11647 (VERSION): Set to "2.28".
11648 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11649 * NEWS: Add the list of bugs fixed in 2.28.
11650
11651 * po/ca.po: Update to latest version.
11652 * po/cs.po: Likewise
11653 * po/da.po: Likewise
11654 * po/el.po: Likewise
11655 * po/eo.po: Likewise
11656 * po/es.po: Likewise
11657 * po/fi.po: Likewise
11658 * po/fr.po: Likewise
11659 * po/gl.po: Likewise
11660 * po/hu.po: Likewise
11661 * po/ia.po: Likewise
11662 * po/id.po: Likewise
11663 * po/it.po: Likewise
11664 * po/ja.po: Likewise
11665 * po/ko.po: Likewise
11666 * po/lt.po: Likewise
11667 * po/nb.po: Likewise
11668 * po/nl.po: Likewise
11669 * po/pt_BR.po: Likewise
11670 * po/ru.po: Likewise
11671 * po/rw.po: Likewise
11672 * po/sk.po: Likewise
11673 * po/sl.po: Likewise
11674 * po/tr.po: Likewise
11675 * po/zh_CN.po: Likewise
11676 * po/zh_TW.po: Likewise
11677
11678 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11679
11680 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11681 initialization...
11682 (init): ... before initializing libpthread.
11683
11684 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11685 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11686 (__mach_setup_tls): ... new function.
11687 (mach_setup_tls): New alias.
11688 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11689 __mach_setup_thread.
11690 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11691 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11692 * mach/Versions [libc] (mach_setup_tls): Add symbol.
11693 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11694
11695 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11696
11697 * manual/install.texi: Update versions.
11698 * INSTALL: Regenerate.
11699
11700 * manual/contrib.texi (Contributors): Update contributions.
11701
11702 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11703
11704 * po/be.po: Update translations.
11705
11706 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11707
11708 * sysdeps/sh/libm-test-ulps: Update.
11709
11710 2018-07-30 Carlos O'Donell <carlos@redhat.com>
11711
11712 * po/bg.po: Update translations.
11713 * po/de.po: Likewise.
11714 * po/hr.po: Likewise.
11715 * po/pt_BR.po: Likewise.
11716 * po/sv.po: Likewise.
11717 * po/vi.po: Likewise.
11718
11719 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11720
11721 [BZ #23467]
11722 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11723 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11724 (CFLAGS-tst-cet-property-1.o): New.
11725 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11726 ($(objpfx)tst-cet-property-2): Likewise.
11727 ($(objpfx)tst-cet-property-2.out): Likewise.
11728 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11729 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11730 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11731 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11732 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11733
11734 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11735
11736 [BZ #23458]
11737 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11738
11739 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11740
11741 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11742 __sbrk): Do not set attribute_hidden.
11743 * sysdeps/mach/hurd/not-errno.h: New file.
11744 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11745 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11746
11747 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11748
11749 * po/uk.po: Update translations.
11750 * po/cs.po: Likewise.
11751 * po/pl.po: Likewise.
11752
11753 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11754
11755 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11756 parse beyond the note end.
11757
11758 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11759
11760 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11761 kernel does not support OFD locks.
11762 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11763
11764 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11765
11766 * sysdeps/mach/hurd/Versions (libc): Make __access and
11767 __access_noerrno external so they can override the ld symbols.
11768 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11769 __writev, __open64, __access_noerrno extern so they can be overrided.
11770 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11771 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11772
11773 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11774
11775 * po/libc.pot: Regenerate.
11776
11777 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11778
11779 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11780
11781 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11782
11783 [BZ #23459]
11784 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11785 function.
11786 (init_cpu_features): Call get_extended_indices for both Intel
11787 and AMD CPUs.
11788 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11789 Remove "for AMD" comment.
11790
11791 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11792
11793 [BZ # 23456]
11794 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11795 COMMON_CPUID_INDEX_80000001.
11796
11797 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11798
11799 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11800 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11801
11802 2018-07-26 Florian Weimer <fweimer@redhat.com>
11803
11804 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11805 aliases for symbols not in the implementation namespace.
11806
11807 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11808
11809 [BZ #23393]
11810 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11811 lowercase in LATIN script.
11812 * localedata/Makefile (test-input): Add en_US.UTF-8.
11813 * localedata/en_US.UTF-8.in: New file.
11814 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11815 and restore old tests.
11816 * posix/tst-regexloc.c (do_test): Add back range expression test.
11817
11818 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11819
11820 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11821
11822 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11823
11824 * nptl/threads.h: Move to ...
11825 * sysdeps/nptl/threads.h: ... here.
11826 * sysdeps/hurd/stdc-predef.h: New file.
11827
11828 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11829
11830 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11831 tst-cet-setcontext-1 if CET is enabled.
11832 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11833 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11834
11835 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11836
11837 * include/threads.h: Move to ...
11838 * sysdeps/nptl/threads.h: ... here.
11839 * sysdeps/htl/threads.h: New file.
11840 * conform/Makefile (linknamespace-libs-ISO11): Use
11841 static-thread-library instead of linking libpthread.
11842 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11843
11844 2018-07-25 Florian Weimer <fweimer@redhat.com>
11845
11846 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11847 nanoseconds into seconds.
11848 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11849 (do_test): Likewise.
11850 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11851 (do_test): Likewise. Avoid nanosecond overflow and spurious
11852 timeouts due to system load.
11853 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11854 (child_wait): Increment it.
11855 (do_test): Wait as long as necessary until all expected threads
11856 have arrived.
11857
11858 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11859 H.J. Lu <hongjiu.lu@intel.com>
11860
11861 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11862 __ssp.
11863 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11864 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11865 (__push___start_context): New.
11866 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11867 <asm/prctl.h>.
11868 (__getcontext): Record the current shadow stack base. Save the
11869 caller's shadow stack pointer and base.
11870 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11871 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11872 (__push___start_context): New prototype.
11873 (__makecontext): Call __push___start_context to allocate a new
11874 shadow stack, push __start_context onto the new stack as well
11875 as the new shadow stack.
11876 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11877 <asm/prctl.h>.
11878 (__setcontext): Restore the target shadow stack.
11879 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11880 <asm/prctl.h>.
11881 (__swapcontext): Record the current shadow stack base. Save
11882 the caller's shadow stack pointer and base. Restore the target
11883 shadow stack.
11884 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11885 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11886 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11887
11888 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11889
11890 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11891 tst-setcontext8 and tst-setcontext9.
11892 * stdlib/tst-setcontext6.c: New file.
11893 * stdlib/tst-setcontext7.c: Likewise.
11894 * stdlib/tst-setcontext8.c: Likewise.
11895 * stdlib/tst-setcontext9.c: Likewise.
11896
11897 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11898
11899 * stdlib/Makefile ((tests): Add tst-setcontext5.
11900 * stdlib/tst-setcontext5.c: New file.
11901
11902 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11903
11904 * stdlib/Makefile (tests): Add tst-setcontext4.
11905 * stdlib/tst-setcontext4.c: New file.
11906
11907 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11908
11909 * stdlib/Makefile (tests): Add tst-swapcontext1.
11910 * stdlib/tst-swapcontext1.c: New test.
11911
11912 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11913
11914 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11915 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11916 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11917 and tst-cet-legacy-4c.
11918 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11919 and tst-cet-legacy-mod-4.
11920 (CFLAGS-tst-cet-legacy-2.c): New.
11921 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11922 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11923 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11924 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11925 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11926 ($(objpfx)tst-cet-legacy-1): Likewise.
11927 ($(objpfx)tst-cet-legacy-2): Likewise.
11928 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11929 ($(objpfx)tst-cet-legacy-2a): Likewise.
11930 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11931 ($(objpfx)tst-cet-legacy-4): Likewise.
11932 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11933 ($(objpfx)tst-cet-legacy-4a): Likewise.
11934 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11935 (tst-cet-legacy-4a-ENV): Likewise.
11936 ($(objpfx)tst-cet-legacy-4b): Likewise.
11937 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11938 (tst-cet-legacy-4b-ENV): Likewise.
11939 ($(objpfx)tst-cet-legacy-4c): Likewise.
11940 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11941 (tst-cet-legacy-4c-ENV): Likewise.
11942 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11943 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11944 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11945 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11946 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11947 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11948 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11949 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11950 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11951 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11952 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11953
11954 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11955
11956 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11957 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11958 with ssp_base.
11959 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11960 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11961 with ssp_base.
11962
11963 2018-07-25 Andreas Schwab <schwab@suse.de>
11964
11965 [BZ #23442]
11966 * locale/weightwc.h (findidx): Handle the case where usrc is a
11967 prefix of cp but one character too short.
11968
11969 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11970
11971 * NEWS: Add ISO C threads addition.
11972
11973 2018-07-24 Florian Weimer <fweimer@redhat.com>
11974
11975 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11976 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11977 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11978 4.13.
11979
11980 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11981
11982 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11983 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11984 <sys/prctl.h> and <asm/prctl.h>.
11985 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11986 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11987 and <asm/prctl.h>.
11988 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11989 ARCH_CET_LEGACY_BITMAP.
11990 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11991 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11992 * sysdeps/x86/libc-start.c: Include <startup.h>.
11993
11994 2018-07-24 Florian Weimer <fweimer@redhat.com>
11995
11996 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11997 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11998
11999 2018-07-24 Rical Jasan <rj@2c3t.io>
12000 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12001 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
12002
12003 [BZ #14092]
12004 * manual/debug.texi: Update adjacent chapter name.
12005 * manual/probes.texi: Likewise.
12006 * manual/threads.texi (ISO C Threads): New section.
12007 (POSIX Threads): Convert to a section.
12008
12009 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12010 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
12011
12012 [BZ# 14092]
12013 * nptl/Makefile (tests): Add new test files.
12014 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
12015 * nptl/tst-cnd-basic.c: Likewise.
12016 * nptl/tst-cnd-broadcast.c: Likewise.
12017 * nptl/tst-cnd-timedwait.c: Likewise.
12018 * nptl/tst-mtx-basic.c: Likewise.
12019 * nptl/tst-mtx-recursive.c: Likewise.
12020 * nptl/tst-mtx-timedlock.c: Likewise.
12021 * nptl/tst-mtx-trylock.c: Likewise.
12022 * nptl/tst-thrd-basic.c: Likewise.
12023 * nptl/tst-thrd-detach.c: Likewise.
12024 * nptl/tst-thrd-sleep.c: Likewise.
12025 * nptl/tst-tss-basic.c: Likewise.
12026
12027 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12028
12029 [BZ #14092]
12030 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12031 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
12032 symbols.
12033 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12034 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12035 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12036 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12039 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12040 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12046 Likewise.
12047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12048 Likewise.
12049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12050 Likewise.
12051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
12061 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
12062 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
12063 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
12064 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
12065 Likewise.
12066 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12073 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12074 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12078 ikewise.
12079 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12081 Likewise.
12082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12083 Likewise.
12084 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12092
12093 [BZ #14092]
12094 * conform/data/threads.h-data (thread_local): New macro.
12095 (TSS_DTOR_ITERATIONS): Likewise.
12096 (tss_t): New type.
12097 (tss_dtor_t): Likewise.
12098 (tss_create): New function.
12099 (tss_get): Likewise.
12100 (tss_set): Likewise.
12101 (tss_delete): Likewise.
12102 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
12103 tss_get, and tss_set objects.
12104 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
12105 * nptl/tss_create.c: New file.
12106 * nptl/tss_delete.c: Likewise.
12107 * nptl/tss_get.c: Likewise.
12108 * nptl/tss_set.c: Likewise.
12109 * sysdeps/nptl/threads.h (thread_local): New define.
12110 (TSS_DTOR_ITERATIONS): Likewise.
12111 (tss_t): New typedef.
12112 (tss_dtor_t): Likewise.
12113 (tss_create): New prototype.
12114 (tss_get): Likewise.
12115 (tss_set): Likewise.
12116 (tss_delete): Likewise.
12117
12118 [BZ #14092]
12119 * conform/data/threads.h-data (cnd_t): New type.
12120 (cnd_init): New function.
12121 (cnd_signal): Likewise.
12122 (cnd_broadcast): Likewise.
12123 (cnd_wait): Likewise.
12124 (cnd_timedwait): Likewise.
12125 (cnd_destroy): Likewise.
12126 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
12127 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
12128 object.
12129 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
12130 * nptl/cnd_broadcast.c: New file.
12131 * nptl/cnd_destroy.c: Likewise.
12132 * nptl/cnd_init.c: Likewise.
12133 * nptl/cnd_signal.c: Likewise.
12134 * nptl/cnd_timedwait.c: Likewise.
12135 * nptl/cnd_wait.c: Likewise.
12136 * sysdeps/nptl/threads.h (cnd_t): New type.
12137 (cnd_init): New prototype.
12138 (cnd_signa): Likewise.
12139 (cnd_broadcast): Likewise.
12140 (cnd_wait): Likewise.
12141 (cnd_timedwait): Likewise.
12142 (cnd_destroy): Likewise.
12143
12144 [BZ #14092]
12145 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
12146 (once_flag): New type.
12147 (call_once): New function.
12148 * nptl/Makefile (libpthread-routines): Add call_once object.
12149 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
12150 * nptl/call_once.c: New file.
12151 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
12152 (once_flag): New type.
12153 (call_once): New prototype.
12154
12155 [BZ #14092]
12156 * conform/data/threads.h-data (mtx_plain): New constant.
12157 (mtx_recursive): Likewise.
12158 (mtx_timed): Likewise.
12159 (mtx_t): New type.
12160 (mtx_init): New function.
12161 (mtx_lock): Likewise.
12162 (mtx_timedlock): Likewise.
12163 (mtx_trylock): Likewise.
12164 (mtx_unlock): Likewise.
12165 (mtx_destroy): Likewise.
12166 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
12167 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
12168 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
12169 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
12170 * nptl/mtx_destroy.c: New file.
12171 * nptl/mtx_init.c: Likewise.
12172 * nptl/mtx_lock.c: Likewise.
12173 * nptl/mtx_timedlock.c: Likewise.
12174 * nptl/mtx_trylock.c: Likewise.
12175 * nptl/mtx_unlock.c: Likewise.
12176 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
12177 (mtx_recursive): Likewise.
12178 (mtx_timed): Likewise.
12179 (mtx_t): New type.
12180 (mtx_init): New prototype.
12181 (mtx_lock): Likewise.
12182 (mtx_timedlock): Likewise.
12183 (mtx_trylock): Likewise.
12184 (mtx_unlock): Likewise.
12185 (mtx_destroy): Likewise.
12186
12187 [BZ #14092]
12188 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
12189 (linknamespace-libs-ISO11): Add libpthread.a.
12190 * conform/data/threads.h-data: New file: add C11 thrd_* types and
12191 functions.
12192 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
12193 * nptl/Makefile (headers): Add threads.h.
12194 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
12195 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
12196 thrd_yield.
12197 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
12198 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
12199 thrd_join, thrd_sleep, and thrd_yield symbols.
12200 * nptl/descr.h (struct pthread): Add c11 field.
12201 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
12202 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
12203 routine with expected function prototype.
12204 (__pthread_create_2_1): Add C11 threads check based on attribute
12205 value.
12206 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
12207 * nptl/thrd_create.c: New file.
12208 * nptl/thrd_current.c: Likewise.
12209 * nptl/thrd_detach.c: Likewise.
12210 * nptl/thrd_equal.c: Likewise.
12211 * nptl/thrd_exit.c: Likewise.
12212 * nptl/thrd_join.c: Likewise.
12213 * nptl/thrd_priv.h: Likewise.
12214 * nptl/thrd_sleep.c: Likewise.
12215 * nptl/thrd_yield.c: Likewise.
12216 * include/threads.h: Likewise.
12217
12218 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
12219
12220 * bits/indirect-return.h: New file.
12221 * misc/sys/cdefs.h (__glibc_has_attribute): New.
12222 * sysdeps/x86/bits/indirect-return.h: Likewise.
12223 * stdlib/Makefile (headers): Add bits/indirect-return.h.
12224 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
12225 (swapcontext): Add __INDIRECT_RETURN.
12226 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
12227 (prepare_test_buffer): Use it.
12228
12229 2018-07-24 Andreas Schwab <schwab@suse.de>
12230
12231 [BZ #23448]
12232 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
12233 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
12234
12235 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
12236
12237 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
12238 Redefine if shadow stack is enabled.
12239 (SYSCALL_ERROR_LABEL): Likewise.
12240 (__vfork): Pop shadow stack and jump back to to caller directly
12241 when shadow stack is in use.
12242 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
12243 Redefine if shadow stack is enabled.
12244 (SYSCALL_ERROR_LABEL): Likewise.
12245 (__vfork): Pop shadow stack and jump back to to caller directly
12246 when shadow stack is in use.
12247
12248 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
12249
12250 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
12251 enabled.
12252 (foo): Likewise.
12253 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
12254 (foo): Likewise.
12255
12256 2018-07-20 Joseph Myers <joseph@codesourcery.com>
12257
12258 * scripts/build-many-glibcs.py (Context.checkout): Default
12259 binutils version to 2.31 branch.
12260
12261 2018-07-20 Zong Li <zong@andestech.com>
12262
12263 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
12264 URL of gcc's tarball.
12265
12266 2018-07-20 Florian Weimer <fweimer@redhat.com>
12267
12268 [BZ #23396]
12269 * posix/regcomp.c (build_equiv_class): When comparing weights, do
12270 not compare an extra byte after the end of the weights.
12271
12272 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
12273
12274 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
12275 to 1.
12276 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
12277 hidden prototypes.
12278 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
12279 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
12280 * scripts/check-execstack.awk: Consider `xfail' variable containing a
12281 list of libraries whose stack executability is expected.
12282 * elf/Makefile ($(objpfx)check-execstack.out): Pass
12283 $(check-execstack-xfail) to check-execstack.awk through `xfail'
12284 variable.
12285 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
12286 libc.so libpthread.so.
12287
12288 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
12289
12290 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
12291 SOCK_NONBLOCK.
12292 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
12293 and SOCK_NONBLOCK.
12294 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
12295 implement __pipe2.
12296 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
12297
12298 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12299
12300 * benchtests/scripts/compare_bench.py (__main__): use the argparse
12301 library to improve command line parsing.
12302 (__main__): make schema file as optional parameter (--schema),
12303 defaulting to benchtests/scripts/benchout.schema.json.
12304 (main): move out of the parsing stuff to __main_  and leave it
12305 only as caller of main comparison functions.
12306
12307 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
12308
12309 * NEWS: Add a note for Intel CET status.
12310 * manual/install.texi: Likewise.
12311 * INSTALL: Regenerated.
12312
12313 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
12314
12315 [BZ #23140]
12316 * localedata/locales/oc_FR (mon): Rename to...
12317 (alt_mon): This, then update October (typo fix).
12318 (mon): New content (genitive case, month names preceded by
12319 "de" or "d’").
12320
12321 [BZ #23422]
12322 * localedata/locales/oc_FR (abday): Update all items.
12323 (day): Update Wednesday and Saturday (typo fixes).
12324 (abmon): Update all items, except May.
12325 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
12326 (LC_IDENTIFICATION): Bump the revision number and date.
12327 Keep the "category" entries in alphabetic order.
12328 (LC_ADDRESS): Remove no longer needed comment.
12329 (LC_COLLATE): Use “copy "ca_ES"”.
12330 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
12331 "name_mrs".
12332
12333 2018-07-18 Joseph Myers <joseph@codesourcery.com>
12334
12335 * grp/tst_fgetgrent.c: Include <unistd.h>.
12336 (main): Use mkstemp instead of tmpnam.
12337 * io/test-utime.c (main): Likewise.
12338 * posix/annexc.c (macrofile): Change to modifiable array.
12339 (main): Remove macrofile here.
12340 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
12341 macrofile here.
12342 (check_header): Do not remove macrofile here.
12343 * posix/bug-getopt1.c: Include <stdlib.h>.
12344 (do_test): Use mkstemp instead of tmpnam.
12345 * posix/bug-getopt2.c: Include <stdlib.h>.
12346 (do_test): Use mkstemp instead of tmpnam.
12347 * posix/bug-getopt3.c: Include <stdlib.h>.
12348 (do_test): Use mkstemp instead of tmpnam.
12349 * posix/bug-getopt4.c: Include <stdlib.h>.
12350 (do_test): Use mkstemp instead of tmpnam.
12351 * posix/bug-getopt5.c: Include <stdlib.h>.
12352 (do_test): Use mkstemp instead of tmpnam.
12353 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
12354 (main): Use mkstemp instead of tmpnam.
12355 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
12356 (main): Use mkstemp instead of tmpnam.
12357 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
12358 (main): use mkstemp instead of tmpnam.
12359 * stdlib/isomac.c (macrofile): Change to modifiable array.
12360 (main): Remove macrofile here.
12361 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
12362 macrofile here.
12363 (check_header): Do not remove macrofile here.
12364
12365 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12366
12367 * manual/tunables.texi: Document glibc.tune.x86_ibt and
12368 glibc.tune.x86_shstk.
12369
12370 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12371
12372 * NEWS: Mention --enable-cet.
12373 * manual/install.texi: Document --enable-cet.
12374 * INSTALL: Regenerated.
12375
12376 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12377
12378 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
12379 Add _CET_NOTRACK before indirect jump to jump table.
12380
12381 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12382
12383 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
12384 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12385 to jump table.
12386
12387 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12388
12389 * sysdeps/i386/i686/multiarch/strcat-sse2.S
12390 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12391 to jump table.
12392
12393 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12394
12395 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
12396 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12397 to jump table.
12398
12399 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12400
12401 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
12402 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12403 to jump table.
12404
12405 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12406
12407 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
12408 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12409 to jump table.
12410 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
12411
12412 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12413
12414 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
12415 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12416 to jump table.
12417
12418 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12419
12420 * sysdeps/i386/i686/multiarch/memset-sse2.S
12421 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12422 to jump table.
12423
12424 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12425
12426 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
12427 indirect jump to jump table.
12428
12429 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12430
12431 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
12432 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12433 to jump table.
12434 (MEMCPY): Likewise.
12435
12436 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12437
12438 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
12439 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12440 to jump table.
12441 (MEMCPY): Likewise.
12442
12443 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12444
12445 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12446 _CET_NOTRACK before indirect jump to jump table.
12447
12448 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12449
12450 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
12451 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12452 to jump table.
12453
12454 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12455
12456 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
12457 indirect jump to jump table.
12458
12459 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
12460
12461 [BZ #22241]
12462 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
12463 (LOCALES): Likewise.
12464 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
12465 * localedata/locales/sah_RU: New file.
12466 * localedata/sah_RU.UTF-8.in: New file.
12467
12468 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12469
12470 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12471 "sysdep.h".
12472 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
12473 _CET_ENDBR to indirect jump targets and adjust jump destination
12474 for _CET_ENDBR.
12475 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
12476 "sysdep.h".
12477 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
12478 _CET_ENDBR to indirect jump targets and adjust jump destination
12479 for _CET_ENDBR.
12480 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
12481 "sysdep.h".
12482 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
12483 _CET_ENDBR to indirect jump targets and adjust jump destination
12484 for _CET_ENDBR.
12485
12486 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12487
12488 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12489 _CET_ENDBR.
12490
12491 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12492
12493 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12494 _CET_ENDBR.
12495 (_dl_tlsdesc_undefweak): Likewise.
12496 (_dl_tlsdesc_dynamic): Likewise.
12497 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12498 (_dl_tlsdesc_resolve_rel): Likewise.
12499 (_dl_tlsdesc_resolve_rela): Likewise.
12500 (_dl_tlsdesc_resolve_hold): Likewise.
12501 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12502 (_dl_tlsdesc_undefweak): Likewise.
12503 (_dl_tlsdesc_dynamic): Likewise.
12504 (_dl_tlsdesc_resolve_rela): Likewise.
12505 (_dl_tlsdesc_resolve_hold): Likewise.
12506
12507 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12508
12509 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12510 (_fini): Likewise.
12511 * sysdeps/x86_64/crti.S (_init): Likewise.
12512 (_fini): Likewise.
12513
12514 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
12515
12516 [BZ #23140]
12517 * localedata/locales/os_RU (mon): Rename to...
12518 (alt_mon): This.
12519 (mon): Import from CLDR (genitive case).
12520
12521 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12522
12523 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12524 cet-tunables.h> when CET is enabled.
12525
12526 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
12527
12528 [BZ #21598]
12529 * configure.ac: Add --enable-cet.
12530 * configure: Regenerated.
12531 * elf/Makefille (all-built-dso): Add a comment.
12532 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12533 Include <dl-prop.h>.
12534 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12535 segment.
12536 * elf/dl-open.c: Include <dl-prop.h>.
12537 (dl_open_worker): Call _dl_open_check.
12538 * elf/rtld.c: Include <dl-prop.h>.
12539 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
12540 _rtld_main_check.
12541 * sysdeps/generic/dl-prop.h: New file.
12542 * sysdeps/i386/dl-cet.c: Likewise.
12543 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12544 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12545 * sysdeps/x86/cet-tunables.h: Likewise.
12546 * sysdeps/x86/check-cet.awk: Likewise.
12547 * sysdeps/x86/configure: Likewise.
12548 * sysdeps/x86/configure.ac: Likewise.
12549 * sysdeps/x86/dl-cet.c: Likewise.
12550 * sysdeps/x86/dl-procruntime.c: Likewise.
12551 * sysdeps/x86/dl-prop.h: Likewise.
12552 * sysdeps/x86/libc-start.h: Likewise.
12553 * sysdeps/x86/link_map.h: Likewise.
12554 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12555 _CET_ENDBR.
12556 (_dl_runtime_profile): Likewise.
12557 (_dl_runtime_resolve_shstk): New.
12558 (_dl_runtime_profile_shstk): Likewise.
12559 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12560 if CET is enabled.
12561 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12562 (CFLAGS-.os): Likewise.
12563 (CFLAGS-.op): Likewise.
12564 (CFLAGS-.oS): Likewise.
12565 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12566 is enabled.
12567 (tests-special): Add $(objpfx)check-cet.out.
12568 (cet-built-dso): New.
12569 (+$(cet-built-dso:=.note)): Likewise.
12570 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12571 ($(objpfx)check-cet.out): New.
12572 (generated): Add check-cet.out.
12573 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12574 <cet-tunables.h>.
12575 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12576 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12577 (init_cpu_features): Call get_cet_status to check CET status
12578 and update dl_x86_feature_1 with CET status. Call
12579 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12580 (set_x86_shstk). Disable and lock CET in libc.a.
12581 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12582 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12583 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12584 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12585 (_CET_ENDBR): Define if not defined.
12586 (ENTRY): Add _CET_ENDBR.
12587 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12588 x86_shstk.
12589 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12590 _CET_ENDBR.
12591 (_dl_runtime_profile): Likewise.
12592
12593 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12594
12595 [BZ #21895]
12596 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12597 restore r2 on longjmp.
12598 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12599 test list.
12600 Added rules to build test tst-setjmp-bug21895-static.
12601 Added module setjmp-bug21895 and rules to build a shared object from it.
12602 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12603 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12604
12605 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
12606
12607 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12608 * benchtests/bench-strstr.c: Likewise.
12609 * string/memmem.c (FASTSEARCH): Define.
12610 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12611 Add support for FASTSEARCH.
12612 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12613 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12614 (FASTSEARCH): Define.
12615 * string/test-strcasestr.c: Rename __strnlen to strnlen.
12616 * string/test-strstr.c: Likewise.
12617
12618 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
12619
12620 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12621 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12622
12623 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12624 H.J. Lu <hongjiu.lu@intel.com>
12625
12626 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12627 (__longjmp): Restore shadow stack pointer if shadow stack is
12628 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12629 isn't defined for __longjmp_cancel.
12630 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12631 (_setjmp): Save shadow stack pointer if shadow stack is enabled
12632 and SHADOW_STACK_POINTER_OFFSET is defined.
12633 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12634 (setjmp): Save shadow stack pointer if shadow stack is enabled
12635 and SHADOW_STACK_POINTER_OFFSET is defined.
12636 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12637 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12638 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12639 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12640 <jmp_buf-ssp.h>.
12641 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12642 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12643 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12644 Remove jmp_buf-ssp.sym.
12645 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12646 <jmp_buf-ssp.h>.
12647 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12648 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12649 * sysdeps/x86/Makefile (gen-as-const-headers): Add
12650 jmp_buf-ssp.sym.
12651 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12652 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12653 (__longjmp): Restore shadow stack pointer if shadow stack is
12654 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12655 isn't defined for __longjmp_cancel.
12656 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12657 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12658 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12659
12660 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
12661
12662 [BZ #22563]
12663 * nptl/pthread_create.c: Include <tls-setup.h>.
12664 (__pthread_create_2_1): Call tls_setup_tcbhead.
12665 * sysdeps/generic/tls-setup.h: New file.
12666 * sysdeps/x86/nptl/tls-setup.h: Likewise.
12667 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12668 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12669 Likewise.
12670 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12671 to feature_1.
12672 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12673 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12674 (X86_FEATURE_1_SHSTK): Likewise.
12675 (CET_ENABLED): Likewise.
12676 (IBT_ENABLED): Likewise.
12677 (SHSTK_ENABLED): Likewise.
12678
12679 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
12680
12681 [BZ #23208]
12682 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12683 (LOCALES): Likewise.
12684 * localedata/dsb_DE.UTF-8.in: New file.
12685 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12686
12687 2018-07-12 Florian Weimer <fweimer@redhat.com>
12688
12689 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12690 __mprotect, not mprotect.
12691
12692 2018-07-11 Florian Weimer <fweimer@redhat.com>
12693
12694 * io/Makefile (headers): Add bits/statx.h.
12695
12696 2018-07-10 Mike FABIAN <mfabian@redhat.com>
12697
12698 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12699 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12700 and headers.
12701 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12702 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12703 for utf8_gen.py
12704
12705 2018-07-10 Florian Weimer <fweimer@redhat.com>
12706
12707 * io/Makefile (routines): Add statx.
12708 (tests-internal): Add tst-statx.
12709 * io/Versions (GLIBC_2.28): Export statx.
12710 * io/bits/statx.h: New file.
12711 * io/sys/stat.h [__USE_GNU]: Include it.
12712 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12713 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12714 Define.
12715 * io/statx.c: New file.
12716 * io/statx_generic.: Likewise.
12717 * io/tst-statx.: Likewise.
12718 * include/bits/statx.h: Likewise.
12719 * sysdeps/unix/sysv/linux/kernel-features.h
12720 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12721 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12722 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12723 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12724 Undefine.
12725 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12726 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12727 * sysdeps/unix/sysv/linux/statx.c: New file.
12728 * manual/filesys.texi: Note that statx is undocumented.
12729 * sysdeps/**/libc*.abilist: Update.
12730
12731 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12732
12733 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12734 a kernel issue which lead to test failure in some cases.
12735
12736 2018-07-10 Florian Weimer <fweimer@redhat.com>
12737
12738 [BZ #23036]
12739 * posix/regexec.c (check_node_accept_bytes): When comparing
12740 weights, do not compare an extra byte after the end of the
12741 weights.
12742
12743 2018-07-10 Florian Weimer <fweimer@redhat.com>
12744
12745 * libio/readline.c: Fix copyright year.
12746 * libio/tst-readline.c Likewise.
12747 * nss/tst-nss-files-hosts-getent.c: Likewise.
12748
12749 2018-07-06 Florian Weimer <fweimer@redhat.com>
12750
12751 [BZ #18991]
12752 * nss/nss_files/files-XXX.c (internal_getent): Use
12753 __libc_readline_unlocked. Seek back to the start of the line if
12754 parsing failes with ERANGE.
12755 (get_contents_ret, get_contents): Remove.
12756 * nss/tst-nss-files-hosts-getent.c: New file.
12757 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12758 (tst-nss-files-hosts-getent): Link with -ldl.
12759
12760 2018-07-06 Florian Weimer <fweimer@redhat.com>
12761
12762 * include/stdio.h (__libc_readline_unlocked): Declare.
12763 (__ftello64, __fseeko64): Declare aliases.
12764 * libio/readline.c: New file.
12765 * libio/tst-readline.c: Likewise.
12766 (routines): Add readline.
12767 (tests-internal): Add tst-readlime.
12768 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12769 __libc_readline_unlocked.
12770 * libio/fseeko.c (__fseeko): Rename from fseeko.
12771 (fseeko): Add alias.
12772 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12773 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12774 (fseeko64): Add alias.
12775 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12776 * libio/ftello64.c (__ftello64): Rename from ftello64.
12777 (ftello64): Add alias.
12778
12779 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12780
12781 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12782 HWCAP_ATOMICS.
12783
12784 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12785
12786 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12787 Use dl_hwcap without masking.
12788 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12789 Remove HWCAP_CPUID.
12790
12791 2018-07-06 Florian Weimer <fweimer@redhat.com>
12792
12793 * conform/conformtest.pl (checknamespace): Escape literal braces
12794 in regular expressions.
12795
12796 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12797
12798 * sysdeps/x86/cpu-features.c (get_common_indeces):
12799 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12800 * sysdeps/x86/cpu-features.c (init_cpu_features):
12801 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12802
12803 2018-07-05 Florian Weimer <fweimer@redhat.com>
12804
12805 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12806 protector.
12807 (CFLAGS-elf-init.oS): Likewise.
12808
12809 2018-07-05 Florian Weimer <fweimer@redhat.com>
12810 Carlos O'Donell <carlos@redhat.com>
12811
12812 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12813 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12814 with stack protector enabled because there is no risk of infinite
12815 recursion.
12816
12817 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12818
12819 [BZ #19818]
12820 [BZ #23307]
12821 * libc-abis (ABSOLUTE): New ABI.
12822 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12823 * NEWS: Mention the new ABI.
12824
12825 2018-07-05 Florian Weimer <fweimer@redhat.com>
12826
12827 [BZ # 17662]
12828 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12829 (RENAME_WHITEOUT): Define.
12830 [__USE_GNU] (renameat2): Declare.
12831 * stdio-common/Makefile (routines): Add renameat2.
12832 (tests): Add tst-renameat2.
12833 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12834 * stdio-common/renameat2.c: New file.
12835 * stdio-common/tst-renameat2.c: Likewise.
12836 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12837 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12838 undocumented.
12839 * sysdeps/unix/sysv/linux/kernel-features.h
12840 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12841 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12842 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12843 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12844 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12845 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12846 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12847 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12848 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12849 * include/stdio.h (__renameat): Add alias for renameat.
12850 * stdio-common/renameat.c (__renameat): Rename from renameat.
12851 Add hidden definition and alias.
12852 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12853 * sysdeps/mach/hurd/renameat.c: Likewise.
12854 * sysdeps/**/libc*.abilist: Add renameat2.
12855
12856 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12857
12858 * posix/bug-regex33.c: Fix build after regex sync.
12859
12860 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12861
12862 [BZ #23164]
12863 * localedata/tst-langinfo-setlocale.c: New file.
12864 * localedata/tst-langinfo-setlocale-static.c: New file.
12865 * localedata/tst-langinfo-newlocale.c: New file.
12866 * localedata/tst-langinfo-newlocale-static.c: New file.
12867 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12868 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12869 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12870 (tests-static): Remove tst-langinfo-static. Add
12871 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12872 (tests-special): Remove $(objpfx)tst-langinfo.out,
12873 $(objpfx)tst-langinfo-static.out. Add
12874 $(objpfx)tst-langinfo-setlocale.out,
12875 $(objpfx)tst-langinfo-newlocale.out,
12876 $(objpfx)tst-langinfo-setlocale-static.out,
12877 $(objpfx)tst-langinfo-newlocale-static.out.
12878 ($(objpfx)tst-langinfo.out): Remove.
12879 ($(objpfx)tst-langinfo-static.out): Remove.
12880 ($(objpfx)tst-langinfo-newlocale.out): New target.
12881 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12882 (test-xfail-tst-langinfo-newlocale-static): Add.
12883 ($(objpfx)tst-langinfo-setlocale.out): New target.
12884 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12885 * localedata/tst-langinfo.c: Call test_locale.
12886 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12887 data.
12888
12889 2018-07-04 Florian Weimer <fweimer@redhat.com>
12890
12891 testrun.sh: Implement --tool=strace, --tool=valgrind
12892 * Makefile (testrun-script): Define variable.
12893 (testrun.sh): Use variable.
12894 * manual/install.texi (Tools for Compilation): make 4.0 or later
12895 is required.
12896 * configure.ac: Check for make 4.0 or later.
12897 * INSTALL: Regenerate.
12898 * configure: Likewise.
12899
12900 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12901
12902 [BZ #23233]
12903 [BZ #21163]
12904 [BZ #18986]
12905 [BZ #13762]
12906 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12907 * posix/PCRE.tests: Remove invalid test.
12908 * posix/bug-regex28.c: Fix expected values for used syntax.
12909 * posix/bug-regex37.c: New file.
12910 * posix/bug-regex38.c: Likewise.
12911 * posix/regcomp.c: Sync with gnulib.
12912 * posix/regex.c: Likewise.
12913 * posix/regex.h: Likewise.
12914 * posix/regex_internal.c: Likewise.
12915 * posix/regex_internal.h: Likewise.
12916 * posix/regexec.c: Likewise.
12917
12918 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12919
12920 [BZ #23308]
12921 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12922 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12923 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12924 * localedata/unicode-gen/PropList.txt: likewise.
12925 * localedata/unicode-gen/UnicodeData.txt: likewise.
12926 * localedata/charmaps/UTF-8: Regenerate.
12927 * localedata/locales/i18n_ctype: likewise.
12928 * localedata/locales/tr_TR: likewise.
12929 * localedata/locales/translit_circle: likewise.
12930 * localedata/locales/translit_cjk_compat: likewise.
12931 * localedata/locales/translit_combining: likewise.
12932 * localedata/locales/translit_compat: likewise.
12933 * localedata/locales/translit_font: likewise.
12934 * localedata/locales/translit_fraction: likewise.
12935
12936 2018-07-03 Florian Weimer <fweimer@redhat.com>
12937
12938 [BZ #23363]
12939 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12940 * stdio-common/tst-printf.sh: Adjust expected output.
12941 * LICENSES: Update.
12942
12943 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12944
12945 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12946 symbol.
12947
12948 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12949
12950 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12951 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12952 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12953 * stdio-common/tst-printfsz-islongdouble.c: New file.
12954 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12955 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12956 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12957 [subdir == stdio-common] (tests-internal): Add
12958 test-printf-size-ieee128, and test-printf-size-ibm128.
12959 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12960 (CFLAGS-test-printf-size-ibm128.c): New variables.
12961 [subdir == stdio-common] (tests-special): Add
12962 $(objpfx)test-printf-size-ieee128.out and
12963 $(objpfx)test-printf-size-ibm128.out.
12964 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12965 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12966 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12967 __printf_sizeieee128.
12968 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12969 New file.
12970 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12971 Likewise.
12972 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12973 Likewise.
12974
12975 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12976
12977 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12978 (exp2f_inline): Likewise.
12979 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12980 (__math_uflowf): Likewise.
12981 (__math_may_uflowf): Likewise.
12982 (__math_divzerof): Likewise.
12983 (__math_invalidf): Likewise.
12984 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12985 (__math_oflowf): Likewise.
12986 (__math_uflowf): Likewise.
12987 (__math_may_uflowf): Likewise.
12988 (__math_divzerof): Likewise.
12989 (__math_invalidf): Likewise.
12990
12991 2018-06-29 DJ Delorie <dj@redhat.com>
12992 Carlos O'Donell <carlos@redhat.com>
12993
12994 [BZ #23329]
12995 * include/libc-symbols.h: Comment the freeres framework.
12996 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12997 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12998 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12999 * dlfcn/dlerror.c: Include libc-symbols.h
13000 (__dlerror_main_freeres): New function.
13001 * dlfcn/dlfreeres.c: New file.
13002 * dlfcn/sdlfreeres.c: New file.
13003 * include/dlfcn.h: Declare __dlerror_main_freeres.
13004 * malloc/set-freeres.c: Declare __libdl_freeres, and
13005 __libpthread_freeres.
13006 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
13007 the releavant libraries are loaded.
13008 * malloc/thread-freeres.c: Add comments.
13009 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
13010 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
13011 * nptl/allocatestack.c (__nptl_free_stacks): New function.
13012 (__free_stacks): Rename to...
13013 (free_stacks): ...this. Mark static.
13014 (queue_stack): Call free_stacks.
13015 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
13016 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
13017 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
13018 ptr_freeres element from struct.
13019 (pthread_functions): Remove .ptr_freeres from struct initializer.
13020 [SHARED] (nptl_freeres): Remove.
13021 * nptl/nptlfreeres.c: New file.
13022 * nptl/pthreadP.h
13023 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
13024 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
13025 attribute_hidden.
13026 (__free_stacks): Rename to...
13027 (__nptl_stacks_freeres): ...this.
13028 (__shm_directory_freeres): Declare.
13029 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
13030 (__nptl_unwind_freeres): ...this.
13031 * resolv/res-close.c: Add comment.
13032 * resolv/resolv_conf.c: Include libc-symbols.h.
13033 * string/strerror_l.c: Include libc-symbols.h.
13034 * sunrpc/rpc_thread.c: Include libc-symbols.h.
13035 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
13036 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
13037 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
13038
13039 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13040
13041 * stdlib/tst-strfmon_l.c: Add tests for long double.
13042
13043 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
13044
13045 [BZ #23208]
13046 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
13047 * localedata/locales/dsb_DE: New file.
13048
13049 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13050
13051 [BZ #23140]
13052 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
13053 genitive case).
13054 (alt_mon): New entry, import from CLDR (nominative case).
13055
13056 2018-06-29 Sylvain Lesage <severo@rednegra.net>
13057
13058 [BZ #22996]
13059 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
13060
13061 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
13062
13063 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13064 Use vector registers.
13065
13066 * sysdeps/aarch64/multiarch/memmove_falkor.S
13067 (__memcpy_falkor): Use vector registers.
13068
13069 2018-06-29 Martin Sebor <msebor@redhat.com>
13070
13071 * manual/stdio.texi (Customizing Printf): Mention interaction
13072 with GCC built-ins.
13073
13074 2018-06-29 Maciej W. Rozycki <macro@mips.com>
13075
13076 [BZ #23307]
13077 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
13078 `st_value' is 0 if `st_shndx' is SHN_ABS.
13079 * elf/tst-absolute-zero.c: New file.
13080 * elf/tst-absolute-zero-lib.c: New file.
13081 * elf/tst-absolute-zero-lib.lds: New file.
13082 * elf/Makefile (tests): Add `tst-absolute-zero'.
13083 (modules-names): Add `tst-absolute-zero-lib'.
13084 (LDLIBS-tst-absolute-zero-lib.so): New variable.
13085 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
13086 ($(objpfx)tst-absolute-zero: New dependency.
13087
13088 2018-06-29 Zack Weinberg <zackw@panix.com>
13089
13090 * configure.ac: New command-line option --disable-crypt.
13091 Force --disable-nss-crypt when --disable-crypt is given, with a
13092 warning if it was explicitly enabled.
13093 * configure: Regenerate.
13094 * config.make.in: New boolean substitution variable $(build-crypt).
13095 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
13096 when $(build-crypt).
13097 * manual/install.texi: Document --disable-crypt.
13098 * INSTALL: Regenerate.
13099
13100 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
13101 which is never set.
13102 * conform/Makefile: Only include libcrypt.a in
13103 linknamespace-libs-xsi and linknamespace-libs-XPG4
13104 when $(build-crypt).
13105 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
13106 USE_CRYPT to 1 when $(build-crypt).
13107 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
13108 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
13109 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
13110
13111 2018-06-29 Zack Weinberg <zackw@panix.com>
13112
13113 * crypt/crypt.h, posix/unistd.h: Update comments and
13114 prototypes for crypt and crypt_r.
13115
13116 * manual/crypt.texi (Cryptographic Functions): New initial
13117 exposition.
13118 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
13119 (Unpredictable Bytes): Improve initial exposition. Clarify error
13120 behavior of getentropy and getrandom.
13121 * manual/examples/genpass.c: Generate a salt using getentropy
13122 instead of the current time. Use hash $5$ (SHA-2-256).
13123 * manual/examples/testpass.c: Demonstrate validation against
13124 hashes generated with three different one-way functions.
13125
13126 * manual/intro.texi: crypt.texi does not need an overview
13127 anymore.
13128
13129 * manual/nss.texi, manual/memory.texi, manual/socket.texi
13130 * manual/terminal.texi: Consistently refer to "passphrases"
13131 * instead of "passwords", and to the "user database" instead
13132 * of the "password database".
13133 * manual/users.texi: Similarly. Add notes about how actual
13134 passphrase hashes are now stored in the shadow database.
13135 Remove 20-year-old junk todo note.
13136
13137 2018-06-29 Zack Weinberg <zackw@panix.com>
13138
13139 * manual/crypt.texi: Use a normal top-level @node declaration.
13140 Move most of the introductory text to the 'crypt' section.
13141 Move the example programs below the @deftypefun for 'crypt_r'.
13142 Move the 'getpass' section...
13143 * manual/terminal.texi: ...here.
13144
13145 2018-06-29 Zack Weinberg <zackw@panix.com>
13146 Florian Weimer <fweimer@redhat.com>
13147
13148 * posix/unistd.h: Do not declare encrypt.
13149 (_XOPEN_CRYPT): Remove macro definition.
13150 (crypt): Declare only for _USE_MISC.
13151 * stdlib/stdlib.h: Do not declare setkey.
13152 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
13153 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
13154
13155 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
13156 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
13157 into compat symbols. Don't define initial_perm if it's not
13158 going to be used.
13159 * crypt/cert.c: Link explicitly with the expected versions for
13160 setkey and encrypt. If they are not available at all, mark
13161 the test as unsupported.
13162
13163 * sunrpc/des_crypt.c: Unconditionally block linkage with
13164 cbc_crypt and ecb_crypt for new binaries.
13165 * sunrpc/des_soft.c: Unconditionally block linkage with
13166 des_setparity for new binaries.
13167
13168 * manual/crypt.texi: Remove the entire "DES Encryption"
13169 section. Also remove the paragraph talking about FIPS 140-2
13170 from the introduction.
13171 * manual/string.texi (strfry, memfrob): Revise. Recommend use
13172 of libgcrypt for "real" encryption, not DES.
13173 * manual/conf.texi (Constants for Sysconf): Mention that
13174 _XOPEN_CRYPT is no longer impelemented.
13175
13176 * conform/data/unistd.h-data: Remove crypt function declaration.
13177
13178 2018-06-29 Florian Weimer <fweimer@redhat.com>
13179
13180 [BZ #23351]
13181 * malloc/hooks.c: Update comments on restoring of dumped heaps.
13182 (disallow_malloc_check): Remove variable.
13183 (__malloc_check_init): Adjust.
13184 (malloc_set_state): Update comment.
13185 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
13186 declarations.
13187
13188 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13189
13190 [BZ #23140]
13191 * localedata/locales/ast_ES (mon): Rename to...
13192 (alt_mon): This.
13193 (mon): Import from CLDR (genitive case).
13194
13195 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
13196 Jakub Sitnicki <jkbs@redhat.com>
13197
13198 [BZ #21812]
13199 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
13200 on NLM_F_DUMP_INTR.
13201
13202 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
13203
13204 * manual/llio.texi: Remove spurious space.
13205
13206 2018-06-28 Florian Weimer <fweimer@redhat.com>
13207
13208 [BZ #23349]
13209 * time/bits/types/struct_timespec.h: Change header inclusion guard to
13210 _STRUCT_TIMESPEC.
13211
13212 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13213
13214 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
13215 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
13216 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
13217 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
13218 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
13219 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
13220 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
13221
13222 2018-06-27 Maciej W. Rozycki <macro@mips.com>
13223
13224 [BZ #23266]
13225 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
13226 Copy and null-terminate entries that are not terminated, in
13227 addition to empty ones.
13228
13229 2018-06-27 Florian Weimer <fweimer@redhat.com>
13230
13231 [BZ #18023]
13232 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
13233 (extend_alloca_account): Remove.
13234 * manual/stdio.texi (Variable Arguments Output): Update comment.
13235
13236 2018-06-27 Joseph Myers <joseph@codesourcery.com>
13237
13238 * nptl/sockperf.c: Remove file.
13239
13240 2018-06-27 Florian Weimer <fweimer@redhat.com>
13241
13242 [BZ #18023]
13243 * elf/dl-deps.c (_dl_map_object_deps): Use struct
13244 scratch_buffer instead of extend_alloca.
13245
13246 2018-06-27 Florian Weimer <fweimer@redhat.com>
13247
13248 [BZ #18023]
13249 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
13250 scratch_buffer instead of extend_alloca. Update comments.
13251
13252 2018-06-27 Florian Weimer <fweimer@redhat.com>
13253
13254 [BZ #18023]
13255 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
13256 instead of extend_alloca.
13257
13258 2018-06-26 Joseph Myers <joseph@codesourcery.com>
13259
13260 [BZ #13888]
13261 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
13262 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
13263 /tmp.
13264 * scripts/test-installation.pl: Put temporary files in build
13265 directory, not /tmp.
13266 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
13267 (CFLAGS-bug4.c): Likewise.
13268 (CFLAGS-bug5.c): Likewise.
13269 (CFLAGS-test-fseek.c): Likewise.
13270 (CFLAGS-test-popen.c): Likewise.
13271 (CFLAGS-test_rdwr.c): Likewise.
13272 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
13273 /tmp.
13274 * stdio-common/bug4.c (main): Likewise.
13275 * stdio-common/bug5.c (main): Likewise.
13276 * stdio-common/test-fseek.c (TESTFILE): Likewise.
13277 * stdio-common/test-popen.c (do_test): Likewise.
13278 * stdio-common/test_rdwr.c (main): Likewise.
13279
13280 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
13281
13282 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
13283 (sem_open): Set sem.newsem.pad to zero for valgrind.
13284
13285 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13286
13287 [BZ #20251]
13288 * NEWS: Mention fcntl64 addition.
13289 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
13290 * login/utmp_file.c: Likewise.
13291 * sysdeps/posix/fdopendir.c: Likewise.
13292 * sysdeps/posix/opendir.c: Likewise.
13293 * sysdeps/unix/pt-fcntl.c: Likewise.
13294 * include/fcntl.h (__libc_fcntl64, __fcntl64,
13295 __fcntl64_nocancel_adjusted): New prototype.
13296 (__fcntl_nocancel_adjusted): Remove prototype.
13297 * io/Makefile (routines): Add fcntl64.
13298 (CFLAGS-fcntl64.c): New rule.
13299 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
13300 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
13301 * io/fcntl.h (fcntl64): Add prototype and redirect if
13302 __USE_FILE_OFFSET64 is defined.
13303 * io/fcntl64.c: New file.
13304 * manual/llio.text: Add a note for which commands fcntl acts a
13305 cancellation point.
13306 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
13307 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
13308 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
13309 New symbols.
13310 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
13311 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
13312 non-LFS case.
13313 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
13314 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
13315 to __fcntl64_nocancel.
13316 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
13317 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
13318 to __fcntl64_nocancel.
13319 * sysdeps/generic/not-cancel.h: Likewise.
13320 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
13321 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
13322 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
13323 (fcntl64): New symbol.
13324 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13325 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13326 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13329 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13330 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13331 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13332 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13333 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13334 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
13335 fcntl64): Likewise.
13336 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13337 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
13338 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13339 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13340 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13341 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13342 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13343 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13344 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13346 Likewise.
13347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13348 Likewise.
13349 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13350 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13351 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13352
13353 2018-06-26 Florian Weimer <fweimer@redhat.com>
13354
13355 Run thread shutdown functions in an explicit order.
13356 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
13357 definition.
13358 (__libc_thread_freeres): Call thread shutdown functions
13359 explicitly.
13360 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
13361 * include/string.h (__strerror_thread_freeres): Declare.
13362 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
13363 arena_thread_freeres. No longer static. Remove thread shutdown
13364 hook registration.
13365 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
13366 Declare.
13367 * resolv/res-close.c (__res_thread_freeres): Renamed from
13368 res_thread_freeres. No longer static. Remove thread shutdown
13369 hook registration.
13370 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
13371 * resolv/resolv_conf.c (freeres): Remove incorrect section
13372 attribute and use libc_freeres_fn.
13373 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
13374 strerror_thread_freeres. No longer static. Remove thread
13375 shutdown hook registration.
13376 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
13377 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
13378 shutdown hook registration.
13379 * Makerules (shlib.lds): Do not provide section boundary symbols
13380 for __libc_thread_subfreeres.
13381 * manual/memory.texi (Basic Allocation): Update comment.
13382
13383 2018-06-26 Florian Weimer <fweimer@redhat.com>
13384
13385 Remove always-defined _RPC_THREAD_SAFE_ macro.
13386 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
13387 Do not define _RPC_THREAD_SAFE_.
13388 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
13389 conditional.
13390 * sunrpc/clnt_perr.c: Likewise.
13391 * sunrpc/clnt_raw.c: Likewise.
13392 * sunrpc/clnt_simp.c: Likewise.
13393 * sunrpc/key_call.c: Likewise.
13394 * sunrpc/rpc_common.c: Likewise.
13395 * sunrpc/rpc_main.c: Likewise.
13396 * sunrpc/rpc_thread.c: Likewise.
13397 * sunrpc/svc.c: Likewise.
13398 * sunrpc/svc_raw.c: Likewise.
13399 * sunrpc/svc_simple.c: Likewise.
13400 * sumrpc/svcauth_des.c: Likewise.
13401
13402 2018-06-26 Florian Weimer <fweimer@redhat.com>
13403
13404 * libio/Makefile (tests-internal): Add tst-vtables,
13405 tst-vtables-interposed.
13406 * libio/tst-vtables.c: New file.
13407 * libio/tst-vtables-common.c: Likewise.
13408 * libio/tst-vtables-interposed.c: Likewise.
13409
13410 2018-06-26 Florian Weimer <fweimer@redhat.com>
13411
13412 * support/support_test_main.c (support_test_main): Only call
13413 setvbuf if not disables.
13414 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
13415 * support/test-driver.h (struct test_config): Add no_setvbuf member.
13416
13417 2018-06-26 Florian Weimer <fweimer@redhat.com>
13418
13419 [BZ #23313]
13420 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
13421
13422 2018-06-25 Florian Weimer <fweimer@redhat.com>
13423
13424 [BZ #18023]
13425 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13426 Use struct scratch_buffer instead of extend_alloca.
13427
13428 2018-06-25 Florian Weimer <fweimer@redhat.com>
13429
13430 [BZ #18023]
13431 * nss/getent.c (initgroups_keys): Use dynarray instead of
13432 extend_alloca.
13433
13434 2018-06-25 Florian Weimer <fweimer@redhat.com>
13435
13436 [BZ #18023]
13437 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
13438 Use struct scratch_buffer instead of extend_alloca.
13439
13440 2018-06-25 Florian Weimer <fweimer@redhat.com>
13441
13442 [BZ #18023]
13443 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
13444 back to malloc directly, without stack allocations.
13445
13446 2018-06-25 Florian Weimer <fweimer@redhat.com>
13447
13448 [BZ #18023]
13449 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
13450 of extend_alloca.
13451
13452 2018-06-25 Florian Weimer <fweimer@redhat.com>
13453
13454 [BZ #18023]
13455 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
13456 of extend_alloca.
13457 * nscd/hstcache.c (addhstbyX): Likewise.
13458 * nscd/pwdcache.c (addpwbyX): Likewise.
13459 * nscd/servicescache.c (addservbyX): Likewise.
13460
13461 2018-06-25 Florian Weimer <fweimer@redhat.com>
13462
13463 [BZ #18023]
13464 * nscd/connections.c (read_cmdline): New function.
13465 (restart): Use it. Update comment.
13466
13467 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13468
13469 [BZ #23140]
13470 * localedata/locales/csb_PL (mon): Rename to...
13471 (alt_mon): This.
13472 (abmon): Rename to...
13473 (ab_alt_mon): This.
13474 (mon): Add with proper genitive forms, copy from Wikipedia.
13475 (abmon): Likewise.
13476
13477 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13478
13479 [BZ #19485]
13480 * localedata/locales/csb_PL (mon): Fix typos:
13481 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13482 (yesstr): Add, value is "jo".
13483 (nostr): Add, value is "nié".
13484
13485 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13486
13487 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13488 all log1p and significand functions on m680x0.
13489 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13490 of s_significand.c..
13491 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13492 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13493 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13494 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13495 s_log1p.c and include it..
13496
13497 2018-06-21 Vincent Chen <vincentc@andestech.com>
13498
13499 * elf/elf.h (R_NDS32_NONE): New define.
13500 (R_NDS32_32_RELA): Likewise.
13501 (R_NDS32_COPY): Likewise.
13502 (R_NDS32_GLOB_DAT): Likewise.
13503 (R_NDS32_JUMP_SLOT): Likewise.
13504 (R_NDS32_RELATIVE): Likewise.
13505 (R_NDS32_TLS_TPOFF): Likewise.
13506 (R_NDS32_TLS_DESC): Likewise.
13507
13508 2018-06-21 Mark Wielaard <mark@klomp.org>
13509
13510 * elf/elf.h (R_BPF_MAP_FD): Removed.
13511 (R_BPF_64_64, R_BPF_64_32): New.
13512
13513 2018-06-21 Florian Weimer <fweimer@redhat.com>
13514
13515 [BZ #23253]
13516 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13517 Renamed from libc_feholdsetround_ctx.
13518 (default_libc_feresetround_ctx): Renamed from
13519 libc_feresetround_ctx.
13520 (default_libc_feholdsetround_noex_ctx): Renamed from
13521 libc_feholdsetround_noex_ctx.
13522 (default_libc_feresetround_noex_ctx): Renamed from
13523 libc_feresetround_noex_ctx.
13524 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13525 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13526 forwardning to the old implementations under the new names.
13527 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13528 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13529 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13530 (libc_feresetround_ctx): Forward to default implements for i386
13531 and MATH_SET_BOTH_ROUNDING_MODES.
13532 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13533 Add -DMATH_SET_BOTH_ROUNDING_MODES.
13534
13535 2018-06-20 Joseph Myers <joseph@codesourcery.com>
13536
13537 * string/tst-cmp.c: Include <libc-diag.h>.
13538 (strncmp_max): Disable -Wstringop-overflow= around call to
13539 strncmp.
13540 (strncasecmp_max): Disable -Wstringop-overflow= around call to
13541 strncasecmp.
13542
13543 * string/bug-strpbrk1.c: Include <libc-diag.h>.
13544 (main): Disable -Wunused-value around call to strpbrk.
13545 * string/bug-strspn1.c: Include <libc-diag.h>.
13546 (main): Disable -Wunused-value around call to strspn.
13547
13548 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13549 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13550
13551 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13552 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13553
13554 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13555
13556 * math/Makefile (libm-calls): Move s_significandF to...
13557 (gen-libm-calls): ... here.
13558 * math/s_significand_template.c: New file.
13559 * math/s_significand.c: Removed.
13560 * math/s_significandf.c: Removed.
13561 * math/s_significandl.c: Removed.
13562 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13563 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13564
13565 * math/e_exp2_template.c (declare_mgen_finite_alias,
13566 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13567 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13568 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13569
13570 2018-06-20 Florian Weimer <fweimer@redhat.com>
13571
13572 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13573
13574 2018-06-19 Joseph Myers <joseph@codesourcery.com>
13575
13576 [BZ #23280]
13577 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13578 floating-point number to strtod functions rather than possibly
13579 negating result of those functions.
13580 * stdio-common/tst-scanf-round.c: New file.
13581 * stdio-common/Makefile (tests): Add tst-scanf-round.
13582 ($(objpfx)tst-scanf-round): Depend on $(libm).
13583
13584 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13585
13586 * sysdeps/mach/hurd/localplt.data: Move to...
13587 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13588 R_386_GLOB_DAT like on Linux i386.
13589
13590 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13591
13592 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13593 (SHM_STAT_ANY): New macro.
13594 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13595 (SHM_STAT_ANY): Likewise.
13596 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13597 (SHM_STAT_ANY): Likewise.
13598 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13599 (SHM_STAT_ANY): Likewise.
13600 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13601 (SHM_STAT_ANY): Likewise.
13602 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13603 (SHM_STAT_ANY): Likewise.
13604 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13605 (SHM_STAT_ANY): Likewise.
13606 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13607 (SHM_STAT_ANY): Likewise.
13608 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13609 (SHM_STAT_ANY): Likewise.
13610 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13611 (SHM_STAT_ANY): Likewise.
13612 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13613 (SHM_STAT_ANY): Likewise.
13614 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13615 (SHM_STAT_ANY): Likewise.
13616
13617 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13618 (SEM_STAT_ANY): New macro.
13619 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13620 (SEM_STAT_ANY): Likewise.
13621 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13622 (SEM_STAT_ANY): Likewise.
13623 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13624 (SEM_STAT_ANY): Likewise.
13625 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13626 (SEM_STAT_ANY): Likewise.
13627 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13628 (SEM_STAT_ANY): Likewise.
13629 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13630 (SEM_STAT_ANY): Likewise.
13631 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13632 (SEM_STAT_ANY): Likewise.
13633 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13634 (SEM_STAT_ANY): Likewise.
13635 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13636 (SEM_STAT_ANY): Likewise.
13637
13638 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13639 (MSG_STAT_ANY): New macro.
13640 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13641 (MSG_STAT_ANY): Likewise.
13642 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13643 (MSG_STAT_ANY): Likewise.
13644 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13645 (MSG_STAT_ANY): Likewise.
13646 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13647 (MSG_STAT_ANY): Likewise.
13648 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13649 (MSG_STAT_ANY): Likewise.
13650 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13651 (MSG_STAT_ANY): Likewise.
13652 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13653 (MSG_STAT_ANY): Likewise.
13654 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13655 (MSG_STAT_ANY): Likewise.
13656 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13657 (MSG_STAT_ANY): Likewise.
13658
13659 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13660 (MAP_TYPE): Change value to 0x2b.
13661
13662 2018-06-18 Florian Weimer <fweimer@redhat.com>
13663
13664 [BZ #15722]
13665 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13666 socket with SOCK_CLOEXEC.
13667
13668 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13669
13670 [BZ #23303]
13671 * sysdeps/powerpc/powerpc64/le/Makefile
13672 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13673 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13674 (gnulib-tests): Also add $(f128-loader-link) for
13675 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13676
13677 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
13678
13679 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13680 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13681 of sendfile.
13682 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13683 (sendfile64): New strong alias.
13684 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13685 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13686 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13687 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13688 attribute.
13689 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13690 ___pthread_get_cleanup_stack.
13691 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13692 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13693 * mach/shortcut.awk: Make syscall stubs include
13694 <mach-shortcuts-hidden.h> and add hidden definition.
13695 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13696 (__mach_msg): Add hidden prototype.
13697 * mach/msg.c: Include <mach.h>.
13698 (__mach_msg): Add hidden definition.
13699 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13700 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13701 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13702 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13703 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13704 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13705 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13706 prototype and definition.
13707 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13708 hidden target for _hurd_self_sigstate.
13709
13710 2018-06-15 Joseph Myers <joseph@codesourcery.com>
13711
13712 [BZ #23007]
13713 * stdlib/tst-strtod-nan-sign-main.c: New file.
13714 * stdlib/tst-strtod-nan-sign.c: Likewise.
13715 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13716 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13717 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13718 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13719 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13720
13721 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
13722
13723 [BZ #23007]
13724 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13725 appropriate sign.
13726
13727 2018-06-14 Florian Weimer <fweimer@redhat.com>
13728
13729 [BZ #23290]
13730 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13731 that the result stays within the ISO-8859-1 range.
13732 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13733 characters are defined in IBM273.
13734
13735 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13736
13737 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13738 __mach_task_self): Remove attribute_hidden.
13739
13740 2018-06-14 Joseph Myers <joseph@codesourcery.com>
13741
13742 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13743 ignore -Wrestrict for one test.
13744
13745 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
13746 Szabolcs Nagy <szabolcs.nagy@arm.com>
13747
13748 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13749
13750 2018-06-14 Florian Weimer <fweimer@redhat.com>
13751
13752 * scripts/update-abilist.sh: Accept empty list of files to patch.
13753
13754 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13755
13756 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13757 test-xfail-check-abi-libmachuser): Add.
13758 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13759 __libc_read and __libc_write to __read and __write.
13760 * sysdeps/hurd/include/hurd/port.h: New file.
13761 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13762 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13763 __thread_switch, __evc_wait): Move declarations to...
13764 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13765 attribute_hidden.
13766 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13767 use PLT to call _hurd_self_sigstate.
13768
13769 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13770
13771 [BZ #23279]
13772 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13773 MAX_EXP as overflowing.
13774 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13775 overflow flag.
13776 (round_str): Output also whether result overflows in each rounding
13777 mode.
13778 * stdlib/tst-strtod-round-data: Add more tests.
13779 * stdlib/tst-strtod-round-data.h: Regenerated.
13780 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13781 (TEST): Handle extra arguments for overflow flags.
13782 (struct test_overflow): New type.
13783 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13784 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13785 (test_in_one_mode): Take argument with overflow information.
13786 (do_test): Update calls to test_in_one_mode.
13787
13788 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13789
13790 * elf/dl-load (_dl_dst_substitute): Correct comment.
13791 (_dl_dst_count): Likewise.
13792
13793 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13794 lll_futex_timed_wait.
13795
13796 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13797
13798 [BZ #23277]
13799 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13800 attribute.
13801 * math/test-nan-const.c: New file.
13802 * math/Makefile (tests): Add test-nan-const.
13803 (CFLAGS-test-nan-const.c): New variable.
13804
13805 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13806
13807 * benchtests/scripts/compare_strings.py (process_results): Add
13808 funcs argument. Compare only functions which are selected.
13809 (main): Check if base function is among selected functions.
13810 Pass selected functions to process_results.
13811 (__main__): Add -f/--functions argument.
13812
13813 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13814 Hongbo Zhang <hongbo.zhang@linaro.org>
13815
13816 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13817 __memcpy_falkor for phecda core.
13818 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13819 __memmove_falkor for phecda core.
13820 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13821 __memset_falkor for phecda core.
13822 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13823 for phecda core.
13824 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13825 macro to identify phecda core.
13826
13827 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13828 Andreas Schwab <schwab@suse.de>
13829 Dmitry V. Levin <ldv@altlinux.org>
13830 Florian Weimer <fweimer@redhat.com>
13831
13832 [BZ #23102]
13833 [BZ #21942]
13834 [BZ #18018]
13835 [BZ #23259]
13836 CVE-2011-0536
13837 * elf/dl-dst.h: Remove DL_DST_COUNT.
13838 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13839 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13840 (is_dst): Comment. Support ELF gABI.
13841 (_dl_dst_count): Comment. Simplify and count DSTs.
13842 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13843 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13844 locals.
13845
13846 2018-06-12 Zack Weinberg <zackw@panix.com>
13847
13848 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13849 * sysdeps/unix/sysv/linux/dl-sysdep.c
13850 Include not-cancel.h. Use __close_nocancel instead of __close,
13851 __open64_nocancel instead of __open, __read_nocancel instead of
13852 __libc_read, and __write_nocancel instead of __libc_write.
13853
13854 * csu/check_fds.c (check_one_fd)
13855 * sysdeps/posix/fdopendir.c (__fdopendir)
13856 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13857 instead of __fcntl and/or __libc_fcntl.
13858
13859 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13860 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13861 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13862 Use __open64_nocancel instead of __open_nocancel.
13863
13864 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13865 hidden_proto declarations to the end and issue them if either
13866 IS_IN(libc) or IS_IN(rtld).
13867 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13868 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13869 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13870 read_nocancel, waitpid_nocancel, write_nocancel.
13871
13872 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13873 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13874 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13875
13876 * nptl/pt-fcntl.c: New file.
13877 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13878 (libpthread-routines): Add pt-fcntl.
13879 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13880 (__libc_fcntl): Remove attribute_hidden.
13881 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13882 __fcntl_nocancel_adjusted, not fcntl_common.
13883 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13884 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13885 to fcntl_nocancel.c.
13886 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13889 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13890
13891 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13892 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13893 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13894 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13895 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13896 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13897 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13898 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13899 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13900 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13901 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13902 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13903 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13904 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13905 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13906 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13907 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13908 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13909 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13910 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13911
13912 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13913 libpthread-routines.
13914 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13915 defines nothing.
13916
13917 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13918 __libc_read, and __write instead of __libc_write. Define
13919 __open64 in addition to __open.
13920
13921 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13922
13923 [BZ #23250]
13924 [BZ #10686]
13925 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13926 to _private_tm[3] and add __glibc_reserved2.
13927 Add _Static_assert of offset of __private_ss == 0x30.
13928 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13929 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13930
13931 2018-06-12 Florian Weimer <fweimer@redhat.com>
13932
13933 x86: Make strncmp usable from rtld.
13934 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13935 __strncmp_ia32 if in libc (and not in rtld).
13936 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13937 strncmp if not in libc (and not to __strncmp_sse2).
13938
13939 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13940
13941 [BZ #23140]
13942 * localedata/locales/gd_GB (mon): Rename to...
13943 (alt_mon): This.
13944 (mon): Import from CLDR (genitive case).
13945 * localedata/locales/hsb_DE (mon): Rename to...
13946 (alt_mon): This.
13947 (mon): Import from CLDR (genitive case).
13948 * localedata/locales/wa_BE (mon): Rename to...
13949 (alt_mon): This.
13950 (mon): Add, fill with the proper genitive forms, but CLDR data
13951 is incomplete; completed according to the comments in this file.
13952 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13953
13954 * localedata/locales/wa_BE (country_name): Reword
13955 "Beljike" -> "Beldjike".
13956
13957 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13958
13959 [BZ #23272]
13960 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13961 cases of non-finite arguments.
13962 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13963
13964 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13965
13966 [BZ #23174]
13967 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13968
13969 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13970
13971 [BZ #23264]
13972 * include/unistd.h (__execvpex): New prototype.
13973 * posix/Makefile (tests): Add tst-spawn4.
13974 (tests-internal): Add tst-spawn4-compat.
13975 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13976 * posix/tst-spawn4-compat.c: New file.
13977 * posix/tst-spawn4.c: Likewise.
13978 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13979 binaries as shell scripts.
13980 * sysdeps/posix/spawni.c (__spawni): Likewise.
13981
13982 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13983
13984 [BZ #23145]
13985 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13986 ($(all-built-dso:=.dynsym): New target.
13987 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13988 ($(objpfx)check-initfini.out): New target.
13989 (generated): Add check-initfini.out.
13990 * scripts/check-initfini.awk: New file.
13991 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13992 (_fini): Likewise.
13993 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13994 (_fini): Likewise.
13995 * sysdeps/arm/crti.S (_init): Mark as hidden.
13996 (_fini): Likewise.
13997 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13998 (_fini): Likewise.
13999 * sysdeps/i386/crti.S (_init): Mark as hidden.
14000 (_fini): Likewise.
14001 * sysdeps/ia64/crti.S (_init): Mark as hidden.
14002 (_fini): Likewise.
14003 * sysdeps/m68k/crti.S (_init): Mark as hidden.
14004 (_fini): Likewise.
14005 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
14006 (_fini): Likewise.
14007 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
14008 (_fini): Likewise.
14009 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
14010 (_fini): Likewise.
14011 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
14012 (_fini): Likewise.
14013 * sysdeps/nios2/crti.S (_init): Mark as hidden.
14014 (_fini): Likewise.
14015 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
14016 (_fini): Likewise.
14017 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
14018 (_fini): Likewise.
14019 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
14020 (_fini): Likewise.
14021 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
14022 (_fini): Likewise.
14023 * sysdeps/sh/crti.S (_init): Mark as hidden.
14024 (_fini): Likewise.
14025 * sysdeps/sparc/crti.S (_init): Mark as hidden.
14026 (_fini): Likewise.
14027 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
14028 (_fini): Likewise.
14029
14030 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14031
14032 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
14033 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
14034 and TF redirection to KFtype and KF only when the default
14035 long double type is not the IEEE 128-bit floating point type.
14036
14037 2018-06-05 Joseph Myers <joseph@codesourcery.com>
14038
14039 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
14040 macro.
14041 (HWCAP_USCAT): Likewise.
14042 (HWCAP_ILRCPC): Likewise.
14043 (HWCAP_FLAGM): Likewise.
14044 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14045 Increase to 28.
14046 (_dl_aarch64_cap_flags): Add new flag names.
14047
14048 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
14049 (MAP_FIXED_NOREPLACE): New macro.
14050 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
14051 (MAP_FIXED_NOREPLACE): Likewise.
14052 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
14053 (MAP_FIXED_NOREPLACE): Likewise.
14054 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
14055 (MAP_FIXED_NOREPLACE): Likewise.
14056 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
14057 (MAP_FIXED_NOREPLACE): Likewise.
14058 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
14059 (MAP_FIXED_NOREPLACE): Likewise.
14060 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
14061 (MAP_FIXED_NOREPLACE): Likewise.
14062 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
14063 (MAP_FIXED_NOREPLACE): Likewise.
14064 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
14065 (MAP_FIXED_NOREPLACE): Likewise.
14066 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
14067 (MAP_FIXED_NOREPLACE): Likewise.
14068 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
14069 (MAP_FIXED_NOREPLACE): Likewise.
14070 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
14071 (MAP_FIXED_NOREPLACE): Likewise.
14072 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
14073 (MAP_FIXED_NOREPLACE): Likewise.
14074 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
14075 (MAP_FIXED_NOREPLACE): Likewise.
14076 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
14077 (MAP_FIXED_NOREPLACE): Likewise.
14078
14079 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14080 version to 4.17.
14081
14082 2018-06-04 Joseph Myers <joseph@codesourcery.com>
14083
14084 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14085 version to 4.17
14086
14087 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14088
14089 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
14090 int.
14091 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
14092
14093 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14094
14095 * benchtests/scripts/compare_string.py: (process_results) Catch
14096 exception in non-existent base_func and catch exception in
14097 non-existent attribute.
14098 (parse_file) Catch exception if input file does not exist.
14099
14100 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14101
14102 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
14103 options to avoid diff calculation and omit header, respectively.
14104 (main): process --no-diff and --no-header
14105
14106 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14107 H.J. Lu <hongjiu.lu@intel.com>
14108
14109 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14110 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
14111 wcsncmp-sse2.
14112 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14113 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
14114 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
14115 and __wcsncmp_sse2.
14116 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
14117 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
14118 AVX unaligned load is fast and vzeroupper is preferred.
14119 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
14120 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
14121 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
14122 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
14123 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
14124 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
14125 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
14126 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
14127 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
14128 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
14129 is undefined.
14130
14131 2018-06-01 Florian Weimer <fweimer@redhat.com>
14132
14133 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
14134 configuring with --disable-multi-arch, building with
14135 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
14136 Haswell-era CPU.
14137
14138 2018-06-01 Florian Weimer <fweimer@redhat.com>
14139
14140 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
14141 results from building with “-march=x86-64 -mtune=generic
14142 -mfpmath=sse” and running on a Haswell-era CPU.
14143
14144 2018-06-01 Joseph Myers <joseph@codesourcery.com>
14145
14146 [BZ #18473]
14147 * soft-fp/sqrttf2.c: Remove file.
14148 * soft-fp/sqrtdf2.c: Move to ....
14149 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
14150 <shlib-compat.h>.
14151 (__sqrtdf2): Make conditional on
14152 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
14153 symbol.
14154 * soft-fp/sqrtsf2.c: Move to ....
14155 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
14156 <shlib-compat.h>.
14157 (__sqrtsf2): Make conditional on
14158 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
14159 symbol.
14160 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
14161 (gcc-double-routines): Remove sqrtdf2.
14162 (gcc-quad-routines): Remove sqrttf2.
14163 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14164 Do not filter out sqrtsf2 and sqrtdf2.
14165 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
14166 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
14167
14168 2018-06-01 Florian Weimer <fweimer@redhat.com>
14169
14170 * sysdeps/generic/libcidn.abilist: Remove file.
14171
14172 2018-06-01 Florian Weimer <fweimer@redhat.com>
14173
14174 [BZ #23236]
14175 * libio/strfile.h (struct _IO_str_fields): Rename members to
14176 discourage their use and add comment.
14177 (_IO_STR_DYNAMIC): Remove unused macro.
14178 * libio/strops.c (_IO_str_init_static_internal): Do not use
14179 callback pointers. Call malloc and free.
14180 (_IO_str_overflow): Do not use callback pointers. Call malloc
14181 and free.
14182 (enlarge_userbuf): Likewise.
14183 (_IO_str_finish): Call free.
14184 * libio/wstrops.c (_IO_wstr_init_static): Initialize
14185 _allocate_buffer_unused.
14186 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
14187 and free.
14188 (enlarge_userbuf): Likewise.
14189 (_IO_wstr_finish): Call free.
14190 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
14191 _allocate_buffer_unused, _free_buffer_unused.
14192 * libio/memstream.c (__open_memstream): Likewise.
14193 * libio/vasprintf.c (_IO_vasprintf): Likewise.
14194 * libio/wmemstream.c (open_wmemstream): Likewise.
14195
14196 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
14197
14198 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
14199 AMD Ryzen 7 1800X.
14200
14201 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14202
14203 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
14204 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
14205 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
14206 New file.
14207 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
14208 Likewise.
14209 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
14210
14211 2018-05-29 Florian Weimer <fweimer@redhat.com>
14212
14213 * support/Makefile (libsupport-routines): Add
14214 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
14215 xpthread_barrierattr_setpshared.
14216 * support/xpthread_barrierattr_destroy.c: New file.
14217 * support/xpthread_barrierattr_init.c: Likewise.
14218 * support/xpthread_barrierattr_setpshared.c: Likewise.
14219
14220 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
14221
14222 [BZ #23206]
14223 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
14224 _r_debug and update DT_DEBUG for debugger.
14225
14226 2018-05-29 Florian Weimer <fweimer@redhat.com>
14227
14228 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
14229 (tst-strtod5i.out): Likewise.
14230
14231 2018-05-25 Joseph Myers <joseph@codesourcery.com>
14232
14233 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
14234 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
14235 (sparc64-quad-routines): New variable. Moved from ....
14236 [$(subdir) = soft-fp] (sysdep_routines): Add
14237 $(sparc64-quad-routines). Moved from ....
14238 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
14239 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
14240 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
14241 moved from ....
14242 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
14243 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
14244 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
14245 * sysdeps/sparc/sparc64/qp_add.c: ... here.
14246 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
14247 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
14248 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
14249 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
14250 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
14251 * sysdeps/sparc/sparc64/qp_div.c: ... here.
14252 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
14253 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
14254 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
14255 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
14256 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
14257 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
14258 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
14259 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
14260 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
14261 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
14262 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
14263 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
14264 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
14265 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
14266 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
14267 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
14268 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
14269 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
14270 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
14271 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
14272 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
14273 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
14274 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
14275 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
14276 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
14277 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
14278 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
14279 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
14280 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
14281 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
14282 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
14283 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
14284 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
14285 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
14286 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
14287 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
14288 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
14289 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
14290 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
14291 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
14292 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
14293 * sysdeps/sparc/sparc64/qp_util.c: ... here.
14294 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
14295 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
14296 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
14297 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
14298 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
14299 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
14300
14301 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
14302 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
14303 (sparc32-quad-routines): New variable. Moved from ....
14304 [$(subdir) = soft-fp] (sysdep_routines): Add
14305 $(sparc32-quad-routines). Moved from ....
14306 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
14307 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
14308 moved from ....
14309 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
14310 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
14311 * sysdeps/sparc/sparc32/q_add.c: ... here.
14312 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
14313 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
14314 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
14315 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
14316 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
14317 * sysdeps/sparc/sparc32/q_div.c: ... here.
14318 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
14319 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
14320 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
14321 * sysdeps/sparc/sparc32/q_feq.c: ... here.
14322 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
14323 * sysdeps/sparc/sparc32/q_fge.c: ... here.
14324 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
14325 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
14326 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
14327 * sysdeps/sparc/sparc32/q_fle.c: ... here.
14328 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
14329 * sysdeps/sparc/sparc32/q_flt.c: ... here.
14330 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
14331 * sysdeps/sparc/sparc32/q_fne.c: ... here.
14332 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
14333 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
14334 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
14335 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
14336 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
14337 * sysdeps/sparc/sparc32/q_mul.c: ... here.
14338 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
14339 * sysdeps/sparc/sparc32/q_neg.c: ... here.
14340 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
14341 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
14342 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
14343 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
14344 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
14345 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
14346 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
14347 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
14348 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
14349 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
14350 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
14351 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
14352 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
14353 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
14354 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
14355 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
14356 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
14357 * sysdeps/sparc/sparc32/q_sub.c: ... here.
14358 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
14359 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
14360 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
14361 * sysdeps/sparc/sparc32/q_util.c: ... here.
14362 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
14363 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
14364 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
14365 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
14366
14367 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14368 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14369
14370 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
14371 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
14372 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
14373 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
14374
14375 2018-05-24 Joseph Myers <joseph@codesourcery.com>
14376
14377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
14378 powerpc/soft-fp.
14379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
14380 Likewise.
14381 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
14382 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
14383
14384 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14385
14386 [BZ #23171]
14387 * math/math.h [C++] (iseqsig): Fix parameter type for the long
14388 double version.
14389
14390 2018-05-23 Joseph Myers <joseph@codesourcery.com>
14391
14392 * sysdeps/sh/Implies: Remove sh/soft-fp.
14393 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
14394 * sysdeps/sh/sfp-machine.h: ... here.
14395
14396 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
14397
14398 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14399 (__mempcpy_erms): Skip zero length.
14400 (__memmove_erms): Likewise.
14401 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14402 (__memset_erms): Likewise.
14403
14404 2018-05-23 Joseph Myers <joseph@codesourcery.com>
14405
14406 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
14407 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14408 Add functions moved from ....
14409 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
14410 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
14411 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
14412 from ....
14413 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
14414 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
14415 * sysdeps/alpha/e_sqrtl.c: ... here.
14416 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
14417 * sysdeps/alpha/local-soft-fp.h: ... here.
14418 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
14419 * sysdeps/alpha/ots_add.c: ... here.
14420 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
14421 * sysdeps/alpha/ots_cmp.c: ... here.
14422 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
14423 * sysdeps/alpha/ots_cmpe.c: ... here.
14424 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
14425 * sysdeps/alpha/ots_cvtqux.c: ... here.
14426 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
14427 * sysdeps/alpha/ots_cvtqx.c: ... here.
14428 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
14429 * sysdeps/alpha/ots_cvttx.c: ... here.
14430 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
14431 * sysdeps/alpha/ots_cvtxq.c: ... here.
14432 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
14433 * sysdeps/alpha/ots_cvtxt.c: ... here.
14434 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
14435 * sysdeps/alpha/ots_div.c: ... here.
14436 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
14437 * sysdeps/alpha/ots_mul.c: ... here.
14438 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
14439 * sysdeps/alpha/ots_nintxq.c: ... here.
14440 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
14441 * sysdeps/alpha/ots_sub.c: ... here.
14442 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
14443 * sysdeps/alpha/sfp-machine.h: ... here.
14444
14445 2018-05-23 Florian Weimer <fweimer@redhat.com>
14446
14447 [BZ #19728]
14448 [BZ #19729]
14449 [BZ #22247]
14450 CVE-2016-6261
14451 CVE-2016-6263
14452 CVE-2017-14062
14453 Switch to extern IDNA implementation (libidn2).
14454 * libidn: Remove subdirectory.
14455 * LICENSES: Do not mention licensing conditions for the removed
14456 libidn code.
14457 * config.h.in (HAVE_LIBIDN): Remove.
14458 * include/dlfcn.h (__libc_dlopen): Update comment.
14459 * include/idna.h: Remove file.
14460 * inet/Makefile (routines): Add idna.
14461 (tests-static, tests-internal): Add tst-idna_name_classify.
14462 (LOCALES): Generate locales for tests.
14463 (tst-idna_name_classify.out): Depend on generated locales.
14464 * inet/idna_name_classify.c: New file.
14465 * inet/tst-idna_name_classify.c: Likewise.
14466 * inet/net-internal.h (__idna_to_dns_encoding)
14467 (__idna_from_dns_encoding): Declare.
14468 * inet/net-internal.h (enum idna_name_classification): Define.
14469 (__idna_name_classify): Declare.
14470 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14471 __idna_from_dns_encoding.
14472 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14473 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
14474 name as a fallback in case of encoding errors.
14475 (getnameinfo): Use DEPRECATED_NI_IDN.
14476 * inet/idna.c: New file.
14477 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14478 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14479 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14480 (modules-names): Add tst-no-libidn2.
14481 (extra-test-objs): Add tst-no-libidn2.os.
14482 (LDFLAGS-tst-no-libidn2.so): Set soname.
14483 (LOCALES): Set, and generate locales.
14484 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14485 (tst-resolv-ai_idn-latin1): Likewise.
14486 (tst-resolv-ai_idn-nolibidn2): Likewise.
14487 (tst-resolv-ai_idn.out): Depend on locales.
14488 (tst-resolv-ai_idn-latin1.out): Depend on locales.
14489 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14490 tst-no-libidn2.so.
14491 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14492 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14493 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14494 * resolv/tst-resolv-ai_idn.c: New file.
14495 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14496 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14497 * resolv/tst-no-libidn2.c: Likewise.
14498 * support/support_format_addrinfo.c (format_ai_flags): Do not
14499 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14500 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14501 (gaih_inet): Call __idna_to_dns_encoding and
14502 __idna_from_dns_encoding, and use the original (punycode) name if
14503 __idna_from_dns_encoding fails due to an encoding error.
14504 (getaddrinfo): Use DEPRECATED_AI_IDN.
14505 * sysdeps/unix/inet/Subdirs (libidn): Remove.
14506 * sysdeps/unix/inet/configure: Remove file.
14507 * sysdeps/unix/inet/configure.ac: Likewise.
14508
14509 2018-05-23 Florian Weimer <fweimer@redhat.com>
14510
14511 Implement allocate_once.
14512 * include/allocate_once.h: New file.
14513 * misc/allocate_once.c: Likewise.
14514 * misc/tst-allocate_once.c: Likewise.
14515 * misc/Makefile (routines): Add allocate_once.
14516 (tests-internal): Add tst-allocate_once.
14517 (generated): Add tst-allocate_once.mtrace,
14518 tst-allocate_once-mem.out.
14519 (tests-special): Add tst-allocate_once-mem.out.
14520 (tst-allocate_once-ENV): Set MALLOC_TRACE.
14521 (tst-allocate_once-mem.out): Call mtrace.
14522 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14523
14524 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
14525
14526 [BZ #23196]
14527 * string/test-memcpy.c (do_test1): New function.
14528 (test_main): Call it.
14529
14530 2018-05-23 Andreas Schwab <schwab@suse.de>
14531
14532 [BZ #23196]
14533 CVE-2018-11237
14534 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14535 (L(preloop_large)): Save initial destination pointer in %r11 and
14536 use it instead of %rax after the loop.
14537 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14538
14539 2018-05-22 Joseph Myers <joseph@codesourcery.com>
14540
14541 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14542 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14543 -I../soft-fp. Moved from ....
14544 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
14545 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14546 * sysdeps/aarch64/e_sqrtl.c: ... here.
14547 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14548 * sysdeps/aarch64/sfp-machine.h: ... here.
14549
14550 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14551 -Wmaybe-uninitialized around access to fq[0].
14552 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14553 Likewise.
14554
14555 [BZ #18471]
14556 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14557 aliases for non-libc case of versioned symbols.
14558 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14559 (llseek): Define as compat symbol if
14560 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14561 with link warning.
14562 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14563 Make into a compat symbol, disabled for minimum symbol version
14564 GLIBC_2.28 and later.
14565 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14566
14567 2018-05-22 Florian Weimer <fweimer@redhat.com>
14568
14569 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14570 not add -mpreferred-stack-boundary=4.
14571 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14572 (stack-align-test-flags): Likewise.
14573 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14574 Likewise.
14575 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14576 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14577 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14578 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14579 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14580 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14581 (CFLAGS-tst-align2.c): Likewise.
14582
14583 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14584
14585 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14586 (index_arch_Prefer_FSRM): Likewise.
14587 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14588 Also check Prefer_FSRM.
14589 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14590 Also return OPTIMIZE (erms) for Prefer_FSRM.
14591
14592 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14593
14594 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14595 (index_cpu_FSRM): Likewise.
14596 (reg_FSRM): Likewise.
14597
14598 2018-05-18 Joseph Myers <joseph@codesourcery.com>
14599
14600 * math/gen-tgmath-tests.py: Import sys.
14601 (Tests.__init__): Initialize macros_seen.
14602 (Tests.add_tests): Add macro to macros_seen. Only generate tests
14603 if requested to do so for this macro.
14604 (Tests.add_all_tests): Take argument for macro for which to
14605 generate tests.
14606 (Tests.check_macro_list): New function.
14607 (main): Handle check-list argument and argument specifying macro
14608 for which to generate tests.
14609 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14610 [PYTHON] (tgmath3-macro-tests): Likewise.
14611 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14612 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14613 not test-tgmath3.c.
14614 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14615 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14616 to CFLAGS.
14617 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14618 [PYTHON] ($(foreach
14619 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
14620 rule.
14621 [PYTHON] (tests-special): Add
14622 $(objpfx)test-tgmath3-macro-list.out.
14623 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14624
14625 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14626 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14627 later.
14628
14629 [BZ #22639]
14630 * time/tzset.c (SECSPERDAY): Cast to time_t.
14631 * time/tst-y2039.c: New file.
14632 * time/Makefile (tests): Add tst-y2039.
14633
14634 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14635
14636 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14637 (PREFETCH_ONE_SET): Remove duplicate line.
14638
14639 2018-05-17 Florian Weimer <fweimer@redhat.com>
14640
14641 * sysdeps/generic/math-type-macros-double.h: Include
14642 <math-nan-payload-double.h> after <libm-alias-double.h>.
14643 * sysdeps/generic/math-type-macros-float.h: Include
14644 <math-nan-payload-float.h> after <libm-alias-float.h>.
14645 * sysdeps/generic/math-type-macros-float128.h: Include
14646 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14647 * sysdeps/generic/math-type-macros-ldouble.h: Include
14648 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14649
14650 2018-05-17 Andreas Schwab <schwab@suse.de>
14651
14652 * resolv/res_send.c (__res_context_send): Don't set errno when
14653 returing error after malloc failure.
14654
14655 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
14656
14657 * nptl/allocatestack.c (allocate_stack): Remove the
14658 !__ASSUME_PRIVATE_FUTEX paths.
14659 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14660 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14661 Likewise.
14662 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14663 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14664 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14665 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14666 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14667 !__ASSUME_PRIVATE_FUTEX path.
14668 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14669 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14670 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14671 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14672 !__ASSUME_PRIVATE_FUTEX macros.
14673 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14674 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14675 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14676 * sysdeps/unix/sysv/linux/kernel-features.h
14677 (__ASSUME_PRIVATE_FUTEX): Removed.
14678
14679 2018-05-17 Joseph Myers <joseph@codesourcery.com>
14680
14681 * math/Makefile (libm-narrow-fns): Add div.
14682 (libm-test-funcs-narrow): Likewise.
14683 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14684 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14685 * math/gen-auto-libm-tests.c (test_functions): Add div.
14686 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14687 (NARROW_DIV_ROUND_TO_ODD): Likewise.
14688 (NARROW_DIV_TRIVIAL): Likewise.
14689 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14690 macro.
14691 (__ddivl): Likewise.
14692 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14693 ddiv.
14694 (CFLAGS-nldbl-ddiv.c): New variable.
14695 (CFLAGS-nldbl-fdiv.c): Likewise.
14696 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14697 __nldbl_ddivl.
14698 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14699 prototype.
14700 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14701 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14702 * math/auto-libm-test-in: Add tests of div.
14703 * math/auto-libm-test-out-narrow-div: New generated file.
14704 * math/libm-test-narrow-div.inc: New file.
14705 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14706 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14707 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14708 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14709 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14710 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14711 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14712 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14713 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14714 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14715 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14716 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14717 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14718 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14719 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14720 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14721 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14722 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14723 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14724 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14725 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14726 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14727 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14728 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14729 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14730 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14731 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14732 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14733 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14734 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14735 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14736 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14741 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14742 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14743 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14744 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14745 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14746 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14747 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14748 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14749
14750 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14751
14752 [BZ #23178]
14753 * nscd/nscd-client.h (sendfileall): Remove prototype.
14754 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14755 (handle_request): Use writeall instead of sendfileall.
14756 * nscd/aicache.c (addhstaiX): Likewise.
14757 * nscd/grpcache.c (cache_addgr): Likewise.
14758 * nscd/hstcache.c (cache_addhst): Likewise.
14759 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14760 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14761 * nscd/pwdcache.c (cache_addpw): Likewise.
14762 * nscd/servicescache.c (cache_addserv): Likewise.
14763 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14764 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14765 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14766 Remove define.
14767
14768 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14769
14770 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14771 Include <string/strncat.c>.
14772 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14773 alias.
14774 (__GI___strncat): New hidden alias.
14775
14776 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14777
14778 * sysdeps/mips/mips32/libm-test-ulps: Update.
14779 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14780
14781 2018-05-16 Florian Weimer <fweimer@redhat.com>
14782
14783 * support/Makefile (libsupport-routines): Add support_quote_blob,
14784 support_test_compare_blob.
14785 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14786 * support/check.h (TEST_COMPARE_BLOB): Define.
14787 (support_test_compare_blob): Declare.
14788 * support/support.h (support_quote_blob): Declare.
14789 * support/support_quote_blob.c: New file.
14790 * support/support_test_compare_blob.c: Likewise.
14791 * support/tst-support_quote_blob.c: Likewise.
14792 * support/tst-test_compare_blob.c: Likewise.
14793
14794 2018-05-16 Florian Weimer <fweimer@redhat.com>
14795
14796 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14797 of <strtod_nan_double.h>.
14798 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14799 instead of SET_MANTISSA.
14800 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14801 of include <strtod_nan_float.h>.
14802 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14803 instead of <strtod_nan_ldouble.h>.
14804 * stdlib/strtod_nan_double.h: Move to ...
14805 * sysdeps/generic/math-nan-payload-double.h: ... here.
14806 (FLOAT): Remove definition.
14807 (SET_MANTISSA): Rename to ...
14808 (SET_NAN_PAYLOAD): ... this.
14809 * stdlib/strtod_nan_float.h: Move to ...
14810 * sysdeps/generic/math-nan-payload-float.h: ... here.
14811 (FLOAT): Remove definition.
14812 (SET_MANTISSA): Rename to ...
14813 (SET_NAN_PAYLOAD): ... this.
14814 * sysdeps/generic/math-type-macros-double.h: Include
14815 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14816 instead of <math-svid-compat.h>.
14817 * sysdeps/generic/math-type-macros-float.h: Include
14818 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14819 instead of <math-svid-compat.h>.
14820 * sysdeps/generic/math-type-macros-float128.h: Include
14821 <math-nan-payload-float128.h>.
14822 * sysdeps/generic/math-type-macros-ldouble.h: Include
14823 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14824 instead of <math-svid-compat.h>.
14825 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14826 check for definition.
14827 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14828 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14829 Include <ieee754_float128.h>.
14830 (FLOAT): Remove definition.
14831 (SET_MANTISSA): Rename to ...
14832 (SET_NAN_PAYLOAD): ... this.
14833 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14834 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14835 Do not include <float128_private.h>.
14836 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14837 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14838 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14839 (FLOAT): Remove definition.
14840 (SET_MANTISSA): Rename to ...
14841 (SET_NAN_PAYLOAD): ... this.
14842 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14843 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14844 (FLOAT): Remove definition.
14845 (SET_MANTISSA): Rename to ...
14846 (SET_NAN_PAYLOAD): ... this.
14847 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14848 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14849 (FLOAT): Remove definition.
14850 (SET_MANTISSA): Rename to ...
14851 (SET_NAN_PAYLOAD): ... this.
14852 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14853 of "../stdlib/strtod_nan_double.h".
14854 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14855 of "../stdlib/strtod_nan_float.h".
14856 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14857 instead of "../stdlib/strtod_nan_ldouble.h".
14858 * manual/arith.texi (Parsing of Floats): Adjust comment.
14859
14860 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14861
14862 * math/Makefile (libm-narrow-fns): Add mul.
14863 (libm-test-funcs-narrow): Likewise.
14864 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14865 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14866 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14867 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14868 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14869 (NARROW_MUL_TRIVIAL): Likewise.
14870 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14871 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14872 macro.
14873 (__dmull): Likewise.
14874 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14875 dmul.
14876 (CFLAGS-nldbl-dmul.c): New variable.
14877 (CFLAGS-nldbl-fmul.c): Likewise.
14878 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14879 __nldbl_dmull.
14880 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14881 prototype.
14882 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14883 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14884 * math/auto-libm-test-in: Add tests of mul.
14885 * math/auto-libm-test-out-narrow-mul: New generated file.
14886 * math/libm-test-narrow-mul.inc: New file.
14887 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14888 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14889 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14890 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14891 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14892 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14893 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14894 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14895 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14896 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14897 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14898 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14899 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14900 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14901 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14902 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14903 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14904 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14905 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14906 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14911 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14912 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14918 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14923 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14924 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14925 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14926 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14927 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14928 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14929 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14930 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14931
14932 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14933
14934 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14935 with *%eax in call.
14936
14937 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14938
14939 * sysdeps/i386/ldsodefs.h: Removed.
14940 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14941 * sysdeps/x86/ldsodefs.h: This.
14942 (La_i86_regs): New.
14943 (La_i86_retval): Likewise.
14944 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14945 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14946
14947 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14948
14949 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14950 unnecessary testl.
14951
14952 2018-05-13 Alan Modra <amodra@gmail.com>
14953
14954 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14955 R_PARISC_TLS_DTPOFF32 reloc addend.
14956
14957 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14958
14959 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14960 * math/math.h: Restrict the prototype definition for the functions
14961 issignaling(_Float128) and iszero(_Float128); and template
14962 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14963 __HAVE_FLOAT128_UNLIKE_LDBL.
14964 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14965 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14966 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14967 __f128() constants; define the type _Float128 as long double;
14968 and reuse long double in __CFLOAT128.
14969
14970 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14971
14972 * sysdeps/generic/math_private.h: Do not include
14973 <math-barriers.h>.
14974 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14975 <math_private.h>.
14976 * math/fromfp.h: Include <math-barriers.h>.
14977 * math/math-narrow.h: Likewise.
14978 * math/s_nextafter.c: Likewise.
14979 * math/s_nexttowardf.c: Likewise.
14980 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14981 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14982 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14983 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14984 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14985 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14986 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14987 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14988 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14989 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14990 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14991 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14992 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14993 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14994 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14995 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14996 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14997 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14998 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14999 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15000 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15001 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15002 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15003 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15004 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15005 * sysdeps/ieee754/k_standardl.c: Likewise.
15006 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15007 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15008 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15009 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
15010 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15011 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15012 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15013 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15014 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15015 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
15016 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15017 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15018 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15019 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15020 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15021 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15022 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
15023 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
15024 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15025 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15026 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
15027 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
15028
15029 2018-05-11 Florian Weimer <fweimer@redhat.com>
15030
15031 Use 64-bit epoch values in the time zone file parser.
15032 * include/time.h (internal_time_t): Define.
15033 (__tzfile_compute): Use it.
15034 * time/tzfile.c (struct leap): Use internal_time_t for epoch
15035 member.
15036 (transitions): Switch to internal_time_t.
15037 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
15038 types.
15039 (__tzfile_compute): Use internal_time_t for timer argument. Check
15040 for truncation before calling __offtime.
15041
15042 2018-05-11 Florian Weimer <fweimer@redhat.com>
15043
15044 [BZ #23166]
15045 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
15046 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
15047 Likewise.
15048 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
15049 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
15050 export without --enable-obsolete-rpc.
15051 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
15052 symbol. This should not have been exported, ever.
15053
15054 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
15055
15056 [BZ #23152]
15057 * localedata/locales/gd_GB (abmon): Fix typo in May:
15058 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
15059
15060 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
15061
15062 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15063 Use multiple registers to copy data in loop tail.
15064
15065 * sysdeps/aarch64/multiarch/memmove_falkor.S
15066 (__memmove_falkor): Use multiple registers to move data in
15067 loop tail.
15068
15069 2018-05-10 Joseph Myers <joseph@codesourcery.com>
15070
15071 * math/math-underflow.h: New file.
15072 * sysdeps/generic/math_private.h: Do not include <float.h>.
15073 (fabs_tg): Remove macro. Moved to math-underflow.h.
15074 (min_of_type_f): Likewise.
15075 (min_of_type_): Likewise.
15076 (min_of_type_l): Likewise.
15077 (min_of_type_f128): Likewise.
15078 (min_of_type): Likewise.
15079 (math_check_force_underflow): Likewise.
15080 (math_check_force_underflow_nonneg): Likewise.
15081 (math_check_force_underflow_complex): Likewise.
15082 * math/e_exp2_template.c: Include <math-underflow.h>.
15083 * math/k_casinh_template.c: Likewise.
15084 * math/s_catan_template.c: Likewise.
15085 * math/s_catanh_template.c: Likewise.
15086 * math/s_ccosh_template.c: Likewise.
15087 * math/s_cexp_template.c: Likewise.
15088 * math/s_clog10_template.c: Likewise.
15089 * math/s_clog_template.c: Likewise.
15090 * math/s_csin_template.c: Likewise.
15091 * math/s_csinh_template.c: Likewise.
15092 * math/s_csqrt_template.c: Likewise.
15093 * math/s_ctan_template.c: Likewise.
15094 * math/s_ctanh_template.c: Likewise.
15095 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15096 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15097 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15098 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15099 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15100 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15101 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15102 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15103 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15104 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15105 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15106 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15107 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15108 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15109 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15110 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
15111 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15112 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15113 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15114 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15115 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15116 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15117 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15118 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15119 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15120 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15121 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15122 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15123 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15124 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15125 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15126 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15127 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15128 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15129 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15130 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15131 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15132 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15133 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15134 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15135 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
15136 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
15137 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15138 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15139 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15140 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15141 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15142 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15143 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15144 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15145 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15146 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15147 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15148 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
15149 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15150 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15151 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15152 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15153 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15154 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15155 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15156 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
15157 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15158 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
15159 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15160 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15161 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15162 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15163 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15164 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15165 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15166 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15167 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
15168 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
15169 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15170 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15171 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15172 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15173 * sysdeps/x86/fpu/powl_helper.c: Likewise.
15174 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
15175 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
15176 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
15177 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
15178 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
15179
15180 2018-05-09 Joseph Myers <joseph@codesourcery.com>
15181
15182 * sysdeps/generic/math-barriers.h: New file.
15183 * sysdeps/generic/math_private.h [!math_opt_barrier]
15184 (math_opt_barrier): Move to math-barriers.h.
15185 [!math_opt_barrier] (math_force_eval): Likewise.
15186 * sysdeps/aarch64/fpu/math-barriers.h: New file.
15187 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
15188 math-barriers.h.
15189 (math_force_eval): Likewise.
15190 * sysdeps/alpha/fpu/math-barriers.h: New file.
15191 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
15192 math-barriers.h.
15193 (math_force_eval): Likewise.
15194 * sysdeps/x86/fpu/math-barriers.h: New file.
15195 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
15196 math-barriers.h.
15197 (math_force_eval): Likewise.
15198 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
15199 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
15200 multiple-include guard for rename.
15201 * sysdeps/powerpc/fpu/math-barriers.h: New file.
15202 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
15203 math-barriers.h.
15204 (math_force_eval): Likewise.
15205
15206 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
15207
15208 [BZ #22786]
15209 CVE-2018-11236
15210 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
15211 computation.
15212 * stdlib/Makefile (test-bz22786): New test.
15213 * stdlib/test-bz22786.c: New test.
15214
15215 2018-05-09 Joseph Myers <joseph@codesourcery.com>
15216
15217 * include/math-narrow-eval.h: New file. Contents moved from ....
15218 * sysdeps/generic/math_private.h: ... here.
15219 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
15220 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
15221 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
15222 * stdlib/strtod_l.c: Likewise.
15223 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15224 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15225 * sysdeps/i386/fpu/s_fdim.c: Likewise.
15226 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15227 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15228 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15229 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15230 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15231 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15232 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
15233 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15234 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
15235 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15236 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
15237 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
15238 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15239 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15240 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15241 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15242 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15243 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15244 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15245 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15246 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15247 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15248 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15249 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15250 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15251 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
15252
15253 2018-05-08 Andreas Schwab <schwab@suse.de>
15254
15255 * sysdeps/nptl/internaltypes.h: Fix comment.
15256
15257 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
15258
15259 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15260 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
15261 hidden.
15262
15263 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
15264
15265 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
15266 of I into loop header.
15267 * benchtests/bench-memmove-walk.c
15268 (test_main): Likewise.
15269
15270 2018-05-07 Alexandre Oliva <oliva@gnu.org>
15271
15272 Revert:
15273 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15274 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15275
15276 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
15277
15278 [BZ #20419]
15279 * elf/dl-load.c (open_verify): Fix stack overflow.
15280 * elf/Makefile (tst-big-note): New test.
15281 * elf/tst-big-note-lib.S: New.
15282 * elf/tst-big-note.c: New.
15283
15284 2018-05-04 Joseph Myers <joseph@codesourcery.com>
15285
15286 * scripts/abilist.awk: Ignore absolute symbols.
15287 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
15288 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
15289 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
15290 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
15291 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
15292 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
15293 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15294 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
15295 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
15296 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
15297 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
15298 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
15299 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
15300 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
15301 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
15302 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
15303 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
15304 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
15305 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15306 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
15307 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15308 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
15309 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
15310 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
15311 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
15312 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
15313 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
15315 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15316 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
15317 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
15318 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15319 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
15320 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15321 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
15322 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
15323 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
15324 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
15325 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
15326 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
15327 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
15328 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15329 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
15330 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
15331 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15332 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
15333 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15334 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
15335 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
15336 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
15337 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
15338 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
15339 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
15340 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
15341 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15342 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
15343 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
15344 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15345 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
15346 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15347 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
15348 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
15349 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
15350 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
15351 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
15352 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
15353 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
15354 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15355 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
15356 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
15357 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15358 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
15359 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15360 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
15361 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
15362 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
15363 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
15364 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
15365 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
15366 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
15367 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15368 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
15369 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
15370 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15371 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
15372 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15373 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
15374 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
15375 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
15376 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
15377 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
15378 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
15379 Likewise.
15380 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
15381 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15382 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
15383 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
15384 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15385 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
15386 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15387 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
15388 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
15389 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
15390 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
15391 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
15392 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
15393 Likewise.
15394 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
15395 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15396 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
15397 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
15398 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15399 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
15400 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15401 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
15402 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
15403 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
15404 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
15405 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
15406 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
15407 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
15408 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15409 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
15410 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
15411 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15412 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
15413 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15414 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
15415 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
15416 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
15417 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
15418 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15419 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
15420 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
15421 Likewise.
15422 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
15423 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
15424 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
15425 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
15426 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15427 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
15428 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
15429 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
15430 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
15431 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
15432 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
15433 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
15434 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
15435 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15436 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
15437 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
15438 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
15439 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
15440 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15441 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
15442 Likewise.
15443 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
15444 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
15445 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
15446 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15447 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
15448 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15449 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
15450 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
15451 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
15452 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
15453 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15454 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
15455 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
15456 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15457 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
15458 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
15459 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
15460 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
15461 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15462 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
15463 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
15464 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15465 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
15466 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15467 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
15468 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
15469 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
15470 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15475 Likewise.
15476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15481 Likewise.
15482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15483 Likewise.
15484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15486 Likewise.
15487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15489 Likewise.
15490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15491 Likewise.
15492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15495 Likewise.
15496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15497 Likewise.
15498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15499 Likewise.
15500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15504 Likewise.
15505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15511 Likewise.
15512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15514 Likewise.
15515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15516 Likewise.
15517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15518 Likewise.
15519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15520 Likewise.
15521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15524 Likewise.
15525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15526 Likewise.
15527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15528 Likewise.
15529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15530 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15531 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15532 Likewise.
15533 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15534 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15535 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15536 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15537 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15538 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15539 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15540 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15541 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15542 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15543 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15544 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15545 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15546 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15547 Likewise.
15548 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15549 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15550 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15551 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15552 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15553 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15554 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15555 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15556 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15557 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15558 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15559 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15560 Likewise.
15561 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15562 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15563 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15564 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15565 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15566 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15567 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15568 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15569 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15570 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15571 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15572 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15573 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15574 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15575 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15576 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15577 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15578 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15579 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15580 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15581 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15582 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15583 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15584 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15585 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15586 Likewise.
15587 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15588 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15589 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15590 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15591 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15592 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15593 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15594 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15595 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15596 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15597 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15598 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15599 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15600 Likewise.
15601 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15602 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15603 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15604 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15605 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15606 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15607 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15608 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15609 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15610 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15611 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15612 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15613 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15614 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15615 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15616 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15617 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15618 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15619 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15620 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15621 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15622 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15623 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15624 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15625 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15626 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15627 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15628 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15629 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15630 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15631 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15632 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15633 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15634 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15635 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15636 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15637 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15638 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15639
15640 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
15641
15642 [BZ #23137]
15643 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15644 Use atomic_load_acquire to load __tid.
15645
15646 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15647
15648 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15649 Restore the pointer into %rdx, after syscall and use %rdx,
15650 instead of %rsi, to restore context.
15651
15652 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15653
15654 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15655 Pop the pointer into %rdx after syscall and use %rdx, instead
15656 of %rsi, to restore context.
15657
15658 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15659
15660 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15661 handlers after setjmp.
15662 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15663 defined.
15664 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15665 <libc-pointer-arith.h>.
15666 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15667 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15668 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15669 _JUMP_BUF_SIGSET_BITS_PER_WORD.
15670 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15671 * sysdeps/x86/__longjmp_cancel.S: New file.
15672 * sysdeps/x86/longjmp.c: Likewise.
15673 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15674
15675 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15676
15677 * NEWS: Add ustat.h deprecation entry.
15678 * bits/ustat.h: Remove file.
15679 * misc/sys/ustat.h: Likewise.
15680 * misc/ustat.h: Likewise.
15681 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15682 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15683 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15684 compatibility mode.
15685 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15686 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15687 generic Linux implementation.
15688
15689 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15690
15691 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15692 * math/w_expl_compat.c: Likewise.
15693 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
15694
15695 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15696
15697 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15698
15699 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15700
15701 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15702 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15703 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15704 Remove.
15705 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15707 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15708 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15709 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15710 and SYSCALL_LL64.
15711
15712 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15713
15714 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15715
15716 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15717 * math/w_asin_template.c: Likewise.
15718 * math/w_atanh_template.c: Likewise.
15719
15720 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15721
15722 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15723 to powerpc/powerpc64/be for big-endian.
15724 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15725 little-endian.
15726
15727 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15728 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15729 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15730 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15731 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15732 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15733 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15734 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15735 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15736 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15737 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15738 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15739 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15740 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15741 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15742 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15743 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15744 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15745 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15746 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15747 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15748 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15749 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15750 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15751 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15752 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15753 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15754 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15755 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15756 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15757 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15758 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15759
15760 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15761 adjusted to imply powerpc64 and older processors on powerpc64/be.
15762 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15763 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15764 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15765 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15766 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15767 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15768 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15769 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15770 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15771 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15772 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15773 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15774 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15775 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15776 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15777 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15778 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15779 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15780 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15781 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15782 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15783 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15784 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15785 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15786 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15787 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15788 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15789 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15790 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15791 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15792 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15793
15794 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15795 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15796 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15797 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15798
15799 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15800 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15801 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15802 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15803
15804 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15805 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15806 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15807 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15808 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15809 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15810 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15811 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15812 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15813 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15814 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15815
15816 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15817 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15818 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15819 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15820 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15821 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15822 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15823 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15824 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15825 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15826 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15827
15828 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15829 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15830 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15831 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15832 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15833 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15834 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15835 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15836 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15837 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15838 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15839 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15840
15841 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15842 and adjusted to imply olders processors.
15843 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15844 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15845 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15846 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15847 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15848 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15849 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15850 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15851 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15852 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15853 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15854
15855 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15856 powerpc64/le.
15857 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15858 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15859
15860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15861 powerpc64le.
15862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15864
15865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15866 powerpc64/be.
15867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15870
15871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15872 powerpc64 and adjusted.
15873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15876 Likewise.
15877
15878 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15879
15880 * sysdeps/tile: Remove.
15881 * sysdeps/unix/sysv/linux/tile: Likewise.
15882 * README (tilegx-*-linux-gnu): Remove from list of supported
15883 configurations.
15884 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15885 contribution of support for generic Linux kernel syscall
15886 interface.
15887 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15888 tilegx configurations.
15889 (Config.install_linux_headers): Do not handle tile.
15890 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15891 in comment.
15892 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15893 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15894 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15895 conditional undefine and redefine.
15896 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15897 in comment.
15898 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15899 conditional undefine and redefine.
15900
15901 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15902
15903 * signal/tst-sigaction.c: New file to test BZ #23069.
15904 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15905
15906 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15907
15908 [BZ #22766]
15909 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15910 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15911 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15912 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15913
15914 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15915
15916 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15917 _DIRENT_MATCHES_DIRENT64 is not defined.
15918 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15919 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15920 is defined.
15921 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15922 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15923
15924 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15925
15926 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15927 version to GCC 8 branch.
15928
15929 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15930
15931 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15932 (check_no_hidden): Use type of original function when declaring
15933 alias.
15934
15935 * sysdeps/unix/sysv/linux/sys/ptrace.h
15936 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15937 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15938 (struct __ptrace_seccomp_metadata): New type.
15939 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15940 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15941 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15942 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15943 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15944 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15945 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15946 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15947 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15948 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15949 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15950 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15951 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15952 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15953 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15954 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15955
15956 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15957
15958 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15959 defined.
15960 * dirent/versionsort.c (versionsort): Likewise.
15961 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15962 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15963 * dirent/versionsort64.c (versionsort64): Likewise.
15964 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15965 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15966 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15967 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15968 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15969 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15970 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15971 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15972 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15973 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15976 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15977 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15978
15979 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15980
15981 * elf/elf.h (NT_PPC_PKEY): New macro.
15982
15983 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15984
15985 [BZ #23094]
15986 * localedata/locales/hr_HR: fix thousands_sep and
15987 mon_thousands_sep
15988
15989 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15990
15991 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15992 (XTABS): Define to TAB3.
15993
15994 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15995
15996 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15997
15998 * dirent/scandir-tail-common.c: New file.
15999 * dirent/scandir-tail.c: Use scandir-tail-common.c.
16000 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
16001 * dirent/scandir.c: Use scandir-tail-common.c.
16002 * dirent/scandirat.c: Likewise.
16003 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
16004 * dirent/scandir64.c (scandir64): Always build and alias to scandir
16005 if _DIRENT_MATCHES_DIRENT64 is defined.
16006 * dirent/scandirat64.c (scandirat64): Likewise.
16007 * include/dirent.h (__scandir_tail): Only define iff
16008 _DIRENT_MATCHES_DIRENT64 is not defined.
16009 (__scandir64_tail): Define regardless.
16010 (__scandirat, scandirat64): Remove libc_hidden_proto.
16011 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
16012 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
16013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
16014 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
16015 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16016 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
16017 * sysdeps/unix/sysv/linux/scandir64.c: New file.
16018
16019 2018-04-20 Joseph Myers <joseph@codesourcery.com>
16020
16021 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
16022 New macro.
16023 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16024 Increase to 24.
16025 (_dl_aarch64_cap_flags): Add asimdfhm.
16026
16027 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
16028
16029 * sysdeps/nios2/libm-test-ulps: Update.
16030
16031 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16032
16033 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
16034 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
16035
16036 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
16037 requirements.
16038 (_DIRENT_MATCHES_DIRENT64): Undef
16039 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
16040 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
16041 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
16042 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
16043 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
16044 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
16045 use getdents64 syscalls as base.
16046 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
16047 symbol if required.
16048 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
16049 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
16050 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
16051 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
16052 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
16053 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
16054 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
16055 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
16056 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16057 (__get_clockfreq_via_proc_openprom): Use __getdents64.
16058 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
16059
16060 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
16061
16062 * scripts/test_printers_common.py (init_test): Disable lock elision.
16063
16064 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
16065
16066 * math/test-tgmath.c (count_double, count_float,
16067 count_ldouble, count_cdouble, count_cfloat,
16068 count_cldouble): Use volatile int.
16069
16070 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16071
16072 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
16073 (conformtest-xfail-conds): Add i386-gnu.
16074 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
16075 i386-gnu.
16076 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
16077 ipc_perm.cuid, ipc_perm.cgid): Likewise.
16078 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
16079 msqid_ds.msg_lrpid): Likewise.
16080 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
16081 Likewise.
16082 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
16083 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
16084 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
16085 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
16086 unsigned int.
16087 (struct statvfs64): Likewise.
16088 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
16089 Likewise.
16090 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
16091 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
16092 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
16093 instead of wait_queue.
16094 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
16095 instead of vm_area_struct.
16096 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
16097 struct sched_param definition to it.
16098 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
16099 * bits/types/struct_sched_param.h: New file.
16100 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
16101 <bits/types/struct_sched_param.h> instead of <sched.h>.
16102 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
16103 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
16104 generic version but include <bits/pthreadtypes.h> to make struct
16105 sigevent's sigev_notify_attributes field a pthread_attr_t*.
16106 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
16107 non-compliant.
16108 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
16109 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
16110 [__USE_XOPEN] (OFDEL): New macro.
16111 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
16112 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
16113 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
16114 prototypes.
16115 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
16116 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
16117 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
16118 non-compliant.
16119 * sysdeps/i386/sys/ucontext.h: Likewise.
16120 * sysdeps/m68k/sys/ucontext.h: Likewise.
16121 * sysdeps/mips/sys/ucontext.h: Likewise.
16122 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
16123 * sysdeps/mach/hurd/i386/Makefile
16124 (test-xfail-POSIX/fcntl.h/conform): Add.
16125 (test-xfail-POSIX/signal.h/conform): Add.
16126 (test-xfail-POSIX/semaphore.h/conform): Add.
16127 (test-xfail-POSIX/regex.h/conform): Add.
16128 (test-xfail-POSIX/aio.h/conform): Add.
16129 (test-xfail-POSIX/mqueue.h/conform): Add.
16130 (test-xfail-POSIX/sys/types.h/conform): Add.
16131 (test-xfail-UNIX98/fcntl.h/conform): Add.
16132 (test-xfail-UNIX98/netdb.h/conform): Add.
16133 (test-xfail-UNIX98/signal.h/conform): Add.
16134 (test-xfail-UNIX98/semaphore.h/conform): Add.
16135 (test-xfail-UNIX98/regex.h/conform): Add.
16136 (test-xfail-UNIX98/aio.h/conform): Add.
16137 (test-xfail-UNIX98/ftw.h/conform): Add.
16138 (test-xfail-UNIX98/mqueue.h/conform): Add.
16139 (test-xfail-UNIX98/netinet/in.h/conform): Add.
16140 (test-xfail-UNIX98/sys/wait.h/conform): Add.
16141 (test-xfail-UNIX98/sys/sem.h/conform): Add.
16142 (test-xfail-UNIX98/sys/uio.h/conform): Add.
16143 (test-xfail-UNIX98/sys/socket.h/conform): Add.
16144 (test-xfail-UNIX98/sys/types.h/conform): Add.
16145 (test-xfail-UNIX98/stdlib.h/conform): Add.
16146 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
16147 (test-xfail-POSIX2008/fcntl.h/conform): Add.
16148 (test-xfail-POSIX2008/netdb.h/conform): Add.
16149 (test-xfail-POSIX2008/signal.h/conform): Add.
16150 (test-xfail-POSIX2008/semaphore.h/conform): Add.
16151 (test-xfail-POSIX2008/regex.h/conform): Add.
16152 (test-xfail-POSIX2008/aio.h/conform): Add.
16153 (test-xfail-POSIX2008/mqueue.h/conform): Add.
16154 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
16155 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
16156 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
16157 (test-xfail-POSIX2008/sys/types.h/conform): Add.
16158 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
16159 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
16160 (test-xfail-XOPEN2K/netdb.h/conform): Add.
16161 (test-xfail-XOPEN2K/signal.h/conform): Add.
16162 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
16163 (test-xfail-XOPEN2K/regex.h/conform): Add.
16164 (test-xfail-XOPEN2K/aio.h/conform): Add.
16165 (test-xfail-XOPEN2K/ftw.h/conform): Add.
16166 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
16167 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
16168 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
16169 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
16170 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
16171 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
16172 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
16173 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
16174 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
16175 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
16176 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
16177 (test-xfail-XOPEN2K8/signal.h/conform): Add.
16178 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
16179 (test-xfail-XOPEN2K8/regex.h/conform): Add.
16180 (test-xfail-XOPEN2K8/aio.h/conform): Add.
16181 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
16182 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
16183 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
16184 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
16185 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
16186 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
16187 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
16188 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
16189 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
16190 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
16191 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
16192 i386-gnu.
16193 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
16194 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
16195
16196 2018-04-18 Joseph Myers <joseph@codesourcery.com>
16197
16198 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
16199 --enable-obsolete for powerpc-linux-gnuspe.
16200
16201 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16202
16203 * conform/data/sys/un.h-data: Allow sun_ prefix.
16204 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
16205 prototypes.
16206 * sysdeps/mach/include/mach.h: Likewise.
16207 * sysdeps/mach/include/mach/mig_support.h: Likewise.
16208 * sysdeps/mach/include/mach_error.h: Likewise.
16209
16210 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16211
16212 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
16213 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
16214 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
16215 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
16216
16217 2018-04-16 Andreas Schwab <schwab@suse.de>
16218
16219 [BZ #19527]
16220 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
16221
16222 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16223
16224 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
16225 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
16226
16227 2018-04-12 DJ Delorie <dj@redhat.com>
16228
16229 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16230 version to 4.16.
16231
16232 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
16233
16234 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
16235 (struct kernel_sigaction): Use the same definition on 31bit as is used
16236 on 64bit.
16237
16238 2018-04-09 Florian Weimer <fweimer@redhat.com>
16239
16240 [BZ #23037]
16241 * resolv/res_send.c (send_dg): Use designated initializers instead
16242 of assignment to zero-initialize other fields of struct mmsghdr.
16243
16244 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16245
16246 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
16247 __READDIR_ALIAS): Undefine after usage.
16248 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
16249 __READDIR_R_ALIAS): Likewise.
16250 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
16251 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
16252 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
16253 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
16254 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
16255 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
16256 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16257 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16258 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
16259 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
16260 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
16261 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
16262 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16263 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
16264 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
16265 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
16266 * sysdeps/unix/sysv/linux/readdir.c: New file.
16267 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
16268 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
16269 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
16270
16271 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
16272
16273 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
16274
16275 * manual/charset.texi (Converting a Character): Fix typo.
16276
16277 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16278
16279 * sysdeps/sparc/fpu/libm-test-ulps: Update.
16280
16281 * sysdeps/arm/libm-test-ulps: Update.
16282
16283 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
16284 as base implementation.
16285 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
16286 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
16287 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
16288 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
16289 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
16290 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
16291 remove unrequired definitions and update comments.
16292 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
16293 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
16294 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
16295 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
16296 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
16297 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
16298 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
16299 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
16300 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
16301 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
16302 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
16303 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
16304 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
16305 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
16306 and RESET_SA_RESTORER hooks.
16307
16308 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
16309
16310 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16311
16312 2018-04-05 Florian Weimer <fweimer@redhat.com>
16313
16314 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
16315 integer overflow, memory leak on error, and indeterminate errno
16316 value. Add a null wide character to terminate the result string.
16317 * manual/charset.texi (Converting a Character): Mention embedded
16318 null bytes in the mbrtowc input string. Explain what happens in
16319 the -2 result case. Do not claim that mbrtowc is simple or
16320 obvious to use. Adjust the description of the code example. Use
16321 @code, not @var, for concrete variables.
16322
16323 2018-04-05 Florian Weimer <fweimer@redhat.com>
16324
16325 * manual/examples/mbstouwcs.c: New file.
16326 * manual/charset.texi (Converting a Character): Include it.
16327
16328 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16329
16330 * include/dirent.h (dirfd): Add hidden proto.
16331 * dirent/dirfd.c (dirfd): Add hidden def.
16332 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
16333 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
16334
16335 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16336
16337 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
16338 sin, cos and sincos to 1 ULP.
16339
16340 2018-04-04 Maciej W. Rozycki <macro@mips.com>
16341
16342 [BZ #19818]
16343 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
16344 symbols.
16345 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
16346 * elf/tst-absolute-sym.c: New file.
16347 * elf/tst-absolute-sym-lib.c: New file.
16348 * elf/tst-absolute-sym-lib.lds: New file.
16349 * elf/Makefile (tests): Add `tst-absolute-sym'.
16350 (modules-names): Add `tst-absolute-sym-lib'.
16351 (LDLIBS-tst-absolute-sym-lib.so): New variable.
16352 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
16353 ($(objpfx)tst-absolute-sym): New dependency.
16354
16355 [BZ #19818]
16356 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
16357 parameter.
16358 (SYMBOL_ADDRESS): New macro.
16359 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
16360 SYMBOL_ADDRESS for symbol address calculation.
16361 * elf/dl-runtime.c (_dl_fixup): Likewise.
16362 (_dl_profile_fixup): Likewise.
16363 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
16364 * elf/rtld.c (dl_main): Likewise.
16365 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
16366 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
16367 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
16368 (elf_machine_rela): Likewise.
16369 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
16370 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
16371 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16372 (elf_machine_rela): Likewise.
16373 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16374 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
16375 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
16376 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
16377 Likewise.
16378 (elf_machine_reloc): Likewise.
16379 (elf_machine_got_rel): Likewise.
16380 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
16381 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
16382 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16383 Likewise.
16384 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16385 Likewise.
16386 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
16387 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16388 Likewise.
16389 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16390 Likewise.
16391 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16392 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16393 Likewise.
16394 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16395 Likewise.
16396 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
16397 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16398
16399 2018-04-04 Zack Weinberg <zackw@panix.com>
16400
16401 * sysdeps/generic/internal-signals.h: Include signal.h,
16402 sigsetops.h, and stdbool.h.
16403 (__libc_signal_block_all): Actually block all signals.
16404 (__libc_signal_block_app): Likewise.
16405 (__libc_signal_restore_set): Actually restore the signal mask.
16406
16407 2018-04-04 Florian Weimer <fweimer@redhat.com>
16408
16409 inet: Actually build and run tst-deadline.
16410 * inet/Makefile (tests-internal): Add tst-deadline and do not
16411 overwrite the variable.
16412 (tests-static-internal): Remove variable.
16413
16414 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
16415
16416 [BZ #22947]
16417 * bits/uio-ext.h (RWF_APPEND): New.
16418 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
16419 * manual/llio.texi: Document RWF_APPEND.
16420 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
16421 (RWF_SUPPORTED): Add RWF_APPEND.
16422
16423 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16424
16425 [BZ #22391]
16426 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
16427 check for internal nptl signals.
16428 * nptl/sigaction.c (__sigaction): Likewise.
16429 * signal/sigaddset.c (sigaddset): Likewise.
16430 * signal/sigdelset.c (sigdelset): Likewise.
16431 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
16432 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
16433 value.
16434 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
16435 to filter out internal nptl signals.
16436 * signal/tst-sigset.c (do_test): Check ech signal indidually and
16437 also check realtime signals using standard macros.
16438 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
16439 __is_internal_signal, __libc_signal_block_all,
16440 __libc_signal_block_app, __libc_signal_restore_set): New functions.
16441 * sysdeps/nptl/sigfillset.c: Remove file.
16442 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
16443 Change return to bool.
16444 (__clear_internal_signals): Remove SIGTIMER clean since it is
16445 equal to SIGCANEL on Linux.
16446 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
16447 signal set was constructed using standard functions.
16448
16449 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16450
16451 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
16452 ifname is too long.
16453 * hurd/hurdsig.c (interrupted_reply_port_location): Use
16454 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
16455 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
16456 hidden def.
16457 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
16458 * signal/sigaddset.c: Include <sigsetopts.h>.
16459 * signal/sigdelset.c: Likewise.
16460
16461 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16462
16463 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
16464 (__cos): Likewise.
16465 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
16466 logic as sin and cos.
16467
16468 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16469
16470 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16471 inputs. Return correct sign.
16472 (do_sincos): Remove small input check before do_sin, let do_sin set
16473 the sign.
16474 (__sin): Likewise.
16475 (__cos): Likewise.
16476
16477 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16478
16479 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16480 (do_cos_slow): Likewise.
16481 (do_sin_slow): Likewise.
16482 (reduce_and_compute): Likewise.
16483 (slow): Likewise.
16484 (slow1): Likewise.
16485 (slow2): Likewise.
16486 (sloww): Likewise.
16487 (sloww1): Likewise.
16488 (sloww2): Likewise.
16489 (bslow): Likewise.
16490 (bslow1): Likewise.
16491 (bslow2): Likewise.
16492 (cslow2): Likewise.
16493
16494 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16495
16496 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16497 (do_cos): Remove corp parameter and calculations.
16498 (do_sin): Likewise.
16499 (do_sincos): Remove cor variable.
16500 (__sin): Use do_sincos for huge inputs.
16501 (__cos): Likewise.
16502 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16503 (reduce_and_compute_sincos): Remove unused function.
16504
16505 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16506
16507 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16508 reduce_sincos, improve accuracy to 136 bits.
16509 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16510 (__sin): Use improved reduction and simplified do_sincos calculation.
16511 (__cos): Likewise.
16512 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16513
16514 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16515
16516 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16517 (do_sincos_2): Likewise.
16518 (__sin): Remove middle range reduction case.
16519 (__cos): Likewise.
16520 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16521 reduction case.
16522
16523 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16524
16525 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16526 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16527 inputs.
16528 (__cos): Likewise.
16529 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16530
16531 2018-04-03 Joseph Myers <joseph@codesourcery.com>
16532
16533 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16534 version to 4.16
16535
16536 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16537
16538 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16539 Remove definitions.
16540 (opendir_oflags): Use O_DIRECTORY regardless.
16541 (__opendir, __opendirat): Remove need_isdir_precheck usage.
16542 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16543
16544 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16545
16546 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16547 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16548 macros.
16549 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16550 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16551 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16552 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16553 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16554 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16555
16556 * htl/Makefile: Bump licence to LGPL 2.1+.
16557 * htl/alloca_cutoff.c: Likewise.
16558 * htl/cthreads-compat.c: Likewise.
16559 * htl/lockfile.c: Likewise.
16560 * htl/pt-alloc.c: Likewise.
16561 * htl/pt-cancel.c: Likewise.
16562 * htl/pt-cleanup.c: Likewise.
16563 * htl/pt-create.c: Likewise.
16564 * htl/pt-dealloc.c: Likewise.
16565 * htl/pt-detach.c: Likewise.
16566 * htl/pt-exit.c: Likewise.
16567 * htl/pt-getattr.c: Likewise.
16568 * htl/pt-initialize.c: Likewise.
16569 * htl/pt-internal.h: Likewise.
16570 * htl/pt-join.c: Likewise.
16571 * htl/pt-self.c: Likewise.
16572 * htl/pt-setcancelstate.c: Likewise.
16573 * htl/pt-setcanceltype.c: Likewise.
16574 * htl/pt-sigmask.c: Likewise.
16575 * htl/pt-spin-inlines.c: Likewise.
16576 * htl/pt-testcancel.c: Likewise.
16577 * htl/pt-yield.c: Likewise.
16578 * htl/tests/test-1.c: Likewise.
16579 * htl/tests/test-10.c: Likewise.
16580 * htl/tests/test-11.c: Likewise.
16581 * htl/tests/test-12.c: Likewise.
16582 * htl/tests/test-13.c: Likewise.
16583 * htl/tests/test-14.c: Likewise.
16584 * htl/tests/test-15.c: Likewise.
16585 * htl/tests/test-16.c: Likewise.
16586 * htl/tests/test-17.c: Likewise.
16587 * htl/tests/test-2.c: Likewise.
16588 * htl/tests/test-3.c: Likewise.
16589 * htl/tests/test-4.c: Likewise.
16590 * htl/tests/test-5.c: Likewise.
16591 * htl/tests/test-6.c: Likewise.
16592 * htl/tests/test-7.c: Likewise.
16593 * htl/tests/test-8.c: Likewise.
16594 * htl/tests/test-9.c: Likewise.
16595 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16596 * sysdeps/htl/bits/cancelation.h: Likewise.
16597 * sysdeps/htl/bits/pthread-np.h: Likewise.
16598 * sysdeps/htl/bits/pthread.h: Likewise.
16599 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16600 * sysdeps/htl/bits/semaphore.h: Likewise.
16601 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16602 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16603 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16604 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16605 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16606 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16607 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16608 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16609 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16610 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16611 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16612 * sysdeps/htl/old_pt-atfork.c: Likewise.
16613 * sysdeps/htl/pt-atfork.c: Likewise.
16614 * sysdeps/htl/pt-attr-destroy.c: Likewise.
16615 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16616 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16617 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16618 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16619 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16620 * sysdeps/htl/pt-attr-getscope.c: Likewise.
16621 * sysdeps/htl/pt-attr-getstack.c: Likewise.
16622 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16623 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16624 * sysdeps/htl/pt-attr-init.c: Likewise.
16625 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16626 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16627 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16628 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16629 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16630 * sysdeps/htl/pt-attr-setscope.c: Likewise.
16631 * sysdeps/htl/pt-attr-setstack.c: Likewise.
16632 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16633 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16634 * sysdeps/htl/pt-attr.c: Likewise.
16635 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16636 * sysdeps/htl/pt-barrier-init.c: Likewise.
16637 * sysdeps/htl/pt-barrier-wait.c: Likewise.
16638 * sysdeps/htl/pt-barrier.c: Likewise.
16639 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16640 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16641 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16642 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16643 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16644 * sysdeps/htl/pt-cond-destroy.c: Likewise.
16645 * sysdeps/htl/pt-cond-init.c: Likewise.
16646 * sysdeps/htl/pt-cond-signal.c: Likewise.
16647 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16648 * sysdeps/htl/pt-cond-wait.c: Likewise.
16649 * sysdeps/htl/pt-cond.c: Likewise.
16650 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16651 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16652 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16653 * sysdeps/htl/pt-condattr-init.c: Likewise.
16654 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16655 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16656 * sysdeps/htl/pt-destroy-specific.c: Likewise.
16657 * sysdeps/htl/pt-equal.c: Likewise.
16658 * sysdeps/htl/pt-getconcurrency.c: Likewise.
16659 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16660 * sysdeps/htl/pt-getschedparam.c: Likewise.
16661 * sysdeps/htl/pt-getspecific.c: Likewise.
16662 * sysdeps/htl/pt-init-specific.c: Likewise.
16663 * sysdeps/htl/pt-key-create.c: Likewise.
16664 * sysdeps/htl/pt-key-delete.c: Likewise.
16665 * sysdeps/htl/pt-key.h: Likewise.
16666 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16667 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16668 * sysdeps/htl/pt-mutex-init.c: Likewise.
16669 * sysdeps/htl/pt-mutex-lock.c: Likewise.
16670 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16671 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16672 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16673 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16674 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16675 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16676 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16677 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16678 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16679 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16680 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16681 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16682 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16683 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16684 * sysdeps/htl/pt-mutexattr.c: Likewise.
16685 * sysdeps/htl/pt-once.c: Likewise.
16686 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16687 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16688 * sysdeps/htl/pt-rwlock-init.c: Likewise.
16689 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16690 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16691 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16692 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16693 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16694 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16695 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16696 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16697 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16698 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16699 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16700 * sysdeps/htl/pt-setconcurrency.c: Likewise.
16701 * sysdeps/htl/pt-setschedparam.c: Likewise.
16702 * sysdeps/htl/pt-setschedprio.c: Likewise.
16703 * sysdeps/htl/pt-setspecific.c: Likewise.
16704 * sysdeps/htl/pt-spin.c: Likewise.
16705 * sysdeps/htl/pt-startup.c: Likewise.
16706 * sysdeps/htl/pthread.h: Likewise.
16707 * sysdeps/htl/sem-close.c: Likewise.
16708 * sysdeps/htl/sem-destroy.c: Likewise.
16709 * sysdeps/htl/sem-getvalue.c: Likewise.
16710 * sysdeps/htl/sem-init.c: Likewise.
16711 * sysdeps/htl/sem-open.c: Likewise.
16712 * sysdeps/htl/sem-post.c: Likewise.
16713 * sysdeps/htl/sem-timedwait.c: Likewise.
16714 * sysdeps/htl/sem-trywait.c: Likewise.
16715 * sysdeps/htl/sem-unlink.c: Likewise.
16716 * sysdeps/htl/sem-wait.c: Likewise.
16717 * sysdeps/hurd/htl/pt-kill.c: Likewise.
16718 * sysdeps/i386/htl/pt-machdep.h: Likewise.
16719 * sysdeps/mach/htl/pt-block.c: Likewise.
16720 * sysdeps/mach/htl/pt-spin.c: Likewise.
16721 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16722 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16723 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16724 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16725 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16726 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16727 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16728 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16729 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16730 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16731 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16732 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16733 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16734 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16735 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16736 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16737 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16738 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16739 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16740 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16741 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16742 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16743 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16744 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16745 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16746 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16747 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16748 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16749 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16750 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16751 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16752 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16753 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16754 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16755 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16756 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16757 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16758 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16759 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16760 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16761 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16762 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16763 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16764
16765 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16766 * README: Remove the mention of out-of-tree patches needed for
16767 GNU/Hurd.
16768
16769 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16770 (UTIME_NOW, UTIME_OMIT): Define macros.
16771
16772 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16773 instead of pthread_detach.
16774 (__cthread_fork): Call __pthread_create instead of pthread_create.
16775 (__cthread_keycreate): Call __pthread_key_create instead of
16776 pthread_key_create.
16777 (__cthread_getspecific): Call __pthread_getspecific instead of
16778 pthread_getspecific.
16779 (__cthread_setspecific): Call __pthread_setspecific instead of
16780 pthread_setspecific.
16781 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16782 __pthread_mutex_unlock instead of pthread_mutex_lock and
16783 pthread_mutex_unlock.
16784 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16785 ___pthread_get_cleanup_stack.
16786 (__pthread_get_cleanup_stack): New strong alias.
16787 * htl/pt-create.c: Include <pthreadP.h>.
16788 (entry_point): Call __pthread_exit instead of pthread_exit.
16789 (pthread_create): Rename to __pthread_create.
16790 (pthread_create): New strong alias.
16791 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16792 (pthread_detach): New strong alias.
16793 (__pthread_detach): Call __pthread_cond_broadcast instead of
16794 pthread_cond_broadcast.
16795 * htl/pt-exit.c: Include <pthreadP.h>.
16796 (__pthread_exit): Call __pthread_setcancelstate and
16797 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16798 __pthread_get_cleanup_stack.
16799 * htl/pt-testcancel.c: Include <pthreadP.h>.
16800 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16801 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16802 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16803 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16804 pthread_attr_getstacksize.
16805 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16806 Rename to __pthread_attr_getstackaddr.
16807 (pthread_attr_getstackaddr): New strong alias.
16808 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16809 Rename to __pthread_attr_getstacksize.
16810 (pthread_attr_getstacksize): New strong alias.
16811 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16812 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16813 (pthread_attr_setstack): New strong alias.
16814 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16815 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16816 pthread_attr_getstacksize, pthread_attr_setstacksize and
16817 pthread_attr_setstackaddr.
16818 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16819 Rename to __pthread_attr_setstackaddr.
16820 (pthread_attr_setstackaddr): New strong alias.
16821 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16822 Rename to __pthread_attr_setstacksize.
16823 (pthread_attr_setstacksize): New strong alias.
16824 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16825 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16826 pthread_exit.
16827 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16828 (__pthread_key_create): New hidden def.
16829 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16830 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16831 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16832 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16833 __pthread_setspecific, __pthread_setcancelstate,
16834 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16835 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16836 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16837 declarations.
16838 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16839 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16840 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16841 (pthread_attr_setstackaddr): New strong alias.
16842 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16843 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16844 (pthread_attr_setstacksize): New strong alias.
16845 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16846 (call_exit): Call __pthread_exit instead of pthread_exit.
16847 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16848 (_pthread_mutex_init): New hidden definition.
16849 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16850 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16851 instead of pthread_attr_init and pthread_attr_setstack.
16852
16853 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16854 __vm_deallocate instead of vm_allocate and vm_deallocate.
16855 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16856 setenv.
16857 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16858 of geteuid.
16859 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16860 strdup.
16861 * hurd/siginfo.c: Include <libioP.h>.
16862 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16863 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16864 munmap.
16865 * mach/devstream.c: Include <libioP.h>.
16866 (dealloc_ref): Call __mach_port_deallocate instead of
16867 mach_port_deallocate.
16868 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16869 Call __mach_port_deallocate instead of mach_port_deallocate.
16870 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16871 pathconf.
16872 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16873 munmap.
16874 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16875 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16876 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16877 of munmap.
16878 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16879 of close.
16880 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16881 instead of sysconf.
16882 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16883 __clock_gettime instead of clock_gettime.
16884 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16885 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16886 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16887 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16888 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16889 tcgetattr.
16890 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16891 __clock_gettime and __nanosleep instead of clock_gettime and
16892 nanosleep.
16893 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16894 __hurd_catch_signal.
16895 (hurd_catch_signal): New strong alias.
16896 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16897 __hurd_catch_signal instead of hurd_catch_signal.
16898 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16899 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16900 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16901 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16902 (_hurd_thread_sigstate): Add hidden def.
16903 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16904 mutex_unlock.
16905 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16906 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16907 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16908 __hurd_file_name_path_lookup.
16909 (hurd_file_name_path_lookup): New strong alias.
16910 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16911 hurd_file_name_path_lookup.
16912 * mach/errstring.c (mach_error_type): Add hidden def.
16913 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16914 * mach/mutex-init.c (__mutex_init): Add hidden def.
16915 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16916 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16917 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16918 * sysdeps/mach/hurd/getcwd.c
16919 (_hurd_canonicalize_directory_name_internal): Rename to
16920 __hurd_canonicalize_directory_name_internal.
16921 (_hurd_canonicalize_directory_name_internal): New strong alias.
16922 (__canonicalize_directory_name_internal, __getcwd): Call
16923 __hurd_canonicalize_directory_name_internal instead of
16924 _hurd_canonicalize_directory_name_internal.
16925 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16926 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16927 hidden defs.
16928 * sysdeps/hurd/include/hurd.h: New file.
16929 * sysdeps/hurd/include/hurd/fd.h: New file.
16930 * sysdeps/hurd/include/hurd/signal.h: New file.
16931 * sysdeps/mach/include/lock-intern.h: New file.
16932 * sysdeps/mach/include/mach.h: New file.
16933 * sysdeps/mach/include/mach/mig_support.h: New file.
16934 * sysdeps/mach/include/mach_error.h: New file.
16935 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16936 prototype.
16937 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16938 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16939 _HEADER_H_HIDDEN_DEF macro.
16940 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16941 _hurd_fd_error_signal): Add hidden prototype.
16942 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16943 hidden def.
16944 * libio/iolibio.h (_IO_puts): New hidden prototype.
16945 * libio/ioputs.c (_IO_puts): New hidden def.
16946 * sysdeps/mach/hurd/localplt.data: New file.
16947
16948 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16949 Amos Jeffries <squid3@treenet.co.nz>
16950 David Michael <fedora.dm0@gmail.com>
16951 Marco Gerards <marco@gnu.org>
16952 Marcus Brinkmann <marcus@gnu.org>
16953 Neal H. Walfield <neal@gnu.org>
16954 Pino Toscano <toscano.pino@tiscali.it>
16955 Richard Braun <rbraun@sceen.net>
16956 Roland McGrath <roland@gnu.org>
16957 Samuel Thibault <samuel.thibault@ens-lyon.org>
16958 Thomas DiModica <ricinwich@yahoo.com>
16959 Thomas Schwinge <tschwinge@gnu.org>
16960
16961 * htl: New directory.
16962 * sysdeps/htl: New directory.
16963 * sysdeps/hurd/htl: New directory.
16964 * sysdeps/i386/htl: New directory.
16965 * sysdeps/mach/htl: New directory.
16966 * sysdeps/mach/hurd/htl: New directory.
16967 * sysdeps/mach/hurd/i386/htl: New directory.
16968 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16969 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16970 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16971
16972 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16973
16974 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16975 signals in thread created for runing timers.
16976
16977 2018-04-01 Florian Weimer <fweimer@redhat.com>
16978
16979 * support/support_format_addrinfo.c (support_format_addrinfo):
16980 Include unknown error number in formatted result.
16981
16982 2018-03-29 Florian Weimer <fweimer@redhat.com>
16983
16984 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16985 capture SIGBUS.
16986
16987 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16988
16989 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16990 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16991 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16992 (__ASSUME_CLONE_BACKWARDS): Define.
16993
16994 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16995
16996 [BZ #23024]
16997 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16998 early when linux sentinel value is set.
16999
17000 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17001
17002 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
17003
17004 2018-03-27 Andreas Schwab <schwab@suse.de>
17005
17006 [BZ #23005]
17007 * resolv/res_send.c (__res_context_send): Return ENOMEM if
17008 allocation of private copy of nsaddr_list fails.
17009
17010 2018-03-26 Joseph Myers <joseph@codesourcery.com>
17011
17012 [BZ #16552]
17013 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
17014 * sysdeps/unix/sysv/linux/umount.c: ... here.
17015 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
17016 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
17017 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
17018 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
17019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
17020 * sysdeps/unix/sysv/linux/umount.S: Likewise.
17021 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
17022
17023 2018-03-26 Andreas Schwab <schwab@suse.de>
17024
17025 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
17026 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
17027 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
17028 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
17029 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
17030 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
17031 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
17032 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
17033 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
17034 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
17035 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
17036 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
17037 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
17038 (R_RISCV_NUM): Define.
17039
17040 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17041
17042 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
17043 TLS declaration of errno.
17044 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
17045 __libc_setup_tls.
17046 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
17047 (ARCH_SETUP_TLS): Likewise.
17048 * sysdeps/mach/hurd/libc-start.h: New file copied from
17049 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
17050 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
17051 instead of __libc_setup_tls.
17052 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
17053 __libc_setup_tls before initializing libpthread and running _hurd_init
17054 which starts the signal thread.
17055 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
17056 Declare function.
17057 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
17058
17059 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
17060
17061 [BZ #22998]
17062 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
17063 after it is defined.
17064
17065 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
17066 Max Horn <max@quendi.de>
17067
17068 [BZ #22644]
17069 CVE-2017-18269
17070 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
17071 branch conditions.
17072 * string/test-memmove.c (do_test2): New testcase.
17073
17074 2018-03-22 Joseph Myers <joseph@codesourcery.com>
17075
17076 * sysdeps/generic/frame.h: Remove file.
17077 * sysdeps/arm/frame.h: Likewise.
17078 * sysdeps/hppa/frame.h: Likewise.
17079 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
17080 macro.
17081 (GET_FRAME): Likewise.
17082 (GET_STACK): Likewise.
17083 (CALL_SIGHANDLER): Likewise.
17084 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
17085 Likewise.
17086 (GET_FRAME): Likewise.
17087 (GET_STACK): Likewise.
17088 (CALL_SIGHANDLER): Likewise.
17089 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
17090 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17091 (GET_FRAME): Likewise.
17092 (GET_STACK): Likewise.
17093 (CALL_SIGHANDLER): Likewise.
17094 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
17095 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17096 (GET_FRAME): Likewise.
17097 (GET_STACK): Likewise.
17098 (ADVANCE_STACK_FRAME): Likewise.
17099 (CALL_SIGHANDLER): Likewise.
17100 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
17101 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17102 (GET_FRAME): Likewise.
17103 (GET_STACK): Likewise.
17104 (CALL_SIGHANDLER): Likewise.
17105 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
17106 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17107 (GET_FRAME): Likewise.
17108 (GET_STACK): Likewise.
17109 (CALL_SIGHANDLER): Likewise.
17110 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
17111 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17112 (GET_FRAME): Likewise.
17113 (GET_STACK): Likewise.
17114 (CALL_SIGHANDLER): Likewise.
17115 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
17116 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17117 (GET_FRAME): Likewise.
17118 (GET_STACK): Likewise.
17119 (CALL_SIGHANDLER): Likewise.
17120 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
17121 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17122 (GET_FRAME): Likewise.
17123 (GET_STACK): Likewise.
17124 (CALL_SIGHANDLER): Likewise.
17125 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
17126 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17127 (GET_FRAME): Likewise.
17128 (GET_STACK): Likewise.
17129 (CALL_SIGHANDLER): Likewise.
17130 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
17131 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17132 (GET_FRAME): Likewise.
17133 (GET_STACK): Likewise.
17134 (CALL_SIGHANDLER): Likewise.
17135 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
17136 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17137 (GET_FRAME): Likewise.
17138 (GET_STACK): Likewise.
17139 (CALL_SIGHANDLER): Likewise.
17140 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
17141 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17142 (GET_FRAME): Likewise.
17143 (GET_STACK): Likewise.
17144 (CALL_SIGHANDLER): Likewise.
17145 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
17146 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17147 (FIRST_FRAME_POINTER): Likewise.
17148 (ADVANCE_STACK_FRAME): Likewise.
17149 (GET_STACK): Likewise.
17150 (GET_FRAME): Likewise.
17151 (CALL_SIGHANDLER): Likewise.
17152 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
17153 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17154 (ADVANCE_STACK_FRAME): Likewise.
17155 (GET_STACK): Likewise.
17156 (GET_FRAME): Likewise.
17157 (CALL_SIGHANDLER): Likewise.
17158 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
17159 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17160 (GET_FRAME): Likewise.
17161 (GET_STACK): Likewise.
17162 (CALL_SIGHANDLER): Likewise.
17163 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
17164 (SIGCONTEXT_EXTRA_ARGS): Likewise.
17165 (GET_FRAME): Likewise.
17166 (GET_STACK): Likewise.
17167 (CALL_SIGHANDLER): Likewise.
17168
17169 2018-03-21 Joseph Myers <joseph@codesourcery.com>
17170
17171 * sysdeps/x86_64/backtrace.c: Move to ....
17172 * debug/backtrace.c: ... here.
17173 * sysdeps/aarch64/backtrace.c: Remove file.
17174 * sysdeps/alpha/backtrace.c: Likewise.
17175 * sysdeps/hppa/backtrace.c: Likewise.
17176 * sysdeps/ia64/backtrace.c: Likewise.
17177 * sysdeps/mips/backtrace.c: Likewise.
17178 * sysdeps/nios2/backtrace.c: Likewise.
17179 * sysdeps/riscv/backtrace.c: Likewise.
17180 * sysdeps/sh/backtrace.c: Likewise.
17181 * sysdeps/tile/backtrace.c: Likewise.
17182
17183 2018-03-20 Joseph Myers <joseph@codesourcery.com>
17184
17185 [BZ #22987]
17186 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
17187 function.
17188 (fdimf): Likewise.
17189 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
17190
17191 [BZ #17343]
17192 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
17193 possibly overflowing computations.
17194
17195 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
17196
17197 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
17198 values from Linux-specific section now that it is in the GNU section.
17199 * sysdeps/gnu/errlist.c: Regenerate.
17200
17201 2018-03-20 Joseph Myers <joseph@codesourcery.com>
17202
17203 * math/Makefile (libm-narrow-fns): Add sub.
17204 (libm-test-funcs-narrow): Likewise.
17205 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
17206 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
17207 * math/gen-auto-libm-tests.c (test_functions): Add sub.
17208 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
17209 (NARROW_SUB_ROUND_TO_ODD): Likewise.
17210 (NARROW_SUB_TRIVIAL): Likewise.
17211 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
17212 macro.
17213 (__dsubl): Likewise.
17214 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
17215 dsub.
17216 (CFLAGS-nldbl-dsub.c): New variable.
17217 (CFLAGS-nldbl-fsub.c): Likewise.
17218 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17219 __nldbl_dsubl.
17220 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
17221 prototype.
17222 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
17223 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
17224 * math/auto-libm-test-in: Add tests of sub.
17225 * math/auto-libm-test-out-narrow-sub: New generated file.
17226 * math/libm-test-narrow-sub.inc: New file.
17227 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17228 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
17229 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
17230 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
17231 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
17232 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
17233 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
17234 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
17235 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
17236 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
17237 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
17238 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
17239 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
17240 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
17241 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
17242 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
17243 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
17244 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
17245 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17246 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17250 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17251 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17252 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17253 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17254 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17255 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17256 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17257 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17258 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17263 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17264 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17265 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17266 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17267 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17268 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17269 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17270 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17271 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17272 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17273
17274 2018-03-19 Joseph Myers <joseph@codesourcery.com>
17275
17276 [BZ #20079]
17277 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
17278
17279 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
17280
17281 * benchtests/bench-timing.h (attribute_hidden): Undefine.
17282
17283 2018-03-18 Richard Braun <rbraun@sceen.net>
17284
17285 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
17286 thread reference.
17287
17288 2018-03-18 Agustina Arzille <avarzille@riseup.net>
17289
17290 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
17291 (__libc_cleanup_fct): Define function.
17292 (__libc_cleanup_region_start, __libc_cleanup_region_end,
17293 __libc_cleanup_end): Rewrite implementation using
17294 __attribute__ ((__cleanup__)).
17295 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
17296 * hurd/Makefile (routines): Add hurdlock.
17297 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
17298 interface.
17299 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
17300 * hurd/hurdpid.c: Include <lowlevellock.h>
17301 (_S_msg_proc_newids): Use lll_wait to synchronize.
17302 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
17303 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
17304 * mach/Makefile (lock-headers): Remove machine-lock.h.
17305 * mach/lock-intern.h: Include <lowlevellock.h> instead of
17306 <machine-lock.h>.
17307 (__spin_lock_t): New type.
17308 (__SPIN_LOCK_INITIALIZER): New macro.
17309 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
17310 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
17311 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
17312 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
17313 (__mutex_init): Initialize with lll.
17314 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
17315 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
17316 needing lll.
17317 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
17318 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
17319 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
17320 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
17321 (__setpgid): Use lll for synchronization.
17322 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
17323 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
17324 instead of <cthreads.h>.
17325 (_IO_lock_inexpensive): New macro
17326 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
17327 (__libc_lock_self0): New declaration.
17328 (__libc_lock_owner_self): New macro.
17329 (__libc_key_t): Remove type.
17330 (_LIBC_LOCK_INITIALIZER): New macro.
17331 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
17332 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
17333 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
17334 __libc_lock_define_initialized_recursive,
17335 __rtld_lock_define_initialized_recursive,
17336 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
17337 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
17338 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
17339 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
17340 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
17341 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
17342 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
17343 New macros.
17344 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
17345 * hurd/hurdlock.c: New file.
17346 * hurd/hurdlock.h: New file.
17347 * mach/lowlevellock.h: New file
17348
17349 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17350
17351 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
17352 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
17353 when opening a symlink with O_NOFOLLOW.
17354 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
17355 path when flags contains O_NOFOLLOW.
17356 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
17357 if flags contains O_DIRECTORY and the result is a directory.
17358 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
17359 oneself when the pointer given in D is nul (as set by ext2fs).
17360 * sysdeps/mach/hurd/mlockall.c: New file.
17361 * sysdeps/mach/hurd/munlockall.c: New file.
17362
17363 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17364
17365 * hurd/hurdsig.c: Include <pthread.h>.
17366 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
17367 get the signal thread stack layout.
17368 * hurd/Makefile (headers): Remove threadvar.h.
17369 (inline-headers): Remove threadvar.h.
17370 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
17371 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
17372 __hurd_threadvar_max, __hurd_errno_location.
17373 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
17374 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
17375 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
17376 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
17377 unless TLS is not initialized yet, in which case we do not need a
17378 critical section yet anyway.
17379 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
17380 <machine-sp.h>.
17381 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
17382 declarations.
17383 (__hurd_threadvar_index): Remove enum.
17384 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
17385 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
17386 inlines.
17387 (__hurd_reply_port0): New variable declaration.
17388 (__hurd_local_reply_port): New macro.
17389 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
17390 (interrupted_reply_port_location): Add thread_t parameter. Use it
17391 with THREAD_TCB to access thread-local variables.
17392 (_hurdsig_abort_rpcs): Pass ss->thread to
17393 interrupted_reply_port_location.
17394 (_hurd_internal_post_signal): Likewise.
17395 (_hurdsig_init): Use presence of cthread_fork instead of
17396 __hurd_threadvar_stack_mask to start signal thread by hand.
17397 Remove signal thread threadvar initialization.
17398 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
17399 * hurd/sigunwind.c: Include <hurd/threadvar.h>
17400 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
17401 of threadvar.
17402 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
17403 __libc_lock_self0.
17404 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
17405 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
17406 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
17407 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
17408 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
17409 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
17410 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
17411 define variables.
17412 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
17413 <hurd/threadvar.h>.
17414 [IS_IN(rtld)] (rtld_errno): New variable.
17415 [IS_IN(rtld)] (__errno_location): New weak function.
17416 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
17417 * sysdeps/mach/hurd/errno.c: Remove file.
17418 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
17419 (__fork): Remove THREADVAR_SPACE macro and its use.
17420 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
17421 variable.
17422 (init): Do not initialize threadvar.
17423 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
17424 symbol.
17425 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
17426 __hurd_local_reply_port instead of threadvar.
17427 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
17428 _hurd_sigstate fields.
17429 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
17430 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
17431 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
17432 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
17433 instead of threadvar.
17434 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
17435 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
17436 (use_threadvar, global_reply_port): Remove variables.
17437 (__hurd_reply_port0): New variable.
17438 (__mig_get_reply_port): Use __hurd_local_reply_port and
17439 __hurd_reply_port0 instead of threadvar.
17440 (__mig_dealloc_reply_port): Likewise.
17441 (__mig_init): Do not initialize threadvar.
17442 * sysdeps/mach/hurd/profil.c: Fix comment.
17443 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
17444 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
17445 cthread_keycreate, cthread_getspecific, cthread_setspecific to
17446 __cthread_fork, __cthread_detach, __pthread_getattr_np,
17447 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
17448 __cthread_setspecific.
17449 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
17450 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
17451 __cthread_t instead of cthread_fork, cthread_detach,
17452 pthread_getattr_np, pthread_attr_getstack.
17453 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
17454 __cthread_keycreate.
17455 (cthread_getspecific): Rename to __cthread_getspecific.
17456 (cthread_setspecific): Rename to __cthread_setspecific.
17457 (__libc_getspecific): Use __cthread_getspecific instead of
17458 cthread_getspecific.
17459 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
17460 __cthread_keycreate instead of cthread_keycreate.
17461 (__libc_setspecific): Use __cthread_setspecific instead of
17462 cthread_setspecific.
17463 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
17464 Likewise.
17465 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
17466 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
17467 testing whether it is defined.
17468
17469 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
17470
17471 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17472 Define macro.
17473 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17474 * sysdeps/mach/i386/thread_state.h
17475 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17476 i386_THREAD_STATE.
17477 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17478 i386_THREAD_STATE.
17479 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17480
17481 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17482 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17483
17484 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17485 macros.
17486 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17487 descriptor instead of creating a new one.
17488 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17489
17490 * mach/setup-thread.c: Include <ldsodefs.h>.
17491 (__mach_setup_thread): Call _dl_allocate_tls, pass
17492 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17493 MACHINE_THREAD_STATE_FLAVOR, before getting
17494 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17495 MACHINE_THREAD_STATE_FLAVOR with the result.
17496 * hurd/hurdfault.c (_hurdsig_fault_init): Call
17497 MACHINE_THREAD_STATE_FIX_NEW.
17498 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17499 too. Add original thread parameter.
17500
17501 2018-03-16 Joseph Myers <joseph@codesourcery.com>
17502
17503 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17504 Remove inline function.
17505
17506 * sysdeps/i386/fpu/libm-test-ulps: Update.
17507 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17508
17509 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
17510
17511 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17512 commit.
17513
17514 2018-03-15 Joseph Myers <joseph@codesourcery.com>
17515
17516 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17517 (__sincos_code): Remove define and undefine.
17518 [__FAST_MATH__] (__sincos): Remove inline function.
17519 [__FAST_MATH__] (__sincosf): Remove inline function.
17520 [__FAST_MATH__] (__sincosl): Remove inline function.
17521 (__atan2l): Remove inline functions.
17522 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17523 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17524 function.
17525 (floor): Remove inline function.
17526 (ceil): Likewise.
17527 [__FAST_MATH__] (__ldexp_code): Remove macro.
17528 [__FAST_MATH__] (ldexp): Remove inline function.
17529 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17530 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17531 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17532 [__USE_ISOC99] (__lrint_code): Remove macro.
17533 [__USE_ISOC99] (__llrint_code): Likewise.
17534 [__USE_ISOC99] (lrintf): Remove inline function.
17535 [__USE_ISOC99] (lrint): Likewise.
17536 [__USE_ISOC99] (lrintl): Likewise.
17537 [__USE_ISOC99] (llrint): Likewise.
17538 [__USE_ISOC99] (llrintf): Likewise.
17539 [__USE_ISOC99] (llrintl): Likewise.
17540
17541 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17542
17543 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17544 (__ieee754_sqrtf): Remove.
17545 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17546 (__ieee754_sqrtf): Remove.
17547 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17548 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17549 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17550 (__ieee754_sqrtf): Remove.
17551 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17552 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17553 (sqrtf): Remove.
17554 (sqrtl): Remove.
17555 (__ieee754_sqrt): Remove.
17556 (__ieee754_sqrtf): Remove.
17557 (__ieee754_sqrtl): Remove.
17558 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17559 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17560 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17561 (__ieee754_sqrtf): Remove.
17562 (__ieee754_sqrtl): Remove.
17563
17564 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17565
17566 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17567 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17568 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17569 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17570 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17571 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17572 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17573 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17574 Likewise.
17575 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17576 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17577 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17578 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17579 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17580 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17581 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17582 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17583 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17584 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17585 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17586 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17587 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17588 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17589 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17590 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17591 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17592 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17593 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17594 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17595 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17596 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17597 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17598 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17599 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17600 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17601 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17602 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17603 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17604 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17605 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17606 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17607 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17608 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17609 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17610 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17611 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17612 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17613 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17614 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17615
17616 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17617
17618 * include/math.h (sqrt): Declare with asm redirect.
17619 (sqrtf): Likewise.
17620 (sqrtl): Likewise.
17621 (sqrtf128): Likewise.
17622 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17623 nonlib and libnldbl with -fmath-errno.
17624 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17625 * math/w_sqrt_template.c: Likewise.
17626 * math/w_sqrtf_compat.c: Likewise.
17627 * math/w_sqrtl_compat.c: Likewise.
17628 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17629 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17630 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17631 complex.h.
17632
17633 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17634
17635 * benchtests/Makefile: Define _ISOMAC.
17636 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17637 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17638 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17639 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17640 * benchtests/bench-timing.h: Define attribute_hidden.
17641
17642 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
17643
17644 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17645 mov + lsr.
17646
17647 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17648
17649 [BZ #22963]
17650 * localedata/locales/cs_CZ (mon): Rename to...
17651 (alt_mon): This.
17652 (mon): Import from CLDR (genitive case).
17653
17654 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17655
17656 [BZ #22937]
17657 * localedata/locales/el_CY (abmon): Rename to...
17658 (ab_alt_mon): This.
17659 (abmon): Import from CLDR (abbreviated genitive case).
17660 * localedata/locales/el_GR (abmon): Rename to...
17661 (ab_alt_mon): This.
17662 (abmon): Import from CLDR (abbreviated genitive case).
17663
17664 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17665
17666 [BZ #22932]
17667 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17668
17669 2018-03-15 Robert Buj <robert.buj@gmail.com>
17670
17671 [BZ #22848]
17672 * localedata/locales/ca_ES (abmon): Rename to...
17673 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17674 (mon): Rename to...
17675 (alt_mon): This.
17676 (abmon): Import from CLDR (genitive case, month names preceded by
17677 "de" or "d’").
17678 (mon): Likewise.
17679 (abday): Synchronize with CLDR.
17680 (d_t_fmt): Likewise.
17681 (d_fmt): Likewise.
17682 (am_pm): Likewise.
17683
17684 (LC_TIME): Improve indentation.
17685 (LC_TELEPHONE): Likewise.
17686 (LC_NAME): Likewise.
17687 (LC_ADDRESS): Likewise.
17688
17689 2018-03-14 Joseph Myers <joseph@codesourcery.com>
17690
17691 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17692 (lrintf): Remove definitions used only with old GCC.
17693 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17694 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17695 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17696 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17697 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17698 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17699 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17700 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17701 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17702 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17703 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17704 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17705 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17706 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17707 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17708 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17709 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17710 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17711 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17712 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17713 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17714 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17715 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17716 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17717 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17718 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17719 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17720 [__FAST_MATH__] (__M_SQRT2): Remove macro.
17721
17722 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17723
17724 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17725 instruction to unbreak builds with binutils 2.26 and older.
17726
17727 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17728
17729 * sysdeps/aarch64/strncmp.S (count): New macro.
17730 (strncmp): Store misaligned length in SRC1 in COUNT.
17731 (mutual_align): Adjust.
17732 (misaligned8): Load dword at a time when it is safe.
17733
17734 2018-03-12 Zack Weinberg <zackw@panix.com>
17735
17736 [BZ #1190]
17737 [BZ #19476]
17738 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17739 if the _IO_EOF_SEEN bit is already set; update commentary.
17740 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17741 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17742
17743 * support/support_openpty.c, support/tty.h: New files.
17744 * support/Makefile (libsupport-routines): Add support_openpty.
17745
17746 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17747 New test cases.
17748 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17749 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17750
17751 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17752
17753 * po/pt_BR.po: Update translations.
17754
17755 2018-03-12 David Michael <fedora.dm0@gmail.com>
17756
17757 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17758 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17759 get a port to the startup server.
17760
17761 2018-03-11 Zack Weinberg <zackw@panix.com>
17762
17763 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17764 before nldbl-compat.h.
17765
17766 2018-03-10 Zack Weinberg <zackw@panix.com>
17767
17768 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17769 math.h or math_private.h.
17770
17771 * sysdeps/alpha/fpu/s_isnan.c
17772 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17773 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17774 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17775 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17776 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17777 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17778 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17779 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17780 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17781 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17783 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17784 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17785 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17786 Include math_private.h.
17787
17788 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17789 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17790 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17791 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17792 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17793 * sysdeps/powerpc/power7/fpu/s_logb.c:
17794 Include math.h and math_private.h.
17795
17796 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17797 uses of $at in .set noat / .set at.
17798
17799 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17800
17801 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17802 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17803 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17804 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17805 Likewise.
17806
17807 2018-03-09 Florian Weimer <fweimer@redhat.com>
17808
17809 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17810 in comment.
17811
17812 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17813
17814 [BZ #22919]
17815 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17816 Add nop before __startcontext, add explaining comments.
17817
17818 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17819
17820 [BZ #22926]
17821 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17822 empty for __SPE__.
17823 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17824 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17825 Do not build hardware transactional code for __SPE__.
17826 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17827 (__lll_trylock_elision): Likewise.
17828 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17829 (__lll_unlock_elision): Likewise.
17830
17831 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17832 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17833 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17834 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17835 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17836 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17837 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17838 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17839 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17840 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17841 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17842 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17843 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17844 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17845 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17846 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17847 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17848 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17849 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17850 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17851 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17852 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17853 (__ASSUME_CLONE_BACKWARDS): Define.
17854 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17855 __clone2 if __NR_clone2 is defined.
17856 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17857 (__ASSUME_CLONE_BACKWARDS): Likewise.
17858 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17859 (__ASSUME_CLONE_BACKWARDS): Likewise.
17860 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17861 (__ASSUME_CLONE2): Likewise.
17862 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17863 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17864 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17865 variants and the define architecture can use.
17866 (__ASSUME_CLONE_DEFAULT): Define as default.
17867 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17868 (__ASSUME_CLONE_BACKWARDS): Likewise.
17869 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17870 (__ASSUME_CLONE_BACKWARDS): Likewise.
17871 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17872 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17873
17874 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17875
17876 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17877
17878 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17879 time.
17880
17881 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17882 (do_test_limit): Likewise.
17883
17884 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17885 for every implementation.
17886 (do_test): Likewise.
17887
17888 * benchtests/bench-strncmp.c: Convert output to json.
17889
17890 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17891
17892 * io/futimens.c: Add missing start-of-file descriptive comment.
17893 * io/utime.c: Likewise.
17894 * misc/futimesat.c: Likewise.
17895 * misc/utimes.c: Likewise.
17896 * sysdeps/mach/hurd/futimesat.c: Likewise.
17897 * sysdeps/mach/hurd/utimes.c: Likewise.
17898 * sysdeps/posix/utime.c: Likewise.
17899 * sysdeps/posix/utimes.c: Likewise.
17900 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17901 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17902 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17903 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17904
17905 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17906
17907 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17908 hurd_futimes.
17909 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17910 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17911 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17912 (__futimens): Move implementation to...
17913 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17914 utime_tvalue_from_tspec): ... new helper functions.
17915 (hurd_futimens): New function.
17916 * sysdeps/mach/hurd/futimesat.c: New file.
17917 * sysdeps/mach/hurd/utimensat.c: New file.
17918
17919 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17920
17921 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17922 UTIME_OMIT): New macros.
17923 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17924 before reverting to converting time spec to time value and calling
17925 __file_utimes.
17926 * sysdeps/mach/hurd/utime-helper.c: New file.
17927 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17928 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17929 reverting to utime_tvalue_from_tval and __file_utimes.
17930 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17931 (__lutimes): Just call hurd_futimens after lookup.
17932 * sysdeps/mach/hurd/utimes.c: Likewise.
17933
17934 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17935
17936 * bits/sigaction.h: Add include guard.
17937 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17938 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17939 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17940 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17941 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17942 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17943 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17944 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17945 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17946
17947 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17948
17949 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17950 -Wmaybe-uninitialized for -Os.
17951 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17952 this disabling.
17953
17954 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17955
17956 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17957 __INO_T_MATCHES_INO64_T is defined.
17958 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17959 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17960 of definition.
17961 * dirent/alphasort64.c: Likewise.
17962 * dirent/scandir.c: Likewise.
17963 * dirent/scandir64-tail.c: Likewise.
17964 * dirent/scandir64.c: Likewise.
17965 * dirent/scandirat.c: Likewise.
17966 * dirent/scandirat64.c: Likewise.
17967 * dirent/versionsort.c: Likewise.
17968 * dirent/versionsort64.c: Likewise.
17969 * include/dirent.h: Likewise.
17970
17971 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17972 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17973 for socketpair endpoint.
17974 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17975 WRITE_BUFFER_SIZE as buffer size for sending socket.
17976 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17977 issue on system where send is implemented with sendto syscall.
17978 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17979 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17980 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17981 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17982
17983 [BZ #21269]
17984 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17985 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17986 sa_restorer for vDSO case.
17987 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17988
17989 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17990
17991 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17992 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17993 * hurd/hurd/ioctl.h: Include <mach/port.h>
17994 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17995 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17996 <mach/mach_types.h> and <mach/message.h>.
17997 (headers): Move mach/param.h to bits/mach/param.h.
17998 * sysdeps/mach/i386/mach/param.h: Move file to ...
17999 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
18000 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
18001 of <mach/param.h>.
18002 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
18003 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
18004 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
18005 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
18006 trivial, for C++ conformity.
18007 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
18008 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
18009 Process mig output through $(migheadersed).
18010 * hurd/Makefile (migheadersed): Define variable.
18011 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
18012 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
18013 headers.
18014 * hurd/hurd.h: Include <bits/types/sigset_t.h>
18015 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
18016 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
18017 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
18018 <bits/types/sigset_t.h>.
18019 [!defined __USE_GNU]: Do not #error out.
18020 (struct hurd_sigstate): Use _NSIG instead of NSIG.
18021 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
18022 Include <stddef.h> and <bits/types/sigset_t.h>
18023 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
18024 instead of sighandler_t.
18025 * stdlib/errno.h (error_t): Move definition to...
18026 * bits/types/error_t.h: ... new header.
18027 * stdlib/Makefile (headers): Add bits/types/error_t.h.
18028 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
18029 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
18030 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
18031 * hurd/hurd.h: Include <bits/types/error_t.h>
18032 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
18033 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
18034 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
18035 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
18036 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
18037 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
18038 * sysdeps/mach/hurd/futimens.c: New file.
18039
18040 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
18041
18042 [BZ #22918]
18043 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
18044 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
18045 * nscd/gai.c (__nss_hosts_database): Readd definition.
18046 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
18047 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
18048 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
18049
18050 2018-03-02 Joseph Myers <joseph@codesourcery.com>
18051
18052 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
18053 (ifunc_one): Likewise.
18054
18055 2018-03-01 DJ Delorie <dj@delorie.com>
18056
18057 [BZ #22342]
18058 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
18059 key value.
18060
18061 2018-03-01 Maciej W. Rozycki <macro@mips.com>
18062
18063 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
18064 `match_pid' parameter.
18065 (td_ta_thr_iter): Update accordingly.
18066
18067 2018-03-01 Florian Weimer <fweimer@redhat.com>
18068
18069 * nptl/Makefile (install-lib-ldscripts): Remove.
18070 (install): Remove rule.
18071 ($(inst_libdir)/libpthread.so): Likewise.
18072
18073 2018-03-01 Mike FABIAN <mfabian@redhat.com>
18074
18075 [BZ #22896]
18076 * localedata/locales/an_ES: update month and day names,
18077 improve d_fmt, improve postal_fmt, add country_post,
18078 add country_isbn
18079
18080 2018-03-01 Mike FABIAN <mfabian@redhat.com>
18081
18082 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
18083 Ukrainian instead of Bulgarian.
18084
18085 2018-03-01 Florian Weimer <fweimer@redhat.com>
18086
18087 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
18088 reference.
18089
18090 2018-03-01 Florian Weimer <fweimer@redhat.com>
18091
18092 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
18093 * nptl/Makefile (routines): Add pthread_atfork.
18094 (static-only-routines): Set to pthread_atfork.
18095 (libpthread-routines): Remove pthread_atfork.
18096 (libpthread-static-only-routines): Remove.
18097 (install): Update comment.
18098 (libpthread.so): Do not install libpthread_nonshared.a.
18099 (tests): Do not link with libpthread_nonshared.a.
18100 (generated): Remove libpthread_nonshared.a.
18101 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
18102 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
18103 with libpthread_nonshared.a.
18104
18105 2018-02-28 Joseph Myers <joseph@codesourcery.com>
18106
18107 [BZ #22902]
18108 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
18109 (libc_feholdexcept_setroundf128): New macro.
18110 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
18111
18112 [BZ #15105]
18113 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
18114 libc_hidden_def.
18115 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
18116 * include/inttypes.h: New file.
18117
18118 2018-02-27 Joseph Myers <joseph@codesourcery.com>
18119
18120 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
18121 -Os in two more places.
18122
18123 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18124
18125 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
18126 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
18127 be sorted correctly at the moment because of a bug.
18128
18129 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18130
18131 [BZ #22550] - es_ES locale (and other es_* locales): collation should
18132 treat ñ as a primary different character, sync the collation
18133 for Spanish with CLDR.
18134 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
18135 * localedata/Makefile: Add new test files.
18136 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
18137 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
18138 collation order.
18139 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
18140 * localedata/am_ET.UTF-8.in: New test file.
18141 * localedata/az_AZ.UTF-8.in: Likewise.
18142 * localedata/be_BY.UTF-8.in: Likewise.
18143 * localedata/ber_DZ.UTF-8.in: Likewise.
18144 * localedata/ber_MA.UTF-8.in: Likewise.
18145 * localedata/bg_BG.UTF-8.in: Likewise.
18146 * localedata/br_FR.UTF-8.in: Likewise.
18147 * localedata/cmn_TW.UTF-8.in: Likewise.
18148 * localedata/crh_UA.UTF-8.in: Likewise.
18149 * localedata/csb_PL.UTF-8.in: Likewise.
18150 * localedata/cv_RU.UTF-8.in: Likewise.
18151 * localedata/cy_GB.UTF-8.in: Likewise.
18152 * localedata/dz_BT.UTF-8.in: Likewise.
18153 * localedata/eo.UTF-8.in: Likewise.
18154 * localedata/es_ES.UTF-8.in: Likewise.
18155 * localedata/fa_IR.UTF-8.in: Likewise.
18156 * localedata/fi_FI.UTF-8.in: Likewise.
18157 * localedata/fil_PH.UTF-8.in: Likewise.
18158 * localedata/fur_IT.UTF-8.in: Likewise.
18159 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
18160 * localedata/ha_NG.UTF-8.in: Likewise.
18161 * localedata/ig_NG.UTF-8.in: Likewise.
18162 * localedata/ik_CA.UTF-8.in: Likewise.
18163 * localedata/kk_KZ.UTF-8.in: Likewise.
18164 * localedata/ku_TR.UTF-8.in: Likewise.
18165 * localedata/ky_KG.UTF-8.in: Likewise.
18166 * localedata/ln_CD.UTF-8.in: Likewise.
18167 * localedata/mi_NZ.UTF-8.in: Likewise.
18168 * localedata/ml_IN.UTF-8.in: Likewise.
18169 * localedata/mn_MN.UTF-8.in: Likewise.
18170 * localedata/mr_IN.UTF-8.in: Likewise.
18171 * localedata/mt_MT.UTF-8.in: Likewise.
18172 * localedata/nb_NO.UTF-8.in: Likewise.
18173 * localedata/om_KE.UTF-8.in: Likewise.
18174 * localedata/os_RU.UTF-8.in: Likewise.
18175 * localedata/ps_AF.UTF-8.in: Likewise.
18176 * localedata/ro_RO.UTF-8.in: Likewise.
18177 * localedata/ru_RU.UTF-8.in: Likewise.
18178 * localedata/sc_IT.UTF-8.in: Likewise.
18179 * localedata/se_NO.UTF-8.in: Likewise.
18180 * localedata/sq_AL.UTF-8.in: Likewise.
18181 * localedata/sv_SE.UTF-8.in: Likewise.
18182 * localedata/szl_PL.UTF-8.in: Likewise.
18183 * localedata/tg_TJ.UTF-8.in: Likewise.
18184 * localedata/tk_TM.UTF-8.in: Likewise.
18185 * localedata/tt_RU.UTF-8.in: Likewise.
18186 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
18187 * localedata/ug_CN.UTF-8.in: Likewise.
18188 * localedata/uz_UZ.UTF-8.in: Likewise.
18189 * localedata/vi_VN.UTF-8.in: Likewise.
18190 * localedata/yi_US.UTF-8.in: Likewise.
18191 * localedata/yo_NG.UTF-8.in: Likewise.
18192 * localedata/zh_CN.UTF-8.in: Likewise.
18193 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
18194 file and fix bugs in the collation.
18195 * localedata/locales/az_AZ: Likewise.
18196 * localedata/locales/be_BY: Likewise.
18197 * localedata/locales/ber_DZ: Likewise.
18198 * localedata/locales/ber_MA: Likewise.
18199 * localedata/locales/bg_BG: Likewise.
18200 * localedata/locales/br_FR: Likewise.
18201 * localedata/locales/br_FR@euro: Likewise.
18202 * localedata/locales/ca_ES: Likewise.
18203 * localedata/locales/cns11643_stroke: Likewise.
18204 * localedata/locales/crh_UA: Likewise.
18205 * localedata/locales/cs_CZ: Likewise.
18206 * localedata/locales/csb_PL: Likewise.
18207 * localedata/locales/cv_RU: Likewise.
18208 * localedata/locales/cy_GB: Likewise.
18209 * localedata/locales/da_DK: Likewise.
18210 * localedata/locales/dz_BT: Likewise.
18211 * localedata/locales/en_CA: Likewise.
18212 * localedata/locales/eo: Likewise.
18213 * localedata/locales/es_CU: Likewise.
18214 * localedata/locales/es_EC: Likewise.
18215 * localedata/locales/es_ES: Likewise.
18216 * localedata/locales/es_US: Likewise.
18217 * localedata/locales/et_EE: Likewise.
18218 * localedata/locales/fa_IR: Likewise.
18219 * localedata/locales/fi_FI: Likewise.
18220 * localedata/locales/fil_PH: Likewise.
18221 * localedata/locales/fur_IT: Likewise.
18222 * localedata/locales/gez_ER@abegede: Likewise.
18223 * localedata/locales/ha_NG: Likewise.
18224 * localedata/locales/hr_HR: Likewise.
18225 * localedata/locales/hsb_DE: Likewise.
18226 * localedata/locales/hu_HU: Likewise.
18227 * localedata/locales/ig_NG: Likewise.
18228 * localedata/locales/ik_CA: Likewise.
18229 * localedata/locales/is_IS: Likewise.
18230 * localedata/locales/iso14651_t1_pinyin: Likewise.
18231 * localedata/locales/kk_KZ: Likewise.
18232 * localedata/locales/ku_TR: Likewise.
18233 * localedata/locales/ky_KG: Likewise.
18234 * localedata/locales/ln_CD: Likewise.
18235 * localedata/locales/lt_LT: Likewise.
18236 * localedata/locales/lv_LV: Likewise.
18237 * localedata/locales/mi_NZ: Likewise.
18238 * localedata/locales/ml_IN: Likewise.
18239 * localedata/locales/mn_MN: Likewise.
18240 * localedata/locales/mr_IN: Likewise.
18241 * localedata/locales/mt_MT: Likewise.
18242 * localedata/locales/nb_NO: Likewise.
18243 * localedata/locales/om_KE: Likewise.
18244 * localedata/locales/os_RU: Likewise.
18245 * localedata/locales/pl_PL: Likewise.
18246 * localedata/locales/ps_AF: Likewise.
18247 * localedata/locales/ro_RO: Likewise.
18248 * localedata/locales/ru_RU: Likewise.
18249 * localedata/locales/ru_UA: Likewise.
18250 * localedata/locales/sc_IT: Likewise.
18251 * localedata/locales/se_NO: Likewise.
18252 * localedata/locales/si_LK: Likewise.
18253 * localedata/locales/sq_AL: Likewise.
18254 * localedata/locales/sv_FI: Likewise.
18255 * localedata/locales/sv_FI@euro: Likewise.
18256 * localedata/locales/sv_SE: Likewise.
18257 * localedata/locales/szl_PL: Likewise.
18258 * localedata/locales/tg_TJ: Likewise.
18259 * localedata/locales/ti_ER: Likewise.
18260 * localedata/locales/tk_TM: Likewise.
18261 * localedata/locales/tl_PH: Likewise.
18262 * localedata/locales/tr_TR: Likewise.
18263 * localedata/locales/tt_RU: Likewise.
18264 * localedata/locales/tt_RU@iqtelif: Likewise.
18265 * localedata/locales/ug_CN: Likewise.
18266 * localedata/locales/uk_UA: Likewise.
18267 * localedata/locales/uz_UZ: Likewise.
18268 * localedata/locales/uz_UZ@cyrillic: Likewise.
18269 * localedata/locales/vi_VN: Likewise.
18270 * localedata/locales/yi_US: Likewise.
18271 * localedata/locales/yo_NG: Likewise.
18272
18273 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18274
18275 * gen-locales.mk: Make test files which contain @ modifiers in their
18276 name work.
18277 * localedata/gen-locale.sh: Likewise.
18278
18279 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18280
18281 * posix/tst-fnmatch.input: Fix results for range expressions
18282 for non C locales.
18283 * posix/tst-regexloc.c: Do not use a range expression for
18284 de_DE.ISO-8859-1 locale.
18285
18286 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18287
18288 * posix/bug-regex5.c: Fix test case because with the new
18289 iso14651_t1_common file, the da_DK locale now has 6 collating elements
18290 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
18291 file.
18292
18293 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18294
18295 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
18296 downloaded from ISO, the collation order of @-. and space has changed.
18297 Therefore, this test file needed to be adapted.
18298 * localedata/fr_CA.UTF-8.in: Likewise.
18299 * localedata/fr_FR.UTF-8.in: Likewise.
18300 * localedata/uk_UA.UTF-8.in: Likewise.
18301
18302 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18303
18304 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
18305 order of ȥ in the new iso14651_t1_common file.
18306 * localedata/pl_PL.UTF-8.in: Likewise.
18307
18308 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18309
18310 * localedata/locales/iso14651_t1_common: Add sections for various
18311 scripts to the iso14651_t1_common file.
18312
18313 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18314
18315 * localedata/locales/iso14651_t1_common: Use the code point of a
18316 character in the fourth collation level instead of IGNORE for all
18317 entries which have IGNORE on all 4 levels.
18318
18319 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18320
18321 * localedata/locales/iso14651_t1_common: Add some convenient collation
18322 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
18323 rules similar to those in CLDR.
18324
18325 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18326
18327 * localedata/locales/iso14651_t1_common: The new version of this
18328 file downloaded from ISO contained several syntax errors which
18329 are fixed by this patch.
18330
18331 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18332
18333 * localedata/locales/iso14651_t1_common: replace all <U.....>
18334 with <U000.....> because glibc understands only 4 digit or 8 digit
18335
18336 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18337
18338 * localedata/locales/iso14651_t1_common: Necessary changes
18339 to make the file downloaded from ISO usable by glibc.
18340
18341 2018-02-27 Mike FABIAN <mfabian@redhat.com>
18342
18343 [BZ #14095]
18344 * localedata/locales/iso14651_t1_common: Update file to
18345 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
18346
18347 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18348
18349 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
18350 of <nptl/pthreadP.h>
18351 (thread_attr_compare): Move function to...
18352 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
18353 * sysdeps/nptl/timer_routines.h: ... new header.
18354 * sysdeps/mach/hurd/gai_misc.h: New file.
18355
18356 2018-02-26 Joseph Myers <joseph@codesourcery.com>
18357
18358 * string/strcoll_l.c: Include <libc-diag.h>.
18359 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
18360 declarations of seq1 and seq2.
18361
18362 [BZ #15105]
18363 * stdlib/atoi.c (atoi): Use libc_hidden_def.
18364 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
18365
18366 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
18367
18368 [BZ #22433]
18369 [BZ #22807]
18370 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
18371 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
18372 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
18373 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
18374 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
18375 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
18376
18377 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18378
18379 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
18380 macros used in __ptrace_request.
18381
18382 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
18383
18384 [BZ #22792]
18385 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
18386 to $(CC).
18387 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
18388 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
18389 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
18390 <tcb-offsets.h>.
18391
18392 2018-02-23 Joseph Myers <joseph@codesourcery.com>
18393
18394 [BZ #15105]
18395 * ctype/ctype.c (tolower): Use libc_hidden_def.
18396 (toupper): Likewise.
18397 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
18398 [!_ISOMAC] (toupper): Likewise.
18399
18400 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18401
18402 * localedata/Makefile: Remove --quiet argument when
18403 installing locales
18404
18405 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18406
18407 [BZ #17438]
18408 * localedata/locales/pt_BR (LC_TIME): use / instead of -
18409 in d_fmt.
18410 * localedata/locales/pt_PT (LC_TIME): likewise
18411
18412 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18413
18414 [BZ #22646]
18415 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
18416 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
18417 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
18418
18419 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18420
18421 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18422
18423 * nptl/Makefile (routines): Remove unregister-atfork.
18424 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
18425 (fork_handler_alloc): Remove function.
18426 (fork_handlers, fork_handler_init): New variables.
18427 (__fork_lock): Rename to atfork_lock.
18428 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
18429 to use a dynamic array to add/remove atfork handlers.
18430 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18431 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
18432 Remove declaration.
18433 (fork_handler): Remove next, refcntr, and need_signal member.
18434 (__run_fork_handler_type): New enum.
18435 (__run_fork_handlers): New prototype.
18436 * nptl/register-atfork.c: Remove file.
18437 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
18438
18439 * sysdeps/nptl/nptl-signals.h: Move to ...
18440 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
18441 comments.
18442 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
18443 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
18444 unnecessary check for SIGTIMER.
18445 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
18446 remove unnecessary removal of SIGTIMER.
18447 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
18448 include-signals.h rename.
18449 * nptl/pthreadP.h: Likewise.
18450 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
18451 __is_internal_signal instead of __nptl_is_internal_signal.
18452
18453 2018-02-22 Andrew Waterman <andrew@sifive.com>
18454
18455 [BZ # 22884]
18456 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
18457 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
18458 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
18459 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
18460
18461 2018-02-22 DJ Delorie <dj@delorie.com>
18462
18463 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
18464
18465 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
18466
18467 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
18468 do_misaligned, not misaligned8.
18469
18470 2018-02-22 Steve Ellcey <sellcey@cavium.com>
18471
18472 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18473 Add memcpy_thunderx2.
18474 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18475 Increment to 4.
18476 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18477 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18478 and IS_THUNDERX2PA checks.
18479 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18480 Use macro to set name appropriately.
18481 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18482 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18483 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18484 New macro.
18485 (IS_THUNDERX2): New macro.
18486
18487 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
18488
18489 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18490
18491 2018-02-21 Zack Weinberg <zackw@panix.com>
18492
18493 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18494 Define here, unconditionally.
18495 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18496 * libio/libioP.h: Remove #if 0 blocks.
18497 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18498 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18499 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
18500
18501 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18502 Assume weak_alias is always defined.
18503
18504 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18505 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18506 Remove #if 0 and #ifdef TODO blocks.
18507 Assume text_set_element is always defined.
18508
18509 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18510 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18511 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18512
18513 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18514 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18515 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18516 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18517 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18518 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18519 Reformat bit flags for _flags field to make occupancy clearer.
18520 Update commentary.
18521 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18522 Keep definitions consistent with those in libio/libio.h.
18523
18524 * libio/libio.h (_IO_file_flags): Remove macro.
18525 All uses changed to _flags.
18526
18527 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18528 (__HAVE_COLUMN, _IO_BE): Don't define.
18529 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18530 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18531 * libio/libioP.h (EOF): Don't define.
18532 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18533 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18534 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18535 testing _IO_UNIFIED_JUMPTABLES.
18536
18537 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18538 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18539 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18540 (_IO_size_t): Delete; all uses changed to size_t.
18541 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18542 (_IO_off_t): Delete; all uses changed to off_t.
18543 (_IO_off64_t): Delete; all uses changed to off64_t.
18544 (_IO_pid_t): Delete; all uses changed to pid_t.
18545 (_IO_uid_t): Delete; all uses changed to uid_t.
18546 (_IO_wint_t): Delete; all uses changed to wint_t.
18547 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18548 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18549 (_IO_cookie_io_functions_t): Delete; all uses changed to
18550 cookie_io_functions_t.
18551 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18552 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18553 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18554 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18555
18556 * libio/iofopncook.c: Remove unnecessary forward declarations.
18557 * libio/iolibio.h: Correct outdated commentary.
18558 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18559 * stdio-common/fxprintf.c (__fxprintf_nocancel):
18560 Remove unnecessary casts.
18561 * stdio-common/getline.c: Use _IO_getdelim directly.
18562 Don't redefine ssize_t.
18563 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18564 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18565 Remove outdated comments.
18566 * stdio-common/vfscanf.c: Don't redefine va_list.
18567
18568 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18569 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18570 Remove preprocessor conditionals on _LIBC and __USE_GNU,
18571 which are always true, and __cplusplus, which is always false.
18572
18573 2018-02-21 Joseph Myers <joseph@codesourcery.com>
18574
18575 [BZ #15105]
18576 [BZ #19463]
18577 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18578 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18579 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
18580 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18581 libc_hidden_proto.
18582 [!_ISOMAC] (putc_unlocked): Likewise.
18583 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18584 define inline if [__USE_EXTERN_INLINES].
18585 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18586 putc_unlocked.
18587
18588 [BZ #15105]
18589 [BZ #19463]
18590 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18591 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18592 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18593 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18594 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18595 getc_unlocked.
18596 * time/tzfile.c (__tzfile_read): Likewise.
18597
18598 2018-02-21 Mike FABIAN <mfabian@redhat.com>
18599
18600 [BZ #22517]
18601 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18602
18603 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18604
18605 * io/fcntl.h: Fix a typo in a comment.
18606
18607 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18608
18609 [BZ #22862]
18610 * include/features.h: Add _ISOC11_SOURCE to test for whether to
18611 define _DEFAULT_SOURCE.
18612 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18613
18614 2018-02-21 Florian Weimer <fweimer@redhat.com>
18615
18616 [BZ #20890]
18617 * elf/cache.c (save_cache): Call fsync on temporary file before
18618 renaming it.
18619 (save_aux_cache): Call fdatasync on temporary file before renaming
18620 it.
18621
18622 2018-02-21 Florian Weimer <fweimer@redhat.com>
18623
18624 [BZ #22787]
18625 * include/caller.h: Remove file.
18626 * elf/dl-caller.c: Likewise.
18627 * elf/Makefile (dl-routines): Remove dl-caller.
18628 (shared-only-routines): Do not add dl-caller.
18629 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18630 __check_caller.
18631 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18632 member.
18633 (dl_open_worker): Do not call __check_caller.
18634 (_dl_open): Do not set caller_dl_open member.
18635 * elf/rtld.c (_rtld_global_ro): Do not initialize
18636 _dl_check_caller member.
18637 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18638 _dl_check_caller member.
18639 (_dl_check_caller): Remove declaration.
18640 * sysdeps/unix/sysv/linux/dl-execstack.c
18641 (_dl_make_stack_executable): Do not call __check_caller.
18642
18643 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18644
18645 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18646 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18647
18648 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18649
18650 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18651 description.
18652
18653 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18654
18655 [BZ #16335]
18656 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18657 of 199606L, 200112L, and 200809L.
18658 (_XOPEN_SOURCE): Document special values of 600 and 700.
18659 (_ISOC11_SOURCE): Document macro.
18660 (_ATFILE_SOURCE): Likewise.
18661 (_FORTIFY_SOURCE): Likewise.
18662
18663 2018-02-19 Joseph Myers <joseph@codesourcery.com>
18664
18665 [BZ #15105]
18666 [BZ #19463]
18667 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18668 and define as weak alias of __ferror_unlocked. Use
18669 libc_hidden_weak.
18670 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18671 libc_hidden_proto.
18672 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18673 function if [__USE_EXTERN_INLINES].
18674 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18675 ferror_unlocked.
18676
18677 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
18678
18679 [BZ #6889]
18680 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18681
18682 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18683
18684 [BZ #22818]
18685 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18686 the GLIBC_2.1 version.
18687
18688 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18689
18690 [BZ #21508]
18691 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18692 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18693 intl/tst-gettext-de.po from po/de.po by removing the
18694 POT-Creation-Date line.
18695 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18696 ../po/de.po.
18697 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18698 ../po/de.po.
18699
18700 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18701
18702 * mach/Makefile (headers): Add mach/param.h.
18703 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18704 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18705 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18706 (__ptsname_r): Move implementation to...
18707 (__ptsname_internal): ... new function. Add filling the STP
18708 structure.
18709
18710 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
18711
18712 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18713 idouble to 1 ULP.
18714
18715 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
18716
18717 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18718 syntax.
18719
18720 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
18721
18722 * nptl/Makefile (tst-mutex8-ENV): Delete.
18723 * nptl/tst-mutex8.c (check_type):
18724 Add runtime check if mutex will be elided.
18725
18726 2018-02-15 Joseph Myers <joseph@codesourcery.com>
18727
18728 [BZ #20980]
18729 [BZ #21234]
18730 * manual/install.texi (Configuring and compiling): Describe
18731 passing CC and CFLAGS on configure command line, not as
18732 environment variables. Use @code markup on those variables.
18733 Specify what options go in CC and what go in CFLAGS. Note the
18734 requirement to compile with optimization.
18735 * INSTALL: Regenerated.
18736
18737 [BZ #18124]
18738 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18739 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18740 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18741 __sigprocmask instead of sigprocmask.
18742 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18743 Likewise.
18744 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18745 __sigsetjmp and sigprocmask.
18746
18747 [BZ #15105]
18748 * include/argz.h (argz_next): Use libc_hidden_proto.
18749 (__argz_next): Likewise.
18750 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18751 (argz_next): Use libc_hidden_weak.
18752
18753 [BZ #15105]
18754 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18755 libc_hidden_proto.
18756 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18757 libc_hidden_def.
18758
18759 [BZ #15105]
18760 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18761 libc_hidden_proto.
18762 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18763
18764 [BZ #15105]
18765 [BZ #19463]
18766 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18767 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18768 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18769 (__feof_unlocked): New declaration, and inline function if
18770 [__USE_EXTERN_INLINES].
18771 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18772 instead of feof_unlocked.
18773 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18774 * nss/nsswitch.c (nss_parse_file): Likewise.
18775 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18776 Likewise.
18777 * time/getdate.c (__getdate_r): Likewise.
18778 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18779 Define as macro to call __feof_unlocked.
18780
18781 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18782
18783 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18784
18785 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18786
18787 * math/Makefile: Remove mpexp.c and mplog.c
18788 * sysdeps/i386/fpu/mpexp.c: Delete file.
18789 * sysdeps/i386/fpu/mplog.c: Likewise.
18790 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18791 * sysdeps/ia64/fpu/mplog.c: Likewise.
18792 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18793 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18794 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18795 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18796 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18797 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18798 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18799 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18800 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18801 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18802 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18803 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18804 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18805 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18806 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18807 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18808
18809 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18810
18811 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18812
18813 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18814
18815 * sysdeps/sh/libm-test-ulps: Update.
18816
18817 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18818
18819 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18820 idouble to 1 ULP.
18821
18822 2018-02-12 Zack Weinberg <zackw@panix.com>
18823
18824 [BZ #19239]
18825 * posix/sys/types.h: Don't include sys/sysmacros.h.
18826 * misc/sys/sysmacros.h: Remove the conditional deprecation
18827 warnings for the macros defined by this header.
18828
18829 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18830
18831 * manual/probes.texi: Remove slowexp probes.
18832 * math/Makefile: Remove slowexp.
18833 * sysdeps/generic/math_private.h (__slowexp): Remove.
18834 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18835 document error bounds.
18836 * sysdeps/i386/fpu/slowexp.c: Remove.
18837 * sysdeps/ia64/fpu/slowexp.c: Remove.
18838 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18839 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18840 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18841 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18842 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18843 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18844 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18845 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18846 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18847 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18848 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18849
18850 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18851
18852 [BZ #13932]
18853 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18854 * benchtests/pow-inputs: Update comment for slow path cases.
18855 * manual/probes.texi (slowpow_p10): Delete removed probe.
18856 (slowpow_p10): Likewise.
18857 * math/Makefile: Remove halfulp.c and slowpow.c.
18858 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18859 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18860 (__halfulp): Remove.
18861 (__slowpow): Remove.
18862 * sysdeps/i386/fpu/halfulp.c: Delete file.
18863 * sysdeps/i386/fpu/slowpow.c: Likewise.
18864 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18865 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18866 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18867 improve comments and add error analysis.
18868 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18869 (power1): Remove function:
18870 (log1): Remove error argument, add error analysis.
18871 (my_log2): Remove function.
18872 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18873 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18874 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18875 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18876 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18877 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18878 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18879 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18880 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18881 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18882 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18883 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18884 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18885 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18886
18887 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18888
18889 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18890 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18891
18892 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18893
18894 [BZ #22433]
18895 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18896 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18897 and PTRACE_SETHBPREGS.
18898
18899 2018-02-10 Zack Weinberg <zackw@panix.com>
18900
18901 [BZ #22830]
18902 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18903 correctly.
18904 * malloc/tst-malloc-stats-cancellation.c: New test case.
18905 * malloc/Makefile: Add new test case.
18906
18907 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18908
18909 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18910
18911 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18912
18913 * math/Makefile (libm-narrow-fns): Add add.
18914 (libm-test-funcs-narrow): Likewise.
18915 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18916 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18917 * math/gen-auto-libm-tests.c (test_functions): Add add.
18918 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18919 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18920 (NARROW_ADD_TRIVIAL): Likewise.
18921 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18922 macro.
18923 (__daddl): Likewise.
18924 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18925 dadd.
18926 (CFLAGS-nldbl-dadd.c): New variable.
18927 (CFLAGS-nldbl-fadd.c): Likewise.
18928 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18929 __nldbl_daddl.
18930 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18931 prototype.
18932 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18933 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18934 * math/auto-libm-test-in: Add tests of add.
18935 * math/auto-libm-test-out-narrow-add: New generated file.
18936 * math/libm-test-narrow-add.inc: New file.
18937 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18938 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18939 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18940 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18941 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18942 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18943 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18944 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18945 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18946 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18947 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18948 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18949 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18950 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18951 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18952 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18953 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18954 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18955 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18956 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18960 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18961 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18962 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18963 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18978 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18979 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18980 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18981 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18982 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18983
18984 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18985 (f128-pairs): New variable.
18986 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18987 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18988 to CFLAGS.
18989 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18990 Also make tests add $(f128-loader-link) to gnulib-tests.
18991
18992 2018-02-09 DJ Delorie <dj@redhat.com>
18993
18994 [BZ #22827]
18995 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18996 64-bit ELF type for 64-bit ELF objects.
18997
18998 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18999
19000 * math/libm-test-driver.c (snan_tests_arg): New variable.
19001 * math/libm-test-support.h (snan_tests_arg): New declaration.
19002 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
19003
19004 * math/Makefile (test-type-pairs): New variable.
19005 (test-type-pairs-f64xf128-yes): Likewise.
19006 (tests): Add test-narrow-macros.
19007 (libm-test-funcs-narrow): New variable.
19008 (libm-test-c-narrow): Likewise.
19009 (generated): Add $(libm-test-c-narrow).
19010 (libm-tests-base-narrow): New variable.
19011 (libm-tests-narrow): Likewise.
19012 (libm-tests): Add $(libm-tests-narrow).
19013 (libm-tests-for-type): Handle $(libm-tests-narrow).
19014 (libm-test-c-narrow-obj): New variable.
19015 ($(libm-test-c-narrow-obj)): New rule.
19016 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
19017 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
19018 $(o-iterator) to set dependencies and CFLAGS.
19019 * math/gen-auto-libm-tests.c: Document use for narrowing
19020 functions.
19021 (output_for_one_input_case): Take argument NARROW.
19022 (generate_output): Likewise. Update call to
19023 output_for_one_input_case.
19024 (main): Take --narrow option. Update call to generate_output.
19025 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
19026 (apply_lit): Update call to _apply_lit.
19027 (apply_arglit): New function.
19028 (parse_args): Handle "a" arguments.
19029 (parse_auto_input): Handle format names using ":".
19030 * math/README.libm-test: Document "a" parameter type.
19031 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
19032 (ARG_TYPE_TRUE_MIN): Likewise.
19033 (ARG_TYPE_MAX): Likwise.
19034 (ARG_MIN_EXP): Likewise.
19035 (ARG_MAX_EXP): Likewise.
19036 (ARG_MANT_DIG): Likewise.
19037 (TEST_COND_arg_ibm128): Likewise.
19038 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
19039 (TEST_COND_arg_fmt): New macro.
19040 (init_max_error): Update prototype.
19041 * math/libm-test-support.c (test_ibm128): New variable.
19042 (init_max_error): Take argument testing_ibm128 and set test_ibm128
19043 instead of using [TEST_COND_ibm128] conditional.
19044 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
19045 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
19046 [TEST_NARROW] (TEST_MSG): New definition.
19047 (arg_plus_zero): New macro.
19048 (arg_minus_zero): Likewise.
19049 (arg_plus_infty): Likewise.
19050 (arg_minus_infty): Likewise.
19051 (arg_qnan_value_pl): Likewise.
19052 (arg_qnan_value): Likewise.
19053 (arg_snan_value_pl): Likewise.
19054 (arg_snan_value): Likewise.
19055 (arg_max_value): Likewise.
19056 (arg_min_value): Likewise.
19057 (arg_min_subnorm_value): Likewise.
19058 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
19059 (RUN_TEST_LOOP_aa_f): New macro.
19060 (TEST_SUFF): New macro.
19061 (TEST_SUFF_STR): Likewise.
19062 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
19063 (TEST_COND_any_ibm128): New macro.
19064 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
19065 this_func. Update call to init_max_error.
19066 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
19067 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
19068 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
19069 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
19070 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
19071 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
19072 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
19073 * math/test-math-scalar.h (TEST_NARROW): Likewise.
19074 * math/test-math-vector.h (TEST_NARROW): Likewise.
19075 * math/test-arg-double.h: New file.
19076 * math/test-arg-float128.h: Likewise.
19077 * math/test-arg-float32x.h: Likewise.
19078 * math/test-arg-float64.h: Likewise.
19079 * math/test-arg-float64x.h: Likewise.
19080 * math/test-arg-ldouble.h: Likewise.
19081 * math/test-math-narrow.h: Likewise.
19082 * math/test-narrow-macros.c: Likewise.
19083 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
19084 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
19085 test-narrow-macros-ldbl-64.
19086 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
19087
19088 * math/bits/mathcalls-narrow.h: New file.
19089 * include/bits/mathcalls-narrow.h: Likewise.
19090 * math/math-narrow.h: Likewise.
19091 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
19092 (__MATHCALL_NARROW_ARGS_2): Likewise.
19093 (__MATHCALL_NARROW_ARGS_3): Likewise.
19094 (__MATHCALL_NARROW_NORMAL): Likewise.
19095 (__MATHCALL_NARROW_REDIR): Likewise.
19096 (__MATHCALL_NARROW): Likewise.
19097 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
19098 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
19099 defined.
19100 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19101 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
19102 (libm-narrow-fns): New variable.
19103 (libm-narrow-types-basic): Likewise.
19104 (libm-narrow-types-ldouble-yes): Likewise.
19105 (libm-narrow-types-float128-yes): Likewise.
19106 (libm-narrow-types-float128-alias-yes): Likewise.
19107 (libm-narrow-types): Likewise.
19108 (libm-routines): Add narrowing functions.
19109 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
19110 (libc_feholdexcept_setroundf128): New macro.
19111 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
19112 * sysdeps/ieee754/float128/float128_private.h: Include
19113 <math/math-narrow.h>.
19114 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
19115 Undefine and redefine.
19116 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
19117 (libm_alias_float_ldouble): Undefine and redefine.
19118 (libm_alias_double_ldouble): Likewise.
19119
19120 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
19121
19122 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
19123
19124 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
19125 FPCR/FPSR.
19126
19127 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
19128
19129 * manual/creature.texi: Convert references to gcc.info to gcc.
19130 * manual/stdio.texi: Likewise.
19131 * manual/string.texi: Likewise.
19132
19133 2018-02-07 Joseph Myers <joseph@codesourcery.com>
19134
19135 [BZ #17979]
19136 * posix/bits/types.h (__int_least8_t): New typedef.
19137 (__uint_least8_t): Likewise.
19138 (__int_least16_t): Likewise.
19139 (__uint_least16_t): Likewise.
19140 (__int_least32_t): Likewise.
19141 (__uint_least32_t): Likewise.
19142 (__int_least64_t): Likewise.
19143 (__uint_least64_t): Likewise.
19144 * sysdeps/generic/stdint.h (int_least8_t): Define using
19145 __int_least8_t.
19146 (int_least16_t): Define using __int_least16_t.
19147 (int_least32_t): Define using __int_least32_t.
19148 (int_least64_t): Define using __int_least64_t.
19149 (uint_least8_t): Define using __uint_least8_t.
19150 (uint_least16_t): Define using __uint_least16_t.
19151 (uint_least32_t): Define using __uint_least32_t.
19152 (uint_least64_t): Define using __uint_least64_t.
19153 * wcsmbs/uchar.h: Include <bits/types.h>.
19154 (char16_t): Define using __uint_least16_t conditional only on
19155 [!__USE_ISOCXX11].
19156 (char32_t): Define using __uint_least32_t conditional only on
19157 [!__USE_ISOCXX11].
19158 * wcsmbs/test-char-types.c: New file.
19159 * wcsmbs/Makefile (tests): Add test-char-types.
19160
19161 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
19162 version to 4.0.1.
19163
19164 2018-02-07 Zack Weinberg <zackw@panix.com>
19165
19166 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
19167 Delete all contents except for definitions of _G_HAVE_MMAP and
19168 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
19169 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
19170 sysdeps/unix/sysv/linux/_G_config.h. Make same content
19171 change as above.
19172
19173 * libio/libio.h: Don't include bits/_G_config.h here.
19174 Include stddef.h with __need_wchar_t defined. Include
19175 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
19176 Define _IO_iconv_t here, directly.
19177 Don't define _IO_HAVE_ST_BLKSIZE.
19178 * libio/libioP.h: Include _G_config.h here. Move include of
19179 shlib-compat.h up with rest of includes. Simplify conditionals
19180 controlling definition of _IO_JUMPS_OFFSET.
19181
19182 * csu/init.c: Remove always-true #if around entire file.
19183 Don't include stdio.h. Set _IO_stdin_used to hardwired
19184 constant 0x20001, and update commentary.
19185 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
19186 Replace all uses of _G_va_list with __gnuc_va_list.
19187 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
19188 instead of #if _IO_HAVE_ST_BLKSIZE.
19189 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
19190 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
19191 not #ifdef.
19192
19193 * libio/bits/libio.h: Move back to libio/libio.h and adjust
19194 multiple-include guard to match.
19195 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
19196 into this file.
19197 Remove preprocessor conditionals that are always true and/or
19198 redundant to other preprocessor conditionals in the same nest.
19199 Include shlib-compat.h unconditionally.
19200 Error out if _LIBC is not defined, or if _ISOMAC is defined,
19201 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
19202 defined after including stdio.h.
19203 Use __BEGIN_DECLS/__END_DECLS.
19204
19205 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
19206 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
19207 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
19208
19209 2018-02-07 Zack Weinberg <zackw@panix.com>
19210
19211 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
19212 New single-type headers split from _G_config.h.
19213 * libio/bits/types/cookie_io_functions_t.h
19214 * libio/bits/types/struct_FILE.h
19215 New single-type headers split from libio.h.
19216
19217 * libio/Makefile: Install the above new headers. Don't install
19218 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
19219 bits/libio-ldbl.h.
19220 * libio/_G_config.h, libio/libio.h: Delete file.
19221
19222 * libio/bits/libio.h: Remove improper-inclusion guard.
19223 Include stdio.h and don't repeat anything that it does.
19224 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
19225 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
19226 __io_read_fn as cookie_read_function_t,
19227 __io_write_fn as cookie_write_function_t,
19228 __io_seek_fn as cookie_seek_function_t,
19229 __io_close_fn as cookie_close_function_t,
19230 and _IO_cookie_io_functions_t as cookie_io_functions_t.
19231 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
19232 here, in the "compatibility defines" section. Remove an #if 0
19233 block. Use the "body" macros from bits/types/struct_FILE.h to
19234 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
19235 and _IO_ferror_unlocked.
19236 Move prototypes of __uflow and __overflow...
19237
19238 * libio/stdio.h: ...here. Don't include bits/libio.h.
19239 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
19240 directly from stdarg.h. Include bits/types/__fpos_t.h,
19241 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
19242 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
19243 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
19244 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
19245 cookie_io_functions_t, not _IO_cookie_io_functions_t;
19246 __ssize_t, not _IO_ssize_t. Unconditionally define
19247 BUFSIZ as 8192 and EOF as (-1).
19248
19249 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
19250 macros from bits/types/struct_FILE.h instead of _IO_* macros
19251 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
19252 instead of _IO_ssize_t.
19253 * libio/bits/stdio2.h: Similarly.
19254
19255 * libio/iolibio.h: Add multiple-include guard.
19256 Include bits/libio.h after stdio.h.
19257 * libio/libioP.h: Add multiple-include guard.
19258 Include stdio.h and bits/libio.h before iolibio.h.
19259
19260 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
19261 * include/bits/types/cookie_io_functions_t.h
19262 * include/bits/types/struct_FILE.h: New wrappers.
19263
19264 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
19265 Get definitions of _G_fpos_t and _G_fpos64_t from
19266 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
19267 respectively. Remove improper-inclusion guards.
19268
19269 * conform/data/stdio.h-data: Update expectations of va_list.
19270 * scripts/check-installed-headers.sh: Remove special case for
19271 libio.h and _G_config.h.
19272
19273 2018-02-07 Joseph Myers <joseph@codesourcery.com>
19274
19275 [BZ #15105]
19276 [BZ #19463]
19277 * include/sys/sysmacros.h [!_ISOMAC]
19278 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
19279 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
19280 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
19281 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
19282 libc_hidden_proto.
19283 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
19284 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
19285 Likewise.
19286 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
19287 Undefine and redefine to add use __gnu_dev_ prefix.
19288 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
19289 Likewise.
19290 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
19291 and define as hidden inline function.
19292 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
19293 Likewise.
19294 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
19295 Likewise.
19296 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
19297 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
19298 (gnu_dev_minor): Likewise.
19299 (gnu_dev_makedev): Likewise.
19300 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
19301 makedev.
19302 * posix/wordexp.c (exec_comm_child): Likewise.
19303 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
19304 instead of minor and __gnu_dev_major instead of major.
19305 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
19306 __gnu_dev_major instead of major.
19307 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
19308 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
19309 instead of gnu_dev_minor.
19310 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
19311 (SLAVE_P): Likewise.
19312 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
19313 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
19314 instead of major.
19315
19316 [BZ #21313]
19317 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
19318 in another place.
19319 * locale/weightwc.h (findidx): Likewise.
19320
19321 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
19322
19323 * manual/probes.texi (slowlog): Delete documentation of removed probe.
19324 (slowlog_inexact): Likewise
19325 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
19326 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
19327
19328 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
19329
19330 [BZ #22797]
19331 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
19332 missing second underscore to parameter name.
19333
19334 2018-02-06 Joseph Myers <joseph@codesourcery.com>
19335
19336 [BZ #14508]
19337 [BZ #15512]
19338 [BZ #17082]
19339 [BZ #20530]
19340 * bits/byteswap.h: Update file comment. Do not include
19341 <bits/byteswap-16.h>.
19342 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
19343 constant.
19344 (__bswap_16): Define as inline function.
19345 (__bswap_constant_32): Reformat definition.
19346 (__bswap_32): Always define as inline function, not macro, using
19347 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
19348 otherwise __bswap_constant_32.
19349 (__bswap_constant_64): Reformat definition. Do not use
19350 __extension__ here.
19351 (__bswap_64): Always define as inline function, not macro. Use
19352 __extension__ on function definition. Use __builtin_bswap64 if
19353 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
19354 * string/test-endian-file-scope.c: New file.
19355 * string/test-endian-sign-conversion.c: Likewise.
19356 * string/Makefile (headers): Remove bits/byteswap-16.h.
19357 (tests): Add test-endian-file-scope and
19358 test-endian-sign-conversion.
19359 (CFLAGS-test-endian-sign-conversion.c): New variable.
19360 * bits/byteswap-16.h: Remove file.
19361 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
19362 * sysdeps/ia64/bits/byteswap.h: Likewise.
19363 * sysdeps/m68k/bits/byteswap.h: Likewise.
19364 * sysdeps/s390/bits/byteswap-16.h: Likewise.
19365 * sysdeps/s390/bits/byteswap.h: Likewise.
19366 * sysdeps/tile/bits/byteswap.h: Likewise.
19367 * sysdeps/x86/bits/byteswap-16.h: Likewise.
19368 * sysdeps/x86/bits/byteswap.h: Likewise.
19369
19370 [BZ #17721]
19371 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
19372 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
19373 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
19374 199901L] (__restrict): Define to restrict.
19375
19376 [BZ #19667]
19377 * string/testcopy.c: Include <support/support.h>. Do not include
19378 <malloc.h>. Use <support/test-driver.c>.
19379 (main): Rename to do_test. Make static. Use xmalloc instead of
19380 malloc.
19381
19382 [BZ #13575]
19383 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
19384 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
19385 (SSIZE_MAX): Define to INT_MAX.
19386 * posix/test-ssize-max.c: New file.
19387 * posix/Makefile (tests): Add test-ssize-max.
19388
19389 [BZ #19668]
19390 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
19391 <support/support.h>. Do not include <malloc.h>.
19392 (query_auxv): Use xmalloc instead of malloc.
19393
19394 [BZ #14553]
19395 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
19396 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
19397 instead of loff_t.
19398
19399 2018-02-06 Florian Weimer <fweimer@redhat.com>
19400
19401 [BZ #18023]
19402 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19403 Use scratch_buffer instead of extend_alloca.
19404
19405 2018-02-06 Zack Weinberg <zackw@panix.com>
19406
19407 * libio/stdio.h: Don't define getc or putc as macros.
19408 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
19409 not _IO_getc and _IO_putc.
19410
19411 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
19412 * stdio-common/tstgetln.c: Don't redefine ssize_t.
19413
19414 2018-02-06 Joseph Myers <joseph@codesourcery.com>
19415
19416 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
19417 (TCP_FASTOPEN_NO_COOKIE): Likewise.
19418
19419 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
19420
19421 [BZ #14890]
19422 * elf/elf.h (NT_PRFPREG): New macro.
19423 (NT_S390_VXRS_LOW): Likewise.
19424 (NT_S390_VXRS_HIGH): Likewise.
19425 (NT_S390_GS_CB): Likewise.
19426 (NT_S390_GS_BC): Likewise.
19427 (NT_S390_RI_CB): Likewise.
19428
19429 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
19430 (MAP_SYNC): New macro.
19431 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
19432 Likewise.
19433 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
19434 (MAP_SYNC): Likewise.
19435 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
19436 (MAP_SYNC): Likewise.
19437 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
19438 (MAP_SYNC): Likewise.
19439 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
19440 (MAP_SYNC): Likewise.
19441 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
19442 (MAP_SYNC): Likewise.
19443 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
19444 (MAP_SYNC): Likewise.
19445 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
19446 Likewise.
19447 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
19448 Likewise.
19449
19450 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
19451 (MAP_SHARED_VALIDATE): New macro.
19452 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
19453 (MAP_SHARED_VALIDATE): Likewise.
19454
19455 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19456
19457 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
19458 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
19459 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19460
19461 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19462
19463 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
19464 (DT_NUM): Updated to 35.
19465
19466 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19467
19468 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
19469 __builtin_expect with __glibc_likely and __glibc_unlikely.
19470 (elf_machine_rela): Likewise.
19471 (elf_machine_lazy_rel): Likewise.
19472
19473 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19474
19475 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19476 __builtin_expect with __glibc_likely and __glibc_unlikely.
19477 (elf_machine_lazy_rel): Likewise.
19478
19479 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19480
19481 [BZ #22638]
19482 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19483 SHARED.
19484 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19485
19486 2018-02-05 Andreas Schwab <schwab@suse.de>
19487
19488 [BZ #22761]
19489 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19490 string.
19491
19492 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
19493
19494 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19495 not check against PTHREAD_STACK_MIN.
19496
19497 2018-02-02 Sean McKean <smckean83@gmail.com>
19498
19499 [BZ #22735]
19500 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19501
19502 2018-02-02 Florian Weimer <fweimer@redhat.com>
19503
19504 [BZ #22753]
19505 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19506 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19507 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19508 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19509 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19510 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19511 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19512 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19513 * manual/llio.texi (Scatter-Gather): Mention offset -1.
19514 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19515 * misc/tst-preadvwritev2.c (do_test): Call it.
19516 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19517
19518 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
19519
19520 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19521
19522 * benchtests/bench-memcmp.c: Print json instead of plain text.
19523
19524 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19525 every test run.
19526
19527 2018-02-01 Joseph Myers <joseph@codesourcery.com>
19528
19529 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19530 version to 4.15.
19531 (s390_sthyi): New syscall.
19532
19533 * sysdeps/generic/ldbl-classify-compat.h: New file.
19534 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19535 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19536 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19537 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19538 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19539 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19540 * sysdeps/ieee754/dbl-64/s_finite.c: Include
19541 <ldbl-classify-compat.h>.
19542 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19543 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19544 <ldbl-classify-compat.h>.
19545 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19546 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19547 <ldbl-classify-compat.h>.
19548 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19549 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19550 <ldbl-classify-compat.h>.
19551 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19552 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19553 <ldbl-classify-compat.h>.
19554 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19555 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19556 <ldbl-classify-compat.h>.
19557 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19558 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19559 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19560 * sysdeps/m68k/coldfire/math_private.h: Remove file.
19561 * sysdeps/microblaze/math_private.h: Likewise.
19562 * sysdeps/nios2/math_private.h: Likewise.
19563 * sysdeps/sh/math_private.h: Likewise.
19564
19565 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19566 * sysdeps/m68k/coldfire/math_private.h: ... here.
19567 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19568 * sysdeps/tile/math_private.h: Likewise.
19569 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19570 Remove macro.
19571 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19572 Likewise.
19573
19574 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19575 Remove macro.
19576 (libc_fetestexcept): Likewise.
19577 (libc_feupdateenv_test): Likewise.
19578 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19579 (libc_fetestexcept): Likewise.
19580 (libc_feupdateenv_test): Likewise.
19581 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19582 (libc_fetestexcept): Likewise.
19583 (libc_feupdateenv_test): Likewise.
19584 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19585 (libc_fetestexcept): Likewise.
19586 (libc_feupdateenv_test): Likewise.
19587
19588 * sysdeps/generic/math_private.h
19589 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19590 New inline function.
19591 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19592 Likewise.
19593
19594 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19595 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19596 * sysdeps/generic/math_private.h
19597 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19598 inline function.
19599 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19600 Likewise.
19601 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19602 Likewise.
19603 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19604 Likewise.
19605 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19606 Likewise.
19607 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19608 Likewise.
19609 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19610 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19611 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19612 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19613 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19614 (__fegetenv): Likewise.
19615 (fesetenv): Likewise.
19616 (__fesetenv): Likewise.
19617 (feupdateenv): Likewise.
19618 (__feupdateenv): Likewise.
19619 (fegetround): Likewise.
19620 (__fegetround): Likewise.
19621 (fesetround): Likewise.
19622 (__fesetround): Likewise.
19623
19624 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19625 (feraiseexcept): New macro.
19626 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19627 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19628 Remove macro.
19629 (__feraiseexcept): Likewise.
19630 (feclearexcept): Likewise.
19631 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19632 (__feraiseexcept): Likewise.
19633 (feclearexcept): Likewise.
19634 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19635 (__feraiseexcept): Likewise.
19636 (feclearexcept): Likewise.
19637 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19638 (__feraiseexcept): Likewise.
19639 (feclearexcept): Likewise.
19640 (fetestexcept): Likewise.
19641
19642 * sysdeps/m68k/coldfire/math-tests.h: New file.
19643
19644 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19645 * sysdeps/m68k/bits/fenv.h: ... here.
19646 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19647 not define.
19648 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19649 Likewise.
19650 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19651 Likewise.
19652 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19653 Likewise.
19654 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19655 Likewise.
19656 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19657 Define to 0.
19658 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19659 (__FE_UNDEFINED): New enum constant.
19660 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19661 Do not define.
19662 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19663 Likewise.
19664 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19665 Likewise.
19666 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19667 to match generic bits/fenv.h.
19668 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19669 Do not define.
19670
19671 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19672 packed on bits.
19673 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19674 * soft-fp/half.h (union _FP_UNION_H): Likewise.
19675 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19676 * soft-fp/single.h (union _FP_UNION_S): Likewise.
19677
19678 2018-02-01 Carlos O'Donell <carlos@redhat.com>
19679 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
19680 Joseph Myers <joseph@codesourcery.com>
19681
19682 [BZ #21314]
19683 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19684 (__log1p): Disable -Wmaybe-uninitialized for -Os around
19685 computation using c.
19686 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19687 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19688 computation using c.
19689
19690 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19691
19692 * version.h (RELEASE): Set to "development".
19693 (VERSION): Set to "2.27.9000".
19694 * NEWS (2.28): New section.
19695
19696 * version.h (RELEASE): Set to "stable".
19697 (VERSION): Set to "2.27".
19698 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19699
19700 * NEWS: Add the list of bugs fixed in 2.27.
19701
19702 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19703
19704 * stdlib/test-atexit-race-common.c (do_test): Check stack size
19705 against PTHREAD_STACK_MIN.
19706
19707 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19708
19709 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19710 New entries.
19711 (Rafal Luzynski, Andreas Schwab): Update.
19712
19713 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
19714
19715 [BZ #10871]
19716 * NEWS: List the languages which actually use the alternative
19717 months feature in this release. Also explain that "alt_mon" and
19718 "ab_alt_mon" are optional.
19719
19720 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
19721
19722 [BZ #22765]
19723 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19724
19725 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
19726
19727 * manual/install.texi (Tools for Compilation): Update the newest
19728 versions of gcc, binutils, texinfo, gawk, bison, and sed.
19729 * INSTALL: Regenerated.
19730
19731 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
19732
19733 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19734 instead of __builtin_expect.
19735
19736 2018-01-30 Florian Weimer <fweimer@redhat.com>
19737
19738 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19739 data.
19740 * nss/tst-nss-getpwent.c (do_test): Likewise.
19741
19742 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
19743
19744 [BZ #10871]
19745 * localedata/locales/hr_HR (mon): Rename to...
19746 (alt_mon): This.
19747 (mon): Import from CLDR (genitive case).
19748 (d_t_fmt): Update the comment.
19749
19750 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19751
19752 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19753 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19754 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19755
19756 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19757
19758 * mach/Versions: Fix version when __mach_host_self_ was added.
19759 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19760 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19761 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19762 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19763 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19764 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19765 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19766 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19767 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19768 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19769 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19770 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19771 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19772 || to respect codestyle.
19773 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19774 (do_test_bz20181): Rename accordingly.
19775 * malloc/malloc.c: Include <assert.h>.
19776 (assert): Do not define.
19777 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19778 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19779 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19780 * sysdeps/mach/hurd/hp-timing.h: New file.
19781 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19782
19783 2018-01-29 Darius Rad <darius@bluespec.com>
19784
19785 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19786
19787 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19788
19789 * sysdeps/init_array/crti.S (.section .init_array): Add
19790 PREINIT_FUNCTION when defined.
19791 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19792 * config.h.in: Regenerate.
19793 * manual/platform.texi: Add RISC-V documenation for
19794 __riscv_flush_icache.
19795 * sysdeps/riscv/__longjmp.S: New file.
19796 * sysdeps/riscv/backtrace.c: Likewise.
19797 * sysdeps/riscv/bits/endian.h: Likewise.
19798 * sysdeps/riscv/bits/setjmp.h: Likewise.
19799 * sysdeps/riscv/bits/wordsize.h: Likewise.
19800 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19801 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19802 * sysdeps/riscv/dl-trampoline.S: Likewise.
19803 * sysdeps/riscv/gccframe.h: Likewise.
19804 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19805 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19806 * sysdeps/riscv/machine-gmon.h: Likewise.
19807 * sysdeps/riscv/memusage.h: Likewise.
19808 * sysdeps/riscv/setjmp.S: Likewise.
19809 * sysdeps/riscv/sys/asm.h: Likewise.
19810 * sysdeps/riscv/tls-macros.h: Likewise.
19811 * sysdeps/riscv/dl-tls.h: New file.
19812 * sysdeps/riscv/libc-tls.c: Likewise.
19813 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19814 * sysdeps/riscv/nptl/tls.h: Likewise.
19815 * sysdeps/riscv/stackinfo.h: Likewise.
19816 * sysdeps/riscv/bits/fenv.h: New file.
19817 * sysdeps/riscv/e_sqrtl.c: Likewise.
19818 * sysdeps/riscv/fpu_control.h: Likewise.
19819 * sysdeps/riscv/math-tests.h: Likewise.
19820 * sysdeps/riscv/nofpu/Implies: Likewise.
19821 * sysdeps/riscv/sfp-machine.h: Likewise.
19822 * sysdeps/riscv/tininess.h: Likewise.
19823 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19824 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19825 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19826 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19827 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19828 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19829 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19830 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19831 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19832 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19833 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19834 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19835 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19836 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19837 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19838 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19839 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19840 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19841 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19842 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19843 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19844 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19845 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19846 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19847 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19848 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19849 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19850 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19851 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19852 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19853 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19854 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19855 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19856 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19857 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19858 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19859 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19860 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19861 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19862 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19863 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19864 * sysdeps/riscv/rvf/math_private.h: Likewise.
19865 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19866 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19867 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19868 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19869 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19870 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19871 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19872 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19873 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19874 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19875 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19876 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19877 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19878 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19879 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19880 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19881 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19882 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19883 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19884 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19885 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19886 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19887 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19888 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19889 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19890 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19891 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19892 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19893 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19894 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19895 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19896 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19897 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19898 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19899 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19900 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19901 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19902 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19903 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19904 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19905 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19906 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19907 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19908 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19909 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19910 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19911 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19912 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19913 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19914 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19915 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19916 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19917 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19918 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19919 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19920 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19921 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19922 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19923 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19924 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19925 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19926 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19927 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19928 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19929 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19930 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19931 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19932 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19933 * sysdeps/riscv/Implies: New file.
19934 * sysdeps/riscv/Makefile: Likewise.
19935 * sysdeps/riscv/configure: Likewise.
19936 * sysdeps/riscv/configure.ac: Likewise.
19937 * sysdeps/riscv/nptl/Makefile: Likewise.
19938 * sysdeps/riscv/preconfigure: Likewise.
19939 * sysdeps/riscv/rv64/Implies-after: Likewise.
19940 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19941 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19942 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19943 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19944 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19945 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19946 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19947 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19948 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19949 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19950 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19951 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19952 (Config): Likewise.
19953
19954 2018-01-29 Florian Weimer <fweimer@redhat.com>
19955
19956 [BZ #22701]
19957 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19958 libnsl_hidden_proto.
19959 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19960 libnsl_hidden_proto.
19961 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19962 * nis/Makefile (libnsl-routines): Add nss-default only for
19963 build-obsolete-nsl.
19964 * nis/nis_defaults.c (__nis_default_ttl): Add
19965 libnsl_hidden_nolink_def.
19966 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19967 declaration.
19968 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19969 * nis/ypclnt.c (yp_maplist): Likewise.
19970
19971 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19972
19973 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19974 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19975
19976 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19977
19978 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19979 clean -dxfq for git updates when replacing sources.
19980
19981 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19982 --disable-libcilkrts unconditionally, not just for the final GCC
19983 build for Hurd.
19984
19985 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19986 version to 4.15.
19987
19988 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19989
19990 [BZ #10871]
19991 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19992 case).
19993
19994 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19995
19996 [BZ #10871]
19997 * localedata/locales/be_BY (mon): Rename to...
19998 (alt_mon): This, then synchronize with CLDR (nominative case).
19999 (abmon): Rename to...
20000 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20001 (mon): Import from CLDR (genitive case).
20002 (abmon): Likewise.
20003 * localedata/locales/be_BY@latin (mon): Rename to...
20004 (alt_mon): This.
20005 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
20006
20007 * localedata/locales/be_BY@latin (lang_name): Reworded to
20008 "biełaruskaja mova".
20009
20010 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
20011
20012 [BZ #10871]
20013 * localedata/locales/el_CY (mon): Renamed to...
20014 (alt_mon): This.
20015 (mon): Import from CLDR (genitive case).
20016 * localedata/locales/el_GR: Likewise.
20017
20018 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
20019
20020 [BZ #10871]
20021 * localedata/locales/ru_RU (mon): Rename to...
20022 (alt_mon): This.
20023 (abmon): Rename to...
20024 (ab_alt_mon): This.
20025 (mon): Import from CLDR (genitive case).
20026 (abmon): Copy from the old content except the 5th month which is
20027 now in the genitive case, even when abbreviated.
20028 * localedata/locales/ru_UA: Likewise.
20029 * time/tst-strptime.c (day_tests): Add an actual example of
20030 a difference between %b and %Ob in Russian.
20031
20032 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20033
20034 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
20035 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
20036 a `c' variable.
20037 * resolv/res-close.c: Include <stdlib.h>.
20038 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
20039 <sys/wait.h>, <time.h>, <sys/uio.h>.
20040 (NOT_CANCEL_H): Add inclusion guard.
20041 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
20042 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
20043 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
20044 return 0.
20045 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
20046 vm_address_t * to ElfW(Addr) * for dl_main parameter.
20047 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
20048 instead of void *.
20049 * sysdeps/pthread/timer_create.c (timer_create): Do not use
20050 timer_ptr2id to cast struct timer_node * to void *.
20051 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
20052 --disable-libcilkrts to gcc configure.
20053 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
20054 and make them the default for now.
20055 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
20056 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
20057 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
20058 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
20059 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
20060 MACH_IPC_COMPAT.
20061 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
20062 __task_terminate would ever return successfully.
20063 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
20064 to global scope.
20065 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
20066 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
20067 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
20068 critical section to make code simpler and avoid warning.
20069 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
20070 critical section to make code simpler and avoid warning.
20071 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
20072 const char * instead of char *.
20073 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
20074 __hurd_file_name_split, hurd_file_name_split,
20075 __hurd_directory_name_split, hurd_directory_name_split,
20076 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
20077 hurd_file_name_path_lookup): Make lookup function parameter take a
20078 const char *name instead of char *name.
20079 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
20080 __hurd_directory_name_split): Likewise.
20081 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
20082 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
20083 * sysdeps/mach/hurd/check_native.c: New file.
20084 * sysdeps/mach/hurd/check_pf.c: New file.
20085 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
20086 (__freeifaddrs): Define macro to freeifaddrs.
20087 * sysdeps/mach/hurd/libhurduser.abilist: New file.
20088 * sysdeps/mach/libmachuser.abilist: New file.
20089 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
20090 (do_test_bz20181): Rename accordingly.
20091 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
20092 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
20093 <sys/mount.h>.
20094 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
20095 version only if __USE_EXTERN_INLINES is defined.
20096 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
20097 __hurd_sockfail): Likewise.
20098 (_hurd_fd_get): Always declare functions, and provide inline versions
20099 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
20100 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
20101 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
20102 _hurd_port_set): Always declare functions, and provide inline versions
20103 only if __USE_EXTERN_INLINES and _LIBC are defined and
20104 IS_IN(libc).
20105 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
20106 _hurd_critical_section_unlock): Likewise.
20107 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
20108 * __hurd_threadvar_location): Likewise.
20109 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
20110 _hurd_userlink_clear): Likewise.
20111 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
20112 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
20113 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
20114 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
20115 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
20116 __spin_lock_locked): Likewise.
20117 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
20118 __spin_lock_locked): Likewise.
20119 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
20120 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
20121 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
20122 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
20123 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
20124 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
20125 _POSIX_NO_TRUNC): Define to 0.
20126 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
20127 check size against PTHREAD_STACK_MIN.
20128 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
20129 IS_IN(libpthread)]: Include <sigsetops.h>.
20130 * mach/Makefile (user-interfaces): Add mach/gnumach.
20131 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
20132 * sysdeps/mach/configure (mach_interface_list): Regenerate.
20133 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
20134 instead of invalid -1.
20135 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
20136 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
20137 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
20138 <net/ppp_defs.h>.
20139
20140 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
20141
20142 * hurd/fcntl-internal.h: New file.
20143
20144 2018-01-27 James Clarke <jrtc27@jrtc27.com>
20145
20146 * sysdeps/hppa/fpu/libm-test-ulps: Update.
20147
20148 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20149
20150 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
20151
20152 [BZ #22701]
20153 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
20154 Build only shared objects.
20155
20156 2018-01-26 Carlos O'Donell <carlos@redhat.com>
20157
20158 * README: Update for hppa.
20159
20160 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20161
20162 * sysdeps/sparc/fpu/libm-test-ulps: Update
20163 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
20164
20165 2018-01-26 Carlos O'Donell <carlos@redhat.com>
20166
20167 Revert:
20168
20169 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20170
20171 [BZ #22563]
20172 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20173 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20174 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20175 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20176 to feature_1.
20177
20178 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20179
20180 [BZ #22563]
20181 * bits/types/__cancel_jmp_buf_tag.h: New file.
20182 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20183 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20184 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20185 * nptl/Makefile (headers): Add
20186 bits/types/__cancel_jmp_buf_tag.h.
20187 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20188 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20189 * sysdeps/nptl/pthread.h: Include
20190 <bits/types/__cancel_jmp_buf_tag.h>.
20191 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20192 __cancel_jmp_buf.
20193 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20194
20195 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
20196
20197 [BZ #10871]
20198 * localedata/locales/uk_UA (mon): Renamed to...
20199 (alt_mon): This.
20200 (alt_digits): "0" removed and then renamed to...
20201 (mon): This.
20202 (date_fmt): Definition changed not to use the alternative
20203 digits hack.
20204
20205 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
20206
20207 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
20208 FLAG_RISCV_FLOAT_ABI_DOUBLE.
20209 * elf/elf.h (EF_RISCV_RVC): New define.
20210 (EF_RISCV_FLOAT_ABI): Likewise.
20211 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
20212 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
20213 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20214 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
20215 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
20216 define.
20217 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20218
20219 2018-01-25 Andreas Schwab <schwab@suse.de>
20220
20221 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
20222 single quotes.
20223 * sysdeps/gnu/configure: Regenerate.
20224 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20225 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20227 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20228 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20229 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
20230 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20231 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20232
20233 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
20234
20235 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
20236 URL, and run autoconf, make it the default for now.
20237
20238 2018-01-24 Joseph Myers <joseph@codesourcery.com>
20239
20240 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20241 soft-float ColdFire configuration.
20242
20243 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
20244 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
20245 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
20246
20247 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
20248 MicroBlaze file.
20249
20250 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
20251 ....
20252 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
20253 ... here.
20254 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
20255 New file.
20256
20257 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
20258 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
20259 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
20260 file.
20261
20262 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20263
20264 [BZ #22742]
20265 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
20266 Rename to __reserved and add comment.
20267 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
20268 Rename to __reserved.
20269
20270 2018-01-24 Joseph Myers <joseph@codesourcery.com>
20271
20272 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20273 i686-gnu configurations.
20274 (Context.run_builds): Include mig, gnumach and hurd in components
20275 considered.
20276 (Context.checkout): Add mig, gnumach and hurd to components.
20277 (Context.checkout_tar): Add URL mappings for mig, gnumach and
20278 hurd.
20279 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
20280 (Config.build): Install gnumach headers, build mig and install
20281 hurd headers for 'gnu' OS.
20282 (Config.install_gnumach_headers): New function.
20283 (Config.install_hurd_headers): Likewise.
20284 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
20285 when building for 'gnu' OS.
20286
20287 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
20288
20289 * manual/tunables.texi (Hardware Capability Tunables): Fix
20290 spelling.
20291
20292 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
20293
20294 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
20295 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
20296 (ALTMON_11, ALTMON_12): Improve documentation.
20297 * manual/time.texi (strftime): Likewise.
20298
20299 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
20300
20301 [BZ #10871]
20302 * localedata/locales/pl_PL: Alternative month names added,
20303 primary month names are genitive now.
20304 * time/tst-strptime.c (day_tests): Actually use a genitive case
20305 of a month name in Polish language.
20306
20307 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
20308
20309 [BZ #10871]
20310 * manual/locale.texi: Document ALTMON_1..12 constants for
20311 nl_langinfo. Specify when to use ALTMON instead of MON.
20312 * manual/time.texi (strftime, strptime): Document GNU extension
20313 permitting O modifier with %B and %b. Specify when to use
20314 %OB instead of %B.
20315
20316 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
20317
20318 [BZ #10871]
20319 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
20320 names, define them as the same as abbreviated month names explicitly.
20321 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
20322 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
20323 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
20324 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
20325 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
20326 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
20327 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
20328 _NL_WABALTMON_12): New enum constants.
20329 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
20330 wab_alt_mon, and ab_alt_mon_defined members.
20331 (time_output): Output ab_alt_mon and wab_alt_mon members.
20332 (time_read): Read them, initialize them as copies of abmon and wabmon
20333 respectively if they are missing, initialize ab_alt_mon_defined.
20334 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
20335 * locale/programs/locfile-kw.h: Regenerate.
20336 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
20337 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
20338 and ru_RU.UTF-8.
20339 * time/strftime_l.c (a_altmonth, aam_len): New macros.
20340 [!COMPILE_WIDE] (ABALTMON_1): New macro.
20341 (__strftime_internal): Handle %Ob and %Oh formats.
20342 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
20343 (__strptime_internal): Handle %Ob and %Oh formats.
20344 * time/tst-strptime.c (day_tests): Add more tests to parse different
20345 forms of month names including the new %Ob format specifier.
20346
20347 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
20348
20349 [BZ #10871]
20350 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
20351 define them as the same as primary full month names explicitly.
20352 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
20353 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
20354 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
20355 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
20356 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
20357 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
20358 _NL_WALTMON_12): New enum constants.
20359 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
20360 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
20361 macros.
20362 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
20363 walt_mon, and alt_mon_defined members.
20364 (time_output): Output alt_mon and walt_mon members.
20365 (time_read): Read them, initialize them as copies of mon and wmon
20366 respectively if they are missing, initialize alt_mon_defined.
20367 * locale/programs/locfile-kw.gperf (alt_mon): Define.
20368 * locale/programs/locfile-kw.h: Regenerate.
20369 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
20370 * localedata/tst-langinfo.c (map): Add tests for the new constants
20371 ALTMON_1 .. ALTMON_12.
20372 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
20373 and pl_PL.UTF-8.
20374 * time/strftime_l.c (f_altmonth): New macro.
20375 (__strftime_internal): Handle %OB format.
20376 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
20377 (__strptime_internal): Handle %OB format.
20378 * time/tst-strptime.c (day_tests): Add tests to parse different forms
20379 of month names including the new %OB format specifier.
20380
20381 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20382
20383 [BZ #22685]
20384 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
20385 from ABORT_TRANSACTION.
20386 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
20387 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
20388 ABORT_TRANSACTION_IMPL): Likewise.
20389 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
20390 Linux code, but remove the code that aborts transactions.
20391
20392 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
20393
20394 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
20395
20396 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
20397
20398 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
20399 in date: "2004-14-09" should be "2004-09-14".
20400 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
20401 "2003-15-09" should be "2003-09-15".
20402
20403 2018-01-18 Arjun Shankar <arjun@redhat.com>
20404
20405 [BZ #22343]
20406 [BZ #22774]
20407 CVE-2018-6485
20408 CVE-2018-6551
20409 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
20410 after padding.
20411 (_int_memalign): check for integer overflow before calling
20412 _int_malloc.
20413 * malloc/tst-malloc-too-large.c: New test.
20414 * malloc/Makefile: Add tst-malloc-too-large.
20415
20416 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
20417
20418 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
20419 in date: "2017-24-07" should be "2017-07-24".
20420 * localedata/locales/mai_IN: Likewise.
20421 * localedata/locales/mai_NP: Likewise.
20422
20423 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
20424
20425 * po/ru.po: Update translations.
20426
20427 2018-01-17 Joseph Myers <joseph@codesourcery.com>
20428
20429 [BZ #22719]
20430 * sysdeps/hppa/backtrace.c: New file.
20431
20432 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
20433
20434 [BZ #22715]
20435 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
20436 align La_x86_64_retval to VEC_SIZE.
20437
20438 2018-01-16 Joseph Myers <joseph@codesourcery.com>
20439
20440 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
20441 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
20442
20443 2018-01-16 Florian Weimer <fweimer@redhat.com>
20444
20445 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
20446 Move tst-thread-exit-clobber ...
20447 [$(CXX)] (tests-unsupported): ... to here.
20448
20449 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
20450
20451 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
20452 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
20453 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20454 (_dl_aarch64_cap_flags): Update.
20455 (_DL_HWCAP_COUNT): Update.
20456
20457 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
20458
20459 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
20460 (_DL_HWCAP_LAST): Remove.
20461 (_DL_HWCAP_COUNT): Move to ...
20462 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20463 (_DL_HWCAP_COUNT): ... here.
20464
20465 2018-01-16 Florian Weimer <fweimer@redhat.com>
20466
20467 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
20468 mode with GNU extensions.
20469
20470 2018-01-15 Alan Hayward <alan.hayward@arm.com>
20471
20472 * elf/elf.h (NT_ARM_SVE): Define.
20473
20474 2018-01-15 Florian Weimer <fweimer@redhat.com>
20475
20476 [BZ #22636]
20477 * nptl/tst-minstack-throw.cc: New file.
20478 * nptl/Makefile (tests): Add tst-minstack-throw.
20479 (LDLIBS-tst-minstack-throw): Link with libstdc++.
20480 [!CXX] (tests-unsupported): Add tst-minstack-throw.
20481
20482 2018-01-15 Joseph Myers <joseph@codesourcery.com>
20483
20484 * scripts/build-many-glibcs.py (Context.checkout): Default
20485 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20486 version to 1.1.0.
20487
20488 2018-01-13 Carlos O'Donell <carlos@redhat.com>
20489
20490 [BZ #22707]
20491 * elf/elf.h (DF_1_STUB): Define.
20492 (DF_1_PIE): Define.
20493
20494 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20495
20496 [BZ #22697]
20497 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20498 Do not add 0.5 to integer or out-of-range arguments.
20499
20500 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20501
20502 * po/bg.po: Update translations.
20503 * po/cs.po: Likewise.
20504 * po/de.po: Likewise.
20505 * po/ko.po: Likewise.
20506 * po/pl.po: Likewise.
20507 * po/sv.po: Likewise.
20508 * po/uk.po: Likewise.
20509 * po/vi.po: Likewise.
20510
20511 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20512
20513 * aarch64/start.S (_start): Use __wrap_main.
20514 (__wrap_main): New local symbol.
20515
20516 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20517
20518 [BZ #22679]
20519 CVE-2018-1000001
20520 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20521 generic_getcwd if the path returned by getcwd syscall is not absolute.
20522 * io/tst-getcwd-abspath.c: New test.
20523 * io/Makefile (tests): Add tst-getcwd-abspath.
20524
20525 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
20526
20527 * malloc/malloc.c (malloc_consolidate): Add size check.
20528
20529 2018-01-12 Florian Weimer <fweimer@redhat.com>
20530
20531 * support/write_message.c (write_message): Preserve errno.
20532 * support/check.c (print_failure): Likewise.
20533 * support/support_test_verify_impl.c (support_test_verify_impl):
20534 Likewise.
20535 * support/support_test_compare_failure.c
20536 (support_test_compare_failure): Likewise.
20537
20538 2018-01-12 Florian Weimer <fweimer@redhat.com>
20539
20540 [BZ #22701]
20541 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20542 Prevent installation of libnsl.so.
20543 (libnsl-inhibit-o): Do not build (or install) static libraries.
20544
20545 2018-01-12 Egmont Koblinger <egmont@gmail.com>
20546
20547 [BZ #22657]
20548 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20549 before the day number which may produce a double space.
20550 (date_fmt): Likewise.
20551
20552 2018-01-12 Joseph Myers <joseph@codesourcery.com>
20553
20554 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20555 instead of fegetenv.
20556
20557 2018-01-11 Joseph Myers <joseph@codesourcery.com>
20558
20559 [BZ #22702]
20560 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20561 comment to say exceptions are discarded.
20562 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20563 __fegetenv.
20564 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20565 be enabled.
20566
20567 2018-01-11 Florian Weimer <fweimer@redhat.com>
20568
20569 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20570 and error message.
20571
20572 2018-01-11 Florian Weimer <fweimer@redhat.com>
20573
20574 [BZ #22636]
20575 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20576 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20577
20578 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20579
20580 [BZ #22693]
20581 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20582 negative arguments in test for NaN or infinity argument.
20583
20584 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
20585
20586 * po/libc.pot: Regenerate.
20587
20588 2018-01-10 Florian Weimer <fweimer@redhat.com>
20589
20590 [BZ #22636]
20591 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20592 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20593
20594 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
20595
20596 * hurd/hurd/fd.h: Include <fcntl.h>
20597 (__hurd_at_flags): New function.
20598 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20599 with call to __hurd_at_flags.
20600 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20601 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20602 __faccessat
20603 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20604 (__access_noerrno): Use __faccessat_common instead of access_common.
20605 (__access): Likewise.
20606 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20607 with a call to __faccessat.
20608 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20609 (__faccessat_common): ... this. Move implementation of __access into it when
20610 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20611 reauthenticate_cwdir_at helper to implement AT mechanism.
20612 (__faccessat_noerrno): New function, just calls __faccessat_common.
20613 (__faccessat): New function, just calls __faccessat_common.
20614 (faccessat): Define weak alias.
20615
20616 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20617
20618 [BZ #22691]
20619 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20620 (CFLAGS-s_fmaxmagl.c): New variable.
20621 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20622
20623 [BZ #22690]
20624 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20625 long int for arguments of possibly overflowing addition or
20626 subtraction.
20627 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20628
20629 2018-01-09 Joseph Myers <joseph@codesourcery.com>
20630
20631 [BZ #22688]
20632 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20633 (CFLAGS-e_remainderl.c): New variable.
20634
20635 [BZ #22687]
20636 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20637 variable.
20638 (CFLAGS-s_cacoshl.c): Likewise.
20639 (CFLAGS-s_casinhl.c): Likewise.
20640 (CFLAGS-s_catanl.c): Likewise.
20641 (CFLAGS-s_catanhl.c): Likewise.
20642 (CFLAGS-s_cexpl.c): Likewise.
20643 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20644 (CFLAGS-s_csinhl.c): Likewise.
20645 (CFLAGS-s_clogl.c): Likewise.
20646 (CFLAGS-s_clog10l.c): Likewise.
20647 (CFLAGS-s_csinl.c): Likewise.
20648 (CFLAGS-s_csqrtl.c): Likewise.
20649
20650 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
20651 2017-01-09 Svante Signell <svante.signell@gmail.com>
20652
20653 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20654 (_hurd_exec_paths): New function.
20655 * hurd/hurd.h (_hurd_exec): Deprecate function.
20656 (_hurd_exec_paths): Declare function.
20657 * hurd/Versions: Export _hurd_exec_paths.
20658 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20659 (__execve): Use __getcwd to build absolute path, and use
20660 _hurd_exec_paths instead of _hurd_exec.
20661 * sysdeps/mach/hurd/spawni.c: Likewise.
20662 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20663 _hurd_exec.
20664
20665 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
20666
20667 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20668 test instead of failing in case of ENOENT returned by posix_openpt.
20669
20670 2018-01-08 Florian Weimer <fweimer@redhat.com>
20671
20672 resolv: Support binary labels in test framework.
20673 * support/resolv_test.c (struct to_be_freed): Remove.
20674 (struct compressed_name): New.
20675 (allocate_compressed_name, ascii_tolower)
20676 (compare_compressed_name): New functions.
20677 (struct resolv_response_builder): Update type of
20678 compression_offsets for use with tsearch. Rempve to_be_freed.
20679 (response_push_pointer_to_free): Remove function.
20680 (resolv_response_add_name): Rewrite using struct compressed_name
20681 and tsearch instead of hsearch_r.
20682 (response_builder_allocate): Remove initialization of
20683 compression_offsets.
20684 (response_builder_free): Update for removal of to_be_freed. Use
20685 tdestroy instead of hdestroy_r.
20686 * resolv/Makefile (tests): Add tst-resolv-binary.
20687 (tst-resolv-binary): Link with -lresolv -lpthread.
20688
20689 2018-01-08 Florian Weimer <fweimer@redhat.com>
20690
20691 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20692 time. Pass positive flag instead of negative flag to
20693 support_test_compare_failure.
20694 (support_test_compare_failure): Change negative parameter to
20695 positive.
20696 * support/support_test_compare_failure.c (report)
20697 (support_test_compare_failure): Likewise.
20698 * support/tst-test_compare.c (return_ssize_t, return_int): New.
20699 (do_test): Check int/size_t, ssize_t/size_t comparisons.
20700
20701 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
20702
20703 [BZ #22637]
20704 * nptl/descr.h (stackblock, stackblock_size): Update comments.
20705 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20706 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20707 stacksize.
20708 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20709
20710 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
20711
20712 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20713 Add s_sincosf-sse2 and s_sincosf-fma.
20714 (CFLAGS-s_sincosf-fma.c): New.
20715 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20716 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20717 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20718 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20719 __sincosf is defined.
20720
20721 2018-01-08 Florian Weimer <fweimer@redhat.com>
20722
20723 * nptl/tst-thread-exit-clobber.cc: New file.
20724 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20725 C++11 mode.
20726 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20727 (tests): Add tst-thread-exit-clobber.
20728 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20729
20730 2018-01-08 Florian Weimer <fweimer@redhat.com>
20731
20732 * support/check.h (support_static_assert): Define.
20733 (TEST_COMPARE): Use it.
20734
20735 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
20736
20737 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20738 [!__RLIM_T_MATCHES_RLIM64_T]
20739 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20740 __getrlimit64. Add libc_hidden_weak.
20741
20742 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
20743
20744 * elf/elf.h (R_RISCV_NONE): New define.
20745 (R_RISCV_32): Likewise.
20746 (R_RISCV_64): Likewise.
20747 (R_RISCV_RELATIVE): Likewise.
20748 (R_RISCV_COPY): Likewise.
20749 (R_RISCV_JUMP_SLOT): Likewise.
20750 (R_RISCV_TLS_DTPMOD32): Likewise.
20751 (R_RISCV_TLS_DTPMOD64): Likewise.
20752 (R_RISCV_TLS_DTPREL32): Likewise.
20753 (R_RISCV_TLS_DTPREL64): Likewise.
20754 (R_RISCV_TLS_TPREL32): Likewise.
20755 (R_RISCV_TLS_TPREL64): Likewise.
20756 * Makerules (make-link-multidir): Make directories before linking into
20757 them.
20758 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20759 define.
20760 (VDSO_HASH_LINUX_4_15): Likewise.
20761 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20762 in subdirectories of lib.
20763 * nptl/Makefile (/librt.so): Always depend on
20764 "$(shared-thread-library)".
20765
20766 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20767
20768 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20769 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20770 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20771 (___tls_get_addr).
20772 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20773 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20774 "-O2 -march=i686".
20775 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20776 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20777 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20778 * sysdeps/gnu/glob-lstat-compat.c: New file.
20779 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20780 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20781
20782 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20783
20784 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20785 Reserve 16 chars to reloc_addr before calling _itoa_word.
20786
20787 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20788
20789 [BZ #22678]
20790 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20791 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20792
20793 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20794 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20795
20796 * resource/tst-getrlimit.c: Add copyright header.
20797
20798 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20799 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20800
20801 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20802 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20803 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20804 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20805 instead.
20806 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20807 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20808 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20809 RLIM64_INFINITY): Fix values to match the kernel ones.
20810 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20811 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20812 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20813 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20814 getrlimit64@@GLIBC_2_27.
20815 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20816 and setrlimit64.
20817 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20818 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20819 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20820 setrlimit, getrlimit64 and setrlimit64.
20821
20822 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20823
20824 [BZ #22648]
20825 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20826 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20827
20828 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20829
20830 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20831 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20832 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20833
20834 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20835
20836 [BZ #15479]
20837 [BZ #22666]
20838 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20839 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20840
20841 [BZ #15479]
20842 [BZ #22665]
20843 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20844 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20845 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20846 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20847
20848 2018-01-04 Florian Weimer <fweimer@redhat.com>
20849
20850 [BZ #22667]
20851 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20852 Align the stack before calling exit.
20853 * stdlib/tst-makecontext-align.c: New file.
20854 * stdlib/Makefile (tests): Add tst-makecontext-align.
20855
20856 2018-01-04 Florian Weimer <fweimer@redhat.com>
20857
20858 Add support for calling dlvsym from libc.so.
20859 * include/dlfcn.h (__libc_dlvsym): Declare.
20860 * elf/Makefile (tests-static-internal): Add
20861 tst-libc_dlvsym-static.
20862 (tests-internal): Add tst-libc_dlvsym.
20863 (modules-names): Add tst-libc_dlvsym-dso.
20864 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20865 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20866 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20867 object tst-libc_dlvsym-dso.so needs to be built before running
20868 these tests.
20869 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20870 * elf/Versions: Export __libc_dlvsym.
20871 * elf/dl-libc.c (struct do_dlvsym_args): New.
20872 (do_dlvsym, __libc_dlvsym): New functions.
20873 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20874 (_dl_open_hook2): New variable.
20875 (__libc_register_dl_open_hook): Set it.
20876 * elf/tst-libc_dlvsym-dso.c: New file.
20877 * elf/tst-libc_dlvsym-static.c: Likewise.
20878 * elf/tst-libc_dlvsym.c: Likewise.
20879 * elf/tst-libc_dlvsym.h: Likewise.
20880
20881 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20882
20883 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20884 include <sys/mount.h>.
20885
20886 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20887
20888 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20889 Add __NO_MATH_ERRNO__ check.
20890
20891 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20892
20893 * sysdeps/mips/mips32/libm-test-ulps: Update.
20894 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20895
20896 2018-01-02 Florian Weimer <fweimer@redhat.com>
20897
20898 * misc/tst-pselect.c: Add copyright header.
20899
20900 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20901
20902 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20903 comment.
20904 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20905 comment.
20906 (settrlimit): Rename into setrlimit.
20907 (__sttrlimit): Rename into __setrlimit.
20908
20909 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20910 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20911 never defined in that case.
20912
20913 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20914
20915 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20916
20917 * sysdeps/arm/libm-test-ulps: Update.
20918
20919 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20920 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20921
20922 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20923
20924 * NEWS: Add cosf and sincosf to list of optimized functions.
20925
20926 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20927
20928 [BZ #22660]
20929 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20930 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20931 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20932 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20933
20934 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20935
20936 [BZ #22433]
20937 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20938
20939 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20940 making a copy of it.
20941
20942 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20943
20944 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20945 trailing whitespace removed.
20946 * scripts/config.guess: Update to version 2018-01-01.
20947 * scripts/config.sub: Update to version 2018-01-01.
20948 * scripts/move-if-change: Update from gnulib.
20949
20950 * NEWS: Update copyright dates.
20951 * catgets/gencat.c (print_version): Likewise.
20952 * csu/version.c (banner): Likewise.
20953 * debug/catchsegv.sh: Likewise.
20954 * debug/pcprofiledump.c (print_version): Likewise.
20955 * debug/xtrace.sh (do_version): Likewise.
20956 * elf/ldconfig.c (print_version): Likewise.
20957 * elf/ldd.bash.in: Likewise.
20958 * elf/pldd.c (print_version): Likewise.
20959 * elf/sotruss.sh: Likewise.
20960 * elf/sprof.c (print_version): Likewise.
20961 * iconv/iconv_prog.c (print_version): Likewise.
20962 * iconv/iconvconfig.c (print_version): Likewise.
20963 * locale/programs/locale.c (print_version): Likewise.
20964 * locale/programs/localedef.c (print_version): Likewise.
20965 * login/programs/pt_chown.c (print_version): Likewise.
20966 * malloc/memusage.sh (do_version): Likewise.
20967 * malloc/memusagestat.c (print_version): Likewise.
20968 * malloc/mtrace.pl: Likewise.
20969 * manual/libc.texinfo: Likewise.
20970 * nptl/version.c (banner): Likewise.
20971 * nscd/nscd.c (print_version): Likewise.
20972 * nss/getent.c (print_version): Likewise.
20973 * nss/makedb.c (print_version): Likewise.
20974 * posix/getconf.c (main): Likewise.
20975 * scripts/test-installation.pl: Likewise.
20976 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20977
20978 * All files with FSF copyright notices: Update copyright dates
20979 using scripts/update-copyrights.
20980 * locale/programs/charmap-kw.h: Regenerated.
20981 * locale/programs/locfile-kw.h: Likewise.
20982
20983 2017-12-31 Zack Weinberg <zackw@panix.com>
20984
20985 * libio/bits/libio-ldbl.h: Correct check for improper
20986 inclusion. Add own multiple include guard.
20987
20988 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20989 Dmitry V. Levin <ldv@altlinux.org>
20990
20991 [BZ #22625]
20992 CVE-2017-16997
20993 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20994 string token expansion. Check for NULL pointer or empty string possibly
20995 returned by expand_dynamic_string_token.
20996 (decompose_rpath): Check for empty path after dynamic string
20997 token expansion.
20998
20999 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
21000
21001 [BZ #22433]
21002 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
21003
21004 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
21005 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
21006 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
21007 and PTRACE_SYSCALL.
21008 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
21009 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
21010 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21011 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21012 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21013 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
21014
21015 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
21016 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
21017 __ptrace_peeksiginfo_flags, ptrace): Move to ...
21018 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
21019 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21020 bits/ptrace-shared.h.
21021 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
21022 <bits/ptrace-shared.h>.
21023 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
21024 __ptrace_peeksiginfo_flags, ptrace): Remove.
21025 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
21026 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21027 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21028 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21029 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
21030
21031 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
21032
21033 [BZ #17804]
21034 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
21035 end of the loop. Improve comments.
21036
21037 2017-12-29 Zack Weinberg <zackw@panix.com>
21038
21039 [BZ #22615]
21040 * manual/errno.texi (Checking for Errors): Explicitly say that errno
21041 might be set on success.
21042
21043 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
21044
21045 [BZ #22611]
21046 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
21047 is unchanged on success.
21048
21049 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
21050
21051 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
21052 updated.
21053 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
21054 expand_dynamic_string_token): Likewise.
21055 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
21056 is_path argument.
21057
21058 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
21059 contains ':'.
21060
21061 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
21062 is set and name contains ':', and all code depending on these checks.
21063
21064 2017-12-24 Zack Weinberg <zackw@panix.com>
21065
21066 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
21067 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
21068 respectively.
21069 * libio/libio.h: Rename the original version of this file to
21070 libio/bits/libio.h. Error out if not included by stdio.h or the
21071 stub libio.h.
21072 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
21073 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
21074 if not included by bits/libio.h or the stub _G_config.h.
21075 * sysdeps/unix/sysv/linux/_G_config.h: Move to
21076 sysdeps/unix/sysv/linux/bits. Error out if not included by
21077 bits/libio.h or the stub _G_config.h.
21078 * libio/stdio.h: Include bits/libio.h, not libio.h.
21079 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
21080 well as libio.h and _G_config.h.
21081
21082 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
21083 * libio/strfile.h, stdio-common/vfscanf.c
21084 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
21085 Include stdio.h, not _G_config.h nor libio.h.
21086 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
21087 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
21088
21089 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
21090
21091 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
21092
21093 [BZ #22347]
21094 * stdlib/getrandom.c (getrandom): Fix comment.
21095 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
21096
21097 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
21098
21099 [BZ #21161]
21100 * manual/arith.texi (strtoul): Fix a typo.
21101
21102 [BZ #22596]
21103 * manual/arith.texi (finite): Fix the description of the return
21104 value.
21105
21106 2017-12-22 Eric Blake <ebb9@byu.net>
21107
21108 Avoid gcc warnings on cygwin
21109 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21110 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21111 Avoid unused variable.
21112
21113 2017-12-22 Florian Weimer <fweimer@redhat.com>
21114
21115 * io/Makefile (routines): Add copy_file_range.
21116 (tests): Add tst-copy_file_range.
21117 (tests-static, tests-internal): Add tst-copy_file_range-compat.
21118 * io/Versions (GLIBC_2.27): Export copy_file_range.
21119 * io/copy_file_range-compat.c: New file.
21120 * io/copy_file_range.c: Likewise.
21121 * io/tst-copy_file_range-compat.c: Likewise.
21122 * io/tst-copy_file_range.c: Likewise.
21123 * manual/llio.texi (Copying File Data): New section.
21124 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
21125 * support/Makefile (libsupport-routines): Add support-xfstat,
21126 xftruncate, xlseek.
21127 * support/support-xfstat.c: New file.
21128 * support/xftruncate.c: Likewise.
21129 * support/xlseek.c: Likewise.
21130 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
21131 * sysdeps/unix/sysv/linux/**.abilist: Update.
21132 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
21133
21134 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
21135
21136 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21137 disable-multi-arch variant to aarch64-linux-gnu.
21138
21139 2017-12-20 Joseph Myers <joseph@codesourcery.com>
21140
21141 * manual/texinfo.tex: Update to version 2017-12-18.20 with
21142 trailing whitespace removed.
21143 * scripts/config.guess: Update to version 2017-12-17.
21144 * scripts/config.sub: Update to version 2017-11-23.
21145 * scripts/install-sh: Update to version 2017-09-23.17.
21146 * scripts/move-if-change: Update to version 2017-09-13 06:45.
21147
21148 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21149
21150 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
21151 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21152 * sysdeps/tile/_mcount.S (__mcount): Likewise.
21153 * sysdeps/tile/crti.S (_init, _fini): Likewise.
21154 * sysdeps/tile/crtn.S: Likewise.
21155 * sysdeps/tile/dl-start.S (_start): Likewise.
21156 * sysdeps/tile/dl-trampoline.S: Likewise.
21157 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
21158 * sysdeps/tile/start.S (_start): Likewise.
21159 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
21160 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
21161 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
21162 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
21163 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
21164 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
21165 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
21166
21167 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
21168 comment.
21169 * sysdeps/tile/preconfigure: Remove tilegx folder.
21170 * sysdeps/tile/tilegx/Implies: Move definitions to ...
21171 * sysdeps/tile/Implies: ... here.
21172 * sysdeps/tile/tilegx/Makefile: Move rules to ...
21173 * sysdeps/tile/Makefile: ... here.
21174 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
21175 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
21176 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
21177 * sysdeps/tile/bits/wordsize.h: ... here.
21178 * sysdeps/tile/tilegx/*: Move to ...
21179 * sysdeps/tile/*: ... here.
21180 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
21181 * sysdeps/tile/tilegx32/Implies: ... here.
21182 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
21183 * sysdeps/tile/tilegx64/Implies: ... here.
21184 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
21185 to ...
21186 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
21187 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
21188 * sysdeps/unix/sysv/linux/tile/*: ... here.
21189 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
21190 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
21191 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
21192 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
21193
21194 * README: Remove tilepro-*-linux-gnu from supported architecture.
21195 * scripts/build-many-glibcs.py: Likewise.
21196 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21197 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
21198 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
21199 elf_machine_matches_host, elf_machine_dynamic,
21200 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
21201 howto, elf_machine_rela): Likewise.
21202 * sysdeps/tile/dl-start.S (_start): Likewise.
21203 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
21204 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
21205 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
21206 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
21207 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
21208 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
21209 Likewise.
21210 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
21211 * sysdeps/tile/preconfigure: Likewise.
21212 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
21213 POINTER_CHK_GUARD): Likewise.
21214 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
21215 * sysdeps/tile/start.S (_start): Likewise.
21216 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
21217 Likewise.
21218 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
21219 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
21220 CMOVNEZ): Remove.
21221 * sysdeps/unix/sysv/linux/tile/bits/environments.h
21222 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
21223 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
21224 Likewise.
21225 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
21226 * sysdeps/tile/tilepro/Implies: Remove file.
21227 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
21228 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
21229 * sysdeps/tile/tilepro/memchr.c: Likewise.
21230 * sysdeps/tile/tilepro/memcpy.S: Likewise.
21231 * sysdeps/tile/tilepro/memset.c: Likewise.
21232 * sysdeps/tile/tilepro/memusage.h: Likewise.
21233 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
21234 * sysdeps/tile/tilepro/strchr.c: Likewise.
21235 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
21236 * sysdeps/tile/tilepro/strlen.c: Likewise.
21237 * sysdeps/tile/tilepro/strrchr.c: Likewise.
21238 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
21239 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
21240 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
21241 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
21242 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
21243 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
21244 Likewise.
21245 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
21246 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21247 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
21248 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
21249 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21250 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
21251 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
21252 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
21253 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
21254 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
21255 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
21256 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
21257 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
21258 tilepro mention in comment.
21259
21260 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
21261 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
21262 * nptl/pthread_join_common.c: New file: common function used on
21263 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
21264 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
21265 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
21266 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21267 (cleanup): Move definition to pthread_join_common.c.
21268 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
21269 Remove superflous checks.
21270 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
21271 Likewise.
21272
21273 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
21274
21275 * sysdeps/aarch64/libm-test-ulps: Update.
21276
21277 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21278
21279 * sysdeps/aarch64/memset.S (MEMSET): Define.
21280
21281 2017-12-20 Florian Weimer <fweimer@redhat.com>
21282
21283 [BZ #22635]
21284 nptl: Provide full implementation of pthread_self in libc.so.
21285 * nptl/Makefile (routines): Add pthread_self.
21286 (libpthread-routines): Replace pthread_self with
21287 compat-pthread_self.
21288 * nptl/forward.c (pthread_self): Remove.
21289 * nptl/nptl-init.c (pthread_functions): Do not initialize
21290 ptr_pthread_self.
21291 * nptl/pthread_self.c (pthread_self): Remove weak alias.
21292 * nptl/compat-pthread_self.c: New file.
21293 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
21294 Remove ptr_pthread_self.
21295
21296 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
21297
21298 * posix/regcomp.c: Fix spelling in comments.
21299 * posix/regex.h: Likewise.
21300 * posix/regex_internal.c: Likewise.
21301 * posix/regexec.c: Likewise.
21302
21303 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
21304
21305 [BZ #22377]
21306 * math/Makefile [C++] (tests): Add test for iseqsig.
21307 * math/math.h [C++] (iseqsig): New implementation, which does
21308 not rely on __MATH_TG/__builtin_types_compatible_p.
21309 * math/test-math-iseqsig.cc: New file.
21310 * sysdeps/powerpc/powerpc64le/Makefile
21311 (CFLAGS-test-math-iseqsig.cc): New variable.
21312
21313 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
21314
21315 * elf/dl-load.c (is_trusted_path): Remove.
21316 (fillin_rpath): Remove check_trusted argument and its use,
21317 all callers changed.
21318
21319 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21320
21321 [BZ #22630]
21322 * Makeconfig (link-pie-before-libc): Replace -pie with
21323 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
21324 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
21325 (tst-dlopen-aout-no-pie): New.
21326 (LDFLAGS-tst-prelink): Removed.
21327 (tst-prelink-no-pie): New.
21328 (LDFLAGS-tst-main1): Removed.
21329 (tst-main1-no-pie): New.
21330 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
21331 (tst-gmon-no-pie): New.
21332
21333 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21334
21335 * manual/install.texi: Document that --enable-static-pie
21336 implies PIE.
21337 * INSTALL: Regenerated.
21338
21339 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21340
21341 [BZ #21309]
21342 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
21343 unsigned.
21344
21345 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21346
21347 Revert:
21348
21349 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21350
21351 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21352
21353 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21354
21355 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21356 <errno.h>. Include "eexp.tbl".
21357 (half): New constant.
21358 (one): Likewise.
21359 (__ieee754_exp): Rewrite.
21360 (__slowexp): Remove prototype.
21361 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21362 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21363 * sysdeps/i386/fpu/slowexp.c: Likewise.
21364 * sysdeps/ia64/fpu/slowexp.c: Likewise.
21365 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21366 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21367 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21368 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21369 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21370 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21371 comment.
21372 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21373 (CPPFLAGS-slowexp.c): Remove variable.
21374 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21375 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21376 (CFLAGS-slowexp-fma.c): Remove variable.
21377 (CFLAGS-slowexp-fma4.c): Likewise.
21378 (CFLAGS-slowexp-avx.c): Likewise.
21379 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21380 define as macro.
21381 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21382 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21383 * math/Makefile (type-double-routines): Remove slowexp.
21384 * manual/probes.texi (slowexp_p6): Remove.
21385 (slowexp_p32): Likewise.
21386
21387 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21388
21389 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21390 arithmetic.
21391
21392 * lib/glob.c (glob): Do not pass NULL to mempcpy.
21393
21394 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21395
21396 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21397
21398 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21399
21400 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21401 <errno.h>. Include "eexp.tbl".
21402 (half): New constant.
21403 (one): Likewise.
21404 (__ieee754_exp): Rewrite.
21405 (__slowexp): Remove prototype.
21406 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21407 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21408 * sysdeps/i386/fpu/slowexp.c: Likewise.
21409 * sysdeps/ia64/fpu/slowexp.c: Likewise.
21410 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21411 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21412 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21413 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21414 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21415 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21416 comment.
21417 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21418 (CPPFLAGS-slowexp.c): Remove variable.
21419 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21420 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21421 (CFLAGS-slowexp-fma.c): Remove variable.
21422 (CFLAGS-slowexp-fma4.c): Likewise.
21423 (CFLAGS-slowexp-avx.c): Likewise.
21424 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21425 define as macro.
21426 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21427 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21428 * math/Makefile (type-double-routines): Remove slowexp.
21429 * manual/probes.texi (slowexp_p6): Remove.
21430 (slowexp_p32): Likewise.
21431
21432 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21433 James Clarke <jrtc27@jrtc27.com>
21434
21435 [BZ #22603]
21436 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
21437 addition.
21438
21439 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21440
21441 [BZ #22605]
21442 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
21443 code.
21444
21445 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21446
21447 [BZ #22563]
21448 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21449 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21450 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21451 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21452 to feature_1.
21453
21454 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21455
21456 [BZ #22563]
21457 * bits/types/__cancel_jmp_buf_tag.h: New file.
21458 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21459 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21460 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21461 * nptl/Makefile (headers): Add
21462 bits/types/__cancel_jmp_buf_tag.h.
21463 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21464 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21465 * sysdeps/nptl/pthread.h: Include
21466 <bits/types/__cancel_jmp_buf_tag.h>.
21467 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21468 __cancel_jmp_buf.
21469 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21470
21471 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21472
21473 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21474 --enable-static-pie variants to x86_64, x32 and i686.
21475
21476 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21477
21478 [BZ #22631]
21479 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21480 argument for attrubutes. All callers changed.
21481 (__inline_mathop1): Likewise. All callers changed.
21482 (__inline_mathop): Likewise. All callers changed.
21483 [__USE_MISC] (scalbn): Use __inline_forward instead of
21484 __inline_forward_c.
21485 [__USE_ISOC99] (scalbln): Likewise.
21486 [__USE_ISOC99] (nearbyint): Likewise.
21487 [__USE_ISOC99] (lrint): Likewise.
21488 [__USE_MISC] (scalbnf): Likewise.
21489 [__USE_ISOC99] (scalblnf): Likewise.
21490 [__USE_ISOC99] (nearbyintf): Likewise.
21491 [__USE_ISOC99] (lrintf): Likewise.
21492 [__USE_MISC] (scalbnl): Likewise.
21493 [__USE_ISOC99] (scalblnl): Likewise.
21494 [__USE_ISOC99] (nearbyintl): Likewise.
21495 [__USE_ISOC99] (lrintl): Likewise.
21496 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21497 __inline_mathop and __m81_defun changed.
21498
21499 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21500 CPU or FPU for ARM hard-float configurations.
21501
21502 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21503
21504 * nptl/tst-attr3.c: Include <libc-diag.h>.
21505 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21506
21507 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21508
21509 * string/tester.c (test_strncat): Also disable -Warray-bounds
21510 warnings for two tests.
21511
21512 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21513
21514 [BZ #22614]
21515 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21516 $(cc-pie-default) == yes.
21517 * config.make.in (cc-pie-default): New.
21518 * configure.ac (libc_cv_pie_default): Renamed to ...
21519 (libc_cv_cc_pie_default): This.
21520 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21521 * configure: Regenerated.
21522
21523 2017-12-18 Florian Weimer <fweimer@redhat.com>
21524
21525 [BZ #20204]
21526 ld.so: Harden dl-libc/libdl hooks.
21527 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21528 (rtld_active): New function.
21529 * dlfcn/dladdr.c (__dladdr): Call it.
21530 * dlfcn/dladdr1.c (__dladdr1): Likewise.
21531 * dlfcn/dlclose.c (__dlcose): Likewise.
21532 * dlfcn/dlerror.c (__dlerror): Likewise.
21533 * dlfcn/dlinfo.c (__dlinfo): Likewise.
21534 * dlfcn/dlmopen.c (__dlmopen): Likewise.
21535 * dlfcn/dlopen.c (__dlopen): Likewise.
21536 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21537 * dlfcn/dlsym.c (__dlsym): Likewise.
21538 * dlfcn/dlvsym.c (__dlvsym): Likewise.
21539 * libio/vtables.c (_IO_vtable_check): Likewise.
21540 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21541 (__libc_dlclose): Likewise.
21542 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21543 assignment.
21544
21545 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21546
21547 [BZ #22446]
21548 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21549 buffers for readlink input and output.
21550
21551 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
21552
21553 [BZ #22624]
21554 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21555 inhibit_stack_protector.
21556
21557 [BZ #22624]
21558 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21559 inhibit_stack_protector.
21560
21561 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
21562
21563 [BZ #22627]
21564 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21565 code and invocation.
21566
21567 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
21568
21569 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21570
21571 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
21572
21573 [BZ #22505]
21574 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21575
21576 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21577
21578 * sysdeps/s390/fpu/libm-test-ulps: Update.
21579
21580 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21581
21582 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21583
21584 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21585
21586 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21587 constants to s_sincosf.h file.
21588 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21589 * sysdeps/ieee754/flt-32/s_sincosf.c: New
21590 implementation.
21591 * sysdeps/ieee754/flt-32/s_sincosf.h:
21592 New file.
21593
21594 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21595
21596 [BZ #14681]
21597 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21598 before mtrace.
21599
21600 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
21601
21602 [BZ #19574]
21603 * INSTALL: Regenerated.
21604 * Makeconfig (real-static-start-installed-name): New.
21605 (pic-default): Updated for --enable-static-pie.
21606 (pie-default): New for --enable-static-pie.
21607 (default-pie-ldflag): Likewise.
21608 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21609 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21610 Replace $(static-start-installed-name) with
21611 $(real-static-start-installed-name).
21612 (+prectorT): Updated for --enable-static-pie.
21613 (+postctorT): Likewise.
21614 (CFLAGS-.o): Add $(pie-default).
21615 (CFLAGS-.op): Likewise.
21616 * NEWS: Mention --enable-static-pie.
21617 * config.h.in (ENABLE_STATIC_PIE): New.
21618 * configure.ac (--enable-static-pie): New configure option.
21619 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21620 (have-static-pie): Likewise.
21621 Enable static PIE if linker supports --no-dynamic-linker.
21622 (ENABLE_STATIC_PIE): New AC_DEFINE.
21623 (enable-static-pie): New LIBC_CONFIG_VAR.
21624 * configure: Regenerated.
21625 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21626 gr$(start-installed-name) for --enable-static-pie.
21627 (extra-objs): Likewise.
21628 (install-lib): Likewise.
21629 (extra-objs): Add static-reloc.o and static-reloc.os
21630 ($(objpfx)$(start-installed-name)): Also depend on
21631 $(objpfx)static-reloc.o.
21632 ($(objpfx)r$(start-installed-name)): New.
21633 ($(objpfx)g$(start-installed-name)): Also depend on
21634 $(objpfx)static-reloc.os.
21635 ($(objpfx)gr$(start-installed-name)): New.
21636 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21637 in libc.a.
21638 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21639 initimage.
21640 * csu/static-reloc.c: New file.
21641 * elf/Makefile (routines): Add dl-reloc-static-pie.
21642 (elide-routines.os): Likewise.
21643 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21644 (tst-tls1-static-non-pie-no-pie): New.
21645 * elf/dl-reloc-static-pie.c: New file.
21646 * elf/dl-support.c (_dl_get_dl_main_map): New function.
21647 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21648 STATIC_PIE_BOOTSTRAP.
21649 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21650 * gmon/Makefile (tests): Add tst-gmon-static-pie.
21651 (tests-static): Likewise.
21652 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21653 (tst-gmon-static-no-pie): New.
21654 (CFLAGS-tst-gmon-static-pie.c): Likewise.
21655 (CRT-tst-gmon-static-pie): Likewise.
21656 (tst-gmon-static-pie-ENV): Likewise.
21657 (tests-special): Likewise.
21658 ($(objpfx)tst-gmon-static-pie.out): Likewise.
21659 (clean-tst-gmon-static-pie-data): Likewise.
21660 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21661 * gmon/tst-gmon-static-pie.c: New file.
21662 * manual/install.texi: Document --enable-static-pie.
21663 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21664 (_dl_get_dl_main_map): Likewise.
21665 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21666 * sysdeps/x86_64/configure.ac: Likewise.
21667 * sysdeps/i386/configure: Regenerated.
21668 * sysdeps/x86_64/configure: Likewise.
21669 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21670 (ASFLAGS-.op): Likewise.
21671
21672 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21673
21674 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21675 * posix/tst-mmap-offset.c (fname): Use /tmp.
21676 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21677
21678 2017-12-15 Steve Ellcey <sellcey@cavium.com>
21679
21680 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21681
21682 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
21683
21684 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21685 errno.
21686
21687 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21688
21689 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21690 --with-float=hard for arm-linux-gnueabihf configurations.
21691
21692 [BZ #14121]
21693 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21694 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
21695 ($(mo-installed)): Use $(objpfx)%.mo.
21696 (realclean): Remove rule.
21697
21698 * po/Makefile (linguas): Remove rule and dependencies.
21699 (linguas.mo): Likewise.
21700 (.PHONY): Do not depend on linguas and linguas.mo.
21701 (podir): Remove variable.
21702 (pofiles): Likewise.
21703 [$(pofiles)] (%.po): Remove rule.
21704
21705 * sysdeps/sparc/sparc32/Makefile
21706 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21707 start-of-line whitespace in argument of echo.
21708 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21709 with whitespace. Generate __wrap_.udiv alias.
21710 * sysdeps/sparc/sparc32/rem.S: Regenerated.
21711 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21712 * sysdeps/sparc/sparc32/udiv.S: Likewise.
21713 * sysdeps/sparc/sparc32/urem.S: Likewise.
21714
21715 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21716
21717 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21718 for aligned inputs.
21719
21720 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
21721
21722 * benchtests/bench-strcmp.c: Print output in JSON format.
21723
21724 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21725
21726 2017-12-14 Florian Weimer <fweimer@redhat.com>
21727
21728 [BZ #22607]
21729 CVE-2017-1000409
21730 * elf/dl-load.c (_dl_init_paths): Compute number of components in
21731 the expanded path string.
21732
21733 2017-12-14 Florian Weimer <fweimer@redhat.com>
21734
21735 [BZ #22606]
21736 CVE-2017-1000408
21737 * elf/dl-load.c (system_dirs): Update comment.
21738 (nsystem_dirs_len): Use array_length.
21739 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21740
21741 2017-12-14 Florian Weimer <fweimer@redhat.com>
21742
21743 Simplify compiling most of support/ outside of glibc.
21744 * support/check_addrinfo.c: Include <string.h>.
21745 * support/check_dns_packet.c: Likewise.
21746 * support/check_hostent.c: Likewise.
21747 * support/support_can_chroot.c: Include <support/xunistd.h>.
21748 * support/support_format_addrinfo.c: Include <stdlib.h>
21749 * support/support_format_dns_packet.c: Include <stdbool.h>.
21750 * support/support_format_hostent.c: Include <stdlib.h>.
21751 * support/support_format_netent.c: Likewise.
21752 * support/support_write_string.c: Include <support/xunistd.h>.
21753 * support/xdlfcn.c: Include <stddef.h>.
21754
21755 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21756
21757 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21758
21759 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21760 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21761
21762 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21763 (sysdeps_routines): Add memset-niagara7.
21764 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21765 Likewise.
21766 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21767 file.
21768 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21769 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21770 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21771 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21772 Add niagara7 option.
21773 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21774 memset.
21775
21776 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21777 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21778 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21779 Likewise.
21780 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21781 New file.
21782 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21783 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21784 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21785 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21786 and __memmove_niagara7.
21787 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21788 Add niagara7 option.
21789 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21790 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21791 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21792 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21793 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21794
21795 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21796
21797 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21798 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21799 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21800 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21801
21802 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21803 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21804 _dl_sparc_cap_flags array.
21805 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21806
21807 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21808
21809 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21810 time whenever possible.
21811
21812 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21813
21814 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21815 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21816
21817 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21818
21819 * soft-fp/fmadf4.c: Move to ....
21820 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21821 * soft-fp/fmasf4.c: Move to ....
21822 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21823 * soft-fp/fmatf4.c: Move to ....
21824 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21825 * sysdeps/ieee754/soft-fp/Makefile: New file.
21826 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21827 * sysdeps/arm/preconfigure: Regenerated.
21828 * sysdeps/arm/nofpu/Implies: New file.
21829 * sysdeps/arm/s_fma.c: Remove file.
21830 * sysdeps/arm/s_fmaf.c: Likewise.
21831 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21832 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21833 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21834 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21835 * sysdeps/microblaze/s_fma.c: Remove file.
21836 * sysdeps/microblaze/s_fmaf.c: Likewise.
21837 * sysdeps/mips/mips32/nofpu/Implies: New file.
21838 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21839 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21840 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21841 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21842 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21843 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21844 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21845 implementation.
21846 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21847 * sysdeps/nios2/s_fma.c: Remove file.
21848 * sysdeps/nios2/s_fmaf.c: Likewise.
21849 * sysdeps/sh/nofpu/Implies: New file.
21850 * sysdeps/sh/s_fma.c: Remove file.
21851 * sysdeps/sh/s_fmaf.c: Likewise.
21852 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21853 * sysdeps/tile/s_fma.c: Remove file.
21854 * sysdeps/tile/s_fmaf.c: Likewise.
21855
21856 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21857
21858 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21859 Add s_cosf-sse2 and s_cosf-fma.
21860 (CFLAGS-s_cosf-fma.c): New.
21861 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21862 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21863 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21864
21865 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21866
21867 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21868
21869 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21870
21871 * libio/Makefile (tests): Add tst-bz22415.
21872 (tst-bz22415-ENV): New rule.
21873 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21874 (tests-special): Add tst-bz22415-mem.out.
21875 ($(objpfx)tst-bz22415-mem.out): New rule.
21876 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21877 in case of a successful seek operation.
21878 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21879 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21880 buffer is required.
21881 * libio/tst-bz22415.c: New test.
21882
21883 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21884
21885 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21886
21887 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21888 __IPC_64 to 0 to avoid IPC_64 being set.
21889
21890 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21891
21892 [BZ #22593]
21893 * math/bits/mathcalls.h (nextafter): Remove const.
21894 (nexttoward): Likewise.
21895
21896 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21897
21898 * configure.ac (--with-fp): Remove configure option.
21899 (with_fp_cond): New variable.
21900 (libc_cv_with_fp): New configure test. Use this variable instead
21901 of with_fp.
21902 * configure: Regenerated.
21903 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21904 * manual/install.texi (Configuring and compiling): Remove
21905 --without-fp.
21906 * INSTALL: Regenerated.
21907 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21908 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21909 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21910 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21911 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21912 use --without-fp to configure glibc.
21913
21914 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21915
21916 * manual/locale.texi (nl_langinfo): Fix a typo.
21917
21918 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21919
21920 [BZ #22588]
21921 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21922
21923 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21924
21925 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21926 (CFLAGS-argp-parse.c): Likewise.
21927 (CFLAGS-argp-fmtstream.c): Likewise.
21928 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21929 (CPPFLAGS-sha512-crypt.c): Likewise.
21930 (CPPFLAGS-md5-crypt.c): Likewise.
21931 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21932 (CFLAGS-stack_chk_fail_local.c): Likewise.
21933 (CFLAGS-backtrace.c): Likewise.
21934 (CFLAGS-sprintf_chk.c): Likewise.
21935 (CFLAGS-snprintf_chk.c): Likewise.
21936 (CFLAGS-vsprintf_chk.c): Likewise.
21937 (CFLAGS-vsnprintf_chk.c): Likewise.
21938 (CFLAGS-asprintf_chk.c): Likewise.
21939 (CFLAGS-vasprintf_chk.c): Likewise.
21940 (CFLAGS-obprintf_chk.c): Likewise.
21941 (CFLAGS-dprintf_chk.c): Likewise.
21942 (CFLAGS-vdprintf_chk.c): Likewise.
21943 (CFLAGS-printf_chk.c): Likewise.
21944 (CFLAGS-fprintf_chk.c): Likewise.
21945 (CFLAGS-vprintf_chk.c): Likewise.
21946 (CFLAGS-vfprintf_chk.c): Likewise.
21947 (CFLAGS-gets_chk.c): Likewise.
21948 (CFLAGS-fgets_chk.c): Likewise.
21949 (CFLAGS-fgets_u_chk.c): Likewise.
21950 (CFLAGS-fread_chk.c): Likewise.
21951 (CFLAGS-fread_u_chk.c): Likewise.
21952 (CFLAGS-swprintf_chk.c): Likewise.
21953 (CFLAGS-vswprintf_chk.c): Likewise.
21954 (CFLAGS-wprintf_chk.c): Likewise.
21955 (CFLAGS-fwprintf_chk.c): Likewise.
21956 (CFLAGS-vwprintf_chk.c): Likewise.
21957 (CFLAGS-vfwprintf_chk.c): Likewise.
21958 (CFLAGS-fgetws_chk.c): Likewise.
21959 (CFLAGS-fgetws_u_chk.c): Likewise.
21960 (CFLAGS-read_chk.c): Likewise.
21961 (CFLAGS-pread_chk.c): Likewise.
21962 (CFLAGS-pread64_chk.c): Likewise.
21963 (CFLAGS-recv_chk.c): Likewise.
21964 (CFLAGS-recvfrom_chk.c): Likewise.
21965 (CFLAGS-tst-longjmp_chk.c): Likewise.
21966 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21967 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21968 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21969 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21970 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21971 (CFLAGS-tst-chk1.c): Likewise.
21972 (CFLAGS-tst-chk2.c): Likewise.
21973 (CFLAGS-tst-chk3.c): Likewise.
21974 (CFLAGS-tst-chk4.cc): Likewise.
21975 (CFLAGS-tst-chk5.cc): Likewise.
21976 (CFLAGS-tst-chk6.cc): Likewise.
21977 (CFLAGS-tst-lfschk1.c): Likewise.
21978 (CFLAGS-tst-lfschk2.c): Likewise.
21979 (CFLAGS-tst-lfschk3.c): Likewise.
21980 (CFLAGS-tst-lfschk4.cc): Likewise.
21981 (CFLAGS-tst-lfschk5.cc): Likewise.
21982 (CFLAGS-tst-lfschk6.cc): Likewise.
21983 (CFLAGS-tst-ssp-1.c): Likewise.
21984 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21985 (CFLAGS-scandir64.c): Likewise.
21986 (CFLAGS-scandir-tail.c): Likewise.
21987 (CFLAGS-scandir64-tail.c): Likewise.
21988 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21989 (CFLAGS-dl-tunables.c): Likewise.
21990 (CFLAGS-dl-runtime.c): Likewise.
21991 (CFLAGS-dl-lookup.c): Likewise.
21992 (CFLAGS-dl-iterate-phdr.c): Likewise.
21993 (CFLAGS-vismain.c): Likewise.
21994 (CFLAGS-tst-linkall-static.c): Likewise.
21995 (CFLAGS-tst-linkall-static.c): Likewise.
21996 (CPPFLAGS-dl-load.c): Likewise.
21997 (CFLAGS-ldconfig.c): Likewise.
21998 (CFLAGS-dl-cache.c): Likewise.
21999 (CFLAGS-cache.c): Likewise.
22000 (CFLAGS-rtld.c): Likewise.
22001 (CFLAGS-multiload.c): Likewise.
22002 (CFLAGS-filtmod1.c): Likewise.
22003 (CFLAGS-tst-align.c): Likewise.
22004 (CFLAGS-tst-align2.c): Likewise.
22005 (CFLAGS-tst-alignmod.c): Likewise.
22006 (CFLAGS-tst-alignmod2.c): Likewise.
22007 (CPPFLAGS-tst-execstack.c): Likewise.
22008 (CFLAGS-tst-ptrguard1-static.c): Likewise.
22009 (CFLAGS-tst-latepthreadmod.c): Likewise.
22010 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
22011 (CFLAGS-getgrnam_r.c): Likewise.
22012 (CFLAGS-getgrent_r.c): Likewise.
22013 (CFLAGS-getgrent.c): Likewise.
22014 (CFLAGS-fgetgrent.c): Likewise.
22015 (CFLAGS-fgetgrent_r.c): Likewise.
22016 (CFLAGS-putgrent.c): Likewise.
22017 (CFLAGS-initgroups.c): Likewise.
22018 (CFLAGS-getgrgid.c): Likewise.
22019 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
22020 (CFLAGS-getsgent.c): Likewise.
22021 (CFLAGS-fgetsgent.c): Likewise.
22022 (CFLAGS-fgetsgent_r.c): Likewise.
22023 (CFLAGS-putsgent.c): Likewise.
22024 (CFLAGS-getsgnam.c): Likewise.
22025 (CFLAGS-getsgnam_r.c): Likewise.
22026 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
22027 (CFLAGS-iconv_charmap.c): Likewise.
22028 (CFLAGS-dummy-repertoire.c): Likewise.
22029 (CFLAGS-charmap.c): Likewise.
22030 (CFLAGS-linereader.c): Likewise.
22031 (CFLAGS-simple-hash.c): Likewise.
22032 (CFLAGS-gconv_conf.c): Likewise.
22033 (CFLAGS-iconvconfig.c): Likewise.
22034 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
22035 (CFLAGS-gethstbyad.c): Likewise.
22036 (CFLAGS-gethstbynm_r.c): Likewise.
22037 (CFLAGS-gethstbynm.c): Likewise.
22038 (CFLAGS-gethstbynm2_r.c): Likewise.
22039 (CFLAGS-gethstbynm2.c): Likewise.
22040 (CFLAGS-gethstent_r.c): Likewise.
22041 (CFLAGS-gethstent.c): Likewise.
22042 (CFLAGS-rcmd.c): Likewise.
22043 (CFLAGS-getnetbynm_r.c): Likewise.
22044 (CFLAGS-getnetbynm.c): Likewise.
22045 (CFLAGS-getnetbyad_r.c): Likewise.
22046 (CFLAGS-getnetbyad.c): Likewise.
22047 (CFLAGS-getnetent_r.c): Likewise.
22048 (CFLAGS-getnetent.c): Likewise.
22049 (CFLAGS-getaliasent_r.c): Likewise.
22050 (CFLAGS-getaliasent.c): Likewise.
22051 (CFLAGS-getrpcent_r.c): Likewise.
22052 (CFLAGS-getrpcent.c): Likewise.
22053 (CFLAGS-getservent_r.c): Likewise.
22054 (CFLAGS-getservent.c): Likewise.
22055 (CFLAGS-getprtent_r.c): Likewise.
22056 (CFLAGS-getprtent.c): Likewise.
22057 (CFLAGS-either_ntoh.c): Likewise.
22058 (CFLAGS-either_hton.c): Likewise.
22059 (CFLAGS-getnetgrent.c): Likewise.
22060 (CFLAGS-getnetgrent_r.c): Likewise.
22061 (CFLAGS-tst-checks-posix.c): Likewise.
22062 (CFLAGS-tst-sockaddr.c): Likewise.
22063 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
22064 (CFLAGS-tst-translit.c): Likewise.
22065 (CFLAGS-tst-gettext2.c): Likewise.
22066 (CFLAGS-tst-codeset.c): Likewise.
22067 (CFLAGS-tst-gettext3.c): Likewise.
22068 (CFLAGS-tst-gettext4.c): Likewise.
22069 (CFLAGS-tst-gettext5.c): Likewise.
22070 (CFLAGS-tst-gettext6.c): Likewise.
22071 * io/Makefile (CFLAGS-open.c): Likewise.
22072 (CFLAGS-open64.c): Likewise.
22073 (CFLAGS-creat.c): Likewise.
22074 (CFLAGS-creat64.c): Likewise.
22075 (CFLAGS-fcntl.c): Likewise.
22076 (CFLAGS-poll.c): Likewise.
22077 (CFLAGS-ppoll.c): Likewise.
22078 (CFLAGS-lockf.c): Likewise.
22079 (CFLAGS-statfs.c): Likewise.
22080 (CFLAGS-fstatfs.c): Likewise.
22081 (CFLAGS-statvfs.c): Likewise.
22082 (CFLAGS-fstatvfs.c): Likewise.
22083 (CFLAGS-fts.c): Likewise.
22084 (CFLAGS-fts64.c): Likewise.
22085 (CFLAGS-ftw.c): Likewise.
22086 (CFLAGS-ftw64.c): Likewise.
22087 (CFLAGS-lockf.c): Likewise.
22088 (CFLAGS-posix_fallocate.c): Likewise.
22089 (CFLAGS-posix_fallocate64.c): Likewise.
22090 (CFLAGS-fallocate.c): Likewise.
22091 (CFLAGS-fallocate64.c): Likewise.
22092 (CFLAGS-read.c): Likewise.
22093 (CFLAGS-write.c): Likewise.
22094 (CFLAGS-test-stat.c): Likewise.
22095 (CFLAGS-test-lfs.c): Likewise.
22096 * libio/Makefile (CFLAGS-fileops.c): Likewise.
22097 (CFLAGS-fputc.c): Likewise.
22098 (CFLAGS-fputwc.c): Likewise.
22099 (CFLAGS-freopen64.c): Likewise.
22100 (CFLAGS-freopen.c): Likewise.
22101 (CFLAGS-fseek.c): Likewise.
22102 (CFLAGS-fseeko64.c): Likewise.
22103 (CFLAGS-fseeko.c): Likewise.
22104 (CFLAGS-ftello64.c): Likewise.
22105 (CFLAGS-ftello.c): Likewise.
22106 (CFLAGS-fwide.c): Likewise.
22107 (CFLAGS-genops.c): Likewise.
22108 (CFLAGS-getc.c): Likewise.
22109 (CFLAGS-getchar.c): Likewise.
22110 (CFLAGS-getwc.c): Likewise.
22111 (CFLAGS-getwchar.c): Likewise.
22112 (CFLAGS-iofclose.c): Likewise.
22113 (CFLAGS-iofflush.c): Likewise.
22114 (CFLAGS-iofgetpos64.c): Likewise.
22115 (CFLAGS-iofgetpos.c): Likewise.
22116 (CFLAGS-iofgets.c): Likewise.
22117 (CFLAGS-iofgetws.c): Likewise.
22118 (CFLAGS-iofputs.c): Likewise.
22119 (CFLAGS-iofputws.c): Likewise.
22120 (CFLAGS-iofread.c): Likewise.
22121 (CFLAGS-iofsetpos64.c): Likewise.
22122 (CFLAGS-iofsetpos.c): Likewise.
22123 (CFLAGS-ioftell.c): Likewise.
22124 (CFLAGS-iofwrite.c): Likewise.
22125 (CFLAGS-iogetdelim.c): Likewise.
22126 (CFLAGS-iogetline.c): Likewise.
22127 (CFLAGS-iogets.c): Likewise.
22128 (CFLAGS-iogetwline.c): Likewise.
22129 (CFLAGS-ioputs.c): Likewise.
22130 (CFLAGS-ioseekoff.c): Likewise.
22131 (CFLAGS-ioseekpos.c): Likewise.
22132 (CFLAGS-iosetbuffer.c): Likewise.
22133 (CFLAGS-iosetvbuf.c): Likewise.
22134 (CFLAGS-ioungetc.c): Likewise.
22135 (CFLAGS-ioungetwc.c): Likewise.
22136 (CFLAGS-oldfileops.c): Likewise.
22137 (CFLAGS-oldiofclose.c): Likewise.
22138 (CFLAGS-oldiofgetpos64.c): Likewise.
22139 (CFLAGS-oldiofgetpos.c): Likewise.
22140 (CFLAGS-oldiofsetpos64.c): Likewise.
22141 (CFLAGS-oldiofsetpos.c): Likewise.
22142 (CFLAGS-peekc.c): Likewise.
22143 (CFLAGS-putc.c): Likewise.
22144 (CFLAGS-putchar.c): Likewise.
22145 (CFLAGS-putwc.c): Likewise.
22146 (CFLAGS-putwchar.c): Likewise.
22147 (CFLAGS-rewind.c): Likewise.
22148 (CFLAGS-wfileops.c): Likewise.
22149 (CFLAGS-wgenops.c): Likewise.
22150 (CFLAGS-oldiofopen.c): Likewise.
22151 (CFLAGS-iofopen.c): Likewise.
22152 (CFLAGS-iofopen64.c): Likewise.
22153 (CFLAGS-oldtmpfile.c): Likewise.
22154 (CFLAGS-tst_putwc.c): Likewise.
22155 * locale/Makefile (CFLAGS-md5.c): Likewise.
22156 (CFLAGS-charmap.c): Likewise.
22157 (CFLAGS-locfile.c): Likewise.
22158 (CFLAGS-charmap-dir.c): Likewise.
22159 * login/Makefile (CFLAGS-grantpt.c): Likewise.
22160 (CFLAGS-getpt.c): Likewise.
22161 (CFLAGS-pt_chown.c): Likewise.
22162 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
22163 (CFLAGS-obstack.c): Likewise.
22164 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
22165 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
22166 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
22167 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
22168 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
22169 (CFLAGS-test-tgmath.c): Likewise.
22170 (CFLAGS-test-tgmath2.c): Likewise.
22171 (CFLAGS-test-tgmath-ret.c): Likewise.
22172 (CFLAGS-test-powl.c): Likewise.
22173 (CFLAGS-test-snan.c): Likewise.
22174 (CFLAGS-test-signgam-finite.c): Likewise.
22175 (CFLAGS-test-signgam-finite-c99.c): Likewise.
22176 (CFLAGS-test-signgam-finite-c11.c): Likewise.
22177 (CFLAGS-test-signgam-uchar.c): Likewise.
22178 (CFLAGS-test-signgam-uchar-init.c): Likewise.
22179 (CFLAGS-test-signgam-uchar-static.c): Likewise.
22180 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
22181 (CFLAGS-test-signgam-uint.c): Likewise.
22182 (CFLAGS-test-signgam-uint-init.c): Likewise.
22183 (CFLAGS-test-signgam-uint-static.c): Likewise.
22184 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
22185 (CFLAGS-test-signgam-ullong.c): Likewise.
22186 (CFLAGS-test-signgam-ullong-init.c): Likewise.
22187 (CFLAGS-test-signgam-ullong-static.c): Likewise.
22188 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
22189 (CFLAGS-test-math-cxx11.cc): Likewise.
22190 (CFLAGS-test-math-isinff.cc): Likewise.
22191 (CFLAGS-test-math-iszero.cc): Likewise.
22192 (CFLAGS-test-math-issignaling.cc): Likewise.
22193 (CFLAGS-test-math-iscanonical.cc): Likewise.
22194 (CFLAGS-test-iszero-excess-precision.c): Likewise.
22195 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
22196 (CFLAGS-test-flt-eval-method.c): Likewise.
22197 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
22198 (CFLAGS-test-finite-macros.c): Likewise.
22199 * misc/Makefile (CFLAGS-select.c): Likewise.
22200 (CFLAGS-tsearch.c): Likewise.
22201 (CFLAGS-lsearch.c): Likewise.
22202 (CFLAGS-pselect.c): Likewise.
22203 (CFLAGS-readv.c): Likewise.
22204 (CFLAGS-writev.c): Likewise.
22205 (CFLAGS-preadv.c): Likewise.
22206 (CFLAGS-preadv64.c): Likewise.
22207 (CFLAGS-pwritev.c): Likewise.
22208 (CFLAGS-pwritev64.c): Likewise.
22209 (CFLAGS-preadv2.c): Likewise.
22210 (CFLAGS-preadv64v2.c): Likewise.
22211 (CFLAGS-pwritev2.c): Likewise.
22212 (CFLAGS-pwritev64v2.c): Likewise.
22213 (CFLAGS-usleep.c): Likewise.
22214 (CFLAGS-syslog.c): Likewise.
22215 (CFLAGS-error.c): Likewise.
22216 (CFLAGS-getpass.c): Likewise.
22217 (CFLAGS-mkstemp.c): Likewise.
22218 (CFLAGS-mkstemp64.c): Likewise.
22219 (CFLAGS-getsysstats.c): Likewise.
22220 (CFLAGS-getusershell.c): Likewise.
22221 (CFLAGS-err.c): Likewise.
22222 (CFLAGS-tst-tsearch.c): Likewise.
22223 (CFLAGS-msync.c): Likewise.
22224 (CFLAGS-fdatasync.c): Likewise.
22225 (CFLAGS-fsync.c): Likewise.
22226 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
22227 (CFLAGS-unwind.c): Likewise.
22228 (CFLAGS-unwind-forcedunwind.c): Likewise.
22229 (CFLAGS-pthread_cancel.c): Likewise.
22230 (CFLAGS-pthread_setcancelstate.c): Likewise.
22231 (CFLAGS-pthread_setcanceltype.c): Likewise.
22232 (CFLAGS-cancellation.c): Likewise.
22233 (CFLAGS-libc-cancellation.c): Likewise.
22234 (CFLAGS-pthread_exit.c): Likewise.
22235 (CFLAGS-forward.c): Likewise.
22236 (CFLAGS-pthread_testcancel.c): Likewise.
22237 (CFLAGS-pthread_join.c): Likewise.
22238 (CFLAGS-pthread_timedjoin.c): Likewise.
22239 (CFLAGS-pthread_once.c): Likewise.
22240 (CFLAGS-pthread_cond_wait.c): Likewise.
22241 (CFLAGS-sem_wait.c): Likewise.
22242 (CFLAGS-sem_timedwait.c): Likewise.
22243 (CFLAGS-fcntl.c): Likewise.
22244 (CFLAGS-lockf.c): Likewise.
22245 (CFLAGS-pread.c): Likewise.
22246 (CFLAGS-pread64.c): Likewise.
22247 (CFLAGS-pwrite.c): Likewise.
22248 (CFLAGS-pwrite64.c): Likewise.
22249 (CFLAGS-wait.c): Likewise.
22250 (CFLAGS-waitpid.c): Likewise.
22251 (CFLAGS-sigwait.c): Likewise.
22252 (CFLAGS-msgrcv.c): Likewise.
22253 (CFLAGS-msgsnd.c): Likewise.
22254 (CFLAGS-tcdrain.c): Likewise.
22255 (CFLAGS-open.c): Likewise.
22256 (CFLAGS-open64.c): Likewise.
22257 (CFLAGS-pause.c): Likewise.
22258 (CFLAGS-recv.c): Likewise.
22259 (CFLAGS-send.c): Likewise.
22260 (CFLAGS-accept.c): Likewise.
22261 (CFLAGS-sendto.c): Likewise.
22262 (CFLAGS-connect.c): Likewise.
22263 (CFLAGS-recvfrom.c): Likewise.
22264 (CFLAGS-recvmsg.c): Likewise.
22265 (CFLAGS-sendmsg.c): Likewise.
22266 (CFLAGS-close.c): Likewise.
22267 (CFLAGS-read.c): Likewise.
22268 (CFLAGS-write.c): Likewise.
22269 (CFLAGS-nanosleep.c): Likewise.
22270 (CFLAGS-sigsuspend.c): Likewise.
22271 (CFLAGS-msync.c): Likewise.
22272 (CFLAGS-fdatasync.c): Likewise.
22273 (CFLAGS-fsync.c): Likewise.
22274 (CFLAGS-pt-system.c): Likewise.
22275 (CFLAGS-tst-cleanup2.c): Likewise.
22276 (CFLAGS-tst-cleanupx2.c): Likewise.
22277 (CFLAGS-flockfile.c): Likewise.
22278 (CFLAGS-ftrylockfile.c): Likewise.
22279 (CFLAGS-funlockfile.c): Likewise.
22280 (CFLAGS-tst-initializers1.c): Likewise.
22281 (CFLAGS-tst-initializers1-c89.c): Likewise.
22282 (CFLAGS-tst-initializers1-c99.c): Likewise.
22283 (CFLAGS-tst-initializers1-c11.c): Likewise.
22284 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
22285 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
22286 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
22287 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
22288 (CFLAGS-nscd_getgr_r.c): Likewise.
22289 (CFLAGS-nscd_gethst_r.c): Likewise.
22290 (CFLAGS-nscd_getai.c): Likewise.
22291 (CFLAGS-nscd_initgroups.c): Likewise.
22292 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
22293 (CFLAGS-pause.c): Likewise.
22294 (CFLAGS-pread.c): Likewise.
22295 (CFLAGS-pread64.c): Likewise.
22296 (CFLAGS-pwrite.c): Likewise.
22297 (CFLAGS-pwrite64.c): Likewise.
22298 (CFLAGS-sleep.c): Likewise.
22299 (CFLAGS-wait.c): Likewise.
22300 (CFLAGS-waitid.c): Likewise.
22301 (CFLAGS-waitpid.c): Likewise.
22302 (CFLAGS-getopt.c): Likewise.
22303 (CFLAGS-wordexp.c): Likewise.
22304 (CFLAGS-sysconf.c): Likewise.
22305 (CFLAGS-pathconf.c): Likewise.
22306 (CFLAGS-fpathconf.c): Likewise.
22307 (CFLAGS-spawn.c): Likewise.
22308 (CFLAGS-spawnp.c): Likewise.
22309 (CFLAGS-spawni.c): Likewise.
22310 (CFLAGS-glob.c): Likewise.
22311 (CFLAGS-glob64.c): Likewise.
22312 (CFLAGS-getconf.c): Likewise.
22313 (CFLAGS-nanosleep.c): Likewise.
22314 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
22315 (CFLAGS-getpwent.c): Likewise.
22316 (CFLAGS-getpw.c): Likewise.
22317 (CFLAGS-fgetpwent_r.c): Likewise.
22318 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
22319 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
22320 (CFLAGS-mq_timedreceive.c): Likewise.
22321 (CFLAGS-mq_timedsend.c): Likewise.
22322 (CFLAGS-clock_nanosleep.c): Likewise.
22323 (CFLAGS-librt-cancellation.c): Likewise.
22324 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
22325 (CFLAGS-getspent.c): Likewise.
22326 (CFLAGS-fgetspent.c): Likewise.
22327 (CFLAGS-fgetspent_r.c): Likewise.
22328 (CFLAGS-putspent.c): Likewise.
22329 (CFLAGS-getspnam.c): Likewise.
22330 (CFLAGS-getspnam_r.c): Likewise.
22331 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
22332 (CFLAGS-sigsuspend.c): Likewise.
22333 (CFLAGS-sigtimedwait.c): Likewise.
22334 (CFLAGS-sigwait.c): Likewise.
22335 (CFLAGS-sigwaitinfo.c): Likewise.
22336 (CFLAGS-sigreturn.c): Likewise.
22337 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
22338 (CFLAGS-vfwprintf.c): Likewise.
22339 (CFLAGS-tmpfile.c): Likewise.
22340 (CFLAGS-tmpfile64.c): Likewise.
22341 (CFLAGS-tempname.c): Likewise.
22342 (CFLAGS-psignal.c): Likewise.
22343 (CFLAGS-vprintf.c): Likewise.
22344 (CFLAGS-cuserid.c): Likewise.
22345 (CFLAGS-errlist.c): Likewise.
22346 (CFLAGS-siglist.c): Likewise.
22347 (CFLAGS-scanf15.c): Likewise.
22348 (CFLAGS-scanf17.c): Likewise.
22349 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
22350 (CFLAGS-msort.c): Likewise.
22351 (CFLAGS-qsort.c): Likewise.
22352 (CFLAGS-system.c): Likewise.
22353 (CFLAGS-fmtmsg.c): Likewise.
22354 (CFLAGS-strfmon.c): Likewise.
22355 (CFLAGS-strfmon_l.c): Likewise.
22356 (CFLAGS-strfromd.c): Likewise.
22357 (CFLAGS-strfromf.c): Likewise.
22358 (CFLAGS-strfroml.c): Likewise.
22359 (CFLAGS-tst-bsearch.c): Likewise.
22360 (CFLAGS-tst-qsort.c): Likewise.
22361 (CFLAGS-tst-makecontext2.c): Likewise.
22362 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
22363 (CFLAGS-xnlm_prot.c): Likewise.
22364 (CFLAGS-xrstat.c): Likewise.
22365 (CFLAGS-xyppasswd.c): Likewise.
22366 (CFLAGS-xklm_prot.c): Likewise.
22367 (CFLAGS-xrex.c): Likewise.
22368 (CFLAGS-xsm_inter.c): Likewise.
22369 (CFLAGS-xmount.c): Likewise.
22370 (CFLAGS-xrusers.c): Likewise.
22371 (CFLAGS-xspray.c): Likewise.
22372 (CFLAGS-xnfs_prot.c): Likewise.
22373 (CFLAGS-xrquota.c): Likewise.
22374 (CFLAGS-xkey_prot.c): Likewise.
22375 (CFLAGS-auth_unix.c): Likewise.
22376 (CFLAGS-key_call.c): Likewise.
22377 (CFLAGS-pmap_rmt.c): Likewise.
22378 (CFLAGS-clnt_perr.c): Likewise.
22379 (CFLAGS-openchild.c): Likewise.
22380 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
22381 (CFLAGS-msgsnd.c): Likewise.
22382 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
22383 * time/Makefile (CFLAGS-tzfile.c): Likewise.
22384 (CFLAGS-tzset.c): Likewise.
22385 (CFLAGS-getdate.c): Likewise.
22386 (CFLAGS-test_time.c): Likewise.
22387 (CPPFLAGS-tst-tzname.c): Likewise.
22388 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
22389 (CFLAGS-zic.c): Likewise.
22390 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
22391 (CFLAGS-wcswidth.c): Likewise.
22392 (CFLAGS-wcstol.c): Likewise.
22393 (CFLAGS-wcstoul.c): Likewise.
22394 (CFLAGS-wcstoll.c): Likewise.
22395 (CFLAGS-wcstoull.c): Likewise.
22396 (CFLAGS-wcstod.c): Likewise.
22397 (CFLAGS-wcstold.c): Likewise.
22398 (CFLAGS-wcstof128.c): Likewise.
22399 (CFLAGS-wcstof.c): Likewise.
22400 (CFLAGS-wcstol_l.c): Likewise.
22401 (CFLAGS-wcstoul_l.c): Likewise.
22402 (CFLAGS-wcstoll_l.c): Likewise.
22403 (CFLAGS-wcstoull_l.c): Likewise.
22404 (CFLAGS-wcstod_l.c): Likewise.
22405 (CFLAGS-wcstold_l.c): Likewise.
22406 (CFLAGS-wcstof128_l.c): Likewise.
22407 (CFLAGS-wcstof_l.c): Likewise.
22408 (CPPFLAGS-tst-wchar-h.c): Likewise.
22409 (CPPFLAGS-wcstold_l.c): Likewise.
22410
22411 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
22412
22413 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
22414
22415 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
22416 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22417
22418 * manual/tunables.texi (Hardware Capability Tunables): Document
22419 glibc.tune.cached_memopt.
22420 * sysdeps/powerpc/cpu-features.c: New file.
22421 * sysdeps/powerpc/cpu-features.h: New file.
22422 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
22423 _dl_powerpc_cpu_features.
22424 * sysdeps/powerpc/dl-tunables.list: New file.
22425 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
22426 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
22427 (INIT_ARCH): Initialize use_aligned_memopt.
22428 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
22429 IS_IN(rtld))]: Restrict dl_platform_init availability and
22430 initialize CPU features used by tunables.
22431 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
22432 Add memcpy-power8-cached.
22433 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
22434 __memcpy_power8_cached.
22435 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
22436 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
22437 New file.
22438
22439 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
22440
22441 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
22442 (CFLAGS-noinl-tester.c): Likewise.
22443 (CFLAGS-tst-strlen.c): Likewise.
22444 (CFLAGS-stratcliff.c): Likewise.
22445 (CFLAGS-test-ffs.c): Likewise.
22446 (CFLAGS-tst-inlcall.c): Likewise.
22447 (CFLAGS-tst-xbzero-opt.c): Likewise.
22448 (CFLAGS-memcpy.c): Likewise.
22449 (CFLAGS-wordcopy.c): Likewise.
22450
22451 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
22452
22453 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
22454 Store r15 on stack and add cfi rule.
22455 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
22456 Likewise.
22457
22458 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
22459
22460 [BZ #22577]
22461 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
22462 call.
22463
22464 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22465
22466 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22467 Add s_sinf-sse2 and s_sinf-fma.
22468 (CFLAGS-s_sinf-fma.c): New.
22469 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
22470 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22471 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22472
22473 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22474
22475 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22476
22477 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22478
22479 [BZ #22568]
22480 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22481 part of result to imaginary part of argument if it is zero and the
22482 real part of the argument is not finite.
22483 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22484 of result to real part of argument if it is zero and the imaginary
22485 part of the argument is not finite.
22486
22487 2017-12-07 Mike FABIAN <mfabian@redhat.com>
22488
22489 [BZ #22524]
22490 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22491 and to the list of locales to be built for testing.
22492 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22493 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22494 and build the collation rules upon that.
22495
22496 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22497
22498 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22499 * manual/math.texi (Mathematics): Document support for _Float32.
22500 * math/Makefile (test-types): Add float32.
22501 * math/Versions (GLIBC_2.27): Add _Float32 functions.
22502 * stdlib/Versions (GLIBC_2.27): Likewise.
22503 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22504 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22505 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22506 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22507 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22508 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22509 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22510 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22511 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22512 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22513 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22514 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22515 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22516 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22517 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22518 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22519 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22520 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22521 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22522 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22523 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22524 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22525 Likewise.
22526 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22527 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22528 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22529 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22530 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22532 Likewise.
22533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22534 Likewise.
22535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22536 Likewise.
22537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22538 Likewise.
22539
22540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22541 Likewise.
22542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22543 Likewise.
22544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22545 Likewise.
22546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22547 Likewise.
22548 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22549 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22550 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22551 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22552 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22553 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22554 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22555 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22556 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22557 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22558 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22559 Likewise.
22560 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22561 Likewise.
22562 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22563 Likewise.
22564 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22565 Likewise.
22566 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22567 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22568 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22569 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22570 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22571 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22572 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22573 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22574
22575 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22576
22577 * stdlib/strtof.c: Include <bits/floatn.h>
22578 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22579 and later undefine as macro. Define as weak alias if
22580 [!USE_WIDE_CHAR].
22581 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22582 and later undefine as macro. Define as weak alias if
22583 [USE_WIDE_CHAR].
22584 * stdlib/strtof_l.c: Include <bits/floatn.h>
22585 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22586 and later undefine as macro. Define as weak alias if
22587 [!USE_WIDE_CHAR].
22588 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22589 and later undefine as macro. Define as weak alias if
22590 [USE_WIDE_CHAR].
22591
22592 * stdlib/strfromf.c: Include <bits/floatn.h>.
22593 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22594 and later undefine as macro and define as weak alias.
22595
22596 * math/test-float32.h: New file.
22597
22598 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22599 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22600 (libm_alias_float_other_r): Create f32 alias.
22601 (libm_alias_float_r): Use semicolon before call to
22602 libm_alias_float_other_r.
22603
22604 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22605 second argument to libm_alias_float_other.
22606 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22607 second argument to libm_alias_float_other.
22608 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22609 argument to libm_alias_float_other.
22610
22611 [BZ #22561]
22612 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22613 real part of result for argument 0 + i * NaN.
22614 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22615 results for tests of 0 + i * NaN.
22616
22617 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22618
22619 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22620
22621 2017-12-06 David S. Miller <davem@davemloft.net>
22622
22623 * sysdeps/sparc/fpu/libm-test-ulps: Update
22624 exp_{downward,towardzero,upward} ulps.
22625
22626 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22627
22628 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22629 variables static.
22630
22631 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22632 (Y0_2D): Likewise.
22633 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22634 (Y0_2D): Likewise.
22635 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22636 (Y0_2D): Likewise.
22637 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22638 (Y0_2D): Likewise.
22639
22640 2017-12-06 Mike FABIAN <mfabian@redhat.com>
22641
22642 [BZ #22515]
22643 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22644 and to the list of locales to be built for testing.
22645 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22646 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22647 and build the collation rules upon that.
22648
22649 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22650
22651 * NEWS: Add sinf to list of optimized functions.
22652
22653 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22654
22655 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22656 (__HAVE_FLOAT32X): Likewise.
22657 * manual/math.texi (Mathematics): Document support for _Float64
22658 and _Float32x.
22659 * math/Makefile (test-types): Add float64 and float32x.
22660 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22661 functions.
22662 * stdlib/Versions (GLIBC_2.27): Likewise.
22663 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22664 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22665 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22666 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22667 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22668 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22669 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22670 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22671 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22672 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22673 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22674 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22675 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22676 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22677 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22678 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22679 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22680 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22681 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22682 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22683 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22684 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22685 Likewise.
22686 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22687 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22688 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22689 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22690 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22692 Likewise.
22693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22694 Likewise.
22695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22696 Likewise.
22697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22698 Likewise.
22699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22700 Likewise.
22701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22702 Likewise.
22703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22704 Likewise.
22705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22706 Likewise.
22707 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22708 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22709 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22710 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22711 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22712 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22713 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22714 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22715 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22716 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22717 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22718 Likewise.
22719 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22720 Likewise.
22721 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22722 Likewise.
22723 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22724 Likewise.
22725 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22726 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22727 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22728 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22729 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22730 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22731 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22732 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22733
22734 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22735
22736 * bits/floatn-common.h: Include <bits/long-double.h>.
22737 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22738 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22739 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22740 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22741 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22742 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22743 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22744 (__builtin_huge_valf64): Use __builtin_huge_vall.
22745 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22746 (__builtin_inff64): Use __builtin_infl.
22747 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22748 (__builtin_nanf64): Use __builtin_nanl.
22749 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22750 (__builtin_nansf64): Use __builtin_nansl.
22751
22752 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22753 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22754 Carlos O'Donnell <carlos@redhat.com>
22755
22756 * elf/dl-tunables.list: Add elision parameters.
22757 * manual/tunables.texi: Add entries about elision tunable.
22758 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22759 Add callback functions to dynamically enable/disable elision.
22760 Add multiple callbacks functions to set elision parameters.
22761 Deleted __libc_enable_secure check.
22762 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22763 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22764 * configure: Regenerated.
22765 * configure.ac: Option enable_lock_elision was deleted.
22766 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22767 * config.make.in: Remove references to enable_lock_elision.
22768 * manual/install.texi: Elision configure option was removed.
22769 * INSTALL: Regenerated to remove enable_lock_elision.
22770 * nptl/Makefile:
22771 Disable elision so it can verify error case for destroying a mutex.
22772 * sysdeps/powerpc/nptl/elide.h:
22773 Cleanup ENABLE_LOCK_ELISION check.
22774 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22775 * sysdeps/s390/configure: Regenerated.
22776 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22777 * nptl/tst-mutex8.c:
22778 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22779 * sysdeps/powerpc/powerpc32/sysdep.h:
22780 Deleted all ENABLE_LOCK_ELISION checks.
22781 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22782 * sysdeps/powerpc/sysdep.h: Likewise.
22783 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22784 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22785 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22786 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22787 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22788 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22789 enable-lock-elision.
22790
22791 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22792
22793 * stdlib/strtod.c: Include <bits/floatn.h>.
22794 (BUILD_DOUBLE): New macro.
22795 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22796 (strtof64): Define and later undefine as macro. Define as weak
22797 alias if [!USE_WIDE_CHAR].
22798 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22799 (wcstof64): Define and later undefine as macro. Define as weak
22800 alias if [USE_WIDE_CHAR].
22801 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22802 (strtof32x): Define and later undefine as macro. Define as weak
22803 alias if [!USE_WIDE_CHAR].
22804 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22805 (wcstof32x): Define and later undefine as macro. Define as weak
22806 alias if [USE_WIDE_CHAR].
22807 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22808 (BUILD_DOUBLE): New macro.
22809 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22810 (strtof64_l): Define and later undefine as macro. Define as weak
22811 alias if [!USE_WIDE_CHAR].
22812 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22813 (wcstof64_l): Define and later undefine as macro. Define as weak
22814 alias if [USE_WIDE_CHAR].
22815 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22816 (strtof32x_l): Define and later undefine as macro. Define as weak
22817 alias if [!USE_WIDE_CHAR].
22818 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22819 (wcstof32x_l): Define and later undefine as macro. Define as weak
22820 alias if [USE_WIDE_CHAR].
22821
22822 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22823
22824 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22825 (reduced): Use ones as double instead of integer.
22826
22827 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22828
22829 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22830
22831 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22832
22833 * stdlib/strfromd.c: Include <bits/floatn.h>.
22834 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22835 and later undefine as macro and define as weak alias.
22836 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22837 Likewise.
22838
22839 * math/test-float32x.h: New file.
22840 * math/test-float64.h: Likewise.
22841
22842 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22843 (libm_alias_double_other_r_f64): New macro.
22844 (libm_alias_double_other_r_f32x): Likewise.
22845 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22846 libm_alias_double_other_r_f32x.
22847 (libm_alias_double_r): Use semicolon before call to
22848 libm_alias_double_other_r.
22849 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22850 <bits/floatn.h>.
22851 (libm_alias_double_other_r_f64): New macro.
22852 (libm_alias_double_other_r_f32x): Likewise.
22853 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22854 libm_alias_double_other_r_f32x.
22855
22856 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22857
22858 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22859 int.
22860 (SINF_FUNC): Likewise. Replace floor with simple casts.
22861
22862 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22863
22864 [BZ #22517]
22865 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22866 and to the list of locales to be built for testing.
22867 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22868 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22869 and build the collation rules upon that.
22870
22871 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22872
22873 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22874 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22875 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22876 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22877 instead of __insn__xxx.
22878 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22879 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22880 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22881 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22882 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22883 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22884
22885 2017-12-05 Florian Weimer <fweimer@redhat.com>
22886
22887 Linux: Implement interfaces for memory protection keys
22888 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22889 xsignal, xsysconf.
22890 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22891 * support/xunistd.h (xsysconf): Declare.
22892 * support/xraise.c: New file.
22893 * support/xsigaction.c: Likewise.
22894 * support/xsignal.c: Likewise.
22895 * support/xsysconf.c: Likewise.
22896 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22897 pkey_set, pkey_get, pkey_mprotect.
22898 [misc] (tests): Add tst-pkey.
22899 (tst-pkey): Link with -lpthread.
22900 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22901 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22902 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22903 (PKEY_DISABLE_WRITE): Define.
22904 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22905 Declare.
22906 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22907 (SEGV_PKUERR): Add.
22908 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22909 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22910 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22911 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22912 Add.
22913 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22914 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22915 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22916 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22917 * sysdeps/unix/sysv/linux/**.abilist: Update.
22918
22919 2017-12-05 Florian Weimer <fweimer@redhat.com>
22920
22921 * support/tst-test_compare.c (subprocess): Use long long instead
22922 of long argument for consistent type width across 32-bit and
22923 64-bit architectures.
22924 (do_test): Adjust expected output.
22925
22926 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22927
22928 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22929 (cosf): Define using libm_alias_float.
22930 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22931 (fabsf): Define using libm_alias_float.
22932 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22933 (fmaf): Define using libm_alias_float.
22934 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22935 (rintf): Define using libm_alias_float.
22936 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22937 (sinf): Define using libm_alias_float.
22938 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22939 <libm-alias-float.h>.
22940 (modff): Define using libm_alias_float.
22941 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22942 <libm-alias-float.h>.
22943 (logbf): Define using libm_alias_float.
22944 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22945 <libm-alias-float.h>.
22946 (ceilf): Define using libm_alias_float.
22947 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22948 <libm-alias-float.h>.
22949 (copysignf): Define using libm_alias_float.
22950 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22951 <libm-alias-float.h>.
22952 (floorf): Define using libm_alias_float.
22953 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22954 <libm-alias-float.h>.
22955 (llrintf): Define using libm_alias_float.
22956 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22957 <libm-alias-float.h>.
22958 (llroundf): Define using libm_alias_float.
22959 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22960 <libm-alias-float.h>.
22961 (lrintf): Define using libm_alias_float.
22962 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22963 <libm-alias-float.h>.
22964 (lroundf): Define using libm_alias_float.
22965 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22966 <libm-alias-float.h>.
22967 (nearbyintf): Define using libm_alias_float.
22968 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22969 <libm-alias-float.h>.
22970 (rintf): Define using libm_alias_float.
22971 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22972 <libm-alias-float.h>.
22973 (roundf): Define using libm_alias_float.
22974 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22975 <libm-alias-float.h>.
22976 (truncf): Define using libm_alias_float.
22977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22978 Include <libm-alias-float.h>.
22979 (ceilf): Define using libm_alias_float.
22980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22981 Include <libm-alias-float.h>.
22982 (copysignf): Define using libm_alias_float.
22983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22984 Include <libm-alias-float.h>.
22985 (floorf): Define using libm_alias_float.
22986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22987 Include <libm-alias-float.h>.
22988 (llrintf): Define using libm_alias_float.
22989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22990 Include <libm-alias-float.h>.
22991 (llroundf): Define using libm_alias_float.
22992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22993 Include <libm-alias-float.h>.
22994 (logbf): Define using libm_alias_float.
22995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22996 Include <libm-alias-float.h>.
22997 (lrintf): Define using libm_alias_float.
22998 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22999 Include <libm-alias-float.h>.
23000 (lroundf): Define using libm_alias_float.
23001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
23002 Include <libm-alias-float.h>.
23003 (modff): Define using libm_alias_float.
23004 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
23005 Include <libm-alias-float.h>.
23006 (roundf): Define using libm_alias_float.
23007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
23008 Include <libm-alias-float.h>.
23009 (truncf): Define using libm_alias_float.
23010 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
23011 <libm-alias-float.h>.
23012 (llrintf): Define using libm_alias_float.
23013 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23014 <libm-alias-float.h>.
23015 (llroundf): Define using libm_alias_float.
23016 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
23017 <libm-alias-float.h>.
23018 (ceilf): Define using libm_alias_float.
23019 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
23020 <libm-alias-float.h>.
23021 (floorf): Define using libm_alias_float.
23022 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23023 <libm-alias-float.h>.
23024 (llroundf): Define using libm_alias_float.
23025 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23026 <libm-alias-float.h>.
23027 (lroundf): Define using libm_alias_float.
23028 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
23029 <libm-alias-float.h>.
23030 (roundf): Define using libm_alias_float.
23031 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
23032 <libm-alias-float.h>.
23033 (truncf): Define using libm_alias_float.
23034 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23035 <libm-alias-float.h>.
23036 (copysignf): Define using libm_alias_float.
23037 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
23038 <libm-alias-float.h>.
23039 (llrintf): Define using libm_alias_float.
23040 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
23041 <libm-alias-float.h>.
23042 (llroundf): Define using libm_alias_float.
23043 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
23044 <libm-alias-float.h>.
23045 (lrintf): Define using libm_alias_float.
23046 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
23047 <libm-alias-float.h>.
23048 (lroundf): Define using libm_alias_float.
23049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
23050 <libm-alias-float.h>.
23051 (ceilf): Define using libm_alias_float.
23052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
23053 <libm-alias-float.h>.
23054 (copysignf): Define using libm_alias_float.
23055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
23056 <libm-alias-float.h>.
23057 (cosf): Define using libm_alias_float.
23058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
23059 <libm-alias-float.h>.
23060 (floorf): Define using libm_alias_float.
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
23062 <libm-alias-float.h>.
23063 (llrintf): Define using libm_alias_float.
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
23065 <libm-alias-float.h>.
23066 (llroundf): Define using libm_alias_float.
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
23068 <libm-alias-float.h>.
23069 (logbf): Define using libm_alias_float.
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
23071 <libm-alias-float.h>.
23072 (modff): Define using libm_alias_float.
23073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
23074 <libm-alias-float.h>.
23075 (roundf): Define using libm_alias_float.
23076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
23077 <libm-alias-float.h>.
23078 (sinf): Define using libm_alias_float.
23079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
23080 <libm-alias-float.h>.
23081 (truncf): Define using libm_alias_float.
23082 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
23083 <libm-alias-float.h>.
23084 (ceilf): Define using libm_alias_float.
23085 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
23086 <libm-alias-float.h>.
23087 (copysignf): Define using libm_alias_float.
23088 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
23089 <libm-alias-float.h>.
23090 (floorf): Define using libm_alias_float.
23091 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
23092 <libm-alias-float.h>.
23093 (llrintf): Define using libm_alias_float.
23094 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
23095 <libm-alias-float.h>.
23096 (llroundf): Define using libm_alias_float.
23097 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
23098 <libm-alias-float.h>.
23099 (nearbyintf): Define using libm_alias_float.
23100 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
23101 <libm-alias-float.h>.
23102 (rintf): Define using libm_alias_float.
23103 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
23104 <libm-alias-float.h>.
23105 (roundf): Define using libm_alias_float.
23106 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
23107 <libm-alias-float.h>.
23108 (truncf): Define using libm_alias_float.
23109 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
23110 <libm-alias-float.h>.
23111 (ceilf): Define using libm_alias_float.
23112 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
23113 <libm-alias-float.h>.
23114 (floorf): Define using libm_alias_float.
23115 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
23116 <libm-alias-float.h>.
23117 (llroundf): Define using libm_alias_float.
23118 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
23119 <libm-alias-float.h>.
23120 (roundf): Define using libm_alias_float.
23121 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
23122 <libm-alias-float.h>.
23123 (truncf): Define using libm_alias_float.
23124 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
23125 <libm-alias-float.h>.
23126 (copysignf): Define using libm_alias_float.
23127 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
23128 <libm-alias-float.h>.
23129 (llrintf): Define using libm_alias_float.
23130 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
23131 <libm-alias-float.h>.
23132 (llroundf): Define using libm_alias_float.
23133 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
23134 <libm-alias-float.h>.
23135 (cosf): Define using libm_alias_float.
23136 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
23137 <libm-alias-float.h>.
23138 (llrintf): Define using libm_alias_float.
23139 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
23140 <libm-alias-float.h>.
23141 (llroundf): Define using libm_alias_float.
23142 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
23143 <libm-alias-float.h>.
23144 (sinf): Define using libm_alias_float.
23145
23146 2017-12-04 Florian Weimer <fweimer@redhat.com>
23147
23148 * support/check.h (TEST_COMPARE): Define.
23149 (support_test_compare_failure): Declare.
23150 * support/Makefile (libsupport-routines): Add
23151 support_test_compare_failure.
23152 (tests): Add tst-test_compare.
23153 * support /support_test_compare_failure.c: New file.
23154 * support/tst-test_compare.c: Likewise.
23155
23156 2017-12-04 Mike FABIAN <mfabian@redhat.com>
23157
23158 [BZ #22527]
23159 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
23160 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
23161 available, this rewrite of the collation rules does reproduce
23162 the test file in the same order.
23163
23164 2017-12-04 Mike FABIAN <mfabian@redhat.com>
23165
23166 [BZ #10580]
23167 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
23168 digraphs in the month and day names. Using single code points for
23169 digraphs is deprecated. While there are dedicated Unicode
23170 codepoints, for the digraphs, these are included for backwards
23171 compatibility and modern texts use a sequence of Basic Latin
23172 characters. See: https://www.unicode.org/faq/ligature_digraph.html
23173 This makes the month and day names agree exactly with CLDR now,
23174 CLDR does not use the single code points for the digraphs either.
23175
23176 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
23177
23178 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
23179
23180 2017-12-04 Joseph Myers <joseph@codesourcery.com>
23181
23182 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
23183 of floor.
23184
23185 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
23186
23187 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
23188 Define only for libc.so.
23189
23190 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
23191
23192 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23193 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
23194 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
23195 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
23196 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23197
23198 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23199
23200 [BZ #5997]
23201 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
23202
23203 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
23204
23205 [BZ libc/19170]
23206 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
23207 PREINIT_FUNCTION_WEAK is nonzero.
23208 (gmon_initializer): New function. Put procedure label for it in
23209 .init_array section.
23210 (_init): Don't call PREINIT_FUNCTION.
23211 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
23212 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
23213 value when map argument is null.
23214
23215 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
23216 depi instruction from PIC pc-relative sequence.
23217 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
23218 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
23219 (elf_machine_load_address): Likewise.
23220 (elf_machine_runtime_setup): Likewise.
23221
23222 2017-12-02 Joseph Myers <joseph@codesourcery.com>
23223
23224 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
23225 <libm-alias-double.h>.
23226 (logb): Define using libm_alias_double.
23227 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
23228 <libm-alias-double.h>.
23229 (copysign): Define using libm_alias_double.
23230 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
23231 <libm-alias-double.h>.
23232 (llrint): Define using libm_alias_double.
23233 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
23234 <libm-alias-double.h>.
23235 (llround): Define using libm_alias_double.
23236 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
23237 <libm-alias-double.h>.
23238 (lrint): Define using libm_alias_double.
23239 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
23240 <libm-alias-double.h>.
23241 (lround): Define using libm_alias_double.
23242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23243 Include <libm-alias-double.h>.
23244 (copysign): Define using libm_alias_double.
23245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
23246 Include <libm-alias-double.h>.
23247 (llrint): Define using libm_alias_double.
23248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
23249 Include <libm-alias-double.h>.
23250 (llround): Define using libm_alias_double.
23251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
23252 <libm-alias-double.h>.
23253 (logb): Define using libm_alias_double.
23254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
23255 Include <libm-alias-double.h>.
23256 (lrint): Define using libm_alias_double.
23257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
23258 Include <libm-alias-double.h>.
23259 (lround): Define using libm_alias_double.
23260 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
23261 <libm-alias-double.h>.
23262 (llrint): Define using libm_alias_double.
23263 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23264 <libm-alias-double.h>.
23265 (llround): Define using libm_alias_double.
23266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23267 <libm-alias-double.h>.
23268 (llround): Define using libm_alias_double.
23269 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23270 <libm-alias-double.h>.
23271 (lround): Define using libm_alias_double.
23272 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23273 <libm-alias-double.h>.
23274 (copysign): Define using libm_alias_double.
23275 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
23276 <libm-alias-double.h>.
23277 (llrint): Define using libm_alias_double.
23278 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
23279 <libm-alias-double.h>.
23280 (llround): Define using libm_alias_double.
23281 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
23282 <libm-alias-double.h>.
23283 (lrint): Define using libm_alias_double.
23284 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
23285 <libm-alias-double.h>.
23286 (lround): Define using libm_alias_double.
23287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
23288 <libm-alias-double.h>.
23289 (copysign): Define using libm_alias_double.
23290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
23291 <libm-alias-double.h>.
23292 (llrint): Define using libm_alias_double.
23293 (lrint): Likewise.
23294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
23295 <libm-alias-double.h>.
23296 (llround): Define using libm_alias_double.
23297 (lround): Likewise.
23298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
23299 <libm-alias-double.h>.
23300 (logb): Define using libm_alias_double.
23301 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
23302 <libm-alias-double.h>.
23303 (copysign): Define using libm_alias_double.
23304 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
23305 <libm-alias-double.h>.
23306 (llrint): Define using libm_alias_double.
23307 (lrint): Likewise.
23308 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
23309 <libm-alias-double.h>.
23310 (llround): Define using libm_alias_double.
23311 (lround): Likewise.
23312 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
23313 <libm-alias-double.h>.
23314 (llround): Define using libm_alias_double.
23315 (lround): Likewise.
23316 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
23317 <libm-alias-double.h>.
23318 (copysign): Define using libm_alias_double.
23319 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
23320 <libm-alias-double.h>.
23321 (llrint): Define using libm_alias_double.
23322 (lrint): Likewise.
23323 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
23324 <libm-alias-double.h>.
23325 (llround): Define using libm_alias_double.
23326 (lround): Likewise.
23327 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
23328 <libm-alias-double.h>.
23329 (llrint): Define using libm_alias_double.
23330 (lrint): Likewise.
23331 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
23332 <libm-alias-double.h>.
23333 (llround): Define using libm_alias_double.
23334 (lround): Likewise.
23335
23336 2017-12-01 Joseph Myers <joseph@codesourcery.com>
23337
23338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
23339 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
23340 compat symbol based on llround.
23341
23342 * sysdeps/powerpc/power7/fpu/s_logb.c
23343 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
23344 symbol based on __logb, not on logb.
23345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
23346 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
23348 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23349
23350 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
23351 (rint): Define using libm_alias_double.
23352 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
23353 <libm-alias-double.h>.
23354 (modf): Define using libm_alias_double.
23355 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
23356 <libm-alias-double.h>.
23357 (ceil): Define using libm_alias_double.
23358 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
23359 <libm-alias-double.h>.
23360 (floor): Define using libm_alias_double.
23361 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
23362 <libm-alias-double.h>.
23363 (nearbyint): Define using libm_alias_double.
23364 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
23365 <libm-alias-double.h>.
23366 (rint): Define using libm_alias_double.
23367 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
23368 <libm-alias-double.h>.
23369 (round): Define using libm_alias_double.
23370 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
23371 <libm-alias-double.h>.
23372 (trunc): Define using libm_alias_double.
23373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
23374 <libm-alias-double.h>.
23375 (ceil): Define using libm_alias_double.
23376 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
23377 Include <libm-alias-double.h>.
23378 (floor): Define using libm_alias_double.
23379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
23380 <libm-alias-double.h>.
23381 (modf): Define using libm_alias_double.
23382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
23383 Include <libm-alias-double.h>.
23384 (round): Define using libm_alias_double.
23385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
23386 Include <libm-alias-double.h>.
23387 (trunc): Define using libm_alias_double.
23388 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
23389 <libm-alias-double.h>.
23390 (ceil): Define using libm_alias_double.
23391 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
23392 <libm-alias-double.h>.
23393 (floor): Define using libm_alias_double.
23394 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
23395 <libm-alias-double.h>.
23396 (round): Define using libm_alias_double.
23397 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
23398 <libm-alias-double.h>.
23399 (trunc): Define using libm_alias_double.
23400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
23401 <libm-alias-double.h>.
23402 (ceil): Define using libm_alias_double.
23403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
23404 <libm-alias-double.h>.
23405 (floor): Define using libm_alias_double.
23406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
23407 <libm-alias-double.h>.
23408 (modf): Define using libm_alias_double.
23409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
23410 <libm-alias-double.h>.
23411 (round): Define using libm_alias_double.
23412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
23413 <libm-alias-double.h>.
23414 (trunc): Define using libm_alias_double.
23415 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
23416 <libm-alias-double.h>.
23417 (ceil): Define using libm_alias_double.
23418 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
23419 <libm-alias-double.h>.
23420 (floor): Define using libm_alias_double.
23421 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
23422 <libm-alias-double.h>.
23423 (nearbyint): Define using libm_alias_double.
23424 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
23425 <libm-alias-double.h>.
23426 (rint): Define using libm_alias_double.
23427 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
23428 <libm-alias-double.h>.
23429 (round): Define using libm_alias_double.
23430 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
23431 <libm-alias-double.h>.
23432 (trunc): Define using libm_alias_double.
23433 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
23434 <libm-alias-double.h>.
23435 (ceil): Define using libm_alias_double.
23436 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
23437 <libm-alias-double.h>.
23438 (floor): Define using libm_alias_double.
23439 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
23440 <libm-alias-double.h>.
23441 (round): Define using libm_alias_double.
23442 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
23443 <libm-alias-double.h>.
23444 (trunc): Define using libm_alias_double.
23445
23446 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
23447 (fabs): Define using libm_alias_double.
23448 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
23449 (fma): Define using libm_alias_double.
23450 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
23451 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
23452 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
23453 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
23454
23455 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23456
23457 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
23458
23459 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
23460 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
23461 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23462
23463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
23464 due redirect macro.
23465
23466 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
23467
23468 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
23469
23470 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23471
23472 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23473 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23474 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23475 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23476
23477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23478 (libm-sysdep_routines): Add s_nearbyintf-generic and
23479 s_nearbyint-generic.
23480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23481 New file.
23482 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23484 Likewise.
23485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23486 Likewise.
23487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23488 file.
23489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23490 Likewise.
23491
23492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23493 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23494 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23495 file.
23496 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23497 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23498 Likewise.
23499 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23500 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23502
23503 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23504 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23505 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23506 file.
23507 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23508 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23509 Likewise.
23510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23512 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23513
23514 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23515 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23516 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23517 file.
23518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23519 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23520 Likewise.
23521 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23522 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23524
23525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23526 (sysdep_calls): New rule.
23527 (sysdep_routines): Use sysdep_calls as base.
23528 (libm-sysdep_routines): Add generic rule for symbols shared with
23529 libc. Add s_copysign-generic and s_copysign-generic objects.
23530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23531 New file.
23532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23534 Likewise.
23535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23538
23539 2017-12-01 Mike FABIAN <mfabian@redhat.com>
23540
23541 [BZ #22519]
23542 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23543 the list of locales to be built for testing.
23544 * localedata/is_IS.UTF-8.in: New file.
23545 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23546 on iso14651_t1.
23547
23548 2017-12-01 Joseph Myers <joseph@codesourcery.com>
23549
23550 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23551 <libm-alias-float.h>.
23552 (fabsf): Define using libm_alias_float.
23553
23554 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23555
23556 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23557
23558 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23559
23560 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23561 <libm-alias-float.h>.
23562 (fabsf): Define using libm_alias_float.
23563 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23564 <libm-alias-float.h>.
23565 (lrintf): Define using libm_alias_float.
23566 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23567 <libm-alias-float.h>.
23568 (rintf): Define using libm_alias_float.
23569
23570 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23571 <libm-alias-double.h>.
23572 (fabs): Define using libm_alias_double.
23573 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23574 <libm-alias-double.h>.
23575 (lrint): Define using libm_alias_double.
23576 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23577 <libm-alias-double.h>.
23578 (rint): Define using libm_alias_double.
23579
23580 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23581 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23582 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23583 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23584 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23585 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23586 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23587 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23588 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23589 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23590 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23591 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23592 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23593 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23594 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23595 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23596 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23597 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23598 s_atan_template.c.
23599 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23600 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23601 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23602 s_ceil_template.c.
23603 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23604 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23605 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23606 s_cos_template.c.
23607 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23608 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23609 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23610 s_expm1_template.c.
23611 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23612 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23613 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23614 s_fabs_template.c.
23615 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23616 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23617 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23618 s_floor_template.c.
23619 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23620 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23621 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23622 s_frexp_template.c.
23623 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23624 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23625 s_lrint_template.c.
23626 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23627 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23628 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23629 s_modf_template.c.
23630 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23631 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23632 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23633 s_nearbyint_template.c.
23634 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23635 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23636 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23637 s_remquo_template.c.
23638 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23639 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23640 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23641 s_rint_template.c.
23642 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23643 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23644 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23645 s_sin_template.c.
23646 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23647 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23648 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23649 s_sincos_template.c.
23650 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23651 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23652 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23653 s_tan_template.c.
23654 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23655 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23656 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23657 s_tanh_template.c.
23658 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23659 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23660 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23661 s_trunc_template.c.
23662 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23663 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23664 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23665 s_atan.c instead of including s_atan.c.
23666 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23667 s_atanf.c instead of including s_atanf.c.
23668 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23669 s_atanl.c instead of including s_atanl.c.
23670 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23671 instead of s_atan.c.
23672 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23673 instead of s_atanf.c.
23674 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23675 instead of s_atanl.c.
23676
23677 * scripts/update-copyrights: Do not handle intl/plural.c
23678 specially.
23679
23680 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
23681
23682 [BZ #22432]
23683 * configure.ac (BISON): Require to be present.
23684 * configure: Regenerated.
23685 * intl/Makefile (generated): Add plural.c.
23686 [$(BISON) != no]: Make code unconditional.
23687 (plural.c): Change rule to $(objpfx)plural.c.
23688 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23689 * intl/plural.c: Remove.
23690 * manual/install.texi (Tools for Compilation): Document bison as
23691 required.
23692 * INSTALL: Regenerated.
23693
23694 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23695
23696 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23697 <libm-alias-double.h>.
23698 (llrint): Define using libm_alias_double.
23699 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23700 <libm-alias-float.h>.
23701 (llrintf): Define using libm_alias_float.
23702 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23703 <libm-alias-ldouble.h>.
23704 (llrintl): Define using libm_alias_ldouble.
23705
23706 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23707 declare_mgen_alias instead of weak_alias.
23708 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23709 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23710 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23711
23712 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23713
23714 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23715 Add add_n-generic.
23716 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23717 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23718 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23719
23720 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23721 Add submul_1-generic.
23722 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23723 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23724 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23725
23726 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23727 Add addmul_1-generic.
23728 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23729 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23730 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23731
23732 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23733 Add sub_n-generic.
23734 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23735 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23736 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23737
23738 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23739 Add mul_1-generic.
23740 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23741 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23742 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23743
23744 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23745
23746 According to CLDR, collation rules for Serbian and Bosnian
23747 should be the same as for Croatian.
23748
23749 [BZ #22534]
23750 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23751 and to the list of locales to be built for testing.
23752 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23753 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23754 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23755 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23756
23757 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23758
23759 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23760 to make test case pass.
23761 * localedata/hr_HR.UTF-8.in: Add more test strings.
23762
23763 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23764
23765 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23766
23767 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23768
23769 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23770 the list of locales to built for testing.
23771 * localedata/hr_HR.UTF-8.in: New file.
23772
23773 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23774
23775 [BZ #10580]
23776 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23777 iso14651_t1.
23778 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23779 CLDR (except use ligatures for the digraphs, CLDR does not use
23780 the ligatures), add first_workday, some fixes in the date and time
23781 formats.
23782 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23783 for Đ and đ.
23784 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23785 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23786 Add int_p_cs_precedes and int_n_cs_precedes.
23787 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23788 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23789 LC_MONETARY now).
23790 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23791 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23792 name_miss.
23793 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23794 and lang_lib. Change postal_fmt.
23795
23796 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23797
23798 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23799 <setjmp.h>.
23800 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23801 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23802 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23803 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23804 * sysdeps/generic/setjmpP.h: New file.
23805 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23806 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23807 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23808 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23809 Add jmp_buf-ssp.sym.
23810 (tests): Add tst-saved_mask-1.
23811
23812 2017-11-30 Arjun Shankar <arjun@redhat.com>
23813
23814 [BZ #22375]
23815 CVE-2017-17426
23816 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23817 instead of request2size.
23818
23819 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23820
23821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23822 (__lllrint): Remove alias.
23823 (lllrint): Likewise.
23824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23825 (__lllrintf): Likewise.
23826 (lllrintf): Likewise.
23827
23828 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23829 <libm-alias-float.h>.
23830 (copysignf): Define using libm_alias_float.
23831 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23832 <libm-alias-float.h>.
23833 (fabsf): Define using libm_alias_float.
23834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23835 Include <libm-alias-float.h>.
23836 (copysignf): Define using libm_alias_float.
23837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23838 <libm-alias-float.h>.
23839 (fabsf): Define using libm_alias_float.
23840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23841 <libm-alias-float.h>.
23842 (fdimf): Define using libm_alias_float.
23843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23844 <libm-alias-float.h>.
23845 (fmaf): Define using libm_alias_float.
23846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23847 <libm-alias-float.h>.
23848 (llrintf): Define using libm_alias_float.
23849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23850 Include <libm-alias-float.h>.
23851 (nearbyintf): Define using libm_alias_float.
23852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23853 <libm-alias-float.h>.
23854 (rintf): Define using libm_alias_float.
23855 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23856 <libm-alias-float.h>.
23857 (llrintf): Define using libm_alias_float.
23858 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23859 <libm-alias-float.h>.
23860 (lrintf): Define using libm_alias_float.
23861 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23862 <libm-alias-float.h>.
23863 (nearbyintf): Define using libm_alias_float.
23864 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23865 <libm-alias-float.h>.
23866 (rintf): Define using libm_alias_float.
23867 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23868 <libm-alias-float.h>.
23869 (ceilf): Define using libm_alias_float.
23870 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23871 <libm-alias-float.h>.
23872 (floorf): Define using libm_alias_float.
23873 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23874 <libm-alias-float.h>.
23875 (fmaf): Define using libm_alias_float.
23876 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23877 <libm-alias-float.h>.
23878 (lrintf): Define using libm_alias_float.
23879 (llrintf): Likewise.
23880 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23881 <libm-alias-float.h>.
23882 (nearbyintf): Define using libm_alias_float.
23883 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23884 <libm-alias-float.h>.
23885 (rintf): Define using libm_alias_float.
23886 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23887 <libm-alias-float.h>.
23888 (truncf): Define using libm_alias_float.
23889 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23890 <libm-alias-float.h>.
23891 (copysignf): Define using libm_alias_float.
23892 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23893 <libm-alias-float.h>.
23894 (fabsf): Define using libm_alias_float.
23895 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23896 <libm-alias-float.h>.
23897 (lrintf): Define using libm_alias_float.
23898 (llrintf): Likewise.
23899 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23900 <libm-alias-float.h>.
23901 (nearbyintf): Define using libm_alias_float.
23902 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23903 <libm-alias-float.h>.
23904 (rintf): Define using libm_alias_float.
23905
23906 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23907
23908 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23909 <libm-alias-double.h>.
23910 (copysign): Define using libm_alias_double.
23911 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23912 <libm-alias-double.h>.
23913 (fabs): Define using libm_alias_double.
23914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23915 Include <libm-alias-double.h>.
23916 (copysign): Define using libm_alias_double.
23917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23918 <libm-alias-double.h>.
23919 (fabs): Define using libm_alias_double.
23920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23921 <libm-alias-double.h>.
23922 (fdim): Define using libm_alias_double.
23923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23924 <libm-alias-double.h>.
23925 (fma): Define using libm_alias_double.
23926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23927 <libm-alias-double.h>.
23928 (llrint): Define using libm_alias_double.
23929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23930 Include <libm-alias-double.h>.
23931 (nearbyint): Define using libm_alias_double.
23932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23933 <libm-alias-double.h>.
23934 (rint): Define using libm_alias_double.
23935 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23936 <libm-alias-double.h>.
23937 (fabs): Define using libm_alias_double.
23938 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23939 <libm-alias-double.h>.
23940 (llrint): Define using libm_alias_double.
23941 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23942 <libm-alias-double.h>.
23943 (nearbyint): Define using libm_alias_double.
23944 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23945 <libm-alias-double.h>.
23946 (rint): Define using libm_alias_double.
23947 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23948 <libm-alias-double.h>.
23949 (ceil): Define using libm_alias_double.
23950 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23951 <libm-alias-double.h>.
23952 (floor): Define using libm_alias_double.
23953 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23954 <libm-alias-double.h>.
23955 (fma): Define using libm_alias_double.
23956 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23957 <libm-alias-double.h>.
23958 (lrint): Define using libm_alias_double.
23959 (llrint): Likewise.
23960 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23961 <libm-alias-double.h>.
23962 (nearbyint): Define using libm_alias_double.
23963 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23964 <libm-alias-double.h>.
23965 (rint): Define using libm_alias_double.
23966 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23967 <libm-alias-double.h>.
23968 (trunc): Define using libm_alias_double.
23969 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23970 <libm-alias-double.h>.
23971 (copysign): Define using libm_alias_double.
23972 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23973 <libm-alias-double.h>.
23974 (fabs): Define using libm_alias_double.
23975 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23976 <libm-alias-double.h>.
23977 (lrint): Define using libm_alias_double.
23978 (llrint): Likewise.
23979 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23980 <libm-alias-double.h>.
23981 (nearbyint): Define using libm_alias_double.
23982 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23983 <libm-alias-double.h>.
23984 (rint): Define using libm_alias_double.
23985
23986 [BZ #22229]
23987 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23988 <math_ldbl_opt.h>.
23989 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23990
23991 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23992 SPARC --disable-multi-arch glibc variants.
23993
23994 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23995 <libm-alias-float.h>.
23996 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23997 if [SHARED].
23998 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23999 <libm-alias-float.h>.
24000 (exp2f): Define using libm_alias_float, or libm_alias_float_other
24001 if [SHARED].
24002 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
24003 <libm-alias-float.h>.
24004 (exp2f): Define using libm_alias_float, or libm_alias_float_other
24005 if [SHARED].
24006 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
24007 <libm-alias-float.h>.
24008 (exp2f): Define using libm_alias_float, or libm_alias_float_other
24009 if [SHARED].
24010 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
24011 <libm-alias-float.h>.
24012 (exp2f): Define using libm_alias_float, or libm_alias_float_other
24013 if [SHARED].
24014 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
24015 <libm-alias-float.h>.
24016 (ceilf): Define using libm_alias_float.
24017 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
24018 <libm-alias-float.h>.
24019 (floorf): Define using libm_alias_float.
24020 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
24021 <libm-alias-float.h>.
24022 (fmaf): Define using libm_alias_float.
24023 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
24024 <libm-alias-float.h>.
24025 (nearbyintf): Define using libm_alias_float.
24026 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
24027 <libm-alias-float.h>.
24028 (rintf): Define using libm_alias_float.
24029 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
24030 <libm-alias-float.h>.
24031 (truncf): Define using libm_alias_float.
24032 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
24033 (copysignf): Define using libm_alias_float.
24034 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
24035 (cosf): Define using libm_alias_float.
24036 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24037 (fabsf): Define using libm_alias_float.
24038 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24039 (fmaxf): Define using libm_alias_float.
24040 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
24041 (fminf): Define using libm_alias_float.
24042 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
24043 (llrintf): Define using libm_alias_float.
24044 [!__ILP32__] (lrintf): Likewise.
24045 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
24046 (sincosf): Define using libm_alias_float.
24047 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
24048 (sinf): Define using libm_alias_float.
24049 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
24050 (lrintf): Define using libm_alias_float.
24051
24052 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
24053 <libm-alias-double.h>.
24054 (atan): Define using libm_alias_double.
24055 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
24056 <libm-alias-double.h>.
24057 (ceil): Define using libm_alias_double.
24058 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
24059 <libm-alias-double.h>.
24060 (floor): Define using libm_alias_double.
24061 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
24062 <libm-alias-double.h>.
24063 (fma): Define using libm_alias_double.
24064 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
24065 <libm-alias-double.h>.
24066 (nearbyint): Define using libm_alias_double.
24067 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
24068 <libm-alias-double.h>.
24069 (rint): Define using libm_alias_double.
24070 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
24071 <libm-alias-double.h>.
24072 (sin): Define using libm_alias_double.
24073 (cos): Likewise.
24074 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
24075 <libm-alias-double.h>.
24076 (tan): Define using libm_alias_double.
24077 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
24078 <libm-alias-double.h>.
24079 (trunc): Define using libm_alias_double.
24080 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
24081 (copysign): Define using libm_alias_double.
24082 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
24083 (fabs): Define using libm_alias_double.
24084 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
24085 (fmax): Define using libm_alias_double.
24086 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
24087 (fmin): Define using libm_alias_double.
24088 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
24089 (llrint): Define using libm_alias_double.
24090 [!__ILP32__] (lrint): Likewise.
24091 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
24092 (lrint): Define using libm_alias_double.
24093
24094 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24095
24096 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24097 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
24098 objects.
24099 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
24100 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
24101 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
24102 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
24103 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
24104 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24105
24106 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24107 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
24108 objects.
24109 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
24110 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
24111 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
24112 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
24113 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
24114 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24115
24116 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24117 (libm-sysdep_routines): Add s_nearbyint-generic and
24118 s_nearbyintf-generic objects.
24119 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
24120 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
24121 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
24122 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
24123 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
24124 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
24125
24126 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24127 Add s_finitef-generic and s_finite-generic objects.
24128 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
24129 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
24130 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
24131 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
24132 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
24133 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
24134
24135 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24136 Add s_isinff-generic and s_isinf-generic objects.
24137 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
24138 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
24139 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
24140 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
24141 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
24142 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24143
24144 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24145 Add s_isnanf-generic and s_isnan-generic objects.
24146 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
24147 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
24148 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
24149 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
24150 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
24151 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24152
24153 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
24154 macro.
24155 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
24156 rule.
24157 (sysdep_routines): Use sysdep_calls as base.
24158 (libm-sysdep_routines): Add generic rule for symbols shared with
24159 libc. Add s_signbit-generic and s_signbitf-generic objects.
24160 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
24161 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
24162 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
24163 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
24164 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
24165 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24166
24167 2017-11-29 Joseph Myers <joseph@codesourcery.com>
24168
24169 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
24170 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
24171 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
24172 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
24173 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
24174 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
24175 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
24176 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
24177 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
24178 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
24179 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
24180 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
24181 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
24182 libm_alias_float_r.
24183 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
24184 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
24185 (logf): Likewise.
24186 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
24187 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
24188 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
24189 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
24190 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
24191 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
24192 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
24193 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
24194 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
24195 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
24196 libm_alias_float.
24197 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
24198 (cosf): Likewise.
24199 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
24200 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
24201 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
24202 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
24203 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
24204 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
24205 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
24206 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
24207 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
24208 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
24209 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
24210 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
24211 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
24212 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
24213 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
24214 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
24215 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
24216 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
24217 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
24218 libm_alias_float.
24219 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
24220 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
24221 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
24222 * sysdeps/ia64/fpu/w_lgammaf_main.c
24223 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
24224 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
24225
24226 2017-11-28 Mike FABIAN <mfabian@redhat.com>
24227 Alexandre Oliva <aoliva@redhat.com>
24228
24229 [BZ #17750]
24230 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
24231 * localedata/fr_CA.UTF-8.in: New file with test data for backward
24232 accents sorting.
24233 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
24234 sorting.
24235 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
24236 * localedata/locales/de_DE (LC_COLLATE): Likewise.
24237 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
24238 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
24239 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
24240 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
24241 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
24242 instead of “ifdef DIACRIT_BACKWARD”.
24243
24244 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24245
24246 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
24247 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
24248 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
24249 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
24250 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
24251 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
24252 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
24253 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
24254 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
24255 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
24256 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
24257 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
24258 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
24259 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
24260 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
24261 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
24262 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
24263 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
24264 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24265 ($(have-as-vis3) == yes): Remove conditional.
24266 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
24267 Likewise.
24268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
24269 file.
24270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
24271 file.
24272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
24273 file.
24274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
24275 file.
24276 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
24277 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
24278 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
24279 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
24280 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
24281 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
24282 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
24283 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
24284
24285 2017-11-29 Joseph Myers <joseph@codesourcery.com>
24286
24287 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
24288 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
24289 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
24290 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
24291 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
24292 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
24293 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
24294 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
24295 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
24296 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
24297 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
24298 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
24299 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
24300 libm_alias_double_r.
24301 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
24302 (log): Likewise.
24303 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
24304 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
24305 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
24306 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
24307 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
24308 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
24309 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
24310 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
24311 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
24312 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
24313 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
24314 libm_alias_double.
24315 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
24316 (cos): Likewise.
24317 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
24318 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
24319 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
24320 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
24321 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
24322 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
24323 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
24324 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
24325 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
24326 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
24327 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
24328 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
24329 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
24330 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
24331 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
24332 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
24333 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
24334 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
24335 libm_alias_double.
24336 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
24337 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
24338 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
24339 * sysdeps/ia64/fpu/w_lgamma_main.c
24340 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
24341 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
24342
24343 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
24344
24345 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
24346 address of $global$ into %dp register earlier. Use pc-relative
24347 instruction sequence for PIC case.
24348
24349 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24350
24351 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
24352 (asinhf): Define using libm_alias_float.
24353 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
24354 (atanf): Define using libm_alias_float.
24355 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
24356 (cbrtf): Define using libm_alias_float.
24357 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
24358 (ceilf): Define using libm_alias_float.
24359 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
24360 (copysignf): Define using libm_alias_float.
24361 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
24362 (expm1f): Define using libm_alias_float.
24363 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
24364 (fabsf): Define using libm_alias_float.
24365 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
24366 (floorf): Define using libm_alias_float.
24367 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24368 (fmaxf): Define using libm_alias_float.
24369 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
24370 (fminf): Define using libm_alias_float.
24371 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
24372 (frexpf): Define using libm_alias_float.
24373 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
24374 (llrintf): Define using libm_alias_float.
24375 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
24376 (logbf): Define using libm_alias_float.
24377 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
24378 (lrintf): Define using libm_alias_float.
24379 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
24380 (nearbyintf): Define using libm_alias_float.
24381 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
24382 (remquof): Define using libm_alias_float.
24383 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
24384 (rintf): Define using libm_alias_float.
24385 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
24386 (truncf): Define using libm_alias_float.
24387 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
24388 <libm-alias-float.h>.
24389 (exp2f): Define using libm_alias_float, or libm_alias_float_other
24390 if [SHARED].
24391 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
24392 <libm-alias-float.h>.
24393 (expf): Define using libm_alias_float, or libm_alias_float_other
24394 if [SHARED].
24395 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
24396 <libm-alias-float.h>.
24397 (log2f): Define using libm_alias_float, or libm_alias_float_other
24398 if [SHARED].
24399 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
24400 <libm-alias-float.h>.
24401 (logf): Define using libm_alias_float, or libm_alias_float_other
24402 if [SHARED].
24403 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
24404 <libm-alias-float.h>.
24405 (powf): Define using libm_alias_float, or libm_alias_float_other
24406 if [SHARED].
24407 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
24408 <libm-alias-float.h>.
24409 (cosf): Define using libm_alias_float.
24410 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
24411 <libm-alias-float.h>.
24412 (sincosf): Define using libm_alias_float.
24413 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
24414 <libm-alias-float.h>.
24415 (sinf): Define using libm_alias_float.
24416 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24417 (fmaxf): Define using libm_alias_float.
24418 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
24419 (fminf): Define using libm_alias_float.
24420 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24421 <libm-alias-float.h>.
24422 (fmaf): Define using libm_alias_float.
24423
24424 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
24425 (asinh): Define using libm_alias_double.
24426 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
24427 (atan): Define using libm_alias_double.
24428 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
24429 (cbrt): Define using libm_alias_double.
24430 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
24431 (ceil): Define using libm_alias_double.
24432 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
24433 (copysign): Define using libm_alias_double.
24434 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
24435 (expm1): Define using libm_alias_double.
24436 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
24437 (fabs): Define using libm_alias_double.
24438 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
24439 (fdim): Define using libm_alias_double.
24440 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
24441 (floor): Define using libm_alias_double.
24442 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
24443 (fmax): Define using libm_alias_double.
24444 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
24445 (fmin): Define using libm_alias_double.
24446 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
24447 (frexp): Define using libm_alias_double.
24448 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
24449 (llrint): Define using libm_alias_double.
24450 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
24451 (logb): Define using libm_alias_double.
24452 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
24453 (lrint): Define using libm_alias_double.
24454 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
24455 (nearbyint): Define using libm_alias_double.
24456 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
24457 (remquo): Define using libm_alias_double.
24458 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
24459 (rint): Define using libm_alias_double.
24460 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
24461 (trunc): Define using libm_alias_double.
24462 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
24463 (fmax): Define using libm_alias_double.
24464 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
24465 (fmin): Define using libm_alias_double.
24466 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
24467 (fma): Define using libm_alias_double.
24468
24469 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
24470
24471 [BZ #22370]
24472 * elf/dl-hwcaps.c (ROUND): Removed.
24473 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24474 and ELF_NOTE_NEXT_OFFSET.
24475 * elf/dl-load.c (ROUND): Removed.
24476 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24477 * elf/readelflib.c (ROUND): Removed.
24478 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24479 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24480 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24481 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24482
24483 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24484
24485 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24486 [!__fmaf] (fmaf): Define using libm_alias_float.
24487
24488 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24489 [!__fma] (fma): Define using libm_alias_double.
24490 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24491
24492 2017-11-28 Mike FABIAN <mfabian@redhat.com>
24493
24494 [BZ #22336]
24495 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24496 and implement the collation rules for cs from CLDR on top of that.
24497 * Makefile: Add cs_CZ.UTF-8 to test-input.
24498 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24499
24500 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
24501
24502 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24503
24504 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24505 Icarus Sparry <icarus.w.sparry@intel.com>
24506
24507 * benchtests/Makefile:Add BENCHSET to allow subsets of
24508 benchmarks to be run.
24509 * benchtests/README: Add documentation for: Running subsets of
24510 benchmarks.
24511
24512 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24513
24514 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24515 range of tests names.
24516
24517 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24518 result from property and remove "max", min" and "mean" from
24519 required properties based on benchtests/bench-skeleton.c.
24520
24521 2017-11-28 Florian Weimer <fweimer@redhat.com>
24522
24523 [BZ #20826]
24524 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24525 due to Internet requirement.
24526 * posix/Makefile (tests): Remove tst-getaddrinfo4,
24527 tst-getaddrinfo5.
24528 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24529
24530 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24531
24532 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24533 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24534 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24535 (sysdep_routines): Add memset-ultra1.
24536 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24537 file.
24538 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24539 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24540 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24541 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24542 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24543 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24544 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24545 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24546
24547 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24548 file.
24549 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24550 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24551 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24552 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24553 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24554 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24555 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24556 macro.
24557 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24558 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24559 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24560 (sysdep_routines): Add memcpy-ultra1.
24561 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24562 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24563
24564 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24565
24566 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24567 (cfloat_versions): Take function argument without trailing 'f'.
24568 Call libm_alias_float_other.
24569 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24570 * sysdeps/alpha/fpu/cargf.c: Likewise.
24571 * sysdeps/alpha/fpu/cimagf.c: Likewise.
24572 * sysdeps/alpha/fpu/conjf.c: Likewise.
24573 * sysdeps/alpha/fpu/crealf.c: Likewise.
24574 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24575 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24576 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24577 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24578 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24579 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24580 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24581 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24582 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24583 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24584 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24585 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24586 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24587 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24588 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24589 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24590 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24591 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24592 (clog10f): Use libm_alias_float_other.
24593 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24594 (ceilf): Define using libm_alias_float.
24595 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24596 (copysignf): Define using libm_alias_float.
24597 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24598 (fabsf): Define using libm_alias_float.
24599 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24600 (floorf): Define using libm_alias_float.
24601 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24602 (fmaxf): Define using libm_alias_float.
24603 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24604 (fminf): Define using libm_alias_float.
24605 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24606 (lrintf): Define using libm_alias_float.
24607 (llrintf): Likewise.
24608 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24609 (lroundf): Define using libm_alias_float.
24610 (llroundf): Likewise.
24611 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24612 (rintf): Define using libm_alias_float.
24613 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24614 (truncf): Define using libm_alias_float.
24615
24616 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24617 (ceilf): Define using libm_alias_float.
24618 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24619 (floorf): Define using libm_alias_float.
24620 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24621 (fmaf): Define using libm_alias_float.
24622 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24623 (fmaxf): Define using libm_alias_float.
24624 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24625 (fminf): Define using libm_alias_float.
24626 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24627 (llrintf): Define using libm_alias_float.
24628 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24629 (llroundf): Define using libm_alias_float.
24630 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24631 (lrintf): Define using libm_alias_float.
24632 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24633 (lroundf): Define using libm_alias_float.
24634 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24635 <libm-alias-float.h>.
24636 (nearbyintf): Define using libm_alias_float.
24637 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24638 (rintf): Define using libm_alias_float.
24639 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24640 (roundf): Define using libm_alias_float.
24641 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24642 (truncf): Define using libm_alias_float.
24643
24644 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24645 (ceil): Define using libm_alias_double.
24646 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24647 (copysign): Define using libm_alias_double.
24648 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24649 (fabs): Define using libm_alias_double.
24650 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24651 (floor): Define using libm_alias_double.
24652 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24653 (fmax): Define using libm_alias_double.
24654 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24655 (fmin): Define using libm_alias_double.
24656 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24657 (lrint): Define using libm_alias_double.
24658 (llrint): Likewise.
24659 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24660 (lround): Define using libm_alias_double.
24661 (llround): Likewise.
24662 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24663 (rint): Define using libm_alias_double.
24664 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24665 (trunc): Define using libm_alias_double.
24666
24667 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24668 (libm_alias_double_r): Add semicolon after weak_alias call.
24669
24670 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24671
24672 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24673 (ceil): Define using libm_alias_double.
24674 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24675 (floor): Define using libm_alias_double.
24676 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24677 (fma): Define using libm_alias_double.
24678 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24679 (fmax): Define using libm_alias_double.
24680 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24681 (fmin): Define using libm_alias_double.
24682 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24683 (llrint): Define using libm_alias_double.
24684 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24685 (llround): Define using libm_alias_double.
24686 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24687 (lrint): Define using libm_alias_double.
24688 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24689 (lround): Define using libm_alias_double.
24690 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24691 (nearbyint): Define using libm_alias_double.
24692 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24693 (rint): Define using libm_alias_double.
24694 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24695 (round): Define using libm_alias_double.
24696 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24697 (trunc): Define using libm_alias_double.
24698
24699 2017-11-27 Florian Weimer <fweimer@redhat.com>
24700
24701 * sysdeps/unix/sysv/linux/mlock2.c: New file.
24702 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24703 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24704 (tests): Add tst-mlock2.
24705 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24706 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24707 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24708 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24709 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24710 for mlock. Document mlock2.
24711
24712 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24713
24714 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24715 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24716 Likewise.
24717 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24718 Likewise.
24719 * sysdeps/x86/Makeconfig: New file.
24720 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24721 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24722 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24723 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24724 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24725 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24726 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24727 Likewise.
24728 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24729 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24730 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24731 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24732 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24733 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24734 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24735 * manual/math.texi (Mathematics): Document support for _Float64x.
24736 * math/Versions (GLIBC_2.27): Add _Float64x functions.
24737 * stdlib/Versions (GLIBC_2.27): Likewise.
24738 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24739 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24740 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24741 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24742 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24743 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24744 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24745 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24746 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24747 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24748 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24749 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24751 Likewise.
24752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24753 Likewise.
24754 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24755 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24756 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24757 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24758 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24759 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24760 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24761 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24762 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24763 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24764 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24765 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24766 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24767 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24768
24769 2017-11-27 Andreas Schwab <schwab@suse.de>
24770
24771 * elf/Makefile (dl-routines): Add dl-sort-maps.
24772 * elf/dl-sort-maps.c: New file.
24773 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24774 (_dl_sort_maps): Declare.
24775 * elf/dl-fini.c (_dl_sort_fini): Remove.
24776 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24777 * elf/dl-close.c (_dl_close_worker): Likewise.
24778 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24779 open-coding it.
24780 * elf/dl-open.c (dl_open_worker): Likewise.
24781
24782 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24783
24784 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24785 using libm_alias_float128.
24786 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24787 Likewise.
24788 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24789 Likewise.
24790 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24791 (setpayloadsigf128): Likewise.
24792 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24793 Likewise.
24794 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24795 Likewise.
24796
24797 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24798 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24799 -mfloat128 to CFLAGS.
24800 ($(foreach
24801 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24802 Likewise.
24803 (CFLAGS-libm-test-support-float64x.c): New variable.
24804 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24805 $(f128-loader-link) to gnulib-tests.
24806
24807 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24808 (libm_alias_float128_other_r): If
24809 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24810 alias.
24811 (libm_alias_float128_r): Add semicolon after weak_alias call.
24812 * sysdeps/generic/libm-alias-ldouble.h
24813 (libm_alias_ldouble_other_r_f128): New macro.
24814 (libm_alias_ldouble_other_r_f64x): Likewise.
24815 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24816 and libm_alias_ldouble_other_r_f64x.
24817 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24818 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24819 (libm_alias_ldouble_other_r_f128): New macro.
24820 (libm_alias_ldouble_other_r_f64x): Likewise.
24821 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24822 and libm_alias_ldouble_other_r_f64x.
24823
24824 * stdlib/strfroml.c: Always include <stdlib.h>.
24825 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24826 undefine as macro and define as weak alias.
24827 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24828 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24829 <stdlib.h>.
24830 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24831 Define and later undefine as macro and define as weak alias.
24832
24833 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24834 Define and later undefine as macro. Define as weak alias if
24835 [!USE_WIDE_CHAR].
24836 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24837 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24838 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24839 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24840 Define and later undefine as macro. Define as weak alias if
24841 [!USE_WIDE_CHAR].
24842 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24843 Define and later undefine as macro. Define as weak alias if
24844 [USE_WIDE_CHAR].
24845 * sysdeps/ieee754/float128/strtof128_l.c
24846 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24847 Define and later undefine as macro. Define as weak alias if
24848 [!USE_WIDE_CHAR].
24849 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24850 Define and later undefine as macro. Define as weak alias if
24851 [USE_WIDE_CHAR].
24852 * sysdeps/ieee754/ldbl-128/strtold_l.c
24853 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24854 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24855 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24856 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24857 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24858 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24859 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24860 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24861 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24862 * sysdeps/ieee754/ldbl-96/strtold_l.c
24863 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24864 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24865 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24866 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24867
24868 * math/test-float64x.h: New file.
24869 * math/Makefile (type-float64x-yes): New variable.
24870 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24871
24872 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24873 function-like macro.
24874 (min_of_type_): Likewise.
24875 (min_of_type_l): Likewise.
24876 (min_of_type_f128): Likewise.
24877 (min_of_type): Pass () as last argument of __MATH_TG.
24878
24879 * stdlib/tst-strtod-round-skeleton.c
24880 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24881 headers.
24882
24883 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24884 for combinations of long double with _Float64 and _Float64x.
24885
24886 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24887 (__DECL_SIMD_cosf32): Likewise.
24888 (__DECL_SIMD_cosf64): Likewise.
24889 (__DECL_SIMD_cosf32x): Likewise.
24890 (__DECL_SIMD_cosf64x): Likewise.
24891 (__DECL_SIMD_cosf128x): Likewise.
24892 (__DECL_SIMD_sinf16): Likewise.
24893 (__DECL_SIMD_sinf32): Likewise.
24894 (__DECL_SIMD_sinf64): Likewise.
24895 (__DECL_SIMD_sinf32x): Likewise.
24896 (__DECL_SIMD_sinf64x): Likewise.
24897 (__DECL_SIMD_sinf128x): Likewise.
24898 (__DECL_SIMD_sincosf16): Likewise.
24899 (__DECL_SIMD_sincosf32): Likewise.
24900 (__DECL_SIMD_sincosf64): Likewise.
24901 (__DECL_SIMD_sincosf32x): Likewise.
24902 (__DECL_SIMD_sincosf64x): Likewise.
24903 (__DECL_SIMD_sincosf128x): Likewise.
24904 (__DECL_SIMD_logf16): Likewise.
24905 (__DECL_SIMD_logf32): Likewise.
24906 (__DECL_SIMD_logf64): Likewise.
24907 (__DECL_SIMD_logf32x): Likewise.
24908 (__DECL_SIMD_logf64x): Likewise.
24909 (__DECL_SIMD_logf128x): Likewise.
24910 (__DECL_SIMD_expf16): Likewise.
24911 (__DECL_SIMD_expf32): Likewise.
24912 (__DECL_SIMD_expf64): Likewise.
24913 (__DECL_SIMD_expf32x): Likewise.
24914 (__DECL_SIMD_expf64x): Likewise.
24915 (__DECL_SIMD_expf128x): Likewise.
24916 (__DECL_SIMD_powf16): Likewise.
24917 (__DECL_SIMD_powf32): Likewise.
24918 (__DECL_SIMD_powf64): Likewise.
24919 (__DECL_SIMD_powf32x): Likewise.
24920 (__DECL_SIMD_powf64x): Likewise.
24921 (__DECL_SIMD_powf128x): Likewise.
24922
24923 * stdlib/Versions (libc): Move entries for wcstof128 and
24924 wcstof128_l to ....
24925 * wcsmbs/Versions (libc): ... here.
24926 Include <float128-abi.h>.
24927
24928 2017-11-24 Florian Weimer <fweimer@redhat.com>
24929
24930 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24931 bits/mman-shared.h.
24932 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24933 <bits/mman-shared.h>.
24934 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24935 to ...
24936 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24937 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24938 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24939 <bits/mman-shared.h>.
24940
24941 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24942
24943 [BZ #22457]
24944 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24945 posix_memalign/free.
24946 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24947
24948 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24949
24950 [BZ #22469]
24951 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24952 and implement the collation rules for pl from CLDR on top of that.
24953 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24954 of locales to be built for testing.
24955 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24956
24957 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24958
24959 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24960 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24961 libm_alias_ldouble_other.
24962 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24963 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24964 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24965 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24966 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24967 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24968 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24969 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24970 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24971 libm_alias_ldouble_r.
24972 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24973 libm_alias_ldouble_other.
24974 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24975 (log10l): Likewise.
24976 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24977 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24978 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24979 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24980 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24981 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24982 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24983 (atan2l): Likewise.
24984 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24985 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24986 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24987 libm_alias_ldouble.
24988 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24989 (cosl): Likewise.
24990 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24991 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24992 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24993 (expl): Likewise.
24994 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24995 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24996 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24997 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24998 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24999 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
25000 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
25001 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
25002 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
25003 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
25004 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
25005 libm_alias_ldouble.
25006 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
25007 libm_alias_ldouble_other.
25008 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
25009 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
25010 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
25011 libm_alias_ldouble.
25012 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
25013 libm_alias_ldouble_other.
25014 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
25015 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
25016 * sysdeps/ia64/fpu/w_lgammal_main.c
25017 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
25018 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
25019
25020 2017-11-23 Florian Weimer <fweimer@redhat.com>
25021
25022 * malloc/malloc.c (tcache_thread_shutdown): Rename from
25023 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
25024 alike. Remove freeres marker.
25025 * malloc/arena.c (arena_thread_freeres): Call
25026 tcache_thread_shutdown.
25027
25028 2017-11-23 Florian Weimer <fweimer@redhat.com>
25029
25030 [BZ #22459]
25031 Export nscd hash function as __nss_hash.
25032 * include/nss.h (__nss_hash): Declare.
25033 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
25034 symbol.
25035 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
25036 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
25037 of __nscd_hash.
25038 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
25039 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
25040 * nss/Makefiles (routines): Add nss_hash.
25041 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
25042 * nss/nss_hash.c: Rename from nis/nis_hash.c.
25043 (__nss_hash): Rename from __nis_hash. Define hidden alias.
25044 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
25045
25046 2017-11-23 Florian Weimer <fweimer@redhat.com>
25047
25048 [BZ #22478]
25049 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
25050 Return error code, not -1.
25051 * signal/tst-sigwait-eintr.c: New file.
25052 * signal/Makefile (tests): Add tst-sigwait-eintr.
25053
25054 2017-11-23 Florian Weimer <fweimer@redhat.com>
25055
25056 Linux: Add memfd_create system call wrapper
25057 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
25058 tst-memfd_create.
25059 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
25060 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
25061 [__USE_GNU] (memfd_create): Declare.
25062 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
25063 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
25064 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
25065 * sysdeps/unix/sysv/linux/**.abilist: Update.
25066 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
25067
25068 2017-11-22 Joseph Myers <joseph@codesourcery.com>
25069
25070 * localedata/gen-locale.sh: Fix typo in variable name.
25071
25072 * resolv/res_debug.c (p_secstodate): Condition definition on
25073 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
25074 directly as __p_secstodate, and as a compat symbol. Do not use
25075 libresolv_hidden_def.
25076 * resolv/resolv.h (p_secstodate): Remove macro and function
25077 declaration.
25078 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
25079 using p_secstodate.
25080 * include/resolv.h (__p_secstodate): Do not use
25081 libresolv_hidden_proto.
25082 * resolv/Makefile (tests): Move tst-p_secstodate to ....
25083 (tests-internal): ... here.
25084 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
25085 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
25086 and declare and use __p_secstodate and use compat_symbol_reference
25087 in that case.
25088 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
25089 implementation returning 77.
25090
25091 [BZ #22463]
25092 * resolv/res_debug.c: Include <libc-diag.h>.
25093 (p_secstodate): Assert time_t at least as wide as u_long. On
25094 overflow, use integer seconds since the epoch as output, or use
25095 "<overflow>" as output and set errno to EOVERFLOW if integer
25096 seconds since the epoch would be 14 or more characters.
25097 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
25098 for sprintf call.
25099 * resolv/tst-p_secstodate.c: New file.
25100 * resolv/Makefile (tests): Add tst-p_secstodate.
25101 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
25102
25103 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
25104 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
25105 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
25106
25107 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
25108
25109 * posix/regcomp.c (init_word_char): Add comments.
25110
25111 2017-11-22 Joseph Myers <joseph@codesourcery.com>
25112
25113 [BZ #22447]
25114 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
25115 strlen to compute length of ut_user and set trailing NUL byte of
25116 result explicitly.
25117
25118 2017-11-21 Mike FABIAN <mfabian@redhat.com>
25119
25120 [BZ #15537]
25121 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
25122 using “copy "iso14651_t1"” and then implementing the
25123 collation rules for lv from CLDR on top of that.
25124 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
25125 of locales to be built for testing.
25126 * lv_LV.UTF-8.in: New file with test data to test the Latvian
25127 sorting.
25128
25129 2017-11-21 Joseph Myers <joseph@codesourcery.com>
25130
25131 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25132 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
25133 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
25134 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
25135 [__USE_MISC] (MADV_HWPOISON): New macro.
25136 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
25137
25138 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25139
25140 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
25141 -Wmissing-braces on GCC 4.9.
25142
25143 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
25144
25145 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
25146 * sysdeps/s390/s390-32/start.S (_start): Likewise
25147 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
25148 (thread_start): Likewise.
25149 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
25150 (thread_start): Likewise.
25151 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
25152 (__makecontext_ret): Likewise.
25153 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
25154 (__makecontext_ret): Likewise.
25155
25156 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
25157
25158 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
25159 __wcschrnul): Remove attribute_hidden.
25160
25161 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
25162
25163 regex: don't assume uint64_t or uint32_t
25164 This avoids -Werror=overflow errors for 32-bit systems in
25165 the 64-bit case. Problem reported by Joseph Myers in:
25166 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
25167 Also, when this code is used in Gnulib it ports to platforms
25168 that lack uint64_t and uint32_t. The C standard doesn't guarantee
25169 them, and on some 32-bit compilers there is no uint64_t.
25170 Problem reported by Gianluigi Tiesi in:
25171 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
25172 * posix/regcomp.c (init_word_char): Don't assume that the types
25173 uint64_t and uint32_t exist. Adapted from Gnulib patch
25174 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
25175 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
25176
25177 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
25178
25179 * sysdeps/aarch64/memset-reg.h: New file.
25180 * sysdeps/aarch64/memset.S: Use it.
25181 (__memset): Rename to MEMSET macro.
25182 [ZVA_MACRO]: Use zva_macro.
25183 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
25184 Add memset_generic and memset_falkor.
25185 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25186 (__libc_ifunc_impl_list): Add memset ifuncs.
25187 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
25188 local variable zva_size.
25189 * sysdeps/aarch64/multiarch/memset.c: New file.
25190 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
25191 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
25192 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
25193 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
25194 (DCZID_DZP_MASK): New macro.
25195 (DCZID_BS_MASK): Likewise.
25196 (init_cpu_features): Read and set zva_size.
25197 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
25198 (struct cpu_features): New member zva_size.
25199
25200 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
25201 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
25202 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
25203
25204 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
25205 backwards. Fix timing computation.
25206 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
25207 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
25208 on memset by N at a time. Fix timing computation.
25209
25210 2017-11-20 Florian Weimer <fweimer@redhat.com>
25211
25212 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
25213 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
25214
25215 2017-11-19 Florian Weimer <fweimer@redhat.com>
25216
25217 manual: Document mprotect
25218 * manual/memory.texi (Memory Protection): New section.
25219 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
25220 documentation of PROT_* flags and reference the Memory Protection
25221 section instead.
25222
25223 2017-11-19 Florian Weimer <fweimer@redhat.com>
25224
25225 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
25226 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
25227 (Scatter-Gather): ... to here. Remove misleading comment.
25228
25229 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
25230
25231 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
25232 style.
25233
25234 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
25235 when /proc/<pid>/setgroups does not exist.
25236
25237 2017-11-18 Florian Weimer <fweimer@redhat.com>
25238
25239 * sysdeps/unix/sysv/linux/tst-ttyname.c
25240 (become_root_in_mount_ns): Remove.
25241 (do_in_chroot_1): Call support_enter_mount_namespace.
25242 (do_in_chroot_2): Likewise.
25243 (do_test): Call support_become_root early.
25244
25245 2017-11-18 Florian Weimer <fweimer@redhat.com>
25246
25247 * support/namespace.h (support_enter_mount_namespace): Declare.
25248 * support/support_enter_mount_namespace.c: New file.
25249 * support/Makefile (libsupport-routines): Add
25250 support_enter_mount_namespace.
25251
25252 2017-11-18 Florian Weimer <fweimer@redhat.com>
25253
25254 * support/temp_file.c (support_create_temp_directory): Use
25255 test_dir and do not rely on the presence of the XXXXXX suffix.
25256 * support/temp_file.h (support_create_temp_directory): Update
25257 comment.
25258 * support/tst-xreadlink.c (do_test): Adjust.
25259 * support/support_chroot.c (support_chroot_create): Likewise.
25260
25261 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25262
25263 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
25264 macro.
25265 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
25266 htm-no-suspend.
25267
25268 2017-11-17 Joseph Myers <joseph@codesourcery.com>
25269
25270 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25271 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25272 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25273 (ceill): Define using libm_alias_ldouble.
25274 * sysdeps/x86_64/fpu/s_copysignl.S: Include
25275 <libm-alias-ldouble.h>.
25276 (copysignl): Define using libm_alias_ldouble.
25277 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25278 (fabsl): Define using libm_alias_ldouble.
25279 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25280 (floorl): Define using libm_alias_ldouble.
25281 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25282 (fmaxl): Define using libm_alias_ldouble.
25283 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25284 (fminl): Define using libm_alias_ldouble.
25285 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25286 (llrintl): Define using libm_alias_ldouble.
25287 (lrintl): Likewise.
25288 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
25289 <libm-alias-ldouble.h>.
25290 (nearbyintl): Define using libm_alias_ldouble.
25291 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25292 (truncl): Define using libm_alias_ldouble.
25293 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
25294 <libm-alias-ldouble.h>.
25295 (lrintl): Define using libm_alias_ldouble.
25296
25297 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25298 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25299 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
25300 (asinhl): Define using libm_alias_ldouble.
25301 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
25302 (atanl): Define using libm_alias_ldouble.
25303 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
25304 (cbrtl): Define using libm_alias_ldouble.
25305 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25306 (ceill): Define using libm_alias_ldouble.
25307 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
25308 (copysignl): Define using libm_alias_ldouble.
25309 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25310 (fabsl): Define using libm_alias_ldouble.
25311 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25312 (floorl): Define using libm_alias_ldouble.
25313 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25314 (fmaxl): Define using libm_alias_ldouble.
25315 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25316 (fminl): Define using libm_alias_ldouble.
25317 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
25318 (frexpl): Define using libm_alias_ldouble.
25319 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25320 (llrintl): Define using libm_alias_ldouble.
25321 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
25322 (logbl): Define using libm_alias_ldouble.
25323 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
25324 (lrintl): Define using libm_alias_ldouble.
25325 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
25326 (nearbyintl): Define using libm_alias_ldouble.
25327 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
25328 (nextafterl): Define using libm_alias_ldouble.
25329 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
25330 (remquol): Define using libm_alias_ldouble.
25331 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
25332 (rintl): Define using libm_alias_ldouble.
25333 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25334 (truncl): Define using libm_alias_ldouble.
25335 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25336 (fmaxl): Define using libm_alias_ldouble.
25337 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25338 (fminl): Define using libm_alias_ldouble.
25339
25340 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
25341 to C syntax instead of availability and properties of types.
25342 * bits/floatn.h [!__ASSEMBLER]: Likewise.
25343 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
25344 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
25345 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
25346 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
25347 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
25348
25349 2017-11-17 Florian Weimer <fweimer@redhat.com>
25350
25351 support_become_root: Enable file creation in namespaces.
25352 * support/support_become_root.c (setup_mapping): New function.
25353 (support_become_root): Call it.
25354
25355 2017-11-17 Joseph Myers <joseph@codesourcery.com>
25356
25357 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
25358 macro.
25359
25360 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25361
25362 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
25363 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
25364
25365 2017-11-16 Joseph Myers <joseph@codesourcery.com>
25366
25367 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
25368
25369 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25370 version to 4.14.
25371
25372 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
25373
25374 * INSTALL: Fix botched up regeneration.
25375
25376 * NEWS: Update sourceare link to https.
25377 * configure.ac: Likewise.
25378 * crypt/md5test-giant.c: Likewise.
25379 * dlfcn/bug-atexit1.c: Likewise.
25380 * dlfcn/bug-atexit2.c: Likewise.
25381 * localedata/README: Likewise.
25382 * malloc/tst-mallocfork.c: Likewise.
25383 * manual/install.texi: Likewise.
25384 * nptl/tst-pthread-getattr.c: Likewise.
25385 * stdio-common/tst-fgets.c: Likewise.
25386 * stdio-common/tst-fwrite.c: Likewise.
25387 * sunrpc/Makefile: Likewise.
25388 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
25389 * wcsmbs/tst-mbrtowc2.c: Likewise.
25390 * configure: Regenerate.
25391 * INSTALL: Regenerate.
25392
25393 2017-11-15 Martin Sebor <msebor@redhat.com>
25394
25395 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
25396 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
25397 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
25398
25399 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
25400
25401 [BZ #22145]
25402 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
25403 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
25404
25405 [BZ #22145]
25406 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
25407 Defer is_pty check until end of the function.
25408 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25409
25410 [BZ #22145]
25411 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
25412 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
25413 (ttyname): Likewise.
25414 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25415 (__ttyname_r): Likewise.
25416
25417 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
25418 int to bool.
25419
25420 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
25421
25422 * manual/terminal.texi (Is It a Terminal):
25423 Mention ENODEV for ttyname and ttyname_r.
25424
25425 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25426
25427 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
25428 constant and macro.
25429
25430 * sysdeps/unix/sysv/linux/bits/mman-linux.h
25431 [__USE_MISC] (MADV_WIPEONFORK): New macro.
25432 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25433 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25434 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
25435 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25436
25437 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25438
25439 * signal/sigrelse.c (sigrelse): Optimize implementation.
25440
25441 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
25442 (__sigpause): Rely on __sigsuspend to implement single thread
25443 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
25444
25445 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25446
25447 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25448 kernel version to 4.14.
25449
25450 2017-11-15 Steve Ellcey <sellcey@cavium.com>
25451
25452 [BZ #22442]
25453 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
25454 Check if ifname is too long.
25455
25456 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
25457
25458 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
25459
25460 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25461
25462 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
25463 was accidentally lost.
25464
25465 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25466
25467 * localedata/locales/az_IR: Add standard copyright header.
25468
25469 2017-11-15 Florian Weimer <fweimer@redhat.com>
25470
25471 [BZ #22439]
25472 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25473 not just the top one. Output a new "subheaps" statistic.
25474
25475 2017-11-15 Florian Weimer <fweimer@redhat.com>
25476
25477 [BZ #22408]
25478 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25479 under the per-arena lock.
25480 * malloc/Makefile (tests): Add tst-malloc_info.
25481 (tst-malloc_info): Link with libpthread.
25482 * malloc/tst-malloc_info.c: New file.
25483
25484 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25485
25486 [BZ #21660]
25487 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25488 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25489 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25490 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25491 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25492 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25493 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25494 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25495 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25496 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25497 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25498 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25499 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25500 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25501 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25502 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25503 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25504 (__floating_type): Likewise.
25505 (__real_integer_type): Likewise.
25506 (__complex_integer_type): Likewise.
25507 (__expr_is_real): Likewise.
25508 (__tgmath_real_type_sub): Likewise.
25509 (__tgmath_real_type): Likewise.
25510 (__tgmath_complex_type_sub): Likewise.
25511 (__tgmath_complex_type): Likewise.
25512 (__TGMATH_F128): Likewise.
25513 (__TGMATH_CF128): Likewise.
25514 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25515 new macros.
25516 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25517 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25518 Likewise.
25519 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25520 Likewise.
25521 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25522 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25523 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25524 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25525 Likewise.
25526 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25527 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25528 Likewise.
25529 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25530 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25531 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25532 Likewise.
25533 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25534 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25535 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25536 (cimag): Likewise.
25537 (creal): Likewise.
25538
25539 2017-11-14 Joseph Myers <joseph@codesourcery.com>
25540
25541 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25542 for stpncpy calls for GCC 8.
25543 (test_strncat): Disable -Wstringop-truncation warning for strncat
25544 calls for GCC 8. Disable -Wstringop-overflow= warning for one
25545 strncat call for GCC 7.
25546 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25547 calls for GCC 8.
25548 (test_memcmp): Use memcpy instead of strncpy for calls not copying
25549 trailing NUL.
25550
25551 * string/bug-strncat1.c: Include <libc-diag.h>.
25552 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25553
25554 2017-11-13 Claude Paroz <claude@2xlibre.net>
25555
25556 [BZ #22387]
25557 * localedata/locales/aa_DJ: Improved readibility by replacing
25558 <Uxxxx> sequences in the ASCII printable range by their ASCII
25559 character equivalents.
25560 * localedata/locales/aa_ER: Likewise.
25561 * localedata/locales/aa_ER@saaho: Likewise.
25562 * localedata/locales/aa_ET: Likewise.
25563 * localedata/locales/af_ZA: Likewise.
25564 * localedata/locales/agr_PE: Likewise.
25565 * localedata/locales/ak_GH: Likewise.
25566 * localedata/locales/am_ET: Likewise.
25567 * localedata/locales/anp_IN: Likewise.
25568 * localedata/locales/ar_AE: Likewise.
25569 * localedata/locales/ar_BH: Likewise.
25570 * localedata/locales/ar_DZ: Likewise.
25571 * localedata/locales/ar_EG: Likewise.
25572 * localedata/locales/ar_IN: Likewise.
25573 * localedata/locales/ar_IQ: Likewise.
25574 * localedata/locales/ar_JO: Likewise.
25575 * localedata/locales/ar_KW: Likewise.
25576 * localedata/locales/ar_LB: Likewise.
25577 * localedata/locales/ar_LY: Likewise.
25578 * localedata/locales/ar_MA: Likewise.
25579 * localedata/locales/ar_OM: Likewise.
25580 * localedata/locales/ar_QA: Likewise.
25581 * localedata/locales/ar_SA: Likewise.
25582 * localedata/locales/ar_SD: Likewise.
25583 * localedata/locales/ar_SS: Likewise.
25584 * localedata/locales/ar_SY: Likewise.
25585 * localedata/locales/ar_TN: Likewise.
25586 * localedata/locales/ar_YE: Likewise.
25587 * localedata/locales/as_IN: Likewise.
25588 * localedata/locales/ast_ES: Likewise.
25589 * localedata/locales/ayc_PE: Likewise.
25590 * localedata/locales/az_AZ: Likewise.
25591 * localedata/locales/az_IR: Likewise.
25592 * localedata/locales/be_BY: Likewise.
25593 * localedata/locales/be_BY@latin: Likewise.
25594 * localedata/locales/bem_ZM: Likewise.
25595 * localedata/locales/ber_DZ: Likewise.
25596 * localedata/locales/ber_MA: Likewise.
25597 * localedata/locales/bg_BG: Likewise.
25598 * localedata/locales/bhb_IN: Likewise.
25599 * localedata/locales/bho_IN: Likewise.
25600 * localedata/locales/bi_VU: Likewise.
25601 * localedata/locales/bn_BD: Likewise.
25602 * localedata/locales/bn_IN: Likewise.
25603 * localedata/locales/bo_CN: Likewise.
25604 * localedata/locales/bo_IN: Likewise.
25605 * localedata/locales/br_FR: Likewise.
25606 * localedata/locales/brx_IN: Likewise.
25607 * localedata/locales/bs_BA: Likewise.
25608 * localedata/locales/byn_ER: Likewise.
25609 * localedata/locales/ca_AD: Likewise.
25610 * localedata/locales/ca_ES: Likewise.
25611 * localedata/locales/ca_FR: Likewise.
25612 * localedata/locales/ca_IT: Likewise.
25613 * localedata/locales/ce_RU: Likewise.
25614 * localedata/locales/chr_US: Likewise.
25615 * localedata/locales/cmn_TW: Likewise.
25616 * localedata/locales/crh_UA: Likewise.
25617 * localedata/locales/cs_CZ: Likewise.
25618 * localedata/locales/csb_PL: Likewise.
25619 * localedata/locales/cv_RU: Likewise.
25620 * localedata/locales/cy_GB: Likewise.
25621 * localedata/locales/da_DK: Likewise.
25622 * localedata/locales/de_AT: Likewise.
25623 * localedata/locales/de_BE: Likewise.
25624 * localedata/locales/de_CH: Likewise.
25625 * localedata/locales/de_DE: Likewise.
25626 * localedata/locales/de_IT: Likewise.
25627 * localedata/locales/de_LI: Likewise.
25628 * localedata/locales/de_LU: Likewise.
25629 * localedata/locales/doi_IN: Likewise.
25630 * localedata/locales/dv_MV: Likewise.
25631 * localedata/locales/dz_BT: Likewise.
25632 * localedata/locales/el_CY: Likewise.
25633 * localedata/locales/el_GR: Likewise.
25634 * localedata/locales/en_AG: Likewise.
25635 * localedata/locales/en_AU: Likewise.
25636 * localedata/locales/en_BW: Likewise.
25637 * localedata/locales/en_CA: Likewise.
25638 * localedata/locales/en_DK: Likewise.
25639 * localedata/locales/en_GB: Likewise.
25640 * localedata/locales/en_HK: Likewise.
25641 * localedata/locales/en_IE: Likewise.
25642 * localedata/locales/en_IL: Likewise.
25643 * localedata/locales/en_IN: Likewise.
25644 * localedata/locales/en_NG: Likewise.
25645 * localedata/locales/en_NZ: Likewise.
25646 * localedata/locales/en_PH: Likewise.
25647 * localedata/locales/en_SG: Likewise.
25648 * localedata/locales/en_US: Likewise.
25649 * localedata/locales/en_ZA: Likewise.
25650 * localedata/locales/en_ZM: Likewise.
25651 * localedata/locales/en_ZW: Likewise.
25652 * localedata/locales/eo: Likewise.
25653 * localedata/locales/es_AR: Likewise.
25654 * localedata/locales/es_BO: Likewise.
25655 * localedata/locales/es_CL: Likewise.
25656 * localedata/locales/es_CO: Likewise.
25657 * localedata/locales/es_CR: Likewise.
25658 * localedata/locales/es_CU: Likewise.
25659 * localedata/locales/es_DO: Likewise.
25660 * localedata/locales/es_EC: Likewise.
25661 * localedata/locales/es_ES: Likewise.
25662 * localedata/locales/es_GT: Likewise.
25663 * localedata/locales/es_HN: Likewise.
25664 * localedata/locales/es_MX: Likewise.
25665 * localedata/locales/es_NI: Likewise.
25666 * localedata/locales/es_PA: Likewise.
25667 * localedata/locales/es_PE: Likewise.
25668 * localedata/locales/es_PR: Likewise.
25669 * localedata/locales/es_PY: Likewise.
25670 * localedata/locales/es_SV: Likewise.
25671 * localedata/locales/es_US: Likewise.
25672 * localedata/locales/es_UY: Likewise.
25673 * localedata/locales/es_VE: Likewise.
25674 * localedata/locales/et_EE: Likewise.
25675 * localedata/locales/eu_ES: Likewise.
25676 * localedata/locales/eu_ES@euro: Likewise.
25677 * localedata/locales/fa_IR: Likewise.
25678 * localedata/locales/ff_SN: Likewise.
25679 * localedata/locales/fi_FI: Likewise.
25680 * localedata/locales/fil_PH: Likewise.
25681 * localedata/locales/fo_FO: Likewise.
25682 * localedata/locales/fr_BE: Likewise.
25683 * localedata/locales/fr_CA: Likewise.
25684 * localedata/locales/fr_CH: Likewise.
25685 * localedata/locales/fr_FR: Likewise.
25686 * localedata/locales/fr_LU: Likewise.
25687 * localedata/locales/fur_IT: Likewise.
25688 * localedata/locales/fy_DE: Likewise.
25689 * localedata/locales/fy_NL: Likewise.
25690 * localedata/locales/ga_IE: Likewise.
25691 * localedata/locales/gd_GB: Likewise.
25692 * localedata/locales/gez_ER: Likewise.
25693 * localedata/locales/gez_ET: Likewise.
25694 * localedata/locales/gl_ES: Likewise.
25695 * localedata/locales/gu_IN: Likewise.
25696 * localedata/locales/gv_GB: Likewise.
25697 * localedata/locales/ha_NG: Likewise.
25698 * localedata/locales/hak_TW: Likewise.
25699 * localedata/locales/he_IL: Likewise.
25700 * localedata/locales/hi_IN: Likewise.
25701 * localedata/locales/hif_FJ: Likewise.
25702 * localedata/locales/hne_IN: Likewise.
25703 * localedata/locales/hr_HR: Likewise.
25704 * localedata/locales/hsb_DE: Likewise.
25705 * localedata/locales/ht_HT: Likewise.
25706 * localedata/locales/hu_HU: Likewise.
25707 * localedata/locales/hy_AM: Likewise.
25708 * localedata/locales/i18n: Likewise.
25709 * localedata/locales/ia_FR: Likewise.
25710 * localedata/locales/id_ID: Likewise.
25711 * localedata/locales/ig_NG: Likewise.
25712 * localedata/locales/ik_CA: Likewise.
25713 * localedata/locales/is_IS: Likewise.
25714 * localedata/locales/it_CH: Likewise.
25715 * localedata/locales/it_IT: Likewise.
25716 * localedata/locales/iu_CA: Likewise.
25717 * localedata/locales/ja_JP: Likewise.
25718 * localedata/locales/ka_GE: Likewise.
25719 * localedata/locales/kk_KZ: Likewise.
25720 * localedata/locales/kl_GL: Likewise.
25721 * localedata/locales/kn_IN: Likewise.
25722 * localedata/locales/ko_KR: Likewise.
25723 * localedata/locales/kok_IN: Likewise.
25724 * localedata/locales/ks_IN: Likewise.
25725 * localedata/locales/ks_IN@devanagari: Likewise.
25726 * localedata/locales/ku_TR: Likewise.
25727 * localedata/locales/kw_GB: Likewise.
25728 * localedata/locales/ky_KG: Likewise.
25729 * localedata/locales/lb_LU: Likewise.
25730 * localedata/locales/lg_UG: Likewise.
25731 * localedata/locales/li_BE: Likewise.
25732 * localedata/locales/li_NL: Likewise.
25733 * localedata/locales/lij_IT: Likewise.
25734 * localedata/locales/ln_CD: Likewise.
25735 * localedata/locales/lo_LA: Likewise.
25736 * localedata/locales/lt_LT: Likewise.
25737 * localedata/locales/lv_LV: Likewise.
25738 * localedata/locales/lzh_TW: Likewise.
25739 * localedata/locales/mag_IN: Likewise.
25740 * localedata/locales/mai_IN: Likewise.
25741 * localedata/locales/mg_MG: Likewise.
25742 * localedata/locales/mhr_RU: Likewise.
25743 * localedata/locales/mi_NZ: Likewise.
25744 * localedata/locales/mk_MK: Likewise.
25745 * localedata/locales/ml_IN: Likewise.
25746 * localedata/locales/mn_MN: Likewise.
25747 * localedata/locales/mni_IN: Likewise.
25748 * localedata/locales/mr_IN: Likewise.
25749 * localedata/locales/ms_MY: Likewise.
25750 * localedata/locales/mt_MT: Likewise.
25751 * localedata/locales/my_MM: Likewise.
25752 * localedata/locales/nan_TW: Likewise.
25753 * localedata/locales/nan_TW@latin: Likewise.
25754 * localedata/locales/nb_NO: Likewise.
25755 * localedata/locales/nds_DE: Likewise.
25756 * localedata/locales/nds_NL: Likewise.
25757 * localedata/locales/ne_NP: Likewise.
25758 * localedata/locales/nhn_MX: Likewise.
25759 * localedata/locales/niu_NU: Likewise.
25760 * localedata/locales/niu_NZ: Likewise.
25761 * localedata/locales/nl_AW: Likewise.
25762 * localedata/locales/nl_BE: Likewise.
25763 * localedata/locales/nl_NL: Likewise.
25764 * localedata/locales/nn_NO: Likewise.
25765 * localedata/locales/nr_ZA: Likewise.
25766 * localedata/locales/nso_ZA: Likewise.
25767 * localedata/locales/oc_FR: Likewise.
25768 * localedata/locales/om_ET: Likewise.
25769 * localedata/locales/om_KE: Likewise.
25770 * localedata/locales/or_IN: Likewise.
25771 * localedata/locales/os_RU: Likewise.
25772 * localedata/locales/pa_IN: Likewise.
25773 * localedata/locales/pa_PK: Likewise.
25774 * localedata/locales/pap_AW: Likewise.
25775 * localedata/locales/pap_CW: Likewise.
25776 * localedata/locales/pl_PL: Likewise.
25777 * localedata/locales/ps_AF: Likewise.
25778 * localedata/locales/pt_BR: Likewise.
25779 * localedata/locales/pt_PT: Likewise.
25780 * localedata/locales/quz_PE: Likewise.
25781 * localedata/locales/raj_IN: Likewise.
25782 * localedata/locales/ro_RO: Likewise.
25783 * localedata/locales/ru_RU: Likewise.
25784 * localedata/locales/ru_UA: Likewise.
25785 * localedata/locales/rw_RW: Likewise.
25786 * localedata/locales/sa_IN: Likewise.
25787 * localedata/locales/sat_IN: Likewise.
25788 * localedata/locales/sc_IT: Likewise.
25789 * localedata/locales/sd_IN: Likewise.
25790 * localedata/locales/sd_IN@devanagari: Likewise.
25791 * localedata/locales/se_NO: Likewise.
25792 * localedata/locales/sgs_LT: Likewise.
25793 * localedata/locales/shs_CA: Likewise.
25794 * localedata/locales/si_LK: Likewise.
25795 * localedata/locales/sid_ET: Likewise.
25796 * localedata/locales/sk_SK: Likewise.
25797 * localedata/locales/sl_SI: Likewise.
25798 * localedata/locales/sm_WS: Likewise.
25799 * localedata/locales/so_DJ: Likewise.
25800 * localedata/locales/so_ET: Likewise.
25801 * localedata/locales/so_KE: Likewise.
25802 * localedata/locales/so_SO: Likewise.
25803 * localedata/locales/sq_AL: Likewise.
25804 * localedata/locales/sq_MK: Likewise.
25805 * localedata/locales/sr_ME: Likewise.
25806 * localedata/locales/sr_RS: Likewise.
25807 * localedata/locales/sr_RS@latin: Likewise.
25808 * localedata/locales/ss_ZA: Likewise.
25809 * localedata/locales/st_ZA: Likewise.
25810 * localedata/locales/sv_FI: Likewise.
25811 * localedata/locales/sv_SE: Likewise.
25812 * localedata/locales/sw_KE: Likewise.
25813 * localedata/locales/sw_TZ: Likewise.
25814 * localedata/locales/szl_PL: Likewise.
25815 * localedata/locales/ta_IN: Likewise.
25816 * localedata/locales/ta_LK: Likewise.
25817 * localedata/locales/tcy_IN: Likewise.
25818 * localedata/locales/te_IN: Likewise.
25819 * localedata/locales/tg_TJ: Likewise.
25820 * localedata/locales/th_TH: Likewise.
25821 * localedata/locales/the_NP: Likewise.
25822 * localedata/locales/ti_ER: Likewise.
25823 * localedata/locales/ti_ET: Likewise.
25824 * localedata/locales/tig_ER: Likewise.
25825 * localedata/locales/tk_TM: Likewise.
25826 * localedata/locales/tl_PH: Likewise.
25827 * localedata/locales/tn_ZA: Likewise.
25828 * localedata/locales/to_TO: Likewise.
25829 * localedata/locales/tpi_PG: Likewise.
25830 * localedata/locales/tr_CY: Likewise.
25831 * localedata/locales/tr_TR: Likewise.
25832 * localedata/locales/ts_ZA: Likewise.
25833 * localedata/locales/tt_RU: Likewise.
25834 * localedata/locales/tt_RU@iqtelif: Likewise.
25835 * localedata/locales/ug_CN: Likewise.
25836 * localedata/locales/uk_UA: Likewise.
25837 * localedata/locales/unm_US: Likewise.
25838 * localedata/locales/ur_IN: Likewise.
25839 * localedata/locales/ur_PK: Likewise.
25840 * localedata/locales/uz_UZ: Likewise.
25841 * localedata/locales/uz_UZ@cyrillic: Likewise.
25842 * localedata/locales/ve_ZA: Likewise.
25843 * localedata/locales/vi_VN: Likewise.
25844 * localedata/locales/wa_BE: Likewise.
25845 * localedata/locales/wae_CH: Likewise.
25846 * localedata/locales/wal_ET: Likewise.
25847 * localedata/locales/wo_SN: Likewise.
25848 * localedata/locales/xh_ZA: Likewise.
25849 * localedata/locales/yi_US: Likewise.
25850 * localedata/locales/yo_NG: Likewise.
25851 * localedata/locales/yue_HK: Likewise.
25852 * localedata/locales/yuw_PG: Likewise.
25853 * localedata/locales/zh_CN: Likewise.
25854 * localedata/locales/zh_HK: Likewise.
25855 * localedata/locales/zh_SG: Likewise.
25856 * localedata/locales/zh_TW: Likewise.
25857 * localedata/locales/zu_ZA: Likewise.
25858
25859 2017-11-13 Florian Weimer <fweimer@redhat.com>
25860
25861 * support/next_to_fault.h, support/next_to_fault.c: New files.
25862 * support/Makefile (libsupport-routines): Add next_to_fault.
25863 * resolv/tst-inet_pton.c (struct next_to_fault)
25864 (next_to_fault_allocate, next_to_fault_free): Remove.
25865 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25866
25867 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25868
25869 * elf/dl-support.c: Include <dl-procruntime.c>.
25870 * include/link.h: Include <link_map.h>.
25871 * sysdeps/generic/dl-procruntime.c: New file.
25872 * sysdeps/generic/link_map.h: Likewise.
25873 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25874 the writable ld.so namespace.
25875
25876 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25877
25878 timezone: pacify GCC -Wstringop-truncation
25879 Problem reported by Martin Sebor in:
25880 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25881 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25882
25883 2017-11-12 Florian Weimer <fweimer@redhat.com>
25884
25885 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25886 tst-xreadlink.
25887 (tests): Add tst-xreadlink.
25888 * support/support.h (xstrndup): Declare.
25889 * support/xunistd.h (xunlink, xreadlink): Declare.
25890 * support/temp_file.h (support_create_temp_directory): Declare.
25891 * support/temp_file.c (support_create_temp_directory): New function.
25892 * support/support_chroot.c (support_chroot_create): Use it.
25893 * support/xreadlink.c: New file.
25894 * support/xstrndup.c: Likewise.
25895 * support/xunlink.c: Likewise.
25896 * support/tst-xreadlink.c: Likewise.
25897
25898 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25899
25900 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25901
25902 2017-11-11 Florian Weimer <fweimer@redhat.com>
25903
25904 [BZ #22409]
25905 [BZ #22412]
25906 * resolv/res_comp.c (printable_string, binary_hnok)
25907 (binary_leading_dash): New functions.
25908 (res_hnok): Reimplement using these functions and ns_name_pton.
25909 (res_ownok): Likewise.
25910 (res_mailok): Reimplement using printable_string, ns_name_pton and
25911 binary_hnok.
25912 (res_dnok): Reimplement using printable_string and ns_name_pton.
25913 * resolv/tst-res_hnok.c (tests): Add additional tests.
25914 (LETTERDIGITS, PRINTABLE): Define.
25915 (do_test): Adjust one_char results.
25916
25917 2017-11-11 Florian Weimer <fweimer@redhat.com>
25918
25919 [BZ #22413]
25920 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25921 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25922
25923 2017-11-11 Florian Weimer <fweimer@redhat.com>
25924
25925 * resolv/tst-ns_name_pton.c: New file.
25926 * resolv/Makefile (tests): Add tst-ns_name_pton.
25927 (tst-ns_name_pton): Link against libresolv.
25928
25929 2017-11-11 Florian Weimer <fweimer@redhat.com>
25930
25931 * resolv/tst-res_hnok.c: New file.
25932 * resolv/Makefile (tests): Add tst-res_hnok.
25933 (tst-res_hnok): Link against libresolv.
25934
25935 2017-11-11 Florian Weimer <fweimer@redhat.com>
25936
25937 * resolv/tst-resolv-network.c: Use test framework instead explicit
25938 main function.
25939
25940 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25941
25942 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25943 <jmp_buf-macros.h>.
25944 [!_ISOMAC] (STR_HELPER): New.
25945 [!_ISOMAC] (STR): Likewise.
25946 [!_ISOMAC] (TEST_SIZE): Likewise.
25947 [!_ISOMAC] (TEST_ALIGN): Likewise.
25948 [!_ISOMAC] (TEST_OFFSET): Likewise.
25949 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25950 field offsets of jmp_buf as well as sigjmp_buf.
25951 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25952 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25953 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25954 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25955 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25956 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25957 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25958 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25959 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25960 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25961 Likewise.
25962 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25963 Likewise.
25964 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25966 Likewise.
25967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25968 Likewise.
25969 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25970 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25971 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25972 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25973 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25974 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25975 Likewise.
25976 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25977 Likewise.
25978 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25979 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25980 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25981
25982 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25983
25984 * include/float.h
25985 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25986 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25987 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25988 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25989 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25990 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25991 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25992 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25993 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25994 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25995 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25996 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25997 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25998 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25999 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26000 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
26001 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26002 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
26003 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26004 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
26005 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26006 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
26007 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26008 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
26009 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26010 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
26011 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26012 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
26013 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26014 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
26015 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26016 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
26017 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26018 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
26019 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26020 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
26021 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26022 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
26023 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26024 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
26025 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26026 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
26027 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26028 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
26029 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26030 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
26031 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26032 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
26033 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26034 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
26035 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26036 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
26037 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26038 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
26039 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26040 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
26041 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26042 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
26043 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26044 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
26045 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26046 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
26047 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26048 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
26049 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26050 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
26051 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26052 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
26053 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26054 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
26055 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26056 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
26057 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26058 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
26059 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26060 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
26061 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26062 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
26063 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26064 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
26065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26066 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
26067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26068 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
26069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26070 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
26071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26072 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
26073
26074 * stdlib/tst-strtod.h (F16): New macro.
26075 (F32): Likewise.
26076 (F64): Likewise.
26077 (F32X): Likewise.
26078 (F64X): Likewise.
26079 (F128X): Likewise.
26080 (IF_FLOAT16): Likewise.
26081 (IF_FLOAT32): Likewise.
26082 (IF_FLOAT64): Likewise.
26083 (IF_FLOAT32X): Likewise.
26084 (IF_FLOAT64X): Likewise.
26085 (IF_FLOAT128X): Likewise.
26086 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
26087 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
26088 (STRTOD_TEST_FOREACH): Likewise.
26089 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
26090 (CHOOSE_f64): Likewise.
26091 (CHOOSE_f32x): Likewise.
26092 (CHOOSE_f64x): Likewise.
26093
26094 2017-11-07 Andreas Schwab <schwab@suse.de>
26095
26096 * nptl/Makefile (tests-internal): Remove tst-typesizes.
26097
26098 2017-11-07 Mike FABIAN <mfabian@redhat.com>
26099
26100 [BZ #22403]
26101 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
26102 to be escaped.
26103 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
26104 to be escaped.
26105
26106 2017-11-07 Claude Paroz <claude@2xlibre.net>
26107
26108 [BZ #22403]
26109 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
26110 to be escaped.
26111 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
26112 to be escaped.
26113 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
26114 to be escaped.
26115
26116 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26117
26118 [BZ #22298]
26119 * nptl/allocatestack.c (allocate_stack): Check if
26120 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
26121 __PTHREAD_MUTEX_HAVE_PREV is defined.
26122 * nptl/descr.h (pthread): Likewise.
26123 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26124 Likewise.
26125 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
26126 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
26127 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
26128 * sysdeps/nptl/bits/thread-shared-types.h
26129 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
26130 defines.
26131 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
26132 of __WORDSIZE for internal layout.
26133 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
26134 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
26135 instead of __WORDSIZE whether to use an union for __spins and __list
26136 fields.
26137 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
26138 case.
26139 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
26140 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
26141 defines.
26142 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
26143 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26144 Likewise.
26145 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
26146 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26147 Likewise.
26148 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
26149 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26150 Likewise.
26151 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
26152 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26153 Likewise.
26154 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
26155 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26156 Likewise.
26157 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
26158 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26159 Likewise.
26160 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
26161 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26162 Likewise.
26163 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
26164 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26165 Likewise.
26166 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
26167 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26168 Likewise.
26169 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
26170 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26171 Likewise.
26172 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
26173 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26174 Likewise.
26175 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
26176 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26177 Likewise.
26178 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
26179 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26180 Likewise.
26181 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
26182 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26183 Likewise.
26184
26185 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
26186 New macros.
26187 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
26188 checks for expected input type size.
26189 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
26190 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
26191 Likewise.
26192 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
26193 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
26194 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
26195 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
26196 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
26197 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
26198 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
26199 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
26200 superflous runtime assert check.
26201 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
26202 Likewise.
26203 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
26204 Likewise.
26205 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
26206 Likewise.
26207 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
26208 Likewise.
26209 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
26210 Likewise.
26211 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
26212 Likewise.
26213 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
26214 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
26215 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
26216 Likewise.
26217 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
26218 Likewise.
26219 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
26220 Likewise.
26221 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
26222 Likewise.
26223 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
26224 Likewise.
26225 * nptl/pthread_attr_setinheritsched.c
26226 (__pthread_attr_setinheritsched): Likewise.
26227 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
26228 Likewise.
26229 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
26230 Likewise.
26231 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
26232 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
26233 __old_pthread_attr_setstack): Likewise.
26234 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
26235 Likewise.
26236 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
26237 Likewise.
26238 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
26239 Likewise.
26240 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
26241 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
26242 Likewise.
26243 * nptl/tst-typesizes.c: Remove file.
26244
26245 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
26246 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
26247 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
26248 checks for internal pthread_mutex_t offsets.
26249 * sysdeps/aarch64/nptl/pthread-offsets.h
26250 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
26251 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
26252 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
26253 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
26254 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
26255 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
26256 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
26257 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
26258 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
26259 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
26260 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
26261 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
26262 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
26263 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
26264 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
26265 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
26266 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
26267 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
26268
26269 2017-11-07 Florian Weimer <fweimer@redhat.com>
26270
26271 * bits/mman-linux.h: Move ...
26272 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
26273 comment.
26274 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
26275 outdated comment.
26276
26277 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26278
26279 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
26280 Redefine STRNLEN as __strnlen_power8.
26281
26282 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26283
26284 * signal/sighold.c (sighold): Optimize implementation.
26285
26286 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
26287 __NR_rt_sigqueueinfo.
26288
26289 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26290 __sigtimedwait.
26291 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
26292 assume __NR_rt_sigtimedwait.
26293 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
26294 and add LIBC_CANCEL_HANDLED for cancellation marking.
26295 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
26296
26297 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26298 (sysdeps_routines): Add memchr_noneon.
26299 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
26300 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
26301 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
26302 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
26303 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
26304 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
26305 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
26306
26307 * sysdeps/arm/arm-ifunc.h: New file.
26308 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
26309 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
26310 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
26311 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
26312 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
26313 (__memcpy_neon): Avoid create hidden alias.
26314 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
26315 (__memcpy_vfp): Likewise.
26316 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26317 (sysdep_routines): Add memcpy_arm.
26318 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
26319
26320 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
26321
26322 [BZ #22362]
26323 * Makerules (make-link-multidir): New.
26324 * config.make.in (multidir): New.
26325 * configure.ac (libc_cv_multidir): New. AC_SUBST.
26326 * configure: Regenerated.
26327 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
26328 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
26329 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
26330 New target.
26331
26332 2017-11-06 Joseph Myers <joseph@codesourcery.com>
26333
26334 [BZ #22402]
26335 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
26336 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
26337
26338 2017-11-04 Mike FABIAN <mfabian@redhat.com>
26339
26340 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
26341 to be escaped.
26342
26343 2017-11-04 Florian Weimer <fweimer@redhat.com>
26344
26345 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
26346
26347 2017-11-03 Joseph Myers <joseph@codesourcery.com>
26348
26349 * math/math.h [__HAVE_DISTINCT_FLOAT16
26350 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26351 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26352 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26353 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
26354 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
26355 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
26356 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26357 (__MATH_TG_F32): New macro.
26358 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26359 (__MATH_TG_F64X): Likewise.
26360 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26361 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
26362
26363 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
26364
26365 * po/de.po: Update translations.
26366 * po/ru.po: Likewise.
26367
26368 2017-11-03 Florian Weimer <fweimer@redhat.com>
26369
26370 * manual/filesys.texi (Hard Links): Document linkat.
26371
26372 2017-11-03 Joseph Myers <joseph@codesourcery.com>
26373
26374 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
26375 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26376 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26377 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26378 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26379 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26380 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
26381 the same as _Float128.
26382 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26383 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26384 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
26385
26386 * stdlib/stdlib.h
26387 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
26388 Declare.
26389 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
26390 Likewise.
26391 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
26392 Likewise.
26393 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26394 (strtof32x): Likewise.
26395 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26396 (strtof64x): Likewise.
26397 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26398 (strtof128x): Likewise.
26399 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26400 (strfromf16): Likewise.
26401 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26402 (strfromf32): Likewise.
26403 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26404 (strfromf64): Likewise.
26405 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26406 (strfromf32x): Likewise.
26407 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26408 (strfromf64x): Likewise.
26409 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26410 (strfromf128x): Likewise.
26411 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
26412 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
26413 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
26414 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
26415 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
26416 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
26417
26418 2017-11-03 Richard Henderson <rth@twiddle.net>
26419
26420 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
26421
26422 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26423
26424 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
26425
26426 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26427
26428 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
26429 DT_TLSDESC_GOT initialization.
26430 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
26431 (_dl_tlsdesc_resolve_hold): Likewise.
26432 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
26433 (_dl_tlsdesc_resolve_hold): Likewise.
26434 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
26435 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26436
26437 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26438
26439 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
26440
26441 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26442
26443 [BZ #18572]
26444 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
26445 non-lazily for R_ARM_TLS_DESC.
26446
26447 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26448
26449 [BZ #17078]
26450 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
26451 R_ARM_TLS_DESC case.
26452 (elf_machine_lazy_rel): Remove the prelink check.
26453
26454 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26455
26456 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
26457 DT_TLSDESC_GOT initialization.
26458 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
26459 (_dl_tlsdesc_resolve_rela): Likewise.
26460 (_dl_tlsdesc_resolve_hold): Likewise.
26461 (_dl_tlsdesc_undefweak): Remove ldar.
26462 (_dl_tlsdesc_dynamic): Likewise.
26463 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
26464 (_dl_tlsdesc_resolve_rela): Likewise.
26465 (_dl_tlsdesc_resolve_hold): Likewise.
26466 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
26467 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26468 (_dl_tlsdesc_resolve_rela): Likewise.
26469 (_dl_tlsdesc_resolve_hold): Likewise.
26470
26471 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26472
26473 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26474 binding and initialization non-lazily for R_AARCH64_TLSDESC.
26475
26476 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26477
26478 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26479 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26480
26481 2017-11-02 Joseph Myers <joseph@codesourcery.com>
26482
26483 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26484 Declare.
26485 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26486 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26487 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26488 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26489 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26490 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26491 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26492 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26493 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26494 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26495 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26496
26497 2017-11-02 Mike FABIAN <mfabian@redhat.com>
26498
26499 [BZ #22382]
26500 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26501 * localedata/locales/tpi_PG: Add standard header.
26502
26503 2017-11-02 Florian Weimer <fweimer@redhat.com>
26504
26505 test-errno-linux: quotactl can fail with EPERM in containers.
26506 * sysdeps/unix/sysv/linux/test-errno-linux.c
26507 (LIST, LIST_FORWARD): New macros.
26508 (check_error_in_list): New function.
26509 (test_wrp_rv): Accept list of permitted error codes.
26510 (test_wrp_rv2): Remove.
26511 (test_wrp): Call test_wrp_rv with list of error codes.
26512 (test_wrp2): Accept list of error codes.
26513 (do_test): Adjust. Allow EPERM for quotactl.
26514
26515 2017-11-02 Florian Weimer <fweimer@redhat.com>
26516
26517 * stdio-common/bug16.c (do_test): Use array_length.
26518 * stdio-common/errlist.c (_sys_nerr): Likewise.
26519 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26520 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26521 * stdio-common/psiginfo.c (psiginfo): Use array_length.
26522 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26523 (do_test): Use array_length.
26524 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26525 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26526 * stdio-common/tst-printf-round.c (do_test): Likewise.
26527 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26528 (CHECK): Use array_length.
26529 * stdio-common/tstdiomisc.c (t3, F): Likewise.
26530 * stdio-common/tstscanf.c (main): Likewise.
26531 * stdio-common/vfprintf.c (process_string_arg): Likewise.
26532
26533 2017-11-02 Florian Weimer <fweimer@redhat.com>
26534
26535 Add array_length and array_end macros.
26536 * include/array_length.h: New file.
26537
26538 2017-11-02 Florian Weimer <fweimer@redhat.com>
26539
26540 [BZ #22332]
26541 * posix/tst-glob-tilde.c (do_noescape): New variable.
26542 (one_test): Process it.
26543 (do_test): Set do_noescape. Add unescaping test case.
26544
26545 2017-11-01 Joseph Myers <joseph@codesourcery.com>
26546
26547 * math/complex.h
26548 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26549 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26550 with appropriate macros defined and undefined.
26551 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26552 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26553 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26554 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26555 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26556 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26557 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26558 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26559 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26560 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26561
26562 * math/complex.h
26563 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26564 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26565 that for long double. Do not condition define and undefine of
26566 _Mdouble_complex_ on [__CFLOAT128].
26567
26568 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
26569
26570 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26571 of <sysdeps/generic/sysdep.h>.
26572 (ALIGNARG): Removed.
26573 (ASM_SIZE_DIRECTIVE): Likewise.
26574 (ENTRY): Likewise.
26575 (END): Likewise.
26576 (ENTRY_CHK): Likewise.
26577 (END_CHK): Likewise.
26578 (syscall_error): Likewise.
26579 (mcount): Likewise.
26580 (PSEUDO_END): Likewise.
26581 (L): Likewise.
26582 (atom_text_section): Likewise.
26583 * sysdeps/x86/sysdep.h: New file.
26584 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26585 of <sysdeps/generic/sysdep.h>.
26586 (ALIGNARG): Removed.
26587 (ASM_SIZE_DIRECTIVE): Likewise.
26588 (ENTRY): Likewise.
26589 (END): Likewise.
26590 (ENTRY_CHK): Likewise.
26591 (END_CHK): Likewise.
26592 (syscall_error): Likewise.
26593 (mcount): Likewise.
26594 (PSEUDO_END): Likewise.
26595 (L): Likewise.
26596 (atom_text_section): Likewise.
26597
26598 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
26599
26600 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26601 category of LC_CTYPE set to "i18n:2012".
26602 * localedata/locales/i18n_ctype: Regenerate.
26603
26604 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
26605
26606 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26607 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26608 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26609 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26610
26611 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26612 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26613 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26614 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26615
26616 2017-10-31 Joseph Myers <joseph@codesourcery.com>
26617
26618 * math/complex.h
26619 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26620 New macro.
26621 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26622 Likewise.
26623 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26624 Likewise.
26625 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26626 (CMPLXF32X): Likewise.
26627 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26628 (CMPLXF64X): Likewise.
26629 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26630 (CMPLXF128X): Likewise.
26631
26632 * math/math.h
26633 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26634 (__MATH_EVAL_FMT2): Define to add 0.0f.
26635
26636 2017-10-31 Alan Modra <amodra@gmail.com>
26637
26638 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26639 include sysdep.h.
26640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26652 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26654 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26655 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26656 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26657 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26658 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26659 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26660 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26661 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26662 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26663 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26664 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26665 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26666 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26667 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26668 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26669 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26670 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26671 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26672 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26673 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26674 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26675 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26676 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26677 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26678 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26679 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26680 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26681 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26682 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26683 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26684 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26685 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26686 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26687 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26688 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26689 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26690 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26691 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26692 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26693 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26694 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26695 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26696 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26697 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26698 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26699 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26700 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26701 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26702 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26703 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26704 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26705 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26706 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26707 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26708 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26709
26710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26711 include sysdep.h and math_ldbl_opt.h.
26712
26713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26714 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
26715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26720 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26721 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26729 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26730 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26734 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26736 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26739
26740 2017-10-31 Alan Modra <amodra@gmail.com>
26741
26742 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26743 string/strncase_l.c, not string/strncase.c.
26744 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26745 (libc_hidden_def): Redefine.
26746
26747 2017-10-31 Alan Modra <amodra@gmail.com>
26748
26749 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26750 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26751 (__strcasecmp): Don't define.
26752
26753 2017-10-31 Alan Modra <amodra@gmail.com>
26754
26755 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26756 IS_IN (libc).
26757 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26758 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26759 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26760
26761 2017-10-31 Alan Modra <amodra@gmail.com>
26762
26763 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26764 USE_AS_STPNCPY.
26765
26766 2017-10-31 Alan Modra <amodra@gmail.com>
26767
26768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26769 Redefine only when SHARED.
26770
26771 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26772
26773 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26774 Include <bits/math-finite.h> with appropriate macros defined and
26775 undefined.
26776 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26777 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26778 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26779 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26780 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26781
26782 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26783 [!_Mlong_double_] (_Mlong_double_): Likewise.
26784 [!_Mfloat16_] (_Mfloat16_): Likewise.
26785 [!_Mfloat32_] (_Mfloat32_): Likewise.
26786 [!_Mfloat64_] (_Mfloat64_): Likewise.
26787 [!_Mfloat128_] (_Mfloat128_): Likewise.
26788 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26789 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26790 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26791 (_Mdouble_): Define without indirection through those macros.
26792 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26793 [!_Mfloat128_] (_Mfloat128_): Likewise.
26794 [_Mlong_double_] (_Mlong_double_): Likewise.
26795 (_Mdouble_): Define without indirection through those macros.
26796 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26797 not add -D_Mlong_double_=double.
26798 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26799 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26800
26801 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26802
26803 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26804
26805 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 * sysdeps/x86/libc-start.c: Reformat.
26808
26809 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26810
26811 [BZ #22353]
26812 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26813 (1): Renamed to ...
26814 (L(Src0)): This.
26815 (L(Src1)): New.
26816 (L(Src2)): Likewise.
26817 (L(1)): Renamed to ...
26818 (L(Src3)): This.
26819
26820 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26821
26822 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26823 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26824 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26825 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26826 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26827 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26828 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26829 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26830 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26831 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26832 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26833 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26834 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26835 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26836 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26837 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26838 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26839 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26840 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26841 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26842 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26843 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26844 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26845 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26846 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26847 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26848 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26849 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26850 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26851 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26852 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26853 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26854 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26855 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26856 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26857 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26858 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26859 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26860 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26861 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26862 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26863 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26864 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26865 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26866 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26867 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26868 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26869 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26870 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26871 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26872 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26873 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26874 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26875 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26876 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26877 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26878 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26879 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26880 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26881 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26882 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26883 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26884 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26885 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26886 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26887 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26888
26889 2017-10-30 Florian Weimer <fweimer@redhat.com>
26890
26891 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26892 always defined.
26893 * io/tst-mkdirat.c (do_test): Likewise.
26894 * io/tst-mkfifoat.c (do_test): Likewise.
26895 * io/tst-mknodat.c (do_test): Likewise.
26896 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26897 * locale/programs/locale.c (select_dirs): Likewise.
26898 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26899 * posix/bug-glob2.c (my_readdir): Likewise.
26900 * posix/tst-dir.c (main): Likewise.
26901 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26902 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26903
26904 2017-10-30 Florian Weimer <fweimer@redhat.com>
26905
26906 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26907 just __USE_GNU.
26908
26909 2017-10-30 Florian Weimer <fweimer@redhat.com>
26910
26911 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26912 Convert to support/test-driver.c.
26913 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26914 New macro parameters.
26915 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26916 * posix/tst-gnuglob.c: New file.
26917 * posix/tst-gnuglob64.c: Likewise.
26918 * posix/Makefile (tests): Add tst-gnuglob64.
26919
26920 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26921
26922 [BZ #19485]
26923 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26924 and use a better translation for March in “mon”.
26925 * localedata/locales/csb_PL: Use more ASCII to improve the
26926 readability of the source.
26927
26928 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26929
26930 [BZ #13953]
26931 * localedata/locales/km_KH: Use ASCII as much
26932 as possible for better readability of the source and
26933 remove useless comments.
26934 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26935 was commented out and apparently wrong anyway because it was
26936 using Lao characters. If Buddhist era should be used
26937 for km_KH, a native speaker should write the correct formaat
26938 for Khmer.
26939 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26940 (According to CLDR, the first weekday for Cambodia is Sunday).
26941 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26942 (These were using Lao characters which must be wrong. If we get
26943 the correct data from a native speaker, we could add it back, until
26944 then it is better not to have name_mr and name_mrs at all than
26945 having it wrong).
26946
26947 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26948
26949 * locale/loadlocale.c: Correct size of
26950 _nl_value_type_LC_<category> arrays.
26951
26952 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26953
26954 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26955 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26956 with appropriate macros defined and undefined.
26957 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26958 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26959 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26960 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26961 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26962
26963 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26964
26965 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26966 "-O2 -march=i586".
26967
26968 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26969
26970 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26971 with lowercase letters to make it agree with CLDR.
26972
26973 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26974
26975 [BZ #15260]
26976 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26977 first letters of yesstr and nostr in yesexpr and noexpr,
26978 not for the full words.
26979 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26980 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26981 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26982 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26983 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26984 first letters of yesstr and nostr in yesexpr and noexpr,
26985 until now only English was matched in yesexpr and noexpr.
26986 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26987 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26988 fil but not for tl. As tl and fil are very similar, using fil
26989 is probably better than using English.
26990
26991 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26992
26993 [BZ #21706]
26994 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26995 in yesstr and nostr.
26996
26997 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26998
26999 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
27000 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
27001 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
27002 Likewise.
27003 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
27004 Likewise.
27005 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
27006 Likewise.
27007 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
27008 Likewise.
27009 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27010 (SNANF128X): Likewise.
27011
27012 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
27013 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
27014 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27015 (HUGE_VAL_F32): Likewise.
27016 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27017 (HUGE_VAL_F64): Likewise.
27018 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27019 (HUGE_VAL_F32X): Likewise.
27020 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27021 (HUGE_VAL_F64X): Likewise.
27022 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27023 (HUGE_VAL_F128X): Likewise.
27024
27025 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
27026
27027 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
27028 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
27029 for the br_FR locale.
27030
27031 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
27032
27033 [BZ #21706]
27034 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
27035
27036 2017-10-25 Carlos O'Donell <carlos@redhat.com>
27037
27038 * locale/programs/record-status.h: Define globals, and function
27039 prototypes. Move function bodies...
27040 * locale/programs/record-status.c: ... to here. New file.
27041 * iconv/Makefile (iconv_prog-modules): Add record-status.
27042 * locale/Makefile (lib-modules): Likewise.
27043 * iconv/iconv_prog.c: Remove verbose.
27044 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
27045 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
27046 record a warning about ASCII compatibility.
27047 * locale/programs/ld-monetary.c (monetary_finish): If
27048 warn_int_curr_symbol is true then record a warning about the symbol
27049 not being in our ISO 4217 list.
27050 * locale/programs/locale.c: Include record-status.h. Remove verbose.
27051 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
27052 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
27053 (OPT_NO_WARN): Define.
27054 (OPT_WARN): Define.
27055 (options): Add entry for --no-warnings, and --warnings.
27056 (set_warnings): New function to enable/disable warnings.
27057 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
27058 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
27059 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
27060 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
27061 Pass flags to generate_locale.
27062 (generate_locale): Accept new flag argument and pass it to localedef
27063 invocation.
27064 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
27065 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
27066
27067 * localedata/Makefile (test-input-data): Use full file name.
27068 * localedata/da_DK.in: Rename to...
27069 * localedata/da_DK.ISO-8859-1.in: ...this.
27070 * localedata/de_DE.in: Rename to...
27071 * localedata/de_DE.ISO-8859-1.in: ...this.
27072 * localedata/en_US.in: Rename to...
27073 * localedata/en_US.ISO-8859-1.in: ...this.
27074 * localedata/fr_FR.in: Rename to...
27075 * localedata/fr_FR.UTF-8.in: ... this.
27076 * localedata/hr_HR.in: Rename to...
27077 * localedata/hr_HR.ISO-8859-2.in: ...this.
27078 * localedata/hu_HU.in: Rename to...
27079 * localedata/hu_HU.UTF-8.in: ...this.
27080 * localedata/si_LK.in: Rename to...
27081 * localedata/si_LK.UTF-8.in: ...this.
27082 * localedata/sv_SE.in: Rename to...
27083 * localedata/sv_SE.ISO-8859-1.in: ...this.
27084 * localedata/tr_TR.in: Rename to...
27085 * localedata/tr_TR.UTF-8.in: ...this.
27086 * localedata/uk_UA.in: Rename to...
27087 * localedata/uk_UA.UTF-8.in: ...this.
27088 * localedata/sort-test.sh: Test file is locale name with the
27089 suffix.
27090
27091 * localedata/unicode-gen/Makefile (check_i18n): Rename to
27092 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
27093 file.
27094 * localedata/locales/i18n_ctype: Regenerate.
27095 * localedata/locales/tr_TR: Likewise.
27096 * localedata/locales/translit_circle: Likewise.
27097 * localedata/locales/translit_cjk_compat: Likewise.
27098 * localedata/locales/translit_combining: Likewise.
27099 * localedata/locales/translit_compat: Likewise.
27100 * localedata/locales/translit_font: Likewise.
27101 * localedata/locales/translit_fraction: Likewise.
27102
27103 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27104
27105 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
27106 lxvd2x/stxvd2x with lvx/stvx.
27107 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
27108
27109 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
27110
27111 * include/alloc_buffer.h: Replace "if if " with "if " in
27112 comments.
27113 * sysdeps/mips/memcpy.S: Likkewise.
27114 * sysdeps/mips/memset.S: Likewise.
27115 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
27116 Likewise.
27117 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
27118 Likewise.
27119 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
27120 Likewise.
27121
27122 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27123
27124 [BZ #15261]
27125 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
27126 yesexpr and noexpr.
27127 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27128 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27129 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27130 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27131 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
27132 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
27133 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
27134
27135 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27136
27137 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
27138 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
27139 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27140 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27141 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27142 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
27143 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27144 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27145 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27146 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
27147 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
27148 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
27149
27150 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27151
27152 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
27153 as possible for better readability of the source.
27154 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
27155 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
27156 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
27157 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
27158 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
27159 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
27160 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
27161 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
27162 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
27163 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
27164 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
27165 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
27166 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
27167 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
27168 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
27169 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
27170 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
27171 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
27172 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
27173 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
27174 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
27175 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
27176 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
27177 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
27178 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
27179 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
27180 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
27181 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
27182 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
27183 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
27184 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
27185 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27186 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
27187 * localedata/locales/en_US (LC_MESSAGES): Likewise.
27188 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
27189 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
27190 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
27191 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
27192 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
27193 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
27194 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
27195 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
27196 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
27197 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
27198 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
27199 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
27200 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
27201 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
27202 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
27203 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
27204 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
27205 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
27206 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
27207 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27208 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27209 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
27210 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
27211 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
27212 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
27213 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
27214 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
27215 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
27216 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
27217 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
27218 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
27219 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
27220 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
27221 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
27222 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
27223 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
27224 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
27225 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
27226 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
27227 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
27228 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27229 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
27230 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
27231 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
27232 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
27233 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
27234 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
27235 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
27236 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
27237 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27238 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
27239 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
27240 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
27241 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27242 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
27243 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
27244 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
27245 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
27246 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27247 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
27248 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
27249 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27250 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
27251 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27252 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
27253 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
27254 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
27255 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
27256 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
27257 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
27258 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
27259 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
27260 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
27261 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
27262 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
27263 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
27264 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
27265 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
27266 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27267 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
27268 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
27269 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
27270 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
27271 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
27272 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
27273 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
27274 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
27275 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
27276 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
27277 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
27278 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
27279 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
27280 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
27281 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
27282 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
27283 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
27284 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
27285 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
27286 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
27287 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
27288 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
27289 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
27290 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
27291 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
27292 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
27293 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
27294 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
27295 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
27296 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
27297 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
27298 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
27299 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
27300 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
27301 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
27302 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
27303 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
27304 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
27305 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
27306 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
27307 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
27308 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
27309 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
27310 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
27311 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
27312 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
27313 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
27314 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
27315 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
27316 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
27317 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
27318 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
27319 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
27320 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
27321 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
27322 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
27323 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
27324 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
27325 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
27326 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
27327 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
27328
27329 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27330
27331 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
27332 (Use first letters of yesstr and nostr correctly instead of using
27333 full words).
27334
27335 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27336
27337 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
27338 (Use first letters of yesstr and nostr correctly).
27339
27340 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27341
27342 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
27343 also check for the first characters of yesstr and nostr.
27344 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
27345 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
27346
27347 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27348
27349 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
27350 also check for Chinese characters.
27351
27352 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27353
27354 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
27355 match also for the contents of yesstr and nostr. As the first letter
27356 of yesstr and nostr is equal, checking only for the first letter
27357 is not enough.
27358
27359 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27360
27361 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
27362 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
27363
27364 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27365
27366 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
27367 of main contributor.
27368
27369 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27370
27371 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
27372 instead of using English.
27373
27374 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27375
27376 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
27377 by including the first letters of nostr and yesexpr in the regexp.
27378 Also make it more readable by using ASCII where possible.
27379
27380 2017-10-25 Mike FABIAN <mfabian@redhat.com>
27381
27382 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
27383 the first letter of nostr in the regexp. It agrees with CLDR now.
27384 Also make it more readable by using ASCII where possible.
27385
27386 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27387
27388 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
27389 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
27390 these strings contain a U+17D6 (which somewhat looks like a colon)
27391 instead of a real colon to separate the full words for “yes”
27392 and “no” from the single letter responses.
27393
27394 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27395
27396 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
27397 it agree with CLDR (include the first letter of yesstr).
27398 Also make it more readable by using ASCII where possible.
27399
27400 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27401
27402 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
27403 and improve yesexpr and noexpr. The yesstr and nostr apparently
27404 came from CLDR. And CLDR has a bug there: these strings contain
27405 a U+0903 (which looks like a colon) instead of a real colon
27406 to separate the full words for “yes” and “no” from the single
27407 letter responses.
27408
27409 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27410
27411 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
27412 letters of the full yesstr and nostr in yesexpr and noexpr.
27413
27414 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27415
27416 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
27417 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
27418 * localedata/locales/an_ES: Make source more readable by using ASCII
27419 where possible.
27420
27421 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27422
27423 [BZ #20952]
27424 * localedata/locales/yuw_PG: New file.
27425 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
27426 * locale/iso-639.def: Add Yau (Uruwa).
27427
27428 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
27429
27430 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
27431
27432 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
27433
27434 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
27435 (__libc_realloc): Likewise.
27436 (_mid_memalign): Likewise.
27437 (__libc_calloc): Likewise.
27438
27439 2017-10-23 Mike FABIAN <mfabian@redhat.com>
27440
27441 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
27442 by adding the generic +1 and -0 as in all other locales.
27443 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
27444 day names and make it more readable by using ASCII where possible.
27445
27446 2017-10-24 Joseph Myers <joseph@codesourcery.com>
27447
27448 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
27449 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
27450
27451 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27452
27453 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
27454 WNOHANG in waitpid call.
27455
27456 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
27457
27458 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
27459 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
27460
27461 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
27462 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
27463 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
27464 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
27465 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
27466 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
27467 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
27468 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
27469 variables.
27470
27471 2017-10-23 Michael Collison <michael.collison@arm.com>
27472
27473 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27474 with __builtin_sqrt.
27475 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27476 with __builtin_sqrtf.
27477 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27478 with __builtin_ceil.
27479 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27480 with __builtin_ceilf.
27481 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27482 with __builtin_floor.
27483 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27484 with __builtin_floorf.
27485 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27486 with __builtin_fma.
27487 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27488 with __builtin_fmaf.
27489 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27490 with __builtin_fmax.
27491 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27492 with __builtin_fmaxf.
27493 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27494 with __builtin_fmin.
27495 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27496 with __builtin_fminf.
27497 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27498 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27499 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27500 with builtin_rint and conversion to int.
27501 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27502 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27503 with builtin_llround.
27504 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27505 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27506 with builtin_rint and conversion to long int.
27507 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27508 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27509 with builtin_lround.
27510 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27511 with builtin_lroundf.
27512 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27513 statements with __builtin_nearbyint.
27514 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27515 statements with __builtin_nearbyintf.
27516 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27517 with __builtin_rint.
27518 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27519 with __builtin_rintf.
27520 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27521 with __builtin_round.
27522 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27523 with __builtin_roundf.
27524 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27525 with __builtin_trunc.
27526 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27527 with __builtin_truncf.
27528 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27529 and s_l[l]round[f].c too.
27530
27531 2017-10-23 Alan Modra <amodra@gmail.com>
27532
27533 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27534 Adjust stack after restoring regs. Add missing LR cfi_restore.
27535
27536 2017-10-23 Alan Modra <amodra@gmail.com>
27537
27538 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27539 Move LR save and frame setup/teardown and LR restore to
27540 immediately around memset call. Provide cfi.
27541
27542 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27543
27544 * sysdeps/i386/fpu/e_powf.S: Removed.
27545 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27546 * sysdeps/i386/fpu/w_powf.c: Likewise.
27547 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27548 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27549 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27550 Add e_powf-sse2.
27551 (CFLAGS-e_powf-sse2.c): New.
27552 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27553 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27554
27555 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27556
27557 * sysdeps/i386/fpu/e_log2f.S: Removed.
27558 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27559 * sysdeps/i386/fpu/w_log2f.c: Likewise.
27560 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27561 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27562 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27563 Add e_log2f-sse2.
27564 (CFLAGS-e_log2f-sse2.c): New.
27565 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27566 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27567
27568 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27569
27570 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27571 Add e_powf-fma.
27572 (CFLAGS-e_powf-fma.c): New.
27573 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27574 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27575
27576 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27577
27578 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27579 Add e_log2f-fma.
27580 (CFLAGS-e_log2f-fma.c): New.
27581 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27582 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27583
27584 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27585
27586 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27587 Add e_logf-fma.
27588 (CFLAGS-e_logf-fma.c): New.
27589 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27590 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27591
27592 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27593
27594 * sysdeps/i386/fpu/e_logf.S: Removed.
27595 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27596 * sysdeps/i386/fpu/w_logf.c: Likewise.
27597 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27598 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27599 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27600 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27601 Add e_logf-sse2.
27602 (CFLAGS-e_logf-sse2.c): New.
27603 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27604 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27605
27606 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27607
27608 * sysdeps/i386/fpu/e_exp2f.S: Removed.
27609 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27610 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27611 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27612 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27613 Add e_exp2f-sse2.
27614 (CFLAGS-e_exp2f-sse2.c): New.
27615 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27616 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27617
27618 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27619
27620 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27621 Add e_exp2f-fma.
27622 (CFLAGS-e_exp2f-fma.c): New.
27623 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27624 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27625
27626 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27627
27628 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27629 * sysdeps/i386/fpu/e_expf.S: Likewise.
27630 * sysdeps/i386/fpu/math_errf.c: Likewise.
27631 * sysdeps/i386/fpu/w_expf.c: Likewise.
27632 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27633 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27634 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27635 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27636 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27637 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27638 Remove e_expf-ia32.
27639 (CFLAGS-e_expf-sse2.c): New.
27640 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27641 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27642
27643 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27644
27645 * sysdeps/x86_64/fpu/e_expf.S: Removed.
27646 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27647 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27648 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27649 e_expf.c.
27650 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27651 New.
27652 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27653 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27654 Renamed to ...
27655 (__redirect_expf): This.
27656 (SYMBOL_NAME): Changed to expf.
27657 (__ieee754_expf): Renamed to ...
27658 (__expf): This.
27659 (__GI___expf): This.
27660 (__ieee754_expf): Add strong_alias.
27661 (__expf_finite): Likewise.
27662 (__expf): New.
27663 Include <sysdeps/ieee754/flt-32/e_expf.c>.
27664
27665 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
27666
27667 [BZ #22332]
27668 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27669 unescaping.
27670
27671 2017-10-21 Florian Weimer <fweimer@redhat.com>
27672
27673 * posix/Makefile (tests): Add tst-glob-tilde.
27674 (tests-special): Add tst-glob-tilde-mem.out
27675 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27676 (tst-glob-tilde-mem.out): Add mtrace check.
27677 * posix/tst-glob-tilde.c: New file.
27678
27679 2017-10-20 Joseph Myers <joseph@codesourcery.com>
27680
27681 * bits/floatn-common.h: New file.
27682 * math/Makefile (headers): Add bits/floatn-common.h.
27683 * bits/floatn.h: Include <bits/floatn-common.h>.
27684 * sysdeps/ia64/bits/floatn.h: Likewise.
27685 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27686 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27687 * sysdeps/powerpc/bits/floatn.h: Likewise.
27688 * sysdeps/x86/bits/floatn.h: Likewise.
27689
27690 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27691
27692 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27693 indicates whether compiler emits an warning for alias for
27694 functions with incompatible types.
27695
27696 [BZ #22273]
27697 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27698 the auxiliary process is terminated by a signal before calling _exit
27699 or execve.
27700
27701 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27702
27703 [BZ #21265]
27704 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27705 New.
27706 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27707 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27708 and bit_arch_XSAVEC_Usable if needed.
27709 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27710 and bit_arch_Use_dl_runtime_resolve_opt.
27711 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27712 Removed.
27713 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27714 (bit_arch_Prefer_No_AVX512): Updated.
27715 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27716 (bit_arch_XSAVEC_Usable): New.
27717 (STATE_SAVE_OFFSET): Likewise.
27718 (STATE_SAVE_MASK): Likewise.
27719 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27720 (cpu_features): Add xsave_state_size and xsave_state_full_size.
27721 (index_arch_Use_dl_runtime_resolve_opt): Removed.
27722 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27723 (index_arch_XSAVEC_Usable): New.
27724 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27725 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
27726 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27727 is enabled.
27728 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27729 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27730 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27731 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27732 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27733 _dl_runtime_resolve_xsavec.
27734 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27735 Removed.
27736 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27737 instead of VEC_SIZE.
27738 (REGISTER_SAVE_BND0): Removed.
27739 (REGISTER_SAVE_BND1): Likewise.
27740 (REGISTER_SAVE_BND3): Likewise.
27741 (REGISTER_SAVE_RAX): Always defined to 0.
27742 (VMOV): Removed.
27743 (_dl_runtime_resolve_avx): Likewise.
27744 (_dl_runtime_resolve_avx_slow): Likewise.
27745 (_dl_runtime_resolve_avx_opt): Likewise.
27746 (_dl_runtime_resolve_avx512): Likewise.
27747 (_dl_runtime_resolve_avx512_opt): Likewise.
27748 (_dl_runtime_resolve_sse): Likewise.
27749 (_dl_runtime_resolve_sse_vex): Likewise.
27750 (USE_FXSAVE): New.
27751 (_dl_runtime_resolve_fxsave): Likewise.
27752 (USE_XSAVE): Likewise.
27753 (_dl_runtime_resolve_xsave): Likewise.
27754 (USE_XSAVEC): Likewise.
27755 (_dl_runtime_resolve_xsavec): Likewise.
27756 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27757 Removed.
27758 (_dl_runtime_resolve_avx512_opt): Likewise.
27759 (_dl_runtime_resolve_avx): Likewise.
27760 (_dl_runtime_resolve_avx_opt): Likewise.
27761 (_dl_runtime_resolve_sse): Likewise.
27762 (_dl_runtime_resolve_sse_vex): Likewise.
27763 (_dl_runtime_resolve_fxsave): New.
27764 (_dl_runtime_resolve_xsave): Likewise.
27765 (_dl_runtime_resolve_xsavec): Likewise.
27766
27767 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27768
27769 [BZ #22320]
27770 CVE-2017-15670
27771 * posix/glob.c (__glob): Fix one-byte overflow.
27772
27773 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27774
27775 * malloc/malloc.c (sysdep-cancel.h): Add include.
27776
27777 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27778
27779 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27780
27781 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27782
27783 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27784 (tests): Remove $(objpfx)ga_test depdendency.
27785 * resolv/ga_test.c: Remove file.
27786
27787 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27788
27789 [BZ #18812]
27790 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27791 * localedata/locales/kab_DZ: New file.
27792
27793 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27794
27795 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27796 _dl_relocate_static_pie instead of _dl_start to compute load
27797 address in static PIE.
27798
27799 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27800
27801 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27802
27803 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27804
27805 [BZ #13605]
27806 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27807 * localedata/locales/shn_MM: New file.
27808
27809 2017-10-20 Florian Weimer <fweimer@redhat.com>
27810
27811 [BZ #22321]
27812 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27813 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27814 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27815 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27816 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27817 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27818
27819 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27820
27821 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27822
27823 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27824
27825 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27826
27827 [BZ #22322]
27828 * sysdeps/mips/bits/long-double.h: Move to ....
27829 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27830
27831 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27832
27833 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27834
27835 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27836 H.J. Lu <hongjiu.lu@intel.com>
27837
27838 [BZ #22299]
27839 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27840 GLRO(dl_platform) to NULL.
27841 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27842 (modules-names): Add tst-platformmod-1 and
27843 x86_64/tst-platformmod-2.
27844 (CFLAGS-tst-platform-1.c): New.
27845 (CFLAGS-tst-platformmod-1.c): Likewise.
27846 (CFLAGS-tst-platformmod-2.c): Likewise.
27847 (LDFLAGS-tst-platformmod-2.so): Likewise.
27848 ($(objpfx)tst-platform-1): Likewise.
27849 ($(objpfx)tst-platform-1.out): Likewise.
27850 (tst-platform-1-ENV): Likewise.
27851 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27852 * sysdeps/x86_64/tst-platform-1.c: New file.
27853 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27854 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27855
27856 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27857
27858 [BZ #13994]
27859 * locale/iso-639.def: Add Karbi.
27860 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27861 * localedata/locales/mjw_IN: New file.
27862
27863 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27864
27865 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27866 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27867 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27868 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27869 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27870 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27871 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27872 <bits/floatn.h>.
27873 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27874 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27875 * manual/math.texi (Mathematics): Document additional architecture
27876 support for _Float128.
27877 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27878 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27879 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27880 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27881 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27882 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27883 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27884 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27885 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27887 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27888 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27889 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27890 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27891 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27892
27893 2017-10-18 Renlin Li <renlin.li@arm.com>
27894
27895 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27896 _DYNAMIC symbol to calculate load address.
27897
27898 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27899
27900 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27901 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27902 summary bits.
27903 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27904 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27905
27906 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27907
27908 [BZ #16777]
27909 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27910 and improve readability by using more ASCII.
27911 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27912 and improve readability by using more ASCII.
27913
27914 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27915
27916 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27917 not all targets support atomics on bool.
27918
27919 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27920
27921 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27922 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27923 __f128.
27924 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27925 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27926 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27927 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27928 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27929 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27930
27931 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27932
27933 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27934 defines.
27935
27936 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27937
27938 [BZ #22159]
27939 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27940 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27941 (do_check_remalloced_chunk): Fix build bug.
27942 (do_check_malloc_state): Add assert that checks arena->top.
27943 (malloc_consolidate): Remove initialization.
27944 (int_mallinfo): Remove call to malloc_consolidate.
27945 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27946
27947 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27948
27949 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27950 (have_fastchunks): Remove.
27951 (clear_fastchunks): Remove.
27952 (set_fastchunks): Remove.
27953 (malloc_state): Add have_fastchunks.
27954 (malloc_init_state): Use have_fastchunks.
27955 (do_check_malloc_state): Remove incorrect invariant checks.
27956 (_int_malloc): Use have_fastchunks.
27957 (_int_free): Likewise.
27958 (malloc_consolidate): Likewise.
27959
27960 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27961
27962 * malloc/malloc.c (tcache_put): Inline.
27963 (tcache_get): Inline.
27964
27965 2017-10-17 Jordi Mallach <jordi@gnu.org>
27966
27967 Aurelien Jarno <aurelien@aurel32.net>
27968 [BZ #2522]
27969 * localedata/locales/ca_ES@valencia: New file.
27970 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27971
27972 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27973
27974 [BZ #22296]
27975 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27976 < 6.x
27977
27978 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27979
27980 * scripts/build-many-glibcs.py (Context.add_all_configs):
27981 Add arm-linux-gnueabihf multiarch extra_glibcs.
27982
27983 * sysdeps/generic/ifunc-init.h: New file.
27984 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27985
27986 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27987
27988 [BZ #22019]
27989 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27990 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27991 * stdlib/tst-strfmon_l.c: adapt test case.
27992
27993 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27994
27995 * sysdeps/generic/float128-abi.h: New file.
27996 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27997 non-__prefixed symbols to ....
27998 * math/Versions: ... here. Include <float128-abi.h>.
27999 * stdlib/Versions ... and here. Include <float128-abi.h>
28000
28001 2017-10-16 Florian Weimer <fweimer@redhat.com>
28002
28003 * version.h (VERSION): Switch to ".9000" as the development
28004 version suffix.
28005
28006 2017-10-16 Florian Weimer <fweimer@redhat.com>
28007
28008 [BZ #22050]
28009 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
28010 compat_symbol_reference to access non-default version.
28011
28012 2017-10-16 Florian Weimer <fweimer@redhat.com>
28013
28014 * malloc/Makefile (others-extras): Set to mcheck-init.o.
28015
28016 2017-10-16 Carlos O'Donell <carlos@redhat.com>
28017
28018 * include/shlib-compat.h (compat_symbol_reference): Update
28019 comment.
28020
28021 2017-10-16 Joseph Myers <joseph@codesourcery.com>
28022
28023 * math/Makefile (test-types): Add
28024 $(type-float128-$(float128-alias-fcts)).
28025 * math/test-float128.h (TYPE_STR): Define conditional on
28026 [FLT128_MANT_DIG == LDBL_MANT_DIG].
28027 (ULP_IDX): Likewise.
28028 (ULP_I_IDX): Likewise.
28029
28030 * stdlib/strtold.c: Include <bits/floatn.h>
28031 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
28032 and later undefine as macro. Define as weak alias if
28033 [!USE_WIDE_CHAR].
28034 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
28035 and later undefine as macro. Define as weak alias if
28036 [USE_WIDE_CHAR].
28037 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
28038 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
28039 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
28040 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
28041 Define and later undefine as macro. Define as weak alias if
28042 [USE_WIDE_CHAR].
28043 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
28044 <bits/floatn.h>.
28045 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
28046 Define and later undefine as macro. Define as weak alias if
28047 [!USE_WIDE_CHAR].
28048 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
28049 Define and later undefine as macro. Define as weak alias if
28050 [USE_WIDE_CHAR].
28051
28052 2017-10-15 Carlos O'Donell <carlos@redhat.com>
28053
28054 * localedata/collate-test.c (allocate_arrays): Don't use \n in
28055 record_verbose messages.
28056
28057 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
28058
28059 [BZ #22052]
28060 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
28061 to silence -O3 -Wall warning with GCC 7.
28062
28063 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
28064
28065 * Makeconfig (+link-static-before-libc): Use the first of
28066 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
28067 * gmon/Makefile (tests): Add tst-gmon-static.
28068 (tests-static): Likewise.
28069 (CFLAGS-tst-gmon-static.c): New.
28070 (CRT-tst-gmon-static): Likewise.
28071 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
28072 (tst-gmon-static-ENV): Likewise.
28073 (tests-special): Likewise.
28074 ($(objpfx)tst-gmon-static.out): Likewise.
28075 (clean-tst-gmon-static-data): Likewise.
28076 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
28077 * gmon/tst-gmon-static-gprof.sh: New file.
28078 * gmon/tst-gmon-static.c: Likewise.
28079
28080 2017-10-13 Carlos O'Donell <carlos@redhat.com>
28081
28082 [BZ #22295]
28083 * locale/programs/linereader.c (get_string): Don't warn on
28084 non-symbolic character.
28085
28086 [BZ #22294]
28087 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
28088 int_curr_symbol.
28089
28090 [BZ #22292]
28091 * locale/programs/record-status.h: New file
28092 * locale/programs/locale.c: Add comment.
28093 * locale/programs/charmap-dir.c: Don't include error.h.
28094 (charmap_opendir): Use record_error.
28095 * locale/programs/charmap.c: Don't include error.h.
28096 (charmap_read): Use record_error, and record_warning.
28097 (parse_charmap): Likewise.
28098 * locale/programs/ld-address.c: Don't include error.h.
28099 (address_finish): Use record_error, and record_warning.
28100 * locale/programs/ld-collate.c: Don't include error.h.
28101 (collate_finish): Use record_error, and record_error_at_line.
28102 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
28103 (ctype_class_new): Likewise.
28104 (ctype_map_new): Likewise.
28105 (set_one_default): Likewise.
28106 (set_class_defaults): Likewise.
28107 (translit_flatten): Likewise.
28108 (allocate_arrays): Use record_error, and record_verbose.
28109 * locale/programs/ld-identification.c: Don't include error.h.
28110 (indentation_finish): Use record_error and record_warning.
28111 * locale/programs/ld-measurement.c: Don't include error.h.
28112 (measurement_finish): Use record_error.
28113 * locale/programs/ld-messages.c
28114 (message_finish): Likewise.
28115 * locale/programs/ld-monetary.c
28116 (monetary_finish): Likewise.
28117 * locale/programs/ld-name.c (name_finish): Use record_error
28118 and record_warning.
28119 * locale/programs/ld-numeric.c
28120 (numeric_finish): Use record_error.
28121 * locale/programs/ld-paper.c: Don't include error.h.
28122 (paper_finish): Use record_error.
28123 * locale/programs/ld-telephone.c: Don't include error.h.
28124 (telephone_finish): Use record_error.
28125 * locale/programs/ld-time.c (time_finish): Likewise.
28126 * locale/programs/linereader.h (lr_error): Make inline func.
28127 * locale/programs/localedef.c: Define recorded_warning_count,
28128 and recorded_error_count.
28129 (main): Use record_error. Use recorded_error_count and
28130 recorded_warning_count to issue correct error returns.
28131 (add_to_readlist): Use record_error.
28132 (find_locale): Likewise.
28133 (load_locale): Likewise.
28134 * locale/programs/localedef.h: Remove be_quiet
28135 and WITH_CUR_LOCALE.
28136 * locale/programs/locarchive.c (compare_from_file): Use
28137 record_error.
28138 * locale/programs/locfile.c (write_locale_data): Use
28139 record_error.
28140 * locale/programs/repertoire.c: Dont include error.h.
28141 (repertoire_complain): Use record_error.
28142 * localedata/tst-fmon.sh: Expect failures from localedef.
28143 * localedata/tst-locale.sh: Likewise.
28144 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
28145
28146 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
28147 (REPORTS): Likewise.
28148 (check): Likewise.
28149 (i18n): Rename to...
28150 (i18n_ctype): ...this.
28151 (i18n-report): Rename to...
28152 (i18n_ctype-report): ...this.
28153 * localedata/locales/i18n_ctype: Regenerate.
28154 * localedata/locales/i18n: copy i18n_ctype.
28155
28156 2017-10-13 Joseph Myers <joseph@codesourcery.com>
28157
28158 * stdlib/strfroml.c: Include <bits/floatn.h>.
28159 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
28160 Define before include of <stdlib.h> and undefine afterwards, then
28161 define as weak alias.
28162
28163 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
28164 Undefine and restore default definition. Use
28165 libm_alias_ldouble_other.
28166
28167 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
28168
28169 [BZ #22153]
28170 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
28171 in coredumps.
28172
28173 2017-10-13 James Clarke <jrtc27@jrtc27.com>
28174
28175 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28176 Assign sym_map to be map for local symbols, as TLS relocations
28177 use sym_map to determine whether the symbol is defined and to
28178 extract the TLS information.
28179 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28180 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28181
28182 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28183
28184 [BZ #22189]
28185 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
28186 (math_force_eval): Add powerpc version.
28187
28188 [BZ #22142]
28189 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
28190 -DBL_MAX.
28191 (do_test): Likewise.
28192 * stdio-common/tst-printf.sh: Likewise.
28193 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
28194 ifdef clause in order to set the carry bit right. Replace r0 by
28195 0 without changing the behavior.
28196
28197 2017-10-13 Joseph Myers <joseph@codesourcery.com>
28198
28199 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
28200 <libm-alias-ldouble.h>.
28201 (fabsl): Define using libm_alias_ldouble.
28202 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
28203 <libm-alias-ldouble.h>.
28204 (fabsl): Define using libm_alias_ldouble.
28205
28206 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
28207 Remove conditional code.
28208
28209 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
28210 Rename to __clog10_internal_l.
28211 (__clog10_internal_l): Define aliases using
28212 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
28213 with __clog10.
28214
28215 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28216
28217 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
28218 * benchtests/sincosf-inputs: New file.
28219 * benchtests/cosf-inputs: New file.
28220 * benchtests/sinf-inputs: New file.
28221
28222 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
28223
28224 * posix/tst-spawn.c (do_test): Wait for both children.
28225
28226 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
28227
28228 [BZ #22284]
28229 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
28230 tests-pie): Add tst-gmon-pie.
28231 (CFLAGS-tst-gmon-pie.c): New.
28232 (CRT-tst-gmon-pie): Likewise.
28233 (tst-gmon-pie-ENV): Likewise.
28234 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
28235 ($(objpfx)tst-gmon-pie.out): Likewise.
28236 (clean-tst-gmon-pie-data): Likewise.
28237 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
28238 * gmon/gmon.c [PIC]: Include <link.h>.
28239 [PIC] (callback): New function.
28240 (write_hist): Add an argument for load address. Subtract load
28241 address from PCs.
28242 (write_call_graph): Likewise.
28243 (write_gmon): Call __dl_iterate_phdr to get load address, pass
28244 it to write_hist and write_call_graph.
28245 * gmon/tst-gmon-pie.c: New file.
28246
28247 2017-10-11 Joseph Myers <joseph@codesourcery.com>
28248
28249 * math/Makefile (test-types-basic): New variable.
28250 (test-types): Likewise.
28251 (libm-test-support): Use $(test-types) instead of $(types).
28252 (libm-tests-base-normal): Likewise.
28253 (libm-tests-base-finite): Likewise.
28254 (libm-tests-base-inline): Likewise.
28255 (generated): Likewise.
28256 ($(objpfx)libm-test-support-$(t).c): Likewise.
28257 (libm-tests-for-type iterator): Likewise.
28258 (libm-test-support iterator): Likewise.
28259 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
28260 (ulp_idx): Use ULP_IDX.
28261 * math/test-ldouble.h: Include <float.h>.
28262 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
28263 (ULP_IDX): New macro.
28264 (ULP_I_IDX): Likewise.
28265 * math/test-double.h (ULP_IDX): Likewise.
28266 (ULP_I_IDX): Likewise.
28267 * math/test-float.h (ULP_IDX): Likewise.
28268 (ULP_I_IDX): Likewise.
28269 * math/test-float128.h (ULP_IDX): Likewise.
28270 (ULP_I_IDX): Likewise.
28271
28272 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28273
28274 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
28275 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
28276 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
28277 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
28278 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
28279 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
28280 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
28281 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
28282 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
28283 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
28284 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
28285 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
28286 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
28287 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
28288 (SINGLE_THREAD_BY_GLOBAL): Define.
28289 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28290 Likewise.
28291 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28292 Likewise.
28293 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28294 Likewise.
28295 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28296 Likewise.
28297 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
28298 (SINGLE_THREAD_BY_GLOBAL): Likewise.
28299 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28300 Likewise.
28301
28302 2017-10-11 Andreas Schwab <schwab@suse.de>
28303
28304 * nis/Makefile (aux): Remove.
28305 * nscd/Makefile (aux): Add nscd_hash.
28306 (nscd-modules): Likewise.
28307 ($(objpfx)nscd): Don't depend on libnsl.
28308 * nscd/nscd_hash.c: New file.
28309 * nscd/nscd_hash.h: Likewise.
28310 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
28311 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
28312 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
28313 instead of <nis/rpcsvc/nis.h>.
28314 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
28315
28316 2017-10-11 Florian Weimer <fweimer@redhat.com>
28317
28318 [BZ #22078]
28319 Avoid large NSS buffers with many addresses, aliases.
28320 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
28321 using dynarrays and struct alloc_buffer.
28322 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
28323 (tst-nss-files-hosts-multi): Link with -ldl.
28324 * nss/tst-nss-files-hosts-multi.c: New file.
28325
28326 2017-10-11 Florian Weimer <fweimer@redhat.com>
28327
28328 [BZ #18023]
28329 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
28330 scratch_buffer. Eliminate gotos.
28331
28332 2017-10-11 Joseph Myers <joseph@codesourcery.com>
28333
28334 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
28335 libm_alias_ldouble_other.
28336 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
28337 undefine and redefine.
28338 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28339 (exp10l): Do not define here.
28340 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
28341 (weak_alias): Undefine and redefine.
28342 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
28343 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28344 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
28345 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
28346
28347 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
28348 [!__fma] (fma): Define using libm_alias_double.
28349 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
28350 [!__fmaf] (fmaf): Define using libm_alias_float.
28351 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
28352 (fmal): Define using libm_alias_ldouble.
28353
28354 2017-10-10 Joseph Myers <joseph@codesourcery.com>
28355
28356 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
28357 New macro.
28358 (libm_alias_double_other): Likewise.
28359 (libm_alias_double_r): Use libm_alias_double_other_r.
28360 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
28361 New macro.
28362 (libm_alias_float_other): Likewise.
28363 (libm_alias_float_r): Use libm_alias_float_other_r.
28364 * sysdeps/generic/libm-alias-float128.h
28365 (libm_alias_float128_other_r): New macro.
28366 (libm_alias_float128_other): Likewise.
28367 (libm_alias_float128_r): Use libm_alias_float128_other_r.
28368 * sysdeps/generic/libm-alias-ldouble.h
28369 (libm_alias_ldouble_other_r): New macro.
28370 (libm_alias_ldouble_other): Likewise.
28371 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28372 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
28373 (libm_alias_double_other_r): New macro.
28374 (libm_alias_double_other): Likewise.
28375 (libm_alias_double_r): Use libm_alias_double_other_r.
28376 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
28377 (libm_alias_ldouble_other_r): New macro.
28378 (libm_alias_ldouble_other): Likewise.
28379 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28380 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
28381 [!USE_AS_COMPAT]: Use libm_alias_double_other.
28382 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
28383 [!USE_AS_COMPAT]: Use libm_alias_float_other.
28384 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
28385 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
28386 * math/w_exp2f.c: Use libm_alias_float_other.
28387 * math/w_expf.c: Likewise.
28388 * math/w_log2f.c: Likewise.
28389 * math/w_logf.c: Likewise.
28390 * math/w_powf.c: Likewise.
28391 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
28392 [!__exp2f]: Use libm_alias_float_other.
28393 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
28394 [!__expf]: Use libm_alias_float_other.
28395 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
28396 [!__log2f]: Use libm_alias_float_other.
28397 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
28398 [!__logf]: Use libm_alias_float_other.
28399 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
28400 [!__powf]: Use libm_alias_float_other.
28401
28402 2017-10-10 Florian Weimer <fweimer@redhat.com>
28403
28404 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
28405 function.
28406 (_nss_files_gethostbyname3_r): Call it.
28407
28408 2017-10-09 Joseph Myers <joseph@codesourcery.com>
28409
28410 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
28411 error. Remove default definition of declare_mgen_alias.
28412 [!declare_mgen_alias_r]: Likewise.
28413 * sysdeps/generic/math-type-macros-double.h
28414 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
28415 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
28416 (declare_mgen_alias_r): Likewise.
28417 * sysdeps/generic/math-type-macros-float128.h
28418 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28419 * sysdeps/generic/math-type-macros-ldouble.h
28420 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28421 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
28422 macro.
28423 (declare_mgen_alias_r_s): Likewise.
28424 (declare_mgen_alias_r): Likewise.
28425 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
28426 (lgamma_r): Define using libm_alias_double_r.
28427 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
28428 (lgammaf_r): Define using libm_alias_float_r.
28429 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
28430 (lgammal_r): Define using libm_alias_ldouble_r.
28431 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
28432 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28433
28434 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28435
28436 * lib/glob.c (__glob_pattern_type): Remove now-spurious
28437 extern declaration.
28438
28439 2017-10-09 Joseph Myers <joseph@codesourcery.com>
28440
28441 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
28442
28443 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
28444
28445 [BZ #21326]
28446 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
28447 [__cplusplus >= 201103] (__USE_ISOC99): Define.
28448 * math/Makefile (test-math-cxx11): New test.
28449 * math/test-math-cxx11.cc: New file.
28450
28451 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
28452
28453 * login/openpty.c (openpty): Close slave pty file descriptor on error.
28454
28455 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
28456 call to allocate the slave pty file descriptor.
28457
28458 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28459
28460 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
28461 [!__fma] (fma): Define using libm_alias_double.
28462 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
28463 [!__fma] (fma): Define using libm_alias_double.
28464
28465 * sysdeps/ieee754/float128/float128_private.h: Include
28466 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
28467 (libm_alias_ldouble_r): Undefine and redefine.
28468 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
28469 <libm-alias-ldouble.h>.
28470 (asinhl): Define using libm_alias_ldouble.
28471 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28472 <libm-alias-ldouble.h>.
28473 (atanl): Define using libm_alias_ldouble.
28474 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28475 <libm-alias-ldouble.h>.
28476 (cbrtl): Define using libm_alias_ldouble.
28477 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28478 <libm-alias-ldouble.h>.
28479 (ceill): Define using libm_alias_ldouble.
28480 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28481 <libm-alias-ldouble.h>.
28482 (copysignl): Define using libm_alias_ldouble.
28483 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28484 <libm-alias-ldouble.h>.
28485 (cosl): Define using libm_alias_ldouble.
28486 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28487 <libm-alias-ldouble.h>.
28488 (erfl): Define using libm_alias_ldouble.
28489 (erfcl): Likewise.
28490 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28491 <libm-alias-ldouble.h>.
28492 (expm1l): Define using libm_alias_ldouble.
28493 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28494 <libm-alias-ldouble.h>.
28495 (fabsl): Define using libm_alias_ldouble.
28496 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28497 <libm-alias-ldouble.h>.
28498 (floorl): Define using libm_alias_ldouble.
28499 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28500 <libm-alias-ldouble.h>.
28501 (fmal): Define using libm_alias_ldouble.
28502 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28503 <libm-alias-ldouble.h>.
28504 (frexpl): Define using libm_alias_ldouble.
28505 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28506 libm_alias_ldouble.
28507 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28508 <libm-alias-ldouble.h>.
28509 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28510 libm_alias_ldouble.
28511 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28512 <libm-alias-ldouble.h>.
28513 (getpayloadl): Define using libm_alias_ldouble.
28514 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28515 <libm-alias-ldouble.h>.
28516 (llrintl): Define using libm_alias_ldouble.
28517 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28518 <libm-alias-ldouble.h>.
28519 (llroundl): Define using libm_alias_ldouble.
28520 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28521 <libm-alias-ldouble.h>.
28522 (logbl): Define using libm_alias_ldouble.
28523 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28524 <libm-alias-ldouble.h>.
28525 (lrintl): Define using libm_alias_ldouble.
28526 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28527 <libm-alias-ldouble.h>.
28528 (lroundl): Define using libm_alias_ldouble.
28529 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28530 <libm-alias-ldouble.h>.
28531 (modfl): Define using libm_alias_ldouble.
28532 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28533 <libm-alias-ldouble.h>.
28534 (nearbyintl): Define using libm_alias_ldouble.
28535 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28536 <libm-alias-ldouble.h>.
28537 (nextafterl): Define using libm_alias_ldouble.
28538 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28539 <libm-alias-ldouble.h>.
28540 (nextupl): Define using libm_alias_ldouble.
28541 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28542 <libm-alias-ldouble.h>.
28543 (remquol): Define using libm_alias_ldouble.
28544 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28545 <libm-alias-ldouble.h>.
28546 (rintl): Define using libm_alias_ldouble.
28547 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28548 <libm-alias-ldouble.h>.
28549 (roundevenl): Define using libm_alias_ldouble.
28550 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28551 <libm-alias-ldouble.h>.
28552 (roundl): Define using libm_alias_ldouble.
28553 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28554 using libm_alias_ldouble.
28555 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28556 <libm-alias-ldouble.h>.
28557 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28558 Define using libm_alias_ldouble.
28559 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28560 <libm-alias-ldouble.h>.
28561 (sincosl): Define using libm_alias_ldouble.
28562 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28563 <libm-alias-ldouble.h>.
28564 (sinl): Define using libm_alias_ldouble.
28565 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28566 <libm-alias-ldouble.h>.
28567 (tanhl): Define using libm_alias_ldouble.
28568 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28569 <libm-alias-ldouble.h>.
28570 (tanl): Define using libm_alias_ldouble.
28571 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28572 <libm-alias-ldouble.h>.
28573 (totalorderl): Define using libm_alias_ldouble.
28574 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28575 <libm-alias-ldouble.h>.
28576 (totalordermagl): Define using libm_alias_ldouble.
28577 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28578 <libm-alias-ldouble.h>.
28579 (truncl): Define using libm_alias_ldouble.
28580 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28581 libm_alias_ldouble.
28582 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28583 libm_alias_ldouble.
28584 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28585 <libm-alias-ldouble.h>.
28586 (weak_alias): Do not undefine and redefine.
28587 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28588 (copysignl): Define with long_double_symbol only if [IS_IN
28589 (libc)].
28590 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28591 <libm-alias-ldouble.h>.
28592 (weak_alias): Do not undefine and redefine.
28593 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28594 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28595 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28596 <libm-alias-ldouble.h>.
28597 (weak_alias): Do not undefine and redefine.
28598 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28599 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28600 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28601 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28602 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28603 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28604 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28605 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28606 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28607 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28608 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28609 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28610 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28611 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28612 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28613 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28614 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28615 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28616 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28617 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28618 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28619 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28620 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28621 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28622 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28623 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28624
28625 2017-10-06 Carlos O'Donell <carlos@redhat.com>
28626
28627 [BZ #22111]
28628 * malloc/malloc.c (tcache_shutting_down): Use bool type.
28629 (tcache_thread_freeres): Set tcache_shutting_down before
28630 freeing the tcache.
28631 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28632 * malloc/tst-malloc-tcache-leak.c: New file.
28633
28634 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28635
28636 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28637 back to powerpc32 file.
28638 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28639 (memrchr): Add __memrchr_power8 to ifunc list.
28640 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28641 extra bytes for unaligned inputs.
28642
28643 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28644
28645 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28646 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28647 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28648 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28649 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28650
28651 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28652
28653 * sysdeps/arm/libm-test-ulps: Update.
28654
28655 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28656 <libm-alias-ldouble.h>.
28657 (asinhl): Define using libm_alias_ldouble.
28658 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28659 <libm-alias-ldouble.h>.
28660 (cbrtl): Define using libm_alias_ldouble.
28661 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28662 <libm-alias-ldouble.h>.
28663 (copysignl): Define using libm_alias_ldouble.
28664 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28665 <libm-alias-ldouble.h>.
28666 (cosl): Define using libm_alias_ldouble.
28667 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28668 <libm-alias-ldouble.h>.
28669 (erfl): Define using libm_alias_ldouble.
28670 (erfcl): Likewise.
28671 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28672 <libm-alias-ldouble.h>.
28673 (fmal): Define using libm_alias_ldouble.
28674 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28675 <libm-alias-ldouble.h>.
28676 (frexpl): Define using libm_alias_ldouble.
28677 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28678 libm_alias_ldouble.
28679 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28680 <libm-alias-ldouble.h>.
28681 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28682 libm_alias_ldouble.
28683 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28684 <libm-alias-ldouble.h>.
28685 (getpayloadl): Define using libm_alias_ldouble.
28686 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28687 <libm-alias-ldouble.h>.
28688 (llrintl): Define using libm_alias_ldouble.
28689 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28690 <libm-alias-ldouble.h>.
28691 (llroundl): Define using libm_alias_ldouble.
28692 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28693 <libm-alias-ldouble.h>.
28694 (lrintl): Define using libm_alias_ldouble.
28695 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28696 <libm-alias-ldouble.h>.
28697 (lroundl): Define using libm_alias_ldouble.
28698 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28699 <libm-alias-ldouble.h>.
28700 (modfl): Define using libm_alias_ldouble.
28701 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28702 <libm-alias-ldouble.h>.
28703 (nextupl): Define using libm_alias_ldouble.
28704 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28705 <libm-alias-ldouble.h>.
28706 (remquol): Define using libm_alias_ldouble.
28707 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28708 <libm-alias-ldouble.h>.
28709 (roundevenl): Define using libm_alias_ldouble.
28710 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28711 <libm-alias-ldouble.h>.
28712 (roundl): Define using libm_alias_ldouble.
28713 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28714 using libm_alias_ldouble.
28715 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28716 <libm-alias-ldouble.h>.
28717 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28718 <libm-alias-ldouble.h>.
28719 (setpayloadsigl): Define using libm_alias_ldouble.
28720 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28721 <libm-alias-ldouble.h>.
28722 (sincosl): Define using libm_alias_ldouble.
28723 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28724 <libm-alias-ldouble.h>.
28725 (sinl): Define using libm_alias_ldouble.
28726 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28727 <libm-alias-ldouble.h>.
28728 (tanhl): Define using libm_alias_ldouble.
28729 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28730 <libm-alias-ldouble.h>.
28731 (tanl): Define using libm_alias_ldouble.
28732 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28733 <libm-alias-ldouble.h>.
28734 (totalorderl): Define using libm_alias_ldouble.
28735 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28736 <libm-alias-ldouble.h>.
28737 (totalordermagl): Define using libm_alias_ldouble.
28738 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28739 libm_alias_ldouble.
28740 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28741 libm_alias_ldouble.
28742
28743 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
28744
28745 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28746 memmove_falkor.
28747 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28748 (__libc_ifunc_impl_list): Likewise.
28749 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28750 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28751
28752 * benchtests/bench-memmove-walk.c: New file.
28753 * benchtests/Makefile (string-benchset): Add it.
28754
28755 * benchtests/bench-memset-walk.c: New file.
28756 * benchtests/Makefile (string-benchset): Add it.
28757
28758 * benchtests/bench-memcpy-walk.c: New file.
28759 * benchtests/Makefile (string-benchset): Add it.
28760
28761 2017-10-05 Florian Weimer <fweimer@redhat.com>
28762
28763 nscd: Eliminate compilation time dependency in the build output.
28764 * nscd/nscd_stat.c (STATDATA_VERSION)
28765 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28766 (STATDATA_VERSION_FULL): New macro definitions.
28767 (compilation): Remove.
28768 (struct statdata): Adjust version member.
28769 (send_stats): Set version from STATDATA_VERSION_FULL.
28770 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28771
28772 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28773
28774 * configure.ac (--enable-add-ons): Remove option.
28775 (machine): Do not mention add-ons in comment.
28776 (LIBC_PRECONFIGURE): Likewise.
28777 (add_ons): Remove variable and sanity checks and logic to locate
28778 add-ons.
28779 (add_ons_automatic): Remove variable.
28780 (configured_add_ons): Likewise.
28781 (add_ons_sfx): Likewise.
28782 (add_ons_pfx): Likewise.
28783 (add_on_subdirs): Likewise.
28784 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28785 consideration of add-ons in Implies handling.
28786 (sysdeps_add_ons): Likewise.
28787 * configure: Regenerated.
28788 * libidn/configure.ac: Remove.
28789 * libidn/configure: Likewise.
28790 * sysdeps/unix/inet/configure.ac: New file.
28791 * sysdeps/unix/inet/configure: New generated file.
28792 * sysdeps/unix/inet/Subdirs: Add libidn.
28793 * Makeconfig (sysdeps-srcdirs): Remove variable.
28794 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28795 ($(common-objpfx)config.status): Do not depend on add-on files.
28796 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28797 comment.
28798 (all-subdirs): Do not include $(add-on-subdirs).
28799 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28800 * config.make.in (add-ons): Remove variable.
28801 (add-on-subdirs): Likewise.
28802 (sysdeps-add-ons): Likewise.
28803 * manual/Makefile (add-chapters): Remove.
28804 ($(objpfx)texis): Do not depend on $(add-chapters).
28805 (nonexamples): Do not handle $(add-chapters).
28806 (examples): Do not handle $(add-ons).
28807 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28808 libc-texinfo.sh.
28809 * manual/install.texi (Installation): Do not mention add-ons.
28810 (--enable-add-ons): Do not document configure option.
28811 * INSTALL: Regenerated.
28812 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28813 * manual/maint.texi (Hierarchy Conventions): Do not mention
28814 add-ons.
28815 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28816 --enable-add-ons.
28817 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28818 add-ons.
28819 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28820 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28821
28822 2017-10-05 Andreas Schwab <schwab@suse.de>
28823
28824 [BZ #15142]
28825 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28826 (_IO_flush_all_lockp): Always lock list_all_lock.
28827 (_IO_flush_all_linebuffered): Likewise.
28828 (_IO_unbuffer_all): Likewise.
28829
28830 2017-10-05 Florian Weimer <fweimer@redhat.com>
28831
28832 [BZ #15436]
28833 Do not flush stdio streams on abort.
28834 * stdlib/abort.c (fflush): Remove macro definition.
28835 (abort): Remove stages related to stdio flushing.
28836
28837 2017-10-05 Florian Weimer <fweimer@redhat.com>
28838
28839 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28840
28841 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28842
28843 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28844
28845 2017-10-05 Florian Weimer <fweimer@redhat.com>
28846
28847 * support/support_format_hostent.c (support_format_hostent): Add
28848 more error information for NETDB_INTERNAL.
28849
28850 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28851
28852 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28853 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28854 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28855 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28856 AC_DEFINE if multi-arch is enabled.
28857 * sysdeps/i386/configure: Regenerated.
28858
28859 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28860
28861 * Makeconfig (+link-static-before-libc): Use
28862 $(DEFAULT-LDFLAGS-$(@F)).
28863 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28864 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28865 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28866
28867 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28868
28869 * elf/Makefile (tests): Add tst-main1.
28870 (modules-names): Add tst-main1mod.
28871 ($(objpfx)tst-main1): New.
28872 (CRT-tst-main1): Likewise.
28873 (LDFLAGS-tst-main1): Likewise.
28874 (LDLIBS-tst-main1): Likewise.
28875 (tst-main1mod.so-no-z-defs): Likewise.
28876 * elf/tst-main1.c: New file.
28877 * elf/tst-main1mod.c: Likewise.
28878
28879 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28880
28881 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28882
28883 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28884
28885 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28886 (fma): Define using libm_alias_double.
28887 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28888 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28889 <math_ldbl_opt.h>.
28890 (fmal): Do not define as compat symbol here.
28891 * sysdeps/alpha/fpu/s_fma.c: New file.
28892
28893 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28894
28895 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28896
28897 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28898
28899 [BZ #22229]
28900 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28901 <math_ldbl_opt.h>
28902 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28903 and libc.
28904 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28905 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28906 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28907 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28909 Include <math_ldbl_opt.h>
28910 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28911 and libc.
28912 (compat_symbol): Undefine and redefine.
28913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28914 <math_ldbl_opt.h>
28915 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28916 (compat_symbol): Undefine and redefine.
28917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28918 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28919 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28920 GLIBC_2_1 for libm.
28921 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28922 GLIBC_2.0 copysignl symbol.
28923 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28924 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28925
28926 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28927
28928 2017-10-04 Florian Weimer <fweimer@redhat.com>
28929
28930 * scripts/check-local-headers.sh: Ignore nspr4 header file
28931 directory in addition to nspr.
28932
28933 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28934
28935 [BZ #17956]
28936 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28937 * configure: Regenerate.
28938 * crypt/Makefile (nss-cpp-flags): New variable.
28939 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28940 (CPPFLAGS-md5-crypt.c): Use it.
28941 * scripts/check-local-headers.sh: Ignore nspr header file
28942 directory.
28943
28944 2017-10-04 Andreas Schwab <schwab@suse.de>
28945
28946 * nis/Makefile (services): Remove compat.
28947 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28948 ($(objpfx)libnss_compat.so): Remove rule.
28949 * nis/Versions (libnss_compat): Remove.
28950 * nss/Makefile (services): Add compat.
28951 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28952 * nss/Versions (libnss_compat): Define.
28953 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28954 Don't include <rpc/types.h>. Replace bool_t by bool.
28955 * nss/nss_compat/compat-initgroups.c: Likewise.
28956 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28957 instead of <rpcsrv/ypclnt.h>.
28958 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28959 yp_get_default_domain.
28960 * nss/nss_compat/compat-pwd.c: Likewise.
28961 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28962 yp_get_default_domain.
28963 * nss/nss_compat/nisdomain.c: New file.
28964 * nss/nss_compat/nisdomain.h: Likewise.
28965
28966 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28967
28968 [BZ #22244]
28969 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28970 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28971
28972 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28973
28974 [BZ #22243]
28975 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28976 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28977
28978 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28979
28980 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28981 "movl main@GOTOFF(%ebx), %eax".
28982
28983 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28984
28985 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28986 allow undefined _DYNAMIC in PIE libc.a.
28987 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28988 Likewse.
28989
28990 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28991
28992 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28993 check _DYNAMIC.
28994
28995 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28996
28997 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28998 check _DYNAMIC.
28999
29000 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
29001
29002 * math/test-math-iscanonical.cc (error): Replace bool with int.
29003
29004 2017-10-03 Joseph Myers <joseph@codesourcery.com>
29005
29006 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
29007 (modf): Define using libm_alias_double, only if [!__modf].
29008 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
29009 <libm-alias-double.h>.
29010 (modf): Define using libm_alias_double, only if [!__modf].
29011 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
29012 compat symbol here.
29013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
29014 (weak_alias): Do not undefine and redefine.
29015 (strong_alias): Likewise.
29016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
29017 (weak_alias): Likewise.
29018 (strong_alias): Likewise.
29019
29020 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
29021 (logb): Define using libm_alias_double, only if [!__logb].
29022 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
29023 <libm-alias-double.h>.
29024 (logb): Define using libm_alias_double, only if [!__logb].
29025 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
29026 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
29027 (weak_alias): Do not undefine and redefine.
29028 (strong_alias): Likewise.
29029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
29030 (weak_alias): Likewise.
29031 (strong_alias): Likewise.
29032
29033 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
29034
29035 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
29036 Check SHARED instead PIC.
29037
29038 2017-10-03 Joseph Myers <joseph@codesourcery.com>
29039
29040 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
29041 [!__fmaf] (fmaf): Define using libm_alias_float.
29042
29043 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
29044 (frexp): Define using libm_alias_double.
29045 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
29046 <libm-alias-double.h>.
29047 (frexp): Define using libm_alias_double.
29048 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
29049 compat symbol here.
29050
29051 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29052
29053 [BZ #22235]
29054 * math/math.h: Trivial fix for unbalanced parentheses in comment.
29055 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
29056 (CFLAGS-test-math-iscanonical.cc): New variable.
29057 * math/test-math-iscanonical.cc: New file.
29058 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
29059 Provide a C++ implementation based on function overloading,
29060 rather than using __MATH_TG, which uses C-only builtins.
29061 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
29062 Likewise.
29063 * sysdeps/powerpc/powerpc64le/Makefile
29064 (CFLAGS-test-math-iscanonical.cc): New variable.
29065
29066 2017-10-03 Joseph Myers <joseph@codesourcery.com>
29067
29068 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
29069 (ceil): Define using libm_alias_double.
29070 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
29071 (floor): Define using libm_alias_double.
29072 * sysdeps/ieee754/dbl-64/s_llround.c: Include
29073 <libm-alias-double.h>.
29074 (llround): Define using libm_alias_double.
29075 * sysdeps/ieee754/dbl-64/s_lround.c: Include
29076 <libm-alias-double.h>.
29077 (lround): Define using libm_alias_double.
29078 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
29079 <libm-alias-double.h>.
29080 (nearbyint): Define using libm_alias_double.
29081 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
29082 <libm-alias-double.h>.
29083 (remquo): Define using libm_alias_double.
29084 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
29085 (rint): Define using libm_alias_double.
29086 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
29087 (round): Define using libm_alias_double.
29088 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
29089 (trunc): Define using libm_alias_double.
29090 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
29091 <libm-alias-double.h>.
29092 (ceil): Define using libm_alias_double.
29093 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
29094 <libm-alias-double.h>.
29095 (floor): Define using libm_alias_double.
29096 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
29097 <libm-alias-double.h>.
29098 (llround): Define using libm_alias_double.
29099 [_LP64] (lround): Likewise.
29100 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
29101 <libm-alias-double.h>.
29102 [!_LP64] (lround): Define using libm_alias_double.
29103 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
29104 <libm-alias-double.h>.
29105 (nearbyint): Define using libm_alias_double.
29106 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
29107 <libm-alias-double.h>.
29108 (remquo): Define using libm_alias_double.
29109 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
29110 <libm-alias-double.h>.
29111 (rint): Define using libm_alias_double.
29112 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
29113 <libm-alias-double.h>.
29114 (round): Define using libm_alias_double.
29115 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
29116 <libm-alias-double.h>.
29117 (trunc): Define using libm_alias_double.
29118 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
29119 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
29120 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
29121 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
29122 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
29123 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
29124 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
29125 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
29126 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
29127
29128 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29129
29130 * math/w_remainder.c: New file.
29131 * math/w_remainderf.c: New file.
29132 * math/w_remainderl.c: New file.
29133
29134 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
29135
29136 * elf/rtld.c (BOOTSTRAP_MAP): New.
29137 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
29138 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29139 Likewise.
29140 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29141 Likewise.
29142 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29143 Likewise.
29144
29145 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29146
29147 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
29148 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
29149 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
29150 rtld_hidden_data_ver): Define to empty.
29151 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
29152 __assert_perror_fail): Likewise.
29153 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29154 (__rewinddir): Likewise.
29155 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29156 (__profile_frequency): Likewise.
29157 * include/setjmp.h (__sigsetjmp): Likewise.
29158 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
29159 __libc_sigaction): Likewise.
29160 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
29161 not set hidden attribute.
29162 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
29163 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
29164 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
29165 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
29166 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
29167 __fxstatat64): Likewise.
29168 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29169 (__uname): Likewise.
29170 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29171 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
29172 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
29173 (NO_RTLD_HIDDEN): Set.
29174 * sysdeps/mach/hurd/configure: Refresh.
29175 * config.h.in: Refresh.
29176
29177 2017-10-02 Joseph Myers <joseph@codesourcery.com>
29178
29179 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
29180 (atan): Define using libm_alias_double.
29181 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
29182 (tan): Define using libm_alias_double.
29183 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
29184 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
29185
29186 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
29187 define as weak alias of __atan. Do not define any aliases if
29188 [__atan].
29189 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
29190 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
29191 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
29192 as weak alias of __tan. Do not define any aliases if [__tan].
29193 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
29194 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
29195 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
29196 __atan.
29197 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
29198 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
29199 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
29200 and define as weak alias of __atan.
29201 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
29202 __atan.
29203 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
29204 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
29205 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
29206 define as weak alias of __tan.
29207
29208 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29209
29210 * math/w_lgamma.c: New file.
29211 * math/w_lgammaf.c: New file.
29212 * math/w_lgammal.c: New file.
29213
29214 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29215
29216 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
29217 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
29218 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
29219 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
29220 * sysdeps/ieee754/flt-32/w_logf.c: New file.
29221 * sysdeps/ieee754/flt-32/w_powf.c: New file.
29222 * sysdeps/i386/fpu/w_log2f.c: New file.
29223 * sysdeps/i386/fpu/w_logf.c: New file.
29224 * sysdeps/i386/fpu/w_powf.c: New file.
29225 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
29226 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
29227 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
29228
29229 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29230 H.J. Lu <hongjiu.lu@intel.com>
29231
29232 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
29233 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
29234 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
29235 * sysdeps/ieee754/flt-32/w_expf.c: New file.
29236 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
29237 the new expf code.
29238 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
29239 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
29240 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
29241 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
29242 * sysdeps/i386/fpu/w_exp2f.c: New file.
29243 * sysdeps/i386/fpu/w_expf.c: New file.
29244 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
29245 * sysdeps/x86_64/fpu/w_expf.c: New file.
29246
29247 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29248
29249 * math/Versions (logf): New libm symbol at GLIBC_2.27.
29250 (log2f): Likewise.
29251 (powf): Likewise.
29252 * math/w_log2f.c: New file.
29253 * math/w_logf.c: New file.
29254 * math/w_powf.c: New file.
29255 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
29256 * math/w_logf_compat.c (__logf_compat): Likewise.
29257 * math/w_powf_compat.c (__powf_compat): Likewise.
29258 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
29259 * sysdeps/ia64/fpu/e_logf.S: Likewise.
29260 * sysdeps/ia64/fpu/e_powf.S: Likewise.
29261 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29262 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29263 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29264 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29265 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29266 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29267 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29268 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29269 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29270 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29271 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29272 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29274 Likewise.
29275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29276 Likewise.
29277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29278 Likewise.
29279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29280 Likewise.
29281 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29282 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29283 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29284 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29285 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29286 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29287 Likewise.
29288 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29289 Likewise.
29290 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29291 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29292 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29293
29294 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29295
29296 * sysdeps/powerpc/powerpc64/multiarch/Makefile
29297 (sysdep_routines): Add memrchr_power8.
29298 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29299 (memrchr): Add __memrchr_power8 to list of memrchr functions.
29300 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
29301 New file.
29302 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
29303 (memrchr): Add __memrchr_power8 to ifunc list.
29304 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
29305
29306 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29307
29308 [BZ #18822]
29309 * sysdeps/unix/sysv/linux/posix_fadvise64.c
29310 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
29311 libc_hidden_def.
29312 * sysdeps/unix/sysv/linux/posix_fallocate64.c
29313 (__posix_fallocate64_l64): Likewise.
29314
29315 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29316
29317 [BZ #18822]
29318 * sysdeps/unix/sysv/linux/sched_setaffinity.c
29319 (__sched_setaffinity_new): Add libc_hidden_proto and
29320 libc_hidden_def.
29321
29322 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29323
29324 [BZ #18822]
29325 * include/glob.h (__glob64): Add libc_hidden_proto.
29326 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
29327 libc_hidden_def.
29328
29329 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29330
29331 [BZ #18822]
29332 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
29333 attribute_hidden.
29334
29335 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29336
29337 [BZ #18822]
29338 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
29339
29340 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29341
29342 [BZ #18822]
29343 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
29344 libc_hidden_def.
29345
29346 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29347
29348 [BZ #18822]
29349 * csu/version.c (__libc_print_version): Add attribute_hidden.
29350
29351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29352
29353 [BZ #18822]
29354 * include/libc-internal.h (__init_misc): Add attribute_hidden.
29355
29356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29357
29358 [BZ #18822]
29359 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
29360
29361 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29362
29363 [BZ #18822]
29364 * nscd/nscd_helper.c (__nis_hash): New prototype.
29365
29366 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29367
29368 [BZ #18822]
29369 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
29370 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
29371 libc_hidden_def.
29372 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
29373 * termios/tcgetattr.c (__tcgetattr): Likewise.
29374
29375 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29376
29377 [BZ #18822]
29378 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
29379 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
29380 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
29381 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
29382 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
29383
29384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29385
29386 [BZ #18822]
29387 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
29388
29389 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29390
29391 [BZ #18822]
29392 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
29393 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
29394
29395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29396
29397 [BZ #18822]
29398 * intl/hash-string.h (__hash_string): Add attribute_hidden.
29399
29400 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29401
29402 [BZ #18822]
29403 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
29404 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
29405
29406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29407
29408 [BZ #18822]
29409 * include/ifreq.h: New file.
29410 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
29411 (__ifreq): Likewise.
29412 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
29413 (__ifreq): Likewise.
29414
29415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29416
29417 [BZ #18822]
29418 * include/idna.h: New file.
29419 * inet/getnameinfo.c: Include <idna.h> instead of
29420 <libidn/idna.h>.
29421 (__idna_to_unicode_lzlz): Removed.
29422 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
29423 <libidn/idna.h>.
29424 (__idna_to_ascii_lz): Removed.
29425 (__idna_to_unicode_lzlz): Likewise.
29426
29427 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29428
29429 [BZ #18822]
29430 * include/plural-exp.h: New file.
29431 * intl/plural-exp.c: Include <plural-exp.h> instead of
29432 "plural-exp.h".
29433
29434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29435
29436 [BZ #18822]
29437 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
29438 "getsourcefilter.h".
29439 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
29440 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
29441 "getsourcefilter.h".
29442 (__get_sol): Removed.
29443
29444 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29445
29446 [BZ #18822]
29447 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
29448 to ...
29449 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
29450
29451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29452
29453 [BZ #18822]
29454 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
29455 attribute_hidden.
29456
29457 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29458
29459 [BZ #18822]
29460 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
29461
29462 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29463
29464 [BZ #18822]
29465 * include/search.h (__tdestroy): Add libc_hidden_proto.
29466 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
29467
29468 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29469
29470 [BZ #18822]
29471 * include/assert.h (__assert_fail_base): Add attribute_hidden.
29472
29473 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29474
29475 [BZ #18822]
29476 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29477 attribute_hidden.
29478
29479 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29480
29481 [BZ #18822]
29482 * include/signal.h (__kill): Add libc_hidden_proto.
29483 (__sigblock): Likewise.
29484 (__sigprocmask): Likewise.
29485 (__sigaltstack): Likewise.
29486 * signal/kill.c (__kill): Add libc_hidden_def.
29487 * signal/sigblock.c (__sigblock): Likewise.
29488 * signal/sigprocmask.c (__sigprocmask): Likewise.
29489 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29490 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29491 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29492 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29493 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29494 Likewise.
29495 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29496 Likewise.
29497 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29498 (__sigprocmask): Likewise.
29499 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29500 Likewise.
29501 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29502 (__sigprocmask): Likewise.
29503 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29504 Likewise.
29505
29506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29507
29508 [BZ #18822]
29509 * include/string.h (__strsep): Add libc_hidden_proto.
29510 * string/strsep.c (__strsep): Add libc_hidden_def.
29511
29512 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29513
29514 [BZ #18822]
29515 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29516 attribute_hidden.
29517 (__spawni): Likewise.
29518
29519 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29520
29521 [BZ #18822]
29522 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29523 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29524 libc_hidden_def.
29525
29526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29527
29528 [BZ #18822]
29529 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29530
29531 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29532
29533 [BZ #18822]
29534 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29535 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29536 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29537 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29538 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29539 Likewise.
29540 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29541 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29542
29543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29544
29545 [BZ #18822]
29546 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29547 (__dcigettext): Likewise.
29548
29549 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29550
29551 [BZ #18822]
29552 * include/sys/sysinfo.h (__get_nprocs_conf): Add
29553 libc_hidden_proto.
29554 (__get_nprocs): Likewise.
29555 (__get_phys_pages): Likewise.
29556 (__get_avphys_pages): Likewise.
29557 (__get_child_max): Add attribute_hidden.
29558 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29559 (__get_nprocs): Likewise.
29560 (__get_phys_pages): Likewise.
29561 (__get_avphys_pages): Likewise.
29562 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29563 libc_hidden_def.
29564 (__get_nprocs): Likewise.
29565 (__get_phys_pages): Likewise.
29566 (__get_avphys_pages): Likewise.
29567 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29568 libc_hidden_def.
29569 (__get_nprocs_conf): Likewise.
29570 (__get_phys_pages): Likewise.
29571 (__get_avphys_pages): Likewise.
29572
29573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29574
29575 [BZ #18822]
29576 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29577 attribute_hidden.
29578 (__netlink_close): Likewise.
29579 (__netlink_free_handle): Likewise.
29580 (__netlink_request): Likewise.
29581
29582 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29583
29584 [BZ #18822]
29585 * include/rpc/rpc.h (__rpc_thread_variables): Add
29586 attribute_hidden.
29587 (__rpc_thread_svc_cleanup): Likewise.
29588 (__rpc_thread_clnt_cleanup): Likewise.
29589 (__rpc_thread_key_cleanup): Likewise.
29590
29591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29592
29593 [BZ #18822]
29594 * include/sys/uio.h (__readv): Add libc_hidden_proto.
29595 (__writev): Likewise.
29596 * misc/readv.c (__readv): Add libc_hidden_def.
29597 * misc/writev.c (__writev): Likewise.
29598 * sysdeps/posix/readv.c (__readv): Likewise.
29599 * sysdeps/posix/writev.c (__writev): Likewise.
29600 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29601 (__readv): Likewise.
29602 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29603 (__writev): Likewise.
29604
29605 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29606
29607 [BZ #18822]
29608 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29609 (__regcomp): Add libc_hidden_proto.
29610 (__regexec): Likewise.
29611 (__regfree): Likewise.
29612 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29613 (__regfree): Likewise.
29614 * posix/regexec.c (__regexec): Likewise.
29615
29616 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29617
29618 [BZ #18822]
29619 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29620 (__getutent): Likewise.
29621 (__getutid): Likewise.
29622 (__getutline): Likewise.
29623 (__pututline): Likewise.
29624 (__getutent_r): Likewise.
29625 (__getutid_r): Likewise.
29626 (__getutline_r): Likewise.
29627 (__utmpname): Add attribute_hidden.
29628 (__setutent): Likewise.
29629 (__endutent): Likewise.
29630 * login/getutent.c (__getutent): Add libc_hidden_def.
29631 * login/getutent_r.c (__getutent_r): Likewise.
29632 (__pututline): Likewise.
29633 * login/getutid.c (__getutid): Likewise.
29634 * login/getutid_r.c (__getutid_r): Likewise.
29635 * login/getutline.c (__getutline): Likewise.
29636 * login/getutline_r.c (__getutline_r): Likewise.
29637 * login/updwtmp.c (__updwtmp): Likewise.
29638
29639 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29640
29641 [BZ #18822]
29642 * include/dirent.h (__opendir): Always add attribute_hidden.
29643 (__fdopendir): Likewise.
29644 (__closedir): Likewise.
29645 (__readdir): Likewise.
29646 (__readdir64): Add libc_hidden_proto.
29647 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29648 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29649 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29650 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29651 New alias.
29652
29653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29654
29655 [BZ #18822]
29656 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29657 * include/netdb.h (__gethostbyaddr_r): Likewise.
29658 (__gethostbyname_r): Likewise.
29659 (__gethostbyname2_r): Likewise.
29660 (__getnetbyaddr_r): Likewise.
29661 (__getnetbyname_r): Likewise.
29662 (__getservbyname_r): Likewise.
29663 (__getservbyport_r): Likewise.
29664 (__getprotobyname_r): Likewise.
29665 (__getprotobynumber_r): Likewise.
29666 (__getnetgrent_r): Likewise.
29667 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29668 (__getrpcbynumber_r): Likewise.
29669 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29670
29671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29672
29673 [BZ #18822]
29674 * include/stdio.h (__fcloseall): Add attribute_hidden.
29675 (__getline): Likewise.
29676 (__path_search): Likewise.
29677 (__gen_tempname): Likewise.
29678 (__libc_message): Likewise.
29679 (__flockfile): Likewise.
29680 (__funlockfile): Likewise.
29681 (__fxprintf): Likewise.
29682 (__fxprintf_nocancel): Likewise.
29683
29684 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29685
29686 [BZ #18822]
29687 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29688 (__sgetsgent_r): Likewise.
29689
29690 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29691
29692 [BZ #18822]
29693 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29694 (__statfs64): Likewise.
29695 (__fstatfs64): Likewise.
29696 * include/sys/statvfs.h (__statvfs64): Likewise.
29697 (__fstatvfs64): Likewise.
29698 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29699 (__statfs_filesize_max): Likewise.
29700 (__statfs_symlinks): Likewise.
29701 (__statfs_chown_restricted): Likewise.
29702
29703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29704
29705 [BZ #18822]
29706 * include/time.h (__tzstring): Add attribute_hidden.
29707 (__tzfile_read): Likewise.
29708 (__tzfile_compute): Likewise.
29709 (__tzfile_default): Likewise.
29710 (__tzset_parse_tz): Likewise.
29711 (__offtime): Likewise.
29712 (__asctime_r): Likewise.
29713 (__tzset): Likewise.
29714 (__tz_convert): Likewise.
29715 (__getdate_r): Likewise.
29716 (__getclktck): Likewise.
29717
29718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29719
29720 [BZ #18822]
29721 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29722 (__nscd_unmap): Likewise.
29723 (__nscd_cache_search): Likewise.
29724 (__nscd_get_nl_timestamp): Likewise.
29725 (__nscd_getpwnam_r): Likewise.
29726 (__nscd_getpwuid_r): Likewise.
29727 (__nscd_getgrnam_r): Likewise.
29728 (__nscd_getgrgid_r): Likewise.
29729 (__nscd_gethostbyname_r): Likewise.
29730 (__nscd_gethostbyname2_r): Likewise.
29731 (__nscd_gethostbyaddr_r): Likewise.
29732 (__nscd_getai): Likewise.
29733 (__nscd_getgrouplist): Likewise.
29734 (__nscd_getservbyname_r): Likewise.
29735 (__nscd_getservbyport_r): Likewise.
29736 (__nscd_innetgr): Likewise.
29737 (__nscd_setnetgrent): Likewise.
29738
29739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29740
29741 [BZ #18822]
29742 * include/gmp.h: Declare internal functions only if _ISOMAC is
29743 undefined.
29744 (__mpn_extract_double): Add attribute_hidden.
29745 (__mpn_extract_long_double): Likewise.
29746 (__mpn_extract_float128): Likewise.
29747 (__mpn_construct_float): Likewise.
29748 (__mpn_construct_double): Likewise.
29749 (__mpn_construct_long_double): Likewise.
29750 (__mpn_construct_float128): Likewise.
29751 (mpn_add_1): Likewise.
29752 (mpn_addmul_1): Likewise.
29753 (mpn_add_n): Likewise.
29754 (mpn_cmp): Likewise.
29755 (mpn_divrem): Likewise.
29756 (mpn_lshift): Likewise.
29757 (mpn_mul): Likewise.
29758 (mpn_mul_1): Likewise.
29759 (mpn_rshift): Likewise.
29760 (mpn_sub_1): Likewise.
29761 (mpn_submul_1): Likewise.
29762 (mpn_sub_n): Likewise.
29763
29764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29765
29766 [BZ #18822]
29767 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29768 (__wcscat): Likewise.
29769 (__btowc): Likewise.
29770 (__wcrtomb): Likewise.
29771 (__mbsrtowcs): Likewise.
29772 (__wcsrtombs): Likewise.
29773 (__mbsnrtowcs): Likewise.
29774 (__wcsnrtombs): Likewise.
29775 (__wcsncpy): Likewise.
29776 (__wcpncpy): Likewise.
29777 (__wmemcpy): Likewise.
29778 (__wmempcpy): Likewise.
29779 (__wmemmove): Likewise.
29780 (__wcschrnul): Likewise.
29781 (__vfwscanf): Likewise.
29782 (__vswprintf): Likewise.
29783 (__fwprintf): Likewise.
29784 (__vfwprintf): Likewise.
29785
29786 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29787
29788 [BZ #18822]
29789 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29790 (__getgrgid_r): Likewise.
29791 (__getgrnam_r): Likewise.
29792 * include/pwd.h (__getpwuid_r): Likewise.
29793 (__getpwnam_r): Likewise.
29794 (__fgetpwent_r): Likewise.
29795 * include/shadow.h (__getspnam_r): Likewise.
29796 (__sgetspent_r): Likewise.
29797 (__fgetspent_r): Likewise.
29798
29799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29800
29801 [BZ #18822]
29802 * include/unistd.h (__access): Add attribute_hidden.
29803 (__lseek64): Likewise.
29804 (__libc_pread64): Likewise.
29805 (__pipe2): Likewise.
29806 (__sleep): Likewise.
29807 (__chdir): Likewise.
29808 (__fchdir): Likewise.
29809 (__getcwd): Likewise.
29810 (__rmdir): Likewise.
29811 (__execvpe): Likewise.
29812 (__execve): Likewise.
29813 (__setsid): Likewise.
29814 (__getuid): Likewise.
29815 (__geteuid): Likewise.
29816 (__getgid): Likewise.
29817 (__getegid): Likewise.
29818 (__getgroups): Likewise.
29819 (__group_member): Likewise.
29820 (__ttyname_r): Likewise.
29821 (__isatty): Likewise.
29822 (__readlink): Likewise.
29823 (__unlink): Likewise.
29824 (__gethostname): Likewise.
29825 (__profil): Likewise.
29826 (__getdtablesize): Likewise.
29827 (__brk): Likewise.
29828 (__ftruncate): Likewise.
29829 (__ftruncate64): Likewise.
29830
29831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29832
29833 [BZ #18822]
29834 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29835 * argp/argp-fs-xinl.c: Likewise.
29836 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29837 * argp/argp-parse.c: Include <argp.h>.
29838 * argp/argp-xinl.c: Likewise.
29839 * include/argp-fmtstream.h: New file.
29840 * include/argp.h (__argp_error): Add attribute_hidden.
29841 (__argp_failure): Likewise.
29842 (__argp_input): Likewise.
29843 (__argp_state_help): Likewise.
29844
29845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29846
29847 [BZ #18822]
29848 * include/wchar.h (____wcstof_l_internal): New prototype.
29849 (____wcstod_l_internal): Likewise.
29850 (____wcstold_l_internal): Likewise.
29851 (____wcstol_l_internal): Likewise.
29852 (____wcstoul_l_internal): Likewise.
29853 (____wcstoll_l_internal): Likewise.
29854 (____wcstoull_l_internal): Likewise.
29855 (____wcstof128_l_internal): Likewise.
29856 * sysdeps/ieee754/float128/wcstof128.c
29857 (____wcstof128_l_internal): Removed.
29858 * sysdeps/ieee754/float128/wcstof128_l.c
29859 (____wcstof128_l_internal): Likewise.
29860 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29861 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29862 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29863 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29864 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29865 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29866 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29867 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29868 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29869 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29870
29871 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29872
29873 [BZ #18822]
29874 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29875 instead of <sys/statvfs.h>.
29876 (__internal_statvfs): Removed.
29877 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29878 instead of <sys/statvfs.h>.
29879 (__internal_statvfs64): Removed.
29880 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29881 "internal_statvfs.h" instead of <sys/statvfs.h>.
29882 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29883 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29884 instead of <sys/statvfs.h>.
29885 (__internal_statvfs): Removed.
29886 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29887 instead of <sys/statvfs.h>.
29888 (__internal_statvfs64): Removed.
29889
29890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29891
29892 [BZ #18822]
29893 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29894 (__gconv_close): Likewise.
29895 (__gconv): Likewise.
29896 (__gconv_find_transform): Likewise.
29897 (__gconv_lookup_cache): Likewise.
29898 (__gconv_compare_alias_cache): Likewise.
29899 (__gconv_load_cache): Likewise.
29900 (__gconv_get_path): Likewise.
29901 (__gconv_close_transform): Likewise.
29902 (__gconv_release_cache): Likewise.
29903 (__gconv_find_shlib): Likewise.
29904 (__gconv_release_shlib): Likewise.
29905 (__gconv_get_builtin_trans): Likewise.
29906 (__gconv_compare_alias): Likewise.
29907 * include/dlfcn.h (_dlerror_run): Likewise.
29908 * include/stdio.h (__fortify_fail_abort): Likewise.
29909 * include/time.h (__tz_compute): Likewise.
29910 (__strptime_internal): Likewise.
29911 * intl/gettextP.h (_nl_find_domain): Likewise.
29912 (_nl_load_domain): Likewise.
29913 (_nl_find_msg): Likewise.
29914 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29915 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29916 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29917 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29918 (__gai_find_request): Likewise.
29919 (__gai_remove_request): Likewise.
29920 (__gai_notify): Likewise.
29921 (__gai_notify_only): Likewise.
29922 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29923 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29924 (_dl_non_dynamic_init): Likewise.
29925 (_dl_aux_init): Likewise.
29926 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29927 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29928 Likewise.
29929 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29930 (__wcsmbs_clone_conv): Likewise.
29931 (__wcsmbs_named_conv): Likewise.
29932
29933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29934
29935 [BZ #18822]
29936 * include/stdlib.h (__random): Add attribute_hidden.
29937 (__random_r): Likewise.
29938 (__srandom_r): Likewise.
29939 (__initstate_r): Likewise.
29940 (__setstate_r): Likewise.
29941 (__erand48_r): Likewise.
29942 (__nrand48_r): Likewise.
29943 (__jrand48_r): Likewise.
29944 (__srand48_r): Likewise.
29945 (__seed48_r): Likewise.
29946 (__lcong48_r): Likewise.
29947 (__drand48_iterate): Likewise.
29948 (__setenv): Likewise.
29949 (__unsetenv): Likewise.
29950 (__clearenv): Likewise.
29951 (__ptsname_r): Likewise.
29952 (__posix_openpt): Likewise.
29953 (__add_to_environ): Likewise.
29954 (__realpath): Add libc_hidden_proto.
29955 (__ecvt_r): Likewise.
29956 (__fcvt_r): Likewise.
29957 (__qecvt_r): Likewise.
29958 (__qfcvt_r): Likewise.
29959 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29960 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29961
29962 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29963
29964 [BZ #18822]
29965 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29966 * include/time.h (__mktime_internal): Likewise.
29967 * libio/iolibio.h (__fopen_internal): Likewise.
29968
29969 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29970
29971 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29972 pointer in frame.
29973 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29974 Correct offset used to restore PIC register.
29975
29976 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29977
29978 [BZ libc/22165]
29979 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29980 code to load address of __getcontext_ret when generating PIC code.
29981
29982 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29983
29984 * elf/Makefile (tests-static-internal): Add
29985 tst-tls1-static-non-pie.
29986 (LDFLAGS-tst-tls1-static-non-pie): New.
29987 * elf/tst-tls1-static-non-pie.c: New file.
29988
29989 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29990
29991 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29992 (asinh): Define using libm_alias_double.
29993 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29994 (cbrt): Define using libm_alias_double.
29995 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29996 <libm-alias-double.h>.
29997 (copysign): Define using libm_alias_double.
29998 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29999 (erf): Define using libm_alias_double.
30000 (erfc): Likewise.
30001 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
30002 (expm1): Define using libm_alias_double.
30003 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
30004 (fabs): Define using libm_alias_double.
30005 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
30006 libm_alias_double.
30007 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
30008 <libm-alias-double.h>.
30009 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
30010 libm_alias_double.
30011 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
30012 <libm-alias-double.h>.
30013 (getpayload): Define using libm_alias_double.
30014 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
30015 <libm-alias-double.h>.
30016 (llrint): Define using libm_alias_double.
30017 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
30018 (lrint): Define using libm_alias_double.
30019 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
30020 <libm-alias-double.h>.
30021 (nextup): Define using libm_alias_double.
30022 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
30023 <libm-alias-double.h>.
30024 (roundeven): Define using libm_alias_double.
30025 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
30026 libm_alias_double.
30027 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
30028 <libm-alias-double.h>.
30029 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
30030 using libm_alias_double.
30031 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
30032 (cos): Define using libm_alias_double.
30033 (sin): Likewise.
30034 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
30035 <libm-alias-double.h>.
30036 (sincos): Define using libm_alias_double.
30037 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
30038 (tanh): Define using libm_alias_double.
30039 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
30040 <libm-alias-double.h>.
30041 (totalorder): Define using libm_alias_double.
30042 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
30043 <libm-alias-double.h>.
30044 (totalordermag): Define using libm_alias_double.
30045 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
30046 libm_alias_double.
30047 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
30048 libm_alias_double.
30049 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
30050 <libm-alias-double.h>.
30051 (getpayload): Define using libm_alias_double.
30052 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
30053 <libm-alias-double.h>.
30054 (roundeven): Define using libm_alias_double.
30055 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
30056 <libm-alias-double.h>.
30057 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
30058 <libm-alias-double.h>.
30059 (totalorder): Define using libm_alias_double.
30060 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
30061 <libm-alias-double.h>.
30062 (totalordermag): Define using libm_alias_double.
30063 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
30064 libc compat symbol here.
30065 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
30066 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
30067 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
30068 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
30069 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
30070 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
30071 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
30072 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
30073 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
30074 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
30075
30076 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
30077
30078 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
30079 _dl_relocate_static_pie instead of _dl_start to compute load
30080 address in static PIE. Return 0 if _DYNAMIC is undefined for
30081 static executable.
30082
30083 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
30084
30085 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
30086 _DYNAMIC is undefined for static executable.
30087
30088 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
30089
30090 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
30091
30092 2017-09-29 Joseph Myers <joseph@codesourcery.com>
30093
30094 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30095
30096 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
30097
30098 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
30099 (__ieee754_lgamma_r): Use fabs rather than __fabs.
30100 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
30101 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
30102 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
30103 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
30104 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
30105 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
30106 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
30107 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
30108 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
30109 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
30110 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30111 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
30112 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
30113 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
30114 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
30115
30116 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
30117
30118 * math/bits/cmathcalls.h (cimag): Remove inline.
30119 (creal): Remove inline.
30120 (conj): Remove inline.
30121
30122 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30123
30124 * math/Makefile (type-float-routines): Add e_powf_log2_data.
30125 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
30126 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
30127 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
30128 (issignalingf_inline): Likewise.
30129 (POWF_LOG2_TABLE_BITS): Likewise.
30130 (POWF_LOG2_POLY_ORDER): Likewise.
30131 (POWF_SCALE_BITS): Likewise.
30132 (POWF_SCALE): Likewise.
30133 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
30134 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
30135 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
30136
30137 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30138
30139 * math/Makefile (type-float-routines): Add e_log2f_data.
30140 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
30141 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
30142 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
30143 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
30144 * sysdeps/i386/fpu/e_log2f_data.c: New file.
30145 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
30146 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
30147
30148 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30149
30150 * math/Makefile (type-float-routines): Add e_logf_data.
30151 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
30152 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
30153 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
30154 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
30155 * sysdeps/i386/fpu/e_logf_data.c: New file.
30156 * sysdeps/ia64/fpu/e_logf_data.c: New file.
30157 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
30158
30159 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
30160
30161 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
30162 undefined _DYNAMIC in PIE libc.a.
30163 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
30164 Likewse.
30165
30166 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
30167
30168 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
30169 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
30170 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
30171 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
30172 (__signbit): Remove.
30173 (__signbitl): Remove.
30174 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
30175 (__signbit): Remove.
30176 (__signbitl): Remove.
30177 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
30178 (__signbit): Remove.
30179 (__signbitl): Remove.
30180 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
30181 (__signbit): Remove.
30182 (__signbitl): Remove.
30183 * sysdeps/tile/bits/mathinline.h: Delete file.
30184 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
30185 (__signbit): Remove.
30186 (__signbitl): Remove.
30187
30188 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
30189
30190 * math/math.h: Improve handling of C99 isgreater macros.
30191 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
30192 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
30193 * sysdeps/powerpc/bits/mathinline.h: Likewise.
30194 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30195 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
30196
30197 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
30198
30199 * sysdeps/aarch64/libm-test-ulps: Update.
30200
30201 2017-09-28 Joseph Myers <joseph@codesourcery.com>
30202
30203 [BZ #22225]
30204 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
30205 math_opt_barrier on argument when doing arithmetic on it.
30206 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
30207 Likewise. Use math_force_eval not math_opt_barrier after
30208 arithmetic.
30209 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
30210 math_opt_barrier on argument when doing arithmetic on it.
30211 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
30212 Likewise.
30213
30214 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
30215
30216 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
30217 libc_hidden_def.
30218 (__freeifaddrs): Likewise.
30219
30220 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30221
30222 * include/dirent.h (__dirfd): New declaration.
30223 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
30224 alias.
30225 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
30226 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
30227 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
30228 * include/unistd.h (__revoke): New declaration.
30229 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
30230 alias.
30231 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
30232 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
30233 revoke.
30234 * include/dirent.h (__seekdir): New declaration.
30235 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
30236 redefine as weak alias.
30237 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
30238 of seekdir.
30239 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
30240 and use libc_hidden_def on them.
30241 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
30242 them.
30243 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
30244 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
30245 instead of getifaddrs and freeifaddrs.
30246
30247 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
30248
30249 [BZ #18822]
30250 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
30251 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
30252 (__dso_handle): Remove declaration.
30253 * dlfcn/tstatexit.c (__dso_handle): Removed.
30254 (main): Don't check __dso_handle.
30255 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
30256 (main): Don't check __dso_handle.
30257 * include/dso_handle.h: New file.
30258 * malloc/mtrace.c: Include <dso_handle.h>.
30259 (mtrace): Pass __dso_handle directly.
30260 * nptl/pthread_atfork.c: Include <dso_handle.h>.
30261 (__dso_handle): Remove declaration.
30262 (__pthread_atfork): Pass __dso_handle directly.
30263 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
30264 (__dso_handle): Removed.
30265 * posix/wordexp-test.c: Include <dso_handle.h>.
30266 (__dso_handle): Remove declaration.
30267 (__app_register_atfork): Pass __dso_handle directly.
30268 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
30269 (__dso_handle): Remove declaration.
30270 (at_quick_exit): Pass __dso_handle directly.
30271 * stdlib/atexit.c: Include <dso_handle.h>.
30272 (__dso_handle): Remove declaration.
30273 (atexit): Pass __dso_handle directly.
30274 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
30275 (__dso_handle): Removed.
30276
30277 2017-09-26 Joseph Myers <joseph@codesourcery.com>
30278
30279 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
30280 using VDSO.
30281
30282 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
30283
30284 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
30285 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
30286 values to correct default value for given type.
30287
30288 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
30289
30290 [BZ #22101]
30291 * elf/Makefile (tests): Add tst-debug1.
30292 ($(objpfx)tst-debug1): New.
30293 ($(objpfx)tst-debug1.out): Likewise.
30294 ($(objpfx)tst-debug1mod1.so): Likewise.
30295 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
30296 with p_filesz == 0.
30297 * elf/tst-debug1.c: New file.
30298
30299 2017-09-26 Joseph Myers <joseph@codesourcery.com>
30300
30301 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
30302 Define using __ifunc.
30303
30304 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30305
30306 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
30307 exp2f() values.
30308
30309 2017-09-26 Joseph Myers <joseph@codesourcery.com>
30310
30311 [BZ #22156]
30312 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
30313
30314 2017-09-26 Florian Weimer <fweimer@redhat.com>
30315
30316 * resolv/Makefile (tests-internal): Fix typo in comment.
30317
30318 2017-09-26 Florian Weimer <fweimer@redhat.com>
30319
30320 * resolv/nss_dns/dns-host.c: Fix typo in comment.
30321
30322 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30323
30324 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
30325 Use an union instead of a max_align_t array for __space,
30326 so that __space is the same size on all platforms.
30327 * malloc/scratch_buffer_grow_preserve.c
30328 (__libc_scratch_buffer_grow_preserve): Likewise.
30329
30330 [BZ #22183]
30331 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
30332 version to 2.
30333 * posix/Makefile (routines): Add glob-lstat-compat and
30334 glob64-lstat-compat.
30335 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
30336 * posix/glob-lstat-compat.c: New file.
30337 * posix/glob64-lstat-compat.c: Likewise.
30338 * posix/tst-glob_lstat_compat.c: Likewise.
30339 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
30340 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
30341 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
30342 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
30343 Likewise.
30344 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
30345 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30346 * posix/glob.c (glob_lstat): New function.
30347 (glob): Rename to __glob and add versioned symbol to 2.27.
30348 (glob_in_dir): Use glob_lstat.
30349 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
30350 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
30351 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
30352 2.27.
30353 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
30354 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
30355 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
30356 gl_lstat on glob call.
30357 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
30358 and glob64 symbols.
30359 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30360 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
30361 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
30362 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
30363 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
30364 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
30365 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
30366 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
30367 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
30368 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30369 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30370 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
30371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
30372 Likewise.
30373 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
30374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
30375 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30376 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30377 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
30378 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30379 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30380 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
30381 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
30382 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
30383 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
30384 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
30385
30386 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
30387
30388 * configure.ac (AS): Require binutils 2.25 or later.
30389 * configure: Regenerated.
30390
30391 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
30392
30393 [BZ #22207]
30394 * stdlib/test-atexit-race-common.c (do_test): Minimize required
30395 VM size.
30396
30397 2017-09-25 DJ Delorie <dj@redhat.com>
30398
30399 [BZ #22161]
30400 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
30401 resetting timeout.
30402
30403 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
30404
30405 * sysdeps/ieee754/dbl-64/sincos32.h
30406 [SINCCOS32_H]: Remove define.
30407 [SINCOS32_H]: Define.
30408
30409 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30410
30411 * math/Versions (expf): New libm symbol at GLIBC_2.27.
30412 (exp2f): Likewise.
30413 * math/w_exp2f.c: New file.
30414 * math/w_expf.c: New file.
30415 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
30416 * math/w_expf_compat.c (__expf_compat): Likewise.
30417 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
30418 * sysdeps/ia64/fpu/e_expf.S: Likewise.
30419 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30420 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30421 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30422 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30423 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30424 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30425 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30426 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30427 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30428 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30429 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30430 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30432 Likewise.
30433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30434 Likewise.
30435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30436 Likewise.
30437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30438 Likewise.
30439 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30440 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30441 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30442 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30443 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30444 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30445 Likewise.
30446 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30447 Likewise.
30448 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30449 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30450 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30451
30452 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30453
30454 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
30455 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
30456 (roundtoint, converttoint): Likewise.
30457 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
30458 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
30459 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
30460 * sysdeps/ieee754/flt-32/math_config.h: New file.
30461 * sysdeps/ieee754/flt-32/math_errf.c: New file.
30462 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
30463 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
30464 * sysdeps/i386/fpu/math_errf.c: New file.
30465 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
30466 * sysdeps/ia64/fpu/math_errf.c: New file.
30467 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
30468 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
30469
30470 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30471
30472 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30473 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30474 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30475 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30476 to make sure that these symbols are defined.
30477 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30478 of <limits.h>
30479 (__need_NULL): Do not define.
30480 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30481 alignment.
30482 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30483 CMGROUP_MAX, cmsgcred): Do not define.
30484 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30485 NULL.
30486 * bits/socket.h: Likewise.
30487 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30488 __gettimeofday instead of gettimeofday.
30489 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30490 instead of settimeofday.
30491
30492 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30493
30494 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30495 (asinhf): Define using libm_alias_float.
30496 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30497 (atanf): Define using libm_alias_float.
30498 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30499 (cbrtf): Define using libm_alias_float.
30500 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30501 (ceilf): Define using libm_alias_float.
30502 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30503 <libm-alias-float.h>.
30504 (copysignf): Define using libm_alias_float.
30505 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30506 (cosf): Define using libm_alias_float.
30507 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30508 (erff): Define using libm_alias_float.
30509 (erfcf): Likewise.
30510 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30511 (expm1f): Define using libm_alias_float.
30512 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30513 (fabsf): Define using libm_alias_float.
30514 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30515 (floorf): Define using libm_alias_float.
30516 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30517 (frexpf): Define using libm_alias_float.
30518 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30519 libm_alias_float.
30520 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30521 <libm-alias-float.h>.
30522 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30523 libm_alias_float.
30524 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30525 <libm-alias-float.h>.
30526 (getpayloadf): Define using libm_alias_float.
30527 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30528 <libm-alias-float.h>.
30529 (llrintf): Define using libm_alias_float.
30530 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30531 <libm-alias-float.h>.
30532 (llroundf): Define using libm_alias_float.
30533 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30534 (logbf): Define using libm_alias_float.
30535 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30536 (lrintf): Define using libm_alias_float.
30537 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30538 (lroundf): Define using libm_alias_float.
30539 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30540 (modff): Define using libm_alias_float.
30541 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30542 <libm-alias-float.h>.
30543 (nearbyintf): Define using libm_alias_float.
30544 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30545 <libm-alias-float.h>.
30546 (nextafterf): Define using libm_alias_float.
30547 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30548 <libm-alias-float.h>.
30549 (nextupf): Define using libm_alias_float.
30550 * sysdeps/ieee754/flt-32/s_remquof.c: Include
30551 <libm-alias-float.h>.
30552 (remquof): Define using libm_alias_float.
30553 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30554 (rintf): Define using libm_alias_float.
30555 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30556 <libm-alias-float.h>.
30557 (roundevenf): Define using libm_alias_float.
30558 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30559 (roundf): Define using libm_alias_float.
30560 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30561 using libm_alias_float.
30562 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30563 <libm-alias-float.h>.
30564 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30565 Define using libm_alias_float.
30566 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30567 <libm-alias-float.h>.
30568 (sincosf): Define using libm_alias_float.
30569 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30570 (sinf): Define using libm_alias_float.
30571 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30572 (tanf): Define using libm_alias_float.
30573 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30574 (tanhf): Define using libm_alias_float.
30575 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30576 <libm-alias-float.h>.
30577 (totalorderf): Define using libm_alias_float.
30578 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30579 <libm-alias-float.h>.
30580 (totalordermagf): Define using libm_alias_float.
30581 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30582 (truncf): Define using libm_alias_float.
30583 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30584 libm_alias_float.
30585 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30586 libm_alias_float.
30587
30588 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30589
30590 [BZ #22146]
30591 math/math.h: Let fpclassify use the builtin in C++ mode, even
30592 when optimazing for size.
30593
30594 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30595
30596 * csu/Makefile (generated): Do not add version-info.h.
30597 (before-compile): Likewise.
30598 (all-Banner-files): Remove variable.
30599 ($(objpfx)version-info.h): Remove rule.
30600 * csu/version.c (banner): Do not include "version-info.h".
30601 * libidn/Banner: Remove.
30602 * manual/contrib.texi (Simon Josefsson): New entry.
30603
30604 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30605
30606 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30607 Remove conditionals on LDBL_MANT_DIG.
30608 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30609 (__ieee754_lgammal_r): Likewise.
30610
30611 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30612
30613 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30614 _Float128 and L().
30615 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30616 _Float128 and L(). Replace _Float128 with long double and L(x)
30617 with xL, throughout the file.
30618 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30619 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30620 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30621 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30622
30623 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30624
30625 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30626 sysdeps/ieee754/ldbl-128ibm.
30627 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30628 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30629 of including it. Keep _Float128 and L() intact. These will be
30630 reviewed by a separate patch.
30631 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30632 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30633 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30634 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30635
30636 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30637
30638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30639 (__finitef128): Define to __redirect___finitef128.
30640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30641 (__isinff128): Define to __redirect___isinff128.
30642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30643 (__isnanf128): Define to __redirect___isnanf128.
30644
30645 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30646
30647 * sysdeps/powerpc/powerpc64le/Makefile
30648 (CFLAGS-tst-strtod-nan-locale.c): New variable.
30649 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30650
30651 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
30652 Carlos O'Donell <carlos@redhat.com>
30653
30654 [BZ #22180]
30655 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30656 * stdlib/test-dlclose-exit-race.c: New file.
30657 * stdlib/test-dlclose-exit-race-helper.c: New file.
30658 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30659
30660 2017-09-21 Joseph Myers <joseph@codesourcery.com>
30661
30662 * crypt/Banner: Remove file.
30663 * nptl/Banner: Likewise.
30664 * resolv/Banner: Likewise.
30665 * soft-fp/Banner: Likewise.
30666 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30667 ($(objpfx)version.d): Remove dependency on banner.h.
30668 ($(objpfx)version.os): Likewise.
30669 * nptl/version.c (banner): Do not include banner.h.
30670 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30671 Jelinek and BIND code.
30672
30673 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30674 Carlos O'Donell <carlos@redhat.com>
30675
30676 * support/xdlfcn.h: New file.
30677 * support/xdlfcn.c: New file.
30678 * support/Makefile (libsupport-routines): Add xdlfcn.
30679 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30680
30681 2017-09-20 Joseph Myers <joseph@codesourcery.com>
30682
30683 [BZ #20142]
30684 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30685 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30686 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30687 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30688 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30689 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30690 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30691 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30692
30693 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30694 Ricky Zhou <rickyz@google.com>
30695 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
30696
30697 [BZ #14333]
30698 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30699 Remove atomics.
30700 (__new_exitfn): Fail registration when we finished at_exit processing.
30701 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30702 * stdlib/on_exit.c (__on_exit): Likewise.
30703 * stdlib/exit.c (__exit_funcs_done): New variable.
30704 (__run_exit_handlers): Use __exit_funcs_lock.
30705 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30706 declarations.
30707 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30708 (test-cxa_atexit-race, test-on_exit-race): New tests.
30709 * stdlib/test-atexit-race-common.c: New file.
30710 * stdlib/test-atexit-race.c: New file.
30711 * stdlib/test-at_quick_exit-race.c: New file.
30712 * stdlib/test-cxa_atexit-race.c: New file.
30713 * stdlib/test-on_exit-race.c: New file.
30714
30715 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
30716
30717 * benchtests/Makefile: Add exp2f and log2f benchmarks.
30718 * benchtests/exp2f-inputs: Copy of expf-inputs.
30719 * benchtests/log2f-inputs: Copy of logf-inputs.
30720
30721 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30722
30723 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30724 Explicitly take address of first element of array arguments in
30725 call to INLINE_SYSCALL.
30726
30727 2017-09-19 Andreas Schwab <schwab@suse.de>
30728
30729 [BZ #22134]
30730 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30731 execveat first.
30732 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30733 unimplemented.
30734 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30735 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30736 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30737 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30738 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30739 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30740 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30741 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30742 * posix/Makefile (tests): Add tst-fexecve.
30743 * posix/tst-fexecve.c: New file.
30744
30745 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30746
30747 * benchtests/Makefile: Add logf benchmark.
30748 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30749
30750 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30751
30752 * benchtests/Makefile: Add expf benchmark.
30753 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30754
30755 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30756
30757 * csu/Makefile: Add -funwind-tables to libc-start.c.
30758 * debug/Makefile: Add -funwind-tables to backtrace.c.
30759 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30760 * sysdeps/arm/Makefile: Likewise.
30761 * sysdeps/i386/Makefile: Likewise.
30762 * sysdeps/m68k/Makefile: Likewise.
30763 * sysdeps/mips/Makefile: Likewise.
30764 * sysdeps/nios2/Makefile: Likewise.
30765 * sysdeps/sh/Makefile: Likewise.
30766 * sysdeps/sparc/Makefile: Likewise.
30767
30768 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30769
30770 * benchtests/Makefile (bench-math): Add trunc and truncf.
30771 (CFLAGS-bench-trunc.c): New variable.
30772 (CFLAGS-bench-truncf.c): Likewise.
30773 * benchtests/trunc-inputs: New file.
30774 * benchtests/truncf-inputs: Likewise.
30775
30776 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30777
30778 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30779
30780 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30781
30782 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30783 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30784 redefine.
30785 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30786 (exp10l): Define as weak alias.
30787 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30788 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30789 and redefine.
30790 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30791 (remainderl): Define as weak alias.
30792
30793 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30794 (fmal): Define using libm_alias_ldouble.
30795 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30796 (acoshl): Define using libm_alias_ldouble.
30797 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30798 (acosl): Define using libm_alias_ldouble.
30799 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30800 (asinl): Define using libm_alias_ldouble.
30801 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30802 (atan2l): Define using libm_alias_ldouble.
30803 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30804 (atanhl): Define using libm_alias_ldouble.
30805 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30806 (coshl): Define using libm_alias_ldouble.
30807 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30808 (exp10l): Define using libm_alias_ldouble.
30809 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30810 (exp2l): Define using libm_alias_ldouble.
30811 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30812 (expl): Define using libm_alias_ldouble.
30813 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30814 (fmodl): Define using libm_alias_ldouble.
30815 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30816 (hypotl): Define using libm_alias_ldouble.
30817 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30818 (j0l): Define using libm_alias_ldouble.
30819 (y0l): Likewise.
30820 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30821 (j1l): Define using libm_alias_ldouble.
30822 (y1l): Likewise.
30823 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30824 (jnl): Define using libm_alias_ldouble.
30825 (ynl): Likewise.
30826 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30827 (log10l): Define using libm_alias_ldouble.
30828 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30829 (log2l): Define using libm_alias_ldouble.
30830 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30831 (logl): Define using libm_alias_ldouble.
30832 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30833 (powl): Define using libm_alias_ldouble.
30834 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30835 (remainderl): Define using libm_alias_ldouble.
30836 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30837 (sinhl): Define using libm_alias_ldouble.
30838 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30839 (sqrtl): Define using libm_alias_ldouble.
30840 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30841 (tgammal): Define using libm_alias_ldouble.
30842 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30843 (exp10l): Do not use long_double_symbol here.
30844 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30845 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30846 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30847 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30848 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30849 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30850 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30851 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30852 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30853 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30854 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30855 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30856 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30857 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30858 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30859 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30860 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30861 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30862 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30863 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30864 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30865 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30866
30867 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30868
30869 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30870 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30871
30872 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30873
30874 * io/read.c (read): Add libc_hidden_weak.
30875 * sysdeps/mach/hurd/read.c (read): Likewise.
30876 * io/write.c (write): Likewise.
30877 * sysdeps/mach/hurd/write.c (write): Likewise.
30878 * io/pread64.c (__pread64): Likewise.
30879 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30880 * posix/pread64.c (__pread64): Add libc_hidden_def.
30881
30882 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30883
30884 * benchtests/scripts/compare_strings.py: New option -g.
30885 (draw_graph): Print a message that a graph is being generated.
30886 (process_results): Generate graph only if -g is passed.
30887 (main): Process option -g.
30888
30889 * benchtests/scripts/compare_strings.py (process_results):
30890 Better spacing for output.
30891
30892 * benchtests/scripts/compare_strings.py: Use argparse.
30893 * benchtests/README: Document existence of compare_strings.py.
30894
30895 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30896
30897 * math/s_fma.c: Include <libm-alias-double.h>.
30898 (fma): Define using libm_alias_double.
30899 * math/s_nextafter.c: Include <libm-alias-double.h>.
30900 (nextafter): Define using libm_alias_double.
30901 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30902 (acos): Define using libm_alias_double.
30903 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30904 (aocsh): Define using libm_alias_double.
30905 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30906 (asin): Define using libm_alias_double.
30907 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30908 (atan2): Define using libm_alias_double.
30909 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30910 (atanh): Define using libm_alias_double.
30911 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30912 (cosh): Define using libm_alias_double.
30913 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30914 (exp10): Define using libm_alias_double.
30915 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30916 (exp2): Define using libm_alias_double.
30917 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30918 (exp): Define using libm_alias_double.
30919 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30920 (fmod): Define using libm_alias_double.
30921 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30922 (hypot): Define using libm_alias_double.
30923 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30924 (j0): Define using libm_alias_double.
30925 (y0): Likewise.
30926 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30927 (j1): Define using libm_alias_double.
30928 (y1): Likewise.
30929 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30930 (jn): Define using libm_alias_double.
30931 (yn): Likewise.
30932 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30933 (log10): Define using libm_alias_double.
30934 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30935 (log2): Define using libm_alias_double.
30936 * math/w_log_compat.c: Include <libm-alias-double.h>.
30937 (log): Define using libm_alias_double.
30938 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30939 (pow): Define using libm_alias_double.
30940 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30941 (remainder): Define using libm_alias_double.
30942 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30943 (sinh): Define using libm_alias_double.
30944 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30945 (sqrt): Define using libm_alias_double.
30946 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30947 (tgamma): Define using libm_alias_double.
30948 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30949 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30950 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30951 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30952 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30953 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30954 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30955 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30956 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30957 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30958 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30959 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30960 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30961 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30962 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30963 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30964 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30965 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30966 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30967 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30968 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30969 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30970 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30971 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30972 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30973
30974 * math/e_acoshl.c: Remove.
30975 * math/e_acosl.c: Likewise.
30976 * math/e_asinl.c: Likewise.
30977 * math/e_atan2l.c: Likewise.
30978 * math/e_atanhl.c: Likewise.
30979 * math/e_coshl.c: Likewise.
30980 * math/e_expl.c: Likewise.
30981 * math/e_fmodl.c: Likewise.
30982 * math/e_gammal_r.c: Likewise.
30983 * math/e_hypotl.c: Likewise.
30984 * math/e_j0l.c: Likewise.
30985 * math/e_j1l.c: Likewise.
30986 * math/e_jnl.c: Likewise.
30987 * math/e_lgammal_r.c: Likewise.
30988 * math/e_log10l.c: Likewise.
30989 * math/e_log2l.c: Likewise.
30990 * math/e_logl.c: Likewise.
30991 * math/e_powl.c: Likewise.
30992 * math/e_rem_pio2l.c: Likewise.
30993 * math/e_sinhl.c: Likewise.
30994 * math/e_sqrtf128.c: Likewise.
30995 * math/e_sqrtl.c: Likewise.
30996 * math/k_cosl.c: Likewise.
30997 * math/k_sinl.c: Likewise.
30998 * math/k_tanl.c: Likewise.
30999 * math/s_asinhl.c: Likewise.
31000 * math/s_atanl.c: Likewise.
31001 * math/s_cbrtl.c: Likewise.
31002 * math/s_erfl.c: Likewise.
31003 * math/s_expm1l.c: Likewise.
31004 * math/s_log1pl.c: Likewise.
31005 * math/s_tanhl.c: Likewise.
31006
31007 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
31008
31009 [BZ #21745]
31010 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
31011 [$(subdir) = math] (sysdep_calls): New variable. Has the
31012 previous contents of sysdep_routines, but re-sorted..
31013 [$(subdir) = math] (sysdep_routines): Re-use the contents from
31014 sysdep_calls.
31015 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
31016 defined in sysdep_calls and replace by the respective m_* names.
31017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
31018 (compat_symbol): Undefine to avoid duplicated compat symbols in
31019 libc.
31020
31021 2017-09-15 Joseph Myers <joseph@codesourcery.com>
31022
31023 * math/s_fmaf.c: Include <libm-alias-float.h>.
31024 (fmaf): Define using libm_alias_float.
31025 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
31026 (acosf): Define using libm_alias_float.
31027 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
31028 (acoshf): Define using libm_alias_float.
31029 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
31030 (asinf): Define using libm_alias_float.
31031 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
31032 (atan2f): Define using libm_alias_float.
31033 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
31034 (atanhf): Define using libm_alias_float.
31035 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
31036 (coshf): Define using libm_alias_float.
31037 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
31038 (exp10f): Define using libm_alias_float.
31039 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
31040 (fmodf): Define using libm_alias_float.
31041 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
31042 (hypotf): Define using libm_alias_float.
31043 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
31044 (j0f): Define using libm_alias_float.
31045 (y0f): Likewise.
31046 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
31047 (j1f): Define using libm_alias_float.
31048 (y1f): Likewise.
31049 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
31050 (jnf): Define using libm_alias_float.
31051 (ynf): Likewise.
31052 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
31053 (log10f): Define using libm_alias_float.
31054 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
31055 (log2f): Define using libm_alias_float.
31056 * math/w_logf_compat.c: Include <libm-alias-float.h>.
31057 (logf): Define using libm_alias_float.
31058 * math/w_powf_compat.c: Include <libm-alias-float.h>.
31059 (powf): Define using libm_alias_float.
31060 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
31061 (remainderf): Define using libm_alias_float.
31062 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
31063 (sinhf): Define using libm_alias_float.
31064 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
31065 (sqrtf): Define using libm_alias_float.
31066 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
31067 (tgammaf): Define using libm_alias_float.
31068
31069 2017-09-14 Joseph Myers <joseph@codesourcery.com>
31070
31071 * include/math.h (roundeven): Change hidden_proto call to
31072 __roundeven.
31073 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
31074 alias.
31075 [NO_LONG_DOUBLE] (__j0l): New strong alias.
31076 (y0): Rename to __y0 and define as weak alias.
31077 [NO_LONG_DOUBLE] (__y0l): New strong alias.
31078 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
31079 alias.
31080 (y0f): Rename to __y0f and define as weak alias.
31081 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
31082 alias.
31083 [NO_LONG_DOUBLE] (__j1l): New strong alias.
31084 (y1): Rename to __y1 and define as weak alias.
31085 [NO_LONG_DOUBLE] (__y1l): New strong alias.
31086 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
31087 alias.
31088 (y1f): Rename to __y1f and define as weak alias.
31089 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
31090 alias.
31091 [NO_LONG_DOUBLE] (__jnl): New strong alias.
31092 (yn): Rename to __yn and define as weak alias.
31093 [NO_LONG_DOUBLE] (__ynl): New strong alias.
31094 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
31095 alias.
31096 (ynf): Rename to __ynf and define as weak alias.
31097 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
31098 (fromfp): Define as weak alias.
31099 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
31100 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
31101 (fromfpx): Define as weak alias.
31102 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
31103 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
31104 __getpayload and define as weak alias.
31105 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
31106 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
31107 __roundeven and define as weak alias.
31108 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
31109 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
31110 __setpayload.
31111 (setpayload): Define as weak alias.
31112 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
31113 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
31114 __setpayloadsig.
31115 (setpayloadsig): Define as weak alias.
31116 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
31117 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
31118 __totalorder and define as weak alias.
31119 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
31120 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
31121 to __totalordermag and define as weak alias.
31122 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
31123 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
31124 (ufromfp): Define as weak alias.
31125 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
31126 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
31127 __ufromfpx.
31128 (ufromfpx): Define as weak alias.
31129 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
31130 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
31131 Rename to __getpayload and define as weak alias.
31132 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
31133 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
31134 Rename to __roundeven and define as weak alias.
31135 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
31136 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
31137 Rename to __totalorder and define as weak alias.
31138 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
31139 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
31140 (totalordermag): Rename to __totalordermag and define as weak
31141 alias.
31142 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
31143 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
31144 macro.
31145 (__roundevenl): Likewise.
31146 (__totalorderl): Likewise.
31147 (__totalordermagl): Likewise
31148 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
31149 __fromfpf128.
31150 (fromfpf128): Define as weak alias.
31151 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
31152 __fromfpxf128.
31153 (fromfpxf128): Define as weak alias.
31154 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
31155 __setpayloadf128.
31156 (setpayloadf128): Define as weak alias.
31157 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
31158 __setpayloadsigf128.
31159 (setpayloadsigf128): Define as weak alias.
31160 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
31161 __ufromfpf128.
31162 (ufromfpf128): Define as weak alias.
31163 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
31164 __ufromfpxf128.
31165 (ufromfpxf128): Define as weak alias.
31166 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
31167 (fromfpf): Define as weak alias.
31168 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
31169 __fromfpxf.
31170 (fromfpxf): Define as weak alias.
31171 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
31172 __getpayloadf and define as weak alias.
31173 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
31174 __roundevenf and define as weak alias.
31175 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
31176 __setpayloadf.
31177 (setpayloadf): Define as weak alias.
31178 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
31179 __setpayloadsigf.
31180 (setpayloadsigf): Define as weak alias.
31181 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
31182 __totalorderf and define as weak alias.
31183 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
31184 Rename to __totalordermagf and define as weak alias.
31185 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
31186 __ufromfpf.
31187 (ufromfpf): Define as weak alias.
31188 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
31189 __ufromfpxf.
31190 (ufromfpxf): Define as weak alias.
31191 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
31192 __fromfpl.
31193 (fromfpl): Define as weak alias.
31194 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
31195 __fromfpxl.
31196 (fromfpxl): Define as weak alias.
31197 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
31198 to __getpayloadl and define as weak alias.
31199 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
31200 __roundevenl and define as weak alias.
31201 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
31202 __setpayloadl.
31203 (setpayloadl): Define as weak alias.
31204 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
31205 __setpayloadsigl.
31206 (setpayloadsigl): Define as weak alias.
31207 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
31208 to __totalorderl and define as weak alias.
31209 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
31210 Rename to __totalordermagl and define as weak alias.
31211 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
31212 __ufromfpl.
31213 (ufromfpl): Define as weak alias.
31214 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
31215 __ufromfpxl.
31216 (ufromfpxl): Define as weak alias.
31217 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
31218 __fromfpl.
31219 (fromfpl): Define as weak alias.
31220 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
31221 __fromfpxl.
31222 (fromfpxl): Define as weak alias.
31223 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
31224 Rename to __getpayloadl and define as weak alias.
31225 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
31226 to __roundevenl and define as weak alias. Call __roundeven
31227 instead of roundeven.
31228 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
31229 __setpayloadl.
31230 (setpayloadl): Define as weak alias.
31231 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
31232 __setpayloadsigl.
31233 (setpayloadsigl): Define as weak alias.
31234 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
31235 Rename to __totalorderl and define as weak alias.
31236 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
31237 Rename to __totalordermagl and define as weak alias.
31238 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
31239 __ufromfpl.
31240 (ufromfpl): Define as weak alias.
31241 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
31242 __ufromfpxl.
31243 (ufromfpxl): Define as weak alias.
31244 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
31245 __fromfpl.
31246 (fromfpl): Define as weak alias.
31247 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
31248 __fromfpxl.
31249 (fromfpxl): Define as weak alias.
31250 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
31251 __getpayloadl and define as weak alias.
31252 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
31253 __roundevenl and define as weak alias.
31254 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
31255 __setpayloadl.
31256 (setpayloadl): Define as weak alias.
31257 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
31258 __setpayloadsigl.
31259 (setpayloadsigl): Define as weak alias.
31260 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
31261 __totalorderl and define as weak alias.
31262 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
31263 Rename to __totalordermagl and define as weak alias.
31264 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
31265 __ufromfpl.
31266 (ufromfpl): Define as weak alias.
31267 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
31268 __ufromfpxl.
31269 (ufromfpxl): Define as weak alias.
31270
31271 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
31272
31273 * benchtests/bench-string.h (realloc_bufs): New function.
31274 (test_init): Call it.
31275 * benchtests/bench-memset-large.c (do_test): Likewise.
31276 * benchtests/bench-memset.c (do_test): Likewise.
31277
31278 * benchtests/bench-memset-large.c: Print output in JSON
31279 format.
31280 * benchtests/bench-memset.c: Likewise.
31281
31282 2017-09-14 Mike FABIAN <mfabian@redhat.com>
31283
31284 [BZ #21084]
31285 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
31286 * iconvdata/Makefile: Add IBM858.
31287 * iconvdata/gconv-modules: Likewise.
31288 * iconvdata/tst-tables.sh: Likewise.
31289 * iconvdata/ibm858.c: New file.
31290 * localedata/charmaps/IBM858: Likewise.
31291
31292 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
31293
31294 [BZ #22023]
31295 * locales/niu_NZ (LC_TIME): copy "niu_NU".
31296 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
31297
31298 2017-09-14 Mike FABIAN <mfabian@redhat.com>
31299
31300 [BZ #22112]
31301 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
31302 and add tel_int_fmt.
31303
31304 2017-09-14 Joseph Myers <joseph@codesourcery.com>
31305
31306 * sysdeps/generic/libm-alias-float128.h: New file.
31307 * sysdeps/generic/math-type-macros-float128.h: Include
31308 <libm-alias-float128.h>.
31309 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31310
31311 2017-09-13 Joseph Myers <joseph@codesourcery.com>
31312
31313 * sysdeps/generic/libm-alias-ldouble.h: New file.
31314 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
31315 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
31316 * sysdeps/generic/math-type-macros-ldouble.h: Include
31317 <libm-alias-ldouble.h>.
31318 [!declare_mgen_alias] (declare_mgen_alias): Define to use
31319 libm_alias_ldouble.
31320
31321 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
31322
31323 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
31324 * math/w_exp_compat.c: ... here.
31325 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
31326 * math/w_expf_compat.c: ... here.
31327 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
31328 * math/w_expl_compat.c: ... here.
31329 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
31330 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
31331 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
31332 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
31333
31334 2017-09-13 Joseph Myers <joseph@codesourcery.com>
31335
31336 * math/w_scalbln_template.c (strong_alias): Do not undefine and
31337 redefine.
31338 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
31339 macro.
31340 (ldexpl): Only define as compat symbol for libc, not libm.
31341 (scalbnl): Define as compat symbol for libc here.
31342 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
31343 define for [IS_IN (libc)].
31344 (__ldexpl_2): Remove alias.
31345 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
31346 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
31347 name in long_double_symbol call.
31348 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
31349 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
31350 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
31351 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
31352 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
31353 Remove macro.
31354 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
31355 Define as compat symbol.
31356
31357 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31358
31359 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
31360 * sysdeps/unix/sysv/linux/alpha/Makefile
31361 [$(subdir) = csu] (sysdep_routines): Remove rule.
31362
31363 2017-09-13 Joseph Myers <joseph@codesourcery.com>
31364
31365 * sysdeps/generic/libm-alias-double.h: New file.
31366 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
31367 * sysdeps/generic/math-type-macros-double.h: Include
31368 <libm-alias-double.h>.
31369 [declare_mgen_alias] (declare_mgen_alias): Define to use
31370 libm_alias_double.
31371 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
31372 (M_LIBM_NEED_COMPAT): Remove macro.
31373 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
31374 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
31375 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
31376 code.
31377 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31378 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31379 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31380 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31381 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31382 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31383 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31384 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31385 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31386 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31387 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31388 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31389 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31390 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31391 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31392 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31393 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31394 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31395 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31396 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31397 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31398 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31399 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31400 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31401 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31402 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31403 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31404 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
31405 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
31406 macro.
31407 (declare_mgen_alias): New macro.
31408 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
31409 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
31410 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
31411 (M_LIBM_NEED_COMPAT): Remove macro.
31412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
31413 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
31414 <first-versions.h>.
31415 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
31416 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
31417
31418 2017-09-12 Joseph Myers <joseph@codesourcery.com>
31419
31420 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
31421 (declare_mgen_alias_2): Remove.
31422 * sysdeps/generic/math-type-macros-double.h
31423 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
31424 Likewise.
31425 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
31426 alias.
31427 (ldexp): Define with declare_mgen_alias.
31428 (scalbn): Likewise.
31429
31430 2017-09-12 Steve Ellcey <sellcey@cavium.com>
31431
31432 * grp/initgroups.c: Include config.h.
31433 (DEFAULT_CONFIG): New macro.
31434 (internal_getgrouplist): Use DEFAULT_CONFIG.
31435 * nscd/initgrcache.c (addinitgroupsX): Likewise.
31436 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
31437 (DEFAULT_DEFCONFIG): New macro.
31438 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
31439 * nss/grp-lookup.c: Include config.h
31440 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
31441 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
31442 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
31443 * manual/nss.texi: Update default values section.
31444
31445 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
31446
31447 [BZ #21967]
31448 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
31449 New.
31450 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
31451 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31452 Handle MathVec_Prefer_No_AVX512.
31453 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
31454 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
31455 is set.
31456
31457 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
31458
31459 * posix/sched_primax.c (__sched_get_priority_max): Add
31460 libc_hidden_def.
31461 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
31462 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31463 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31464 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
31465 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
31466 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
31467 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
31468 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
31469 Add aliases.
31470
31471 2017-09-11 Joseph Myers <joseph@codesourcery.com>
31472
31473 * sysdeps/generic/libm-alias-float.h: New file.
31474 * sysdeps/generic/math-type-macros-float.h: Include
31475 <libm-alias-float.h>.
31476 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31477
31478 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
31479
31480 [BZ #22093]
31481 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31482 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31483 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31484 (HWCAP_IMPORTANT): Likewise.
31485 (HWCAP_X86_64): New enum.
31486 (HWCAP_X86_AVX512_1): Updated.
31487 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31488 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31489 (modules-names): Add x86_64/tst-x86_64mod-1.
31490 (LDFLAGS-tst-x86_64mod-1.so): New.
31491 ($(objpfx)tst-x86_64-1): Likewise.
31492 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31493 (tst-x86_64-1-clean): Likewise.
31494 * sysdeps/x86_64/tst-x86_64-1.c: New file.
31495 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31496
31497 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31498
31499 * po/sv.po: Update translations.
31500 * po/fr.po: Likewise.
31501
31502 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
31503
31504 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31505 seconds.
31506 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31507 seconds.
31508 * elf/rtld-Rules: Fix $(error) use.
31509
31510 2017-09-09 Mike FABIAN <mfabian@redhat.com>
31511
31512 [BZ #14925]
31513 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31514 * locale/iso-639.def: Change “Bengali” to “Bangla”.
31515 * localedata/locales/bn_BD: “Bengali” was still used in some
31516 comments. Change it to “Bangla”.
31517
31518 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
31519
31520 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31521
31522 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31523
31524 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31525 thunderx2t99p1 to list of cpu names.
31526 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31527 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31528
31529 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31530
31531 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31532 Use strcmp instead of tunable_is_name.
31533
31534 2017-09-08 Joseph Myers <joseph@codesourcery.com>
31535
31536 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31537 (F_GET_RW_HINT): New macro.
31538 [__USE_GNU] (F_SET_RW_HINT): Likewise.
31539 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31540 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31541 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31542 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31543 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31544 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31545 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31546 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31547
31548 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31549 (F_ADD_SEALS): New macro.
31550 [__USE_GNU] (F_GET_SEALS): Likewise.
31551 [__USE_GNU] (F_SEAL_SEAL): Likewise.
31552 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31553 [__USE_GNU] (F_SEAL_GROW): Likewise.
31554 [__USE_GNU] (F_SEAL_WRITE): Likewise.
31555
31556 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31557
31558 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31559 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31560 * posix/glob_internal.h (__glob_pattern_type):
31561 * posix/glob.c (glob):
31562 * posix/glob_pattern_p.c (__glob_pattern_p):
31563 Use them.
31564
31565 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31566 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31567 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31568 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31569 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31571 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31572 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31573 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31574 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31575 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31576 * sysdeps/wordsize-64/glob.c: Likewise.
31577 * sysdeps/wordsize-64/glob64.c: Likewise.
31578 * sysdeps/wordsize-64/globfree.c: Likewise.
31579 * sysdeps/wordsize-64/globfree64.c: Likewise.
31580 * sysdeps/unix/sysv/linux/glob.c: New file.
31581 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31582 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31583 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31584 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31585 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31586 adds !GLOB_NO_OLD_VERSION as an extra condition.
31587 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31588 using relative path instead of absolute one.
31589 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31590 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31591 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31592 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31593 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31594 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31595
31596 [BZ #1062]
31597 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31598 (glob): Use the same scratch buffer for both getlogin_r and
31599 getpwnam_r. Don’t require preallocation of the login name. This
31600 simplifies storage allocation, and corrects the handling of
31601 long login names.
31602
31603 [BZ #1062]
31604 * posix/glob.c (glob): Port recent patches to platforms
31605 lacking getpwnam_r.
31606 (glob): Fix longstanding misuse of errno after getpwnam_r, which
31607 returns an error number rather than setting errno.
31608
31609 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31610 instead of GCC extension.
31611 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31612 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31613 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31614
31615 [BZ #866]
31616 [BZ #1062]
31617 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31618 * posix/bug-glob1.c: Remove file.
31619 * posix/tst-glob_symlinks.c: New file.
31620 * posix/glob.c (__lstat64): New macro.
31621 (is_dir): New function.
31622 (glob, glob_in_dir): Match symlinks even if they are dangling.
31623 (link_stat, link_exists_p): Remove. All uses removed.
31624
31625 [BZ #1062]
31626 [BZ #19971]
31627 * posix/glob.c (struct readdir_result): Remove skip_entry member.
31628 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31629 All uses removed.
31630
31631 [BZ #1062]
31632 CVE-2017-15671
31633 * posix/Makefile (routines): Add globfree, globfree64, and
31634 glob_pattern_p.
31635 * posix/flexmember.h: New file.
31636 * posix/glob_internal.h: Likewise.
31637 * posix/glob_pattern_p.c: Likewise.
31638 * posix/globfree.c: Likewise.
31639 * posix/globfree64.c: Likewise.
31640 * sysdeps/gnu/globfree64.c: Likewise.
31641 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31642 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31643 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31644 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31645 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31646 * sysdeps/wordsize-64/globfree.c: Likewise.
31647 * sysdeps/wordsize-64/globfree64.c: Likewise.
31648 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31649 [NDEBUG): Remove comments.
31650 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31651 (dirent_type): New type. Use uint_fast8_t not
31652 uint8_t, as C99 does not require uint8_t.
31653 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31654 (struct readdir_result): Use dirent_type. Do not define skip_entry
31655 unless it is needed; this saves a byte on platforms lacking d_ino.
31656 (readdir_result_type, readdir_result_skip_entry):
31657 New functions, replacing ...
31658 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31659 these functions, which were removed. This makes the callers
31660 easier to read. All callers changed.
31661 (D_INO_TO_RESULT): Now empty if there is no d_ino.
31662 (size_add_wrapv, glob_use_alloca): New static functions.
31663 (glob, glob_in_dir): Check for size_t overflow in several places,
31664 and fix some size_t checks that were not quite right.
31665 Remove old code using SHELL since Bash no longer
31666 uses this.
31667 (glob, prefix_array): Separate MS code better.
31668 (glob_in_dir): Remove old Amiga and VMS code.
31669 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31670 separate files.
31671 (glob_in_dir): Do not rely on undefined behavior in accessing
31672 struct members beyond their bounds. Use a flexible array member
31673 instead
31674 (link_stat): Rename from link_exists2_p and return -1/0 instead of
31675 0/1. Caller changed.
31676 (glob): Fix memory leaks.
31677 * posix/glob64 (globfree64): Move to separate file.
31678 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31679 (globfree64): Remove hidden alias.
31680 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31681 oldglob.
31682 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31683 separate file.
31684 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31685 define.
31686 Move compat code to separate file.
31687 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31688 separate file.
31689
31690 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
31691
31692 * resolv/tst-resolv-qtypes.c (domain): Changed to
31693 "const char domain[] =".
31694
31695 2017-09-07 Joseph Myers <joseph@codesourcery.com>
31696
31697 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31698 version to 3.1.6.
31699
31700 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31701 (TCP_MD5SIG_EXT): Likewise.
31702 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31703 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31704 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
31705
31706 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31707
31708 2017-09-07 Mike FABIAN <mfabian@redhat.com>
31709
31710 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31711
31712 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
31713
31714 [BZ #22100]
31715 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31716
31717 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
31718
31719 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31720 before assuming that the file is empty. Avoid testing buffer content
31721 when nread == 0.
31722
31723 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31724
31725 [BZ #18858]
31726 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31727 Remove define.
31728 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31729 Likewise.
31730 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31731 Likewise.
31732 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31733 Likewise.
31734 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31735 Likewise.
31736 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31737 Likewise.
31738 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31739 Likewise.
31740
31741 2017-09-06 Florian Weimer <fweimer@redhat.com>
31742
31743 * malloc/dynarray_emplace_enlarge.c
31744 (__libc_dynarray_emplace_enlarge): Add missing else.
31745
31746 2017-09-06 Florian Weimer <fweimer@redhat.com>
31747
31748 [BZ #22096]
31749 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31750 case of failure to obtain the global conf object.
31751
31752 2017-09-06 Florian Weimer <fweimer@redhat.com>
31753
31754 [BZ #22095]
31755 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31756 dynarray allocation failure.
31757
31758 2017-09-06 Florian Weimer <fweimer@redhat.com>
31759
31760 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31761 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31762 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31763 New functions.
31764 (response): Call them. Add 'p', '6' flag processing.
31765 (test_reverse): New function.
31766 (test_get2_any): Call it.
31767 (test_no_inet6): Add 'p' test.
31768 (test_inet6): Likewise.
31769
31770 2017-09-06 Florian Weimer <fweimer@redhat.com>
31771
31772 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31773 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31774 the QNAME.
31775 (test_gai): Adjust query names. Add additional tests.
31776 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31777 test_get2. Adjust query names. Add additional tests.
31778 (test_no_inet6): New function, extracted from threadfunc.
31779 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31780 Add additional tests.
31781
31782 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31783
31784 [BZ #22070]
31785 * localedata/unicode-gen/utf8_gen.py: Set the width for
31786 characters with Prepended_Concatenation_Mark property to 1
31787 * localedata/charmaps/UTF-8: Updated using the improved script.
31788
31789 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31790
31791 [BZ #21750]
31792 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31793 use the range notation for all ranges of neighbouring characters
31794 with the same width.
31795
31796 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31797
31798 * sysdeps/generic/math-type-macros-double.h: Include
31799 <math-svid-compat.h>.
31800 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31801 * sysdeps/generic/math-type-macros-float.h: Include
31802 <math-svid-compat.h>.
31803 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31804 * sysdeps/generic/math-type-macros-ldouble.h: Include
31805 <math-svid-compat.h>.
31806 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31807 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31808 condition.
31809 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31810 * math/w_acosf_compat.c: Likewise.
31811 * math/w_acosh_compat.c: Likewise.
31812 * math/w_acoshf_compat.c: Likewise.
31813 * math/w_acoshl_compat.c: Likewise.
31814 * math/w_acosl_compat.c: Likewise.
31815 * math/w_asin_compat.c: Likewise.
31816 * math/w_asinf_compat.c: Likewise.
31817 * math/w_asinl_compat.c: Likewise.
31818 * math/w_atan2_compat.c: Likewise.
31819 * math/w_atan2f_compat.c: Likewise.
31820 * math/w_atan2l_compat.c: Likewise.
31821 * math/w_atanh_compat.c: Likewise.
31822 * math/w_atanhf_compat.c: Likewise.
31823 * math/w_atanhl_compat.c: Likewise.
31824 * math/w_cosh_compat.c: Likewise.
31825 * math/w_coshf_compat.c: Likewise.
31826 * math/w_coshl_compat.c: Likewise.
31827 * math/w_exp10_compat.c: Likewise.
31828 * math/w_exp10f_compat.c: Likewise.
31829 * math/w_exp10l_compat.c: Likewise.
31830 * math/w_exp2_compat.c: Likewise.
31831 * math/w_exp2f_compat.c: Likewise.
31832 * math/w_exp2l_compat.c: Likewise.
31833 * math/w_fmod_compat.c: Likewise.
31834 * math/w_fmodf_compat.c: Likewise.
31835 * math/w_fmodl_compat.c: Likewise.
31836 * math/w_hypot_compat.c: Likewise.
31837 * math/w_hypotf_compat.c: Likewise.
31838 * math/w_hypotl_compat.c: Likewise.
31839 * math/w_j0_compat.c: Likewise.
31840 * math/w_j0f_compat.c: Likewise.
31841 * math/w_j0l_compat.c: Likewise.
31842 * math/w_j1_compat.c: Likewise.
31843 * math/w_j1f_compat.c: Likewise.
31844 * math/w_j1l_compat.c: Likewise.
31845 * math/w_jn_compat.c: Likewise.
31846 * math/w_jnf_compat.c: Likewise.
31847 * math/w_jnl_compat.c: Likewise.
31848 * math/w_lgamma_r_compat.c: Likewise.
31849 * math/w_lgammaf_r_compat.c: Likewise.
31850 * math/w_lgammal_r_compat.c: Likewise.
31851 * math/w_log10_compat.c: Likewise.
31852 * math/w_log10f_compat.c: Likewise.
31853 * math/w_log10l_compat.c: Likewise.
31854 * math/w_log2_compat.c: Likewise.
31855 * math/w_log2f_compat.c: Likewise.
31856 * math/w_log2l_compat.c: Likewise.
31857 * math/w_log_compat.c: Likewise.
31858 * math/w_logf_compat.c: Likewise.
31859 * math/w_logl_compat.c: Likewise.
31860 * math/w_pow_compat.c: Likewise.
31861 * math/w_powf_compat.c: Likewise.
31862 * math/w_powl_compat.c: Likewise.
31863 * math/w_remainder_compat.c: Likewise.
31864 * math/w_remainderf_compat.c: Likewise.
31865 * math/w_remainderl_compat.c: Likewise.
31866 * math/w_sinh_compat.c: Likewise.
31867 * math/w_sinhf_compat.c: Likewise.
31868 * math/w_sinhl_compat.c: Likewise.
31869 * math/w_sqrt_compat.c: Likewise.
31870 * math/w_sqrtf_compat.c: Likewise.
31871 * math/w_sqrtl_compat.c: Likewise.
31872 * math/w_tgamma_compat.c: Likewise.
31873 * math/w_tgammaf_compat.c: Likewise.
31874 * math/w_tgammal_compat.c: Likewise.
31875 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31876 [LIBM_SVID_COMPAT].
31877 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31878 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31879 [LIBM_SVID_COMPAT].
31880 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31881 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31882 [LIBM_SVID_COMPAT].
31883 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31884 * sysdeps/i386/fpu/w_sqrt.c: New file.
31885 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31886 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31887 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31888 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31889 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31890 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31891 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31892 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31893 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31894 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31895 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31896 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31897 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31898 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31899 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31900 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31901 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31902 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31903 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31904 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31905 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31906 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31907 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31908 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31909 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31910 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31911 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31912 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31913 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31914 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31915 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31916 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31917 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31918 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31919 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31920 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31921 * sysdeps/ia64/fpu/w_log.c: Likewise.
31922 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31923 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31924 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31925 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31926 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31927 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31928 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31929 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31930 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31931 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31932 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31933 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31934 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31935 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31936 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31937 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31938 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31939 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31940 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31941 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31942 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31943 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31944 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31945 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31946 [LIBM_SVID_COMPAT].
31947 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31948 * sysdeps/ieee754/k_standard.c: Likewise.
31949 * sysdeps/ieee754/k_standardf.c: Likewise.
31950 * sysdeps/ieee754/k_standardl.c: Likewise.
31951 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31952 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31953 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31954 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31955 long_double_symbol call on [LIBM_SVID_COMPAT].
31956 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31957 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31958 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31959 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31960 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31961 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31962 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31963 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31964 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31965 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31966 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31967 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31968 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31969 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31970 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31971 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31972 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31973 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31974 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31975 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31976 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31977 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31978
31979 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31980
31981 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31982 * malloc/tst-mallocstate.c: Convert from test-skeleton
31983 to test-driver. Ifdef code using TEST_COMPAT macro.
31984 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31985 * math/test-matherr.c: Likewise.
31986
31987 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31988
31989 [BZ #22086]
31990 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31991 comparing word with byte-swapped constant.
31992
31993 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31994
31995 [BZ #20498]
31996 * locale/iso-639.def: add Miskito.
31997 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31998 * localedata/locales/miq_NI: New file.
31999
32000 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
32001
32002 [BZ #18822]
32003 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
32004 (__mkdir): Likewise.
32005 * io/chmod.c (__chmod): Add libc_hidden_def.
32006 * io/mkdir.c (__mkdir): Likewise.
32007 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
32008 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
32009 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
32010 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
32011
32012 2017-09-04 Joseph Myers <joseph@codesourcery.com>
32013
32014 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
32015 version to 4.13.
32016
32017 [BZ #22082]
32018 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
32019 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
32020
32021 2017-09-04 Florian Weimer <fweimer@redhat.com>
32022
32023 * math/math.h: Issue warning if log is defined.
32024
32025 2017-09-04 Joseph Myers <joseph@codesourcery.com>
32026
32027 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
32028 kernel version to 4.13.
32029
32030 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
32031
32032 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
32033 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
32034 parameter.
32035 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
32036 just <bits/types.h>.
32037 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
32038 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
32039 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
32040 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
32041 * misc/preadv2.c: Include <errno.h>.
32042 * misc/preadv64v2.c: Include <errno.h>.
32043 * misc/pwritev2.c: Include <errno.h>.
32044 * misc/pwritev64v2.c: Include <errno.h>.
32045 * sysdeps/posix/preadv2.c: Include <errno.h>.
32046 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
32047 Fix <unistd.h> inclusion.
32048 * sysdeps/posix/pwritev2.c: Include <errno.h>.
32049 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
32050 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
32051 __strtoul_internal): New functions.
32052 * sysdeps/posix/pause.c: Include <sigsetops.h>.
32053 * sysdeps/posix/system.c: Include <sigsetops.h>.
32054 * sysdeps/mach/hurd/i386/Makefile
32055 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
32056 [$(subdir) = csu] (sysdep-only-routines): Likewise.
32057 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
32058 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
32059 __feraiseexcept_renamed to feraiseexcept instead of
32060 __GI_feraiseexcept.
32061 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
32062 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
32063 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
32064 RWF_NOWAIT): Define to 0 if undefined already.
32065 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
32066 boils down to 0.
32067 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
32068 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
32069
32070 2017-09-01 Joseph Myers <joseph@codesourcery.com>
32071
32072 * manual/math.texi (pow10): Do not document.
32073 (pow10f): Likewise.
32074 (pow10l): Likewise.
32075 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
32076 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
32077 * math/libm-test-exp10.inc (pow10_test): Remove.
32078 (do_test): Do not call pow10.
32079 * math/w_exp10_compat.c (pow10): Make into compat symbol.
32080 [NO_LONG_DOUBLE] (pow10l): Likewise.
32081 * math/w_exp10f_compat.c (pow10f): Likewise.
32082 * math/w_exp10l_compat.c (pow10l): Likewise.
32083 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
32084 (pow10): Make into compat symbol.
32085 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
32086 (pow10f): Make into compat symbol.
32087 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
32088 (pow10l): Make into compat symbol.
32089 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
32090 pow10.
32091 (CFLAGS-nldbl-pow10.c): Remove variable..
32092 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
32093 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
32094 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
32095 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
32096 Undefine and redefine.
32097 (pow10l): Make into compat symbol.
32098 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
32099 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
32100 * sysdeps/arm/libm-test-ulps: Likewise.
32101 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
32102 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
32103 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
32104 * sysdeps/microblaze/libm-test-ulps: Likewise.
32105 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
32106 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
32107 * sysdeps/nios2/libm-test-ulps: Likewise.
32108 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32109 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
32110 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32111 * sysdeps/sh/libm-test-ulps: Likewise.
32112 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32113 * sysdeps/tile/libm-test-ulps: Likewise.
32114 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32115
32116 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
32117
32118 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
32119
32120 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
32121
32122 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
32123 "../ChangeLog.old/ChangeLog.8".
32124 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
32125 "../ChangeLog.old/ChangeLog.14".
32126
32127 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
32128
32129 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
32130 Threads Library.
32131
32132 2017-09-01 Joseph Myers <joseph@codesourcery.com>
32133
32134 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
32135
32136 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
32137
32138 * csu/version.c (banner): Remove "by Roland McGrath et al.".
32139 * nptl/Banner: Remove "by Ulrich Drepper et al.".
32140
32141 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
32142
32143 * stdlib/tst-atexit-common.c (do_test): Test support for at least
32144 32 atexit handlers.
32145
32146 2017-09-01 Zack Weinberg <zackw@panix.com>
32147
32148 * math/math.h (HUGE_VAL): Improve commentary.
32149
32150 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32151 Andreas Schwab <schwab@suse.de>
32152
32153 [BZ #21530]
32154 * include/stdio.h (__gen_tempfd): New function.
32155 * stdio-common/Makefile (routines): Add gentempfd.
32156 * stdio-common/gentempfd.c: New file.
32157 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
32158 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
32159 unnamed file first.
32160
32161 2017-09-01 Florian Weimer <fweimer@redhat.com>
32162
32163 [BZ #21915]
32164 [BZ #21922]
32165 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
32166 result to determine success or failure, not the errno value.
32167 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
32168 (tst-nss-files-hosts-erange): Link with -ldl.
32169 * nss/tst-nss-files-hosts-erange.c: New file.
32170 * nss/tst-resolv-basic.c (response): Handle nodata.example.
32171 (do_test): Add NO_DATA tests.
32172 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
32173 (do_test): Call it.
32174
32175 2017-09-01 Florian Weimer <fweimer@redhat.com>
32176
32177 [BZ #21922]
32178 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
32179 coming from gethostbyname2_r.
32180
32181 2017-09-01 Florian Weimer <fweimer@redhat.com>
32182
32183 * support/namespace.h (struct support_chroot_configuration): Add
32184 hosts, host_conf.
32185 (struct support_chroot): Add path_hosts, path_host_conf.
32186 * support/support_chroot.c (write_file): New function.
32187 (support_chroot_create): Call it to process /etc/resolv.conf,
32188 /etc/hosts, /etc/host.conf.
32189 (support_chroot_free): Update.
32190
32191 2017-09-01 Florian Weimer <fweimer@redhat.com>
32192
32193 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
32194 status indicates it is set.
32195
32196 2017-09-01 Florian Weimer <fweimer@redhat.com>
32197
32198 [BZ #20532]
32199 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
32200 function lookup failures more reliable.
32201
32202 2017-09-01 Florian Weimer <fweimer@redhat.com>
32203
32204 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
32205 (getcanonname): Likewise.
32206 (gaih_inet): Likewise.
32207
32208 2017-09-01 Florian Weimer <fweimer@redhat.com>
32209
32210 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
32211 (getcanonname): Likewise.
32212 (gaih_inet): Likewise.
32213
32214 2017-08-31 Steve Ellcey <sellcey@cavium.com>
32215 Richard Henderson <rth@twiddle.net>
32216
32217 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
32218 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
32219 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
32220 (IREG_SIZE, OREG_SIZE): New macros.
32221 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
32222 (IREG_SIZE, OREG_SIZE): New macros.
32223 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
32224 (IREG_SIZE): New macro.
32225 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
32226 (IREG_SIZE): New macro.
32227 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
32228 New includes.
32229 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
32230 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32231 (__CONCATX): Handle exceptions correctly on large values that may
32232 set FE_INVALID.
32233 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
32234 Initialize if not already set.
32235 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32236
32237 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32238
32239 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
32240 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
32241 Likewise.
32242 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
32243 Likewise.
32244 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
32245 Likewise.
32246 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
32247 Likewise.
32248 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
32249 Likewise.
32250 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
32251 Likewise.
32252 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
32253 Likewise.
32254 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
32255 (NO_CANCELLATION): Likewise.
32256 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
32257 Likewise.
32258 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
32259 Likewise.
32260 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
32261 Likewise.
32262 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
32263 (NO_CANCELLATION): Likewise.
32264 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
32265 (NO_CANCELLATION): Likewise.
32266 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
32267 Likewise
32268 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
32269 Likewise.
32270 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
32271 Likewise.
32272 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
32273 Likewise.
32274 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
32275 hidden prototype.
32276 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
32277 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
32278
32279 2017-08-31 Steve Ellcey <sellcey@cavium.com>
32280
32281 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
32282 in resolver call.
32283
32284 2017-08-31 Florian Weimer <fweimer@redhat.com>
32285
32286 * include/libc-symbols.h (internal_function): Remove.
32287
32288 2017-08-31 Florian Weimer <fweimer@redhat.com>
32289
32290 * stdlib/fmtmsg.c (internal_addseverity): Remove
32291 internal_function.
32292
32293 2017-08-31 Florian Weimer <fweimer@redhat.com>
32294
32295 * stdio-common/printf_fp.c (group_number): Remove
32296 internal_function.
32297 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
32298
32299 2017-08-31 Florian Weimer <fweimer@redhat.com>
32300
32301 * posix/fnmatch.c (internal_function): Remove definition.
32302 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
32303 * posix/regcomp.c (peek_token, init_word_char)
32304 (duplicate_node_closure, fetch_token, peek_token)
32305 (peek_token_bracket, build_range_exp, build_collating_symbol):
32306 Likewise.
32307 * posix/regex_internal.c (re_string_construct_common)
32308 (create_ci_newstate, create_cd_newstate, re_string_allocate)
32309 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
32310 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
32311 (re_string_translate_buffer, re_string_reconstruct)
32312 (re_string_peek_byte_case, re_string_fetch_byte_case)
32313 (re_string_destruct, re_string_context_at, re_node_set_alloc)
32314 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
32315 (re_node_set_add_intersect, re_node_set_init_union)
32316 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
32317 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
32318 (re_dfa_add_node, calc_state_hash, re_acquire_state)
32319 (re_acquire_state_context): Likewise.
32320 * posix/regex_internal.h (internal_function): Remove definition.
32321 (re_string_realloc_buffers, build_wcs_buffer)
32322 (build_wcs_upper_buffer, build_upper_buffer)
32323 (re_string_translate_buffer, re_string_context_at)
32324 (re_string_char_size_at, re_string_wchar_at)
32325 (re_string_elem_size_at): Likewise.
32326 * posix/regexec.c (match_ctx_init, match_ctx_clean)
32327 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
32328 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
32329 (re_search_internal, re_search_2_stub, re_search_stub)
32330 (re_copy_regs, prune_impossible_nodes, check_matching)
32331 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
32332 (free_fail_stack_return, sift_states_iter_mb)
32333 (sift_states_backward, build_sifted_states)
32334 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
32335 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
32336 (check_subexp_limits, sift_states_bkref, merge_state_array)
32337 (find_recover_state, transit_state, merge_state_with_log)
32338 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
32339 (transit_state_mb, transit_state_bkref, get_subexp)
32340 (get_subexp_sub, find_subexp_node, check_arrival)
32341 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
32342 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
32343 (check_node_accept_bytes, find_collation_sequence_value)
32344 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
32345 (acquire_init_state_context, check_halt_node_context)
32346 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
32347 (sub_epsilon_src_nodes): Likewise.
32348 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
32349 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
32350 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
32351 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
32352 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
32353 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
32354 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
32355 * sysdeps/posix/ttyname.c (getttyname): Likewise.
32356 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
32357 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
32358 (PREADV): Likewise.
32359 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
32360 (PREADV): Likewise.
32361 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
32362 (PWRITEV): Likewise.
32363 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
32364 (PWRITEV): Likewise.
32365 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
32366 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
32367
32368 2017-08-31 Florian Weimer <fweimer@redhat.com>
32369
32370 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
32371 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
32372 Remove internal_function.
32373 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
32374 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
32375 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
32376 (__deallocate_stack, __libc_pthread_init)
32377 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
32378 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
32379 (__libc_disable_asynccancel, __librt_disable_asynccancel):
32380 Likewise.
32381 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
32382 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
32383 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
32384 Likewise.
32385 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
32386 (__pthread_mutex_unlock_usercnt): Likewise.
32387
32388 2017-08-31 Florian Weimer <fweimer@redhat.com>
32389
32390 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
32391 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
32392 (fts_safe_changedir): Remove internal_function.
32393 * io/ftw.c (internal_function): Remove definition.
32394 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
32395
32396 2017-08-31 Florian Weimer <fweimer@redhat.com>
32397
32398 * inet/deadline.c (__deadline_current_time)
32399 (__deadline_from_timeval, __deadline_to_ms): Remove
32400 internal_function.
32401 * inet/getnameinfo.c (nrl_domainname): Likewise.
32402 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
32403 * inet/inet6_option.c (add_pad): Likewise.
32404 * inet/net-internal.h (__deadline_current_time)
32405 (__deadline_from_timeval, __deadline_to_ms): Likewise.
32406 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
32407 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
32408 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
32409
32410 2017-08-31 Joseph Myers <joseph@codesourcery.com>
32411
32412 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
32413 include <bits/nan.h>.
32414 * math/Makefile (headers): Remove bits/nan.h.
32415 * bits/nan.h: Remove.
32416 * sysdeps/ieee754/bits/nan.h: Likewise.
32417 * sysdeps/mips/bits/nan.h: Likewise.
32418
32419 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
32420 not include <bits/inf.h>.
32421 * math/Makefile (headers): Remove bits/inf.h.
32422 * bits/inf.h: Remove.
32423 * sysdeps/ieee754/bits/inf.h: Likewise.
32424
32425 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
32426 bits/huge_vall.h or bits/huge_val_flt128.h.
32427 (HUGE_VAL): Define directly here.
32428 [__USE_ISOC99] (HUGE_VALF): Likewise.
32429 [__USE_ISOC99] (HUGE_VALL): Likewise.
32430 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32431 (HUGE_VAL_F128): Likewise.
32432 * math/Makefile (headers): Remove bits/huge_val.h,
32433 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
32434 * bits/huge_val.h: Remove.
32435 * bits/huge_val_flt128.h: Likewise.
32436 * bits/huge_valf.h: Likewise.
32437 * bits/huge_vall.h: Likewise.
32438 * sysdeps/ia64/bits/huge_vall.h: Likewise.
32439 * sysdeps/ieee754/bits/huge_val.h: Likewise.
32440 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
32441 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
32442 * sysdeps/sh/bits/huge_val.h: Likewise.
32443 * sysdeps/sparc/bits/huge_vall.h: Likewise.
32444 * sysdeps/x86/bits/huge_vall.h: Likewise.
32445
32446 2017-08-31 Florian Weimer <fweimer@redhat.com>
32447
32448 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
32449 internal_function.
32450 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
32451 Likewise.
32452 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
32453 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
32454 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
32455 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
32456 * elf/dl-fini.c (_dl_sort_fini): Likewise.
32457 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
32458 * elf/dl-libc.c (dlerror_run): Likewise.
32459 * elf/dl-load.c (add_name_to_object, decompose_rpath)
32460 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
32461 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
32462 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
32463 Likewise.
32464 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
32465 (_dl_higher_prime_number, _dl_strtoul): Likewise.
32466 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
32467 * elf/dl-profile.c (_dl_start_profile): Likewise.
32468 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
32469 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
32470 Likewise.
32471 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32472 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32473 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32474 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32475 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32476 (_dl_allocate_tls_storage): Likewise.
32477 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32478 (_dl_check_all_versions): Likewise.
32479 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32480 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32481 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32482 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32483 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32484 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32485 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32486 internal_function from __dl_start.
32487 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32488 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32489 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32490 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32491 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32492 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32493 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32494 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32495 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32496 (_dl_next_ld_env_entry, _dl_important_hwcaps)
32497 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32498 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32499 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32500 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32501 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32502 Likewise.
32503 (struct rtld_global_ro): Remove internal_function from the
32504 _dl_lookup_symbol_x member.
32505 (_dl_symbol_value): Remove. No longer defined anywhere.
32506 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32507 internal_function.
32508 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32509 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32510 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32511 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32512 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32513 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32514 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32515 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32516 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32517 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32518 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32519 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32520
32521 2017-08-31 Florian Weimer <fweimer@redhat.com>
32522
32523 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32524 Remove internal_function.
32525 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32526 Likewise.
32527 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32528 Likewise.
32529
32530 2017-08-31 Florian Weimer <fweimer@redhat.com>
32531
32532 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32533 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32534 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32535
32536 2017-08-31 Florian Weimer <fweimer@redhat.com>
32537
32538 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32539 (__gai_enqueue_request): Remove internal_function.
32540 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32541 (__gai_remove_request, __gai_notify, __gai_notify_only)
32542 (__gai_sigqueue): Likewise.
32543 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32544 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32545 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32546 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32547 Likewise.
32548
32549 2017-08-31 Florian Weimer <fweimer@redhat.com>
32550
32551 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32552 * include/dirent.h (__opendirat, __getdents, __getdents64)
32553 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32554 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32555 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32556 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32557 Likewise.
32558 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32559
32560 2017-08-31 Florian Weimer <fweimer@redhat.com>
32561
32562 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32563 internal_function.
32564 (GETCWD_RETURN_TYPE): Likewise.
32565
32566 2017-08-31 Florian Weimer <fweimer@redhat.com>
32567
32568 * include/time.h (__tz_compute, __strptime_internal): Remove
32569 internal_function.
32570 * time/strptime_l.c (__strptime_internal): Likewise.
32571 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32572
32573 2017-08-31 Florian Weimer <fweimer@redhat.com>
32574
32575 * iconv/gconv.c (__gconv): Remove internal_function.
32576 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32577 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32578 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32579 (__gconv_release_cache): Likewise.
32580 * iconv/gconv_close.c (__gconv_close): Likewise.
32581 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32582 (read_conf_file, __gconv_get_path): Likewise.
32583 * iconv/gconv_db.c (derivation_lookup, add_derivation)
32584 (__gconv_release_step, gen_steps, increment_counter)
32585 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32586 (__gconv_close_transform, free_modules_db): Likewise.
32587 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32588 Likewise.
32589 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32590 (__gconv_find_transform, __gconv_lookup_cache)
32591 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32592 (__gconv_close_transform, __gconv_release_cache)
32593 (__gconv_loaded_object, __gconv_release_shlib)
32594 (__gconv_compare_alias): Likewise.
32595 * iconv/gconv_open.c (__gconv_open): Likewise.
32596 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32597 * iconv/iconvconfig.c (add_module): Likewise.
32598 * intl/dcigettext.c (plural_lookup, guess_category_value)
32599 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32600 * intl/eval-plural.h (plural_eval): Likewise.
32601 * intl/finddomain.c (_nl_find_domain): Likewise.
32602 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32603 (_nl_load_domain, _nl_find_msg): Likewise.
32604 (internal_function): Remove definition.
32605 * intl/loadinfo.h (internal_function): Likewise.
32606 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32607 internal_function.
32608 * intl/localealias.c (internal_function): Remove definition.
32609 (read_alias_file): Remove internal_function.
32610 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32611 * intl/plural-exp.h (internal_function): Remove definition.
32612 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32613 internal_function.
32614 * intl/plural.c: Regenerate.
32615 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32616 * locale/coll-lookup.c (__collidx_table_lookup)
32617 (__collseq_table_lookup): Likewise.
32618 * locale/coll-lookup.h (__collidx_table_lookup)
32619 (__collseq_table_lookup): Likewise.
32620 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32621 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32622 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32623 (_nl_unload_locale): Likewise.
32624 * locale/localeinfo.h (struct __locale_data): Remove
32625 internal_function from cleanup member.
32626 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32627 (_nl_remove_locale, _nl_load_locale_from_archive)
32628 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32629 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32630 (_nl_cleanup_time): Remove internal_function.
32631 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32632 (_nl_parse_alt_digit): Likewise.
32633 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32634 (_nl_select_era_entry): Likewise.
32635 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32636 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32637 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32638 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32639 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32640
32641 2017-08-31 Florian Weimer <fweimer@redhat.com>
32642
32643 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32644 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32645 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32646 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32647 Likewise.
32648 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32649 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32650 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32651 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32652 Likewise.
32653 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32654
32655 2017-08-31 Florian Weimer <fweimer@redhat.com>
32656
32657 * misc/getttyent.c (skip, value): Remove internal_function.
32658 * misc/syslog.c (openlog_internal): Likewise.
32659 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32660
32661 2017-08-31 Florian Weimer <fweimer@redhat.com>
32662
32663 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32664 (__nss_rewrite_field): Remove internal_function.
32665 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32666 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32667 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32668 * nss/nsswitch.c (nss_parse_file, nss_getline)
32669 (nss_parse_service_list, nss_new_service): Likewise.
32670 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32671 * nss/valid_field.c (__nss_valid_field): Likewise.
32672 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32673
32674 2017-08-31 Florian Weimer <fweimer@redhat.com>
32675
32676 * malloc/arena.c (__malloc_fork_lock_parent)
32677 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32678 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32679 internal_function from defintions.
32680 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32681 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32682 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32683 internal_function from declarations.
32684 * malloc/malloc.c (internal_function): Do not define.
32685 (mem2mem_check): Remove internal_function from declaration.
32686 (munmap_chunk, mremap_chunk): Remove internal_function.
32687 * malloc/mtrace.c (tr_where): Likewise.
32688
32689 2017-08-31 Florian Weimer <fweimer@redhat.com>
32690
32691 * include/rpc/pmap_clnt.h (__get_socket): Remove
32692 internal_function.
32693 * sunrpc/auth_des.c (synchronize): Likewise.
32694 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32695 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32696 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32697 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32698 (key_call): Likewise.
32699 * sunrpc/pm_getport.c (__get_socket): Likewise.
32700 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32701 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32702 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32703 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32704 (invalidate): Likewise.
32705 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32706 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32707 (set_input_fragment, get_input_bytes): Likewise.
32708
32709 2017-08-31 Florian Weimer <fweimer@redhat.com>
32710
32711 * malloc/malloc.c (_int_free): Remove locked variable and related
32712 asserts.
32713
32714 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
32715
32716 [BZ #22051]
32717 * Makerules (build-module-helper-objlist): Filter out
32718 $(elf-objpfx)sofini.os.
32719 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32720 needed.
32721
32722 2017-08-31 Florian Weimer <fweimer@redhat.com>
32723
32724 * libio/fcloseall.c: Assume weak_alias is defined.
32725 * libio/feof.c: Likewise.
32726 * libio/fileno.c: Likewise.
32727 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32728 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32729 definitions.
32730 (_IO_file_open): Call __open directly.
32731 (_IO_new_file_sync): Assume ESPIPE is defined.
32732 (_IO_file_seekoff_maybe_mmap): Call __read directly.
32733 (_IO_new_file_write): Call __write directly.
32734 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32735 * libio/ftello64.c (__ftello64): Assume EIO is defined.
32736 * libio/genops.c: Assume _LIBC is defined.
32737 (save_for_backup): Remove internal_function.
32738 * libio/getc.c: Assume weak_alias is defined.
32739 * libio/getwc.c: Likewise.
32740 * libio/iofclose.c: Assume _LIBC is defined.
32741 * libio/iofdopen.c: Likewise.
32742 (_IO_fcntl): Remove macro definition.
32743 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32744 Call __fcntl directly.
32745 * libio/iofflush.c: Assume weak_alias is defined.
32746 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32747 defined.
32748 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32749 * libio/iofgets.c: Likewise.
32750 * libio/iofopen.c: Assume _LIBC is defined.
32751 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32752 * libio/iofputs.c: Assume weak_alias is defined.
32753 * libio/iofread.c: Likewise.
32754 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32755 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32756 * libio/ioftell.c: Assume weak_alias is defined.
32757 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32758 * libio/iofwide.c: Assume _LIBC is defined.
32759 (_IO_fwide): Drop SHARED conditional because it is implied by
32760 SHLIB_COMPAT.
32761 * libio/iofwrite.c: Assume weak_alias is defined.
32762 * libio/iogetdelim.c: Likewise.
32763 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32764 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32765 (_IO_getwline): Call __wmemcpy directly.
32766 * libio/iopopen.c: Assume _LIBC is defined.
32767 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32768 (_IO_close): Remove macro definitions.
32769 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32770 _exit directly.
32771 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32772 directly.
32773 * libio/ioputs.c: Assume weak_alias is defined.
32774 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32775 * libio/iosetbuffer.c: Assume weak_alias is defined.
32776 * libio/iosetvbuf.c: Likewise.
32777 * libio/ioungetc.c: Likewise.
32778 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32779 libc_hidden_def, libc_hidden_weak, NULL are defined.
32780 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32781 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32782 defined.
32783 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32784 definitions.
32785 (_IO_old_file_init_internal): Drop SHARED conditional because it
32786 is implied by SHLIB_COMPAT.
32787 (_IO_old_file_fopen): Call __open directly.
32788 (_IO_old_file_sync): Assume ESPIPE is defined.
32789 (_IO_old_file_write): Call __write directly.
32790 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32791 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32792 Call __fcntl directly.
32793 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32794 (_IO_old_fgetpos): Assume EIO is defined.
32795 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32796 (_IO_old_fgetpos64): Assume EIO is defined.
32797 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32798 (_IO_old_fsetpos): Assume EIO is defined.
32799 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32800 (_IO_old_fsetpos64): Assume EIO is defined.
32801 * libio/oldiopopen.c: Assume _LIBC is defined.
32802 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32803 (_IO_close): Remove macro definitions.
32804 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32805 directly.
32806 (_IO_old_proc_close): Call __close, __waitpid directly.
32807 * libio/put.c: Assume weak_alias is defined.
32808 * libio/stdfiles.c: Assume _LIBC is defined.
32809 * libio/stdio.c: Likewise.
32810 * libio/wfileops.c: Likewise.
32811 (_IO_wfile_sync): Assume ESPIPE is defined.
32812 * libio/wgenops.c: Assume _LIBC is defined.
32813 (save_for_wbackup): Remove internal_function.
32814
32815 2017-08-31 Florian Weimer <fweimer@redhat.com>
32816
32817 * malloc/malloc.c (top_check): Change return type to void. Remove
32818 internal_function.
32819 * malloc/hooks.c (top_check): Likewise.
32820 (malloc_check, realloc_check, memalign_check): Adjust.
32821
32822 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32823
32824 [BZ #21457]
32825 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32826 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32827 sigcontext and namespace requirements.
32828 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32829 * sysdeps/m68k/sys/ucontext.h: Likewise.
32830 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32831 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32832 <bits/sigcontext.h>.
32833 (__ctx): Define earlier.
32834 (mcontext_t): Define structure contents rather than using struct
32835 sigcontext.
32836 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32837 __glibc_reserved1 instead of __reserved.
32838 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32839 <bits/sigcontext.h>.
32840 (__ctx): Define earlier.
32841 (mcontext_t): Define structure contents rather than using struct
32842 sigcontext.
32843 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32844 mcontext_t instead of struct sigcontext.
32845 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32846 <bits/sigcontext.h>.
32847 (__ctx): Define earlier.
32848 (mcontext_t): Define structure contents rather than using struct
32849 sigcontext.
32850 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32851 <bits/sigcontext.h>.
32852 (__ctx): Define earlier.
32853 (mcontext_t): Define structure contents rather than using struct
32854 sigcontext.
32855 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32856 mcontext_t instead of struct sigcontext.
32857 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32858 mcontext_t instead of struct sigcontext.
32859 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32860 <bits/sigcontext.h>.
32861 (__ctx): New macro.
32862 (struct __ia64_fpreg_mcontext): New type.
32863 (mcontext_t): Define structure contents rather than using struct
32864 sigcontext.
32865 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32866 (uc_sigmask): Define using __ctx.
32867 (uc_stack): Likewise.
32868 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32869 <bits/sigcontext.h>.
32870 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32871 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32872 <bits/sigcontext.h>.
32873 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32874 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32875 <bits/sigcontext.h>.
32876 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32877 <bits/sigcontext.h>.
32878 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32879 <bits/sigcontext.h>.
32880 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32881 <bits/sigcontext.h>.
32882 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32883 <bits/sigcontext.h>.
32884 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32885 <bits/sigcontext.h>.
32886 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32887 <bits/sigcontext.h>.
32888 (__ctx): Define earlier.
32889 (mcontext_t): Define structure contents rather than using struct
32890 sigcontext.
32891 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32892 <bits/sigcontext.h>. Include <bits/types.h>.
32893 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32894 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32895 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32896 (test-xfail-UNIX98/signal.h/conform): Likewise.
32897 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32898 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32899 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32900 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32901 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32902 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32903 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32904 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32905 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32906
32907 2017-08-30 Florian Weimer <fweimer@redhat.com>
32908
32909 * malloc/dynarray_emplace_enlarge.c
32910 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32911 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32912 * malloc/tst-dynarray.c (test_long_overflow): New function.
32913 (do_test): Call it.
32914
32915 2017-08-30 Florian Weimer <fweimer@redhat.com>
32916
32917 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32918 (set_arena_corrupt): Remove definitions.
32919 (mtrim): Do not check for corrupt arena.
32920 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32921 Likewise.
32922
32923 2017-08-30 Florian Weimer <fweimer@redhat.com>
32924
32925 [BZ #21754]
32926 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32927 check_action.
32928 (ptmalloc_init): Do not set or use check_action.
32929 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32930 call to malloc_printerr. Remove return statement.
32931 (free_check): Likewise. Remove arena unlock.
32932 (top_check): Update comment. Adjust call to malloc_printerr.
32933 Remove heap repair code.
32934 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32935 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32936 (sysmalloc): Adjust call to malloc_printerr.
32937 (munmap_chunk, __libc_realloc): Likewise. Remove return
32938 statement.
32939 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32940 Remove errout label and corresponding gotos.
32941 (_int_free): Likewise. Remove arena unlock.
32942 (do_set_mallopt_check): Do not set check_action.
32943 (malloc_printerr): Adjust parameter list. Do not mark arena as
32944 corrupt.
32945 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32946 comment.
32947 * manual/probes.texi (Memory Allocation Probes): Remove
32948 memory_mallopt_check_action.
32949
32950 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32951
32952 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32953 Use pointer to uint64_t instead of long int for sp.
32954
32955 2017-08-30 Florian Weimer <fweimer@redhat.com>
32956
32957 [BZ #21754]
32958 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32959 without printing a backtrace. Do not leak any information in the
32960 error message.
32961 * manual/memory.texi (Heap Consistency Checking): Update.
32962 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32963
32964 2017-08-30 Florian Weimer <fweimer@redhat.com>
32965
32966 Do not scale NPTL tests with available number of CPUs.
32967 * nptl/tst-cond16.c (count): Set to constant value of 8.
32968 * nptl/tst-cond18.c (count): Likewise.
32969
32970 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32971
32972 [BZ #22035]
32973 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32974 Define to take a second argument that is a macro that
32975 concatentates a suffix, not the suffix itself.
32976 (__CONCAT_d): New macro.
32977 (__CONCAT_f): Likewise.
32978 (__CONCAT_l): Likewise.
32979
32980 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32981
32982 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32983 by child.
32984
32985 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32986 Aurelien Jarno <aurelien@aurel32.net>
32987 Maciej W. Rozycki <macro@imgtec.com>
32988
32989 [BZ #21956]
32990 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32991 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32992 `mips16-syscall6' and `mips16-syscall7'.
32993 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32994 (CFLAGS-mips16-syscall7.c): Remove.
32995 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32996 Remove `__mips16_syscall5', `__mips16_syscall6' and
32997 `__mips16_syscall7'.
32998 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32999 (__mips16_syscall0): Rename `__mips16_syscall_return' to
33000 `__mips_syscall_return'.
33001 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
33002 (__mips16_syscall1): Likewise.
33003 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
33004 (__mips16_syscall2): Likewise.
33005 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
33006 (__mips16_syscall3): Likewise.
33007 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
33008 (__mips16_syscall4): Likewise.
33009 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
33010 Remove.
33011 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
33012 Remove.
33013 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
33014 Remove.
33015 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
33016 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
33017 `__mips16_syscall5'. Remove prototype.
33018 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
33019 `__mips16_syscall6'. Remove prototype.
33020 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
33021 `__mips16_syscall7'. Remove prototype.
33022 (__nomips16, __mips16_syscall_return): Move to...
33023 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
33024 (__nomips16, __mips_syscall_return): ... here.
33025 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
33026 `__mips16_syscall_return' to `__mips_syscall_return'.
33027 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
33028 `internal_syscall##nr'.
33029 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
33030 `internal_syscall##nr'.
33031 (FORCE_FRAME_POINTER): Remove.
33032 (__mips_syscall5): New prototype.
33033 (internal_syscall5): Rewrite to call `__mips_syscall5'.
33034 (__mips_syscall6): New prototype.
33035 (internal_syscall6): Rewrite to call `__mips_syscall6'.
33036 (__mips_syscall7): New prototype.
33037 (internal_syscall7): Rewrite to call `__mips_syscall7'.
33038 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
33039 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
33040 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
33041 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
33042 (sysdep_routines): Add libc-do-syscall.
33043 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
33044 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
33045
33046 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33047
33048 [BZ #21672]
33049 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
33050 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
33051 (advise_stack_range): New function.
33052 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
33053 stack non required to advise_stack_range at allocatestack.c
33054
33055 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33056
33057 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
33058
33059 2017-08-29 Florian Weimer <fweimer@redhat.com>
33060
33061 [BZ #22026]
33062 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
33063 __end_fct. Mangle __end_fct after setting it to NULL.
33064 * iconv/Makefile (tests): Add tst-gconv-init-failure.
33065 (modules-names, modules-names-tests): Add
33066 tst-gconv-init-failure-mod.
33067 (gconv-modules): New target.
33068 (tst-gconv-init-failure-mod.so): Link against libsupport.
33069 (tst-gconv-init-failure): Depend on gconv-modules,
33070 tst-gconv-init-failure-mod.so.
33071 * iconv/tst-gconv-init-failure-mod.c: New file.
33072 * iconv/tst-gconv-init-failure.c: Likewise.
33073 * iconv/test-gconv-modules: Likewise.
33074
33075 2017-08-29 Florian Weimer <fweimer@redhat.com>
33076
33077 [BZ #22025]
33078 * iconv/gconv_db.c (free_derivation): Remove redundant
33079 parentheses.
33080 (gen_steps): Unconditionally mangle __btowc_fct after
33081 initialization.
33082 (increment_counter): Likewise. Do not call init_fct for internal
33083 modules.
33084
33085 2017-08-29 Joseph Myers <joseph@codesourcery.com>
33086
33087 [BZ #22028]
33088 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
33089 (_MSUF_): Remove macro.
33090 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
33091 Likewise.
33092 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
33093 (__REDIRFROM_X): New macro.
33094 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
33095 Likewise.
33096 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
33097 (__REDIRTO_X): Likewise.
33098 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
33099 arguments.
33100 (__MATH_REDIRCALL_2): Likewise.
33101 (__MATH_REDIRCALL_INTERNAL): Likewise.
33102 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33103 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
33104 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
33105 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33106 * math/test-finite-macros.c: New file.
33107 * math/Makefile (tests): Add test-finite-macros.
33108 (CFLAGS-test-finite-macros.c): New variable.
33109
33110 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
33111 Jeff Law <law@redhat.com>
33112
33113 [BZ #22025]
33114 Mangle NULL pointers in iconv/gconv.
33115 * iconv/gconv_cache.c (find_module): Demangle init_fct before
33116 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
33117 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
33118 is non-NULL before demangling the end_fct. Check for NULL
33119 end_fct after demangling.
33120 (__gconv_release_step): Demangle the end_fct before checking
33121 it for NULL. Remove assert on __shlibc_handle != NULL.
33122 (gen_steps): Don't check btowc_fct for NULL before mangling.
33123 Demangle init_fct before checking for NULL.
33124 (increment_counter): Likewise.
33125 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
33126 end_fct for NULL before mangling.
33127 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
33128 for NULL.
33129
33130 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
33131
33132 [BZ #21971]
33133 * locale/iso-639.def: add Morisyen.
33134
33135 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33136
33137 [BZ #21930]
33138 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
33139 (iszero): New C++ implementation that does not use
33140 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
33141 signaling nans are enabled, since __builtin_types_compatible_p
33142 is a C-only feature.
33143 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
33144 defined, include ieee754_float128.h for access to the union and
33145 member ieee854_float128.ieee.
33146 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
33147 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
33148 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33149 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
33150 options of test-math-zero on powerpc64le.
33151
33152 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
33153
33154 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
33155 Change double to float.
33156
33157 2017-08-28 Joseph Myers <joseph@codesourcery.com>
33158
33159 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
33160 unconditional.
33161 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
33162 conditional code; define contents only for [LIBM_SVID_COMPAT].
33163
33164 2017-08-28 Florian Weimer <fweimer@redhat.com>
33165
33166 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
33167 (abi-lp64_be-options): Remove.
33168 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
33169 (abi-hard-options): Likewise.
33170 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
33171 (abi-o32_hard-options, abi-o32_soft_2008-options)
33172 (abi-o32_hard_2008-options, abi-n32_soft-options)
33173 (abi-n32_hard-options, abi-n32_soft_2008-options)
33174 (abi-n32_hard_2008-options, abi-n64_soft-options)
33175 (abi-n64_hard-options, abi-n64_soft_2008-options)
33176 (abi-n64_hard_2008-options): Likewise.
33177 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
33178 (abi-64-v1-options, abi-64-v2-options): Likewise.
33179 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
33180 (abi-64-options): Likewise.
33181 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
33182 (abi-64-options): Likewise.
33183 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
33184 (abi-64-options): Likewise.
33185 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
33186 (abi-64-options, abi-x32-options): Likewise.
33187
33188 2017-08-28 Florian Weimer <fweimer@redhat.com>
33189
33190 Store supported list of SYS_* system calls in the source tree.
33191 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
33192 (bits/syscall.h): Generate from list file.
33193 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
33194 [$(subdir) = misc] (tests): Add tst-syscall-list.
33195 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
33196 [$(subdir) = misc] (tst-syscall-list-macros.list)
33197 [$(subdir) = misc] (tst-syscall-list-nr.list)
33198 (tst-syscall-list-sys.list): Helper targets for new
33199 tst-syscall-list test.
33200 [$(subdir) = misc] (tst-syscall-list.out): Run test script
33201 tst-syscall-list.sh.
33202 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
33203 target. Do not include bits/syscall.d.
33204 [$(subdir) = misc] (generated): Do not update.
33205 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
33206 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
33207 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
33208 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
33209
33210 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
33211
33212 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
33213 (tst-cxa_atexit, tst-on_exit): Likewise.
33214 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
33215 tst-cxa_atexit, and tst-on_exit.
33216 * stdlib/tst-atexit-common.c: New file.
33217 * stdlib/tst-atexit.c: New file.
33218 * stdlib/tst-at_quick_exit.c: New file.
33219 * stdlib/tst-cxa_atexit.c: New file.
33220 * stdlib/tst-on_exit.c: New file.
33221
33222 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
33223
33224 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
33225 * mach/stack_chk_fail_local.c: New file.
33226 * hurd/stack_chk_fail_local.c: New file.
33227 * mach/Machrules ($(interface-library)-routines): Add
33228 stack_chk_fail_local.
33229 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
33230 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
33231 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
33232 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
33233 * hurd/Makefile (CFLAGS-hurdstartup.o,
33234 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
33235
33236 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
33237
33238 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33239 (index_cpu_*, index_arch_*): Removed.
33240
33241 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33242
33243 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
33244 Use uint64_t instead of unsigned long.
33245
33246 2017-08-25 Joseph Myers <joseph@codesourcery.com>
33247
33248 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
33249 [__HAVE_DISTINCT_FLOAT128].
33250
33251 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
33252 of <bits/math-finite.h>.
33253 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
33254 inclusion of <bits/math-finite.h>.
33255 * math/bits/math-finite.h (__REDIRTO_X): Do not define
33256 conditionally on [__MATH_DECLARING_LDOUBLE && defined
33257 __NO_LONG_DOUBLE_MATH].
33258 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
33259 (__MATH_REDIRCALL_2): Likewise.
33260 (__MATH_REDIRCALL_INTERNAL): Likewise.
33261 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33262 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
33263 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33264
33265 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
33266 Remove file.
33267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
33268 Likewise.
33269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
33270 Likewise.
33271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
33272 Likewise.
33273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
33274 Likewise.
33275 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
33276 Likewise.
33277 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33278 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33279 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33280 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33281 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
33282 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
33283 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
33284 w_sqrtf_compat-ppc32.
33285
33286 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33287
33288 * math/math.h [defined __cplusplus] (issignaling): In the long
33289 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
33290 is not defined. Call __issignaling, otherwise.
33291
33292 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33293
33294 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
33295 syscall definitions and replace __builtin_expect with __glibc_likely.
33296 * sysdeps/unix/syscall-template.S: Update comment about cancellable
33297 syscall.
33298 (SYSCALL_CANCELLABLE): Removedefinition
33299 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
33300 definition.
33301 (PSEUDO_END): Likewise.
33302 [IS_IN (libpthread)] (CENABLE): Likewise.
33303 [IS_IN (libpthread)] (CDISABLE): Likewise.
33304 [IS_IN (libc)] (CENABLE): Likewise.
33305 [IS_IN (libc)] (CENABLE): Likewise.
33306 [IS_IN (librt)] (CDISABLE): Likewise.
33307 [IS_IN (librt)] (CDISABLE): Likewise.
33308 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33309 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
33310 definition.
33311 (PSEUDO_END): Likewise.
33312 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
33313 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
33314 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33315 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33316 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33317 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33318 (CENABLE): Likewise.
33319 (CDISABLE): Likewise.
33320 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33321 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
33322 defintion.
33323 (PSEUDO_END): Likewise.
33324 [IS_IN (libpthread)] (CENABLE): Likewise.
33325 [IS_IN (libpthread)] (CDISABLE): Likewise.
33326 [IS_IN (libc)] (CENABLE): Likewise.
33327 [IS_IN (libc)] (CENABLE): Likewise.
33328 [IS_IN (librt)] (CDISABLE): Likewise.
33329 [IS_IN (librt)] (CDISABLE): Likewise.
33330 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33331 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
33332 definition.
33333 (PSEUDO_END): Likewise.
33334 [IS_IN (libpthread)] (CENABLE): Likewise.
33335 [IS_IN (libpthread)] (CDISABLE): Likewise.
33336 [IS_IN (libc)] (CENABLE): Likewise.
33337 [IS_IN (libc)] (CENABLE): Likewise.
33338 [IS_IN (librt)] (CDISABLE): Likewise.
33339 [IS_IN (librt)] (CDISABLE): Likewise.
33340 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33341 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
33342 definition.
33343 (PSEUDO_END): Likewise.
33344 [IS_IN (libpthread)] (CENABLE): Likewise.
33345 [IS_IN (libpthread)] (CDISABLE): Likewise.
33346 [IS_IN (libc)] (CENABLE): Likewise.
33347 [IS_IN (libc)] (CENABLE): Likewise.
33348 [IS_IN (librt)] (CDISABLE): Likewise.
33349 [IS_IN (librt)] (CDISABLE): Likewise.
33350 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33351 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
33352 definition.
33353 (PSEUDO_END): Likewise.
33354 [IS_IN (libpthread)] (CENABLE): Likewise.
33355 [IS_IN (libpthread)] (CDISABLE): Likewise.
33356 [IS_IN (libc)] (CENABLE): Likewise.
33357 [IS_IN (libc)] (CENABLE): Likewise.
33358 [IS_IN (librt)] (CDISABLE): Likewise.
33359 [IS_IN (librt)] (CDISABLE): Likewise.
33360 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33361 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
33362 definition.
33363 (PSEUDO_END): Likewise.
33364 [IS_IN (libpthread)] (CENABLE): Likewise.
33365 [IS_IN (libpthread)] (CDISABLE): Likewise.
33366 [IS_IN (libc)] (CENABLE): Likewise.
33367 [IS_IN (libc)] (CENABLE): Likewise.
33368 [IS_IN (librt)] (CDISABLE): Likewise.
33369 [IS_IN (librt)] (CDISABLE): Likewise.
33370 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33371 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
33372 definition.
33373 (PSEUDO_END): Likewise.
33374 [IS_IN (libpthread)] (CENABLE): Likewise.
33375 [IS_IN (libpthread)] (CDISABLE): Likewise.
33376 [IS_IN (libc)] (CENABLE): Likewise.
33377 [IS_IN (libc)] (CENABLE): Likewise.
33378 [IS_IN (librt)] (CDISABLE): Likewise.
33379 [IS_IN (librt)] (CDISABLE): Likewise.
33380 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33381 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
33382 Remove definition.
33383 (PSEUDO_END): Likewise.
33384 [IS_IN (libpthread)] (CENABLE): Likewise.
33385 [IS_IN (libpthread)] (CDISABLE): Likewise.
33386 [IS_IN (libc)] (CENABLE): Likewise.
33387 [IS_IN (libc)] (CENABLE): Likewise.
33388 [IS_IN (librt)] (CDISABLE): Likewise.
33389 [IS_IN (librt)] (CDISABLE): Likewise.
33390 (SINGLE_THREAD_P): Likewise.
33391 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
33392 definition.
33393 (PSEUDO_END): Likewise.
33394 [IS_IN (libpthread)] (CENABLE): Likewise.
33395 [IS_IN (libpthread)] (CDISABLE): Likewise.
33396 [IS_IN (libc)] (CENABLE): Likewise.
33397 [IS_IN (libc)] (CENABLE): Likewise.
33398 [IS_IN (librt)] (CDISABLE): Likewise.
33399 [IS_IN (librt)] (CDISABLE): Likewise.
33400 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33401 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
33402 definition.
33403 (PSEUDO_END): Likewise.
33404 [IS_IN (libpthread)] (CENABLE): Likewise.
33405 [IS_IN (libpthread)] (CDISABLE): Likewise.
33406 [IS_IN (libc)] (CENABLE): Likewise.
33407 [IS_IN (libc)] (CENABLE): Likewise.
33408 [IS_IN (librt)] (CDISABLE): Likewise.
33409 [IS_IN (librt)] (CDISABLE): Likewise.
33410 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33411 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
33412 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
33413 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
33414 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
33415 definition.
33416 (PSEUDO_END): Likewise.
33417 [IS_IN (libpthread)] (CENABLE): Likewise.
33418 [IS_IN (libpthread)] (CDISABLE): Likewise.
33419 [IS_IN (libc)] (CENABLE): Likewise.
33420 [IS_IN (libc)] (CENABLE): Likewise.
33421 [IS_IN (librt)] (CDISABLE): Likewise.
33422 [IS_IN (librt)] (CDISABLE): Likewise.
33423 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33424 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
33425 definition.
33426 (PSEUDO_END): Likewise.
33427 [IS_IN (libpthread)] (CENABLE): Likewise.
33428 [IS_IN (libpthread)] (CDISABLE): Likewise.
33429 [IS_IN (libc)] (CENABLE): Likewise.
33430 [IS_IN (libc)] (CENABLE): Likewise.
33431 [IS_IN (librt)] (CDISABLE): Likewise.
33432 [IS_IN (librt)] (CDISABLE): Likewise.
33433 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33434 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
33435 definition.
33436 (PSEUDO_END): Likewise.
33437 [IS_IN (libpthread)] (CENABLE): Likewise.
33438 [IS_IN (libpthread)] (CDISABLE): Likewise.
33439 [IS_IN (libc)] (CENABLE): Likewise.
33440 [IS_IN (libc)] (CENABLE): Likewise.
33441 [IS_IN (librt)] (CDISABLE): Likewise.
33442 [IS_IN (librt)] (CDISABLE): Likewise.
33443 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33444 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
33445 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
33446 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
33447 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
33448 definition.
33449 (PSEUDO_END): Likewise.
33450 [IS_IN (libpthread)] (CENABLE): Likewise.
33451 [IS_IN (libpthread)] (CDISABLE): Likewise.
33452 [IS_IN (libc)] (CENABLE): Likewise.
33453 [IS_IN (libc)] (CENABLE): Likewise.
33454 [IS_IN (librt)] (CDISABLE): Likewise.
33455 [IS_IN (librt)] (CDISABLE): Likewise.
33456 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33457 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
33458 definition.
33459 (PSEUDO_END): Likewise.
33460 [IS_IN (libpthread)] (CENABLE): Likewise.
33461 [IS_IN (libpthread)] (CDISABLE): Likewise.
33462 [IS_IN (libc)] (CENABLE): Likewise.
33463 [IS_IN (libc)] (CENABLE): Likewise.
33464 [IS_IN (librt)] (CDISABLE): Likewise.
33465 [IS_IN (librt)] (CDISABLE): Likewise.
33466 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33467
33468 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
33469
33470 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33471
33472 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33473
33474 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33475
33476 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33477
33478 [BZ #21982]
33479 * string/stratcliff.c (do_test): Declare size, nchars, inner,
33480 middle and outer with size_t instead of int. Repleace %d and
33481 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
33482 "MAX (outer, nchars - 64)" to support unsigned outer and
33483 nchars. Also exit loop when outer == 0.
33484
33485 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33486
33487 * include/fcntl.h (__fcntl_nocancel): Remove definition.
33488 * include/signal.h (__sigsuspend_nocancel): Likewise.
33489 * include/time.h (__nanosleep_nocancel): Likewise.
33490 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33491 * login/utmp_file.c: Include non cancellable syscall header.
33492 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33493 prototype.
33494
33495 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33496
33497 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33498 .byte sequences with AVX512F instructions.
33499 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33500 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33501 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33502 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33503 Likewise.
33504 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33505 Likewise.
33506
33507 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
33508 Steve Ellcey <sellcey@cavium.com>
33509
33510 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33511 Use PTR_REG macro in cmp instruction.
33512
33513 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33514
33515 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33516 Change the return type of the ifunc resolver to match the return
33517 type of the target function.
33518
33519 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33520
33521 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33522 (preadv64): Likewise.
33523 (pwrite64(: Likewise.
33524 (pwritev64): Likewise.
33525
33526 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33527 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33528 (LOAD_ARGS_0): Likewise.
33529 (LOAD_ARGS_1): Likewise.
33530 (LOAD_ARGS_2): Likewise.
33531 (LOAD_ARGS_3): Likewise.
33532 (LOAD_ARGS_4): Likewise.
33533 (LOAD_ARGS_5): Likewise.
33534 (LOAD_ARGS_6): Likewise.
33535 (LOAD_REGS_0): Likewise.
33536 (LOAD_REGS_1): Likewise.
33537 (LOAD_REGS_2): Likewise.
33538 (LOAD_REGS_3): Likewise.
33539 (LOAD_REGS_4): Likewise.
33540 (LOAD_REGS_5): Likewise.
33541 (LOAD_REGS_6): Likewise.
33542 (ASM_ARGS_0): Likewise.
33543 (ASM_ARGS_1): Likewise.
33544 (ASM_ARGS_2): Likewise.
33545 (ASM_ARGS_3): Likewise.
33546 (ASM_ARGS_4): Likewise.
33547 (ASM_ARGS_5): Likewise.
33548 (ASM_ARGS_6): Likewise.
33549 (LOAD_ARGS_TYPES_1): Likewise.
33550 (LOAD_ARGS_TYPES_2): Likewise.
33551 (LOAD_ARGS_TYPES_3): Likewise.
33552 (LOAD_ARGS_TYPES_4): Likewise.
33553 (LOAD_ARGS_TYPES_5): Likewise.
33554 (LOAD_ARGS_TYPES_6): Likewise.
33555 (LOAD_REGS_TYPES_1): Likewise.
33556 (LOAD_REGS_TYPES_2): Likewise.
33557 (LOAD_REGS_TYPES_3): Likewise.
33558 (LOAD_REGS_TYPES_4): Likewise.
33559 (LOAD_REGS_TYPES_5): Likewise.
33560 (LOAD_REGS_TYPES_6): Likewise.
33561 (TYPEFY): New define.
33562 (ARGIFY): Likewise.
33563 (internal_syscall0): Likewise.
33564 (internal_syscall1): Likewise.
33565 (internal_syscall2): Likewise.
33566 (internal_syscall3): Likewise.
33567 (internal_syscall4): Likewise.
33568 (internal_syscall5): Likewise.
33569 (internal_syscall6): Likewise.
33570 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33571 (INTERNAL_SYSCALL_NCS): Remove define.
33572 (internal_syscall1): Add define.
33573
33574 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33575
33576 * math/w_remainder_compat.c: Remove duplicate inclusion of
33577 math-svid-compat.h.
33578 * math/w_remainderf_compat.c: Likewise.
33579 * math/w_remainderl_compat.c: Likewise.
33580
33581 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33582
33583 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33584
33585 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33586
33587 [BZ #21684]
33588 * math/tgmath.h (__floating_type): Simplify definitions.
33589 (__real_integer_type): New macro.
33590 (__complex_integer_type): Likewise.
33591 (__expr_is_real): Likewise.
33592 (__tgmath_real_type_sub): Update comment to describe handling of
33593 complex types.
33594 (__tgmath_complex_type_sub): New macro.
33595 (__tgmath_complex_type): Likewise.
33596 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33597 (__TGMATH_CF128): Use __expr_is_real.
33598 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33599 __expr_is_real.
33600 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33601 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33602 * math/gen-tgmath-tests.py (Type.create_type): Create complex
33603 integer types.
33604
33605 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33606
33607 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33608 macro.
33609 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33610 alias.
33611 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33612 Likewise.
33613
33614 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33615 nanosleep_not_cancel with __nanosleep_nocancel.
33616 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33617 (__nanosleep_nocancel): New macro.
33618 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33619 function.
33620 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33621 macro.
33622 (__nanosleep_nocancel): New prototype.
33623
33624 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33625 pause_not_cancel with __pause_nocancel.
33626 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33627 (__pause_nocancel): New macro.
33628 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33629 macro.
33630 (__pause_nocancel): New prototype.
33631 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33632
33633 2017-08-22 Martin Sebor <msebor@redhat.com>
33634
33635 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33636 to return a pointer to the same type as the target function.
33637
33638 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33639
33640 [BZ #18822]
33641 [BZ #21986]
33642 * include/printf.h (__printf_fphex): Add attribute_hidden.
33643 (__guess_grouping): New prototype.
33644 * stdio-common/printf_fp.c (__guess_grouping): Removed.
33645 * stdio-common/reg-printf.c (__register_printf_specifier): Add
33646 libc_hidden_proto and libc_hidden_def.
33647 * stdlib/strfmon_l.c (__guess_grouping): Removed.
33648 (__vstrfmon_l): Remove the third argument passed to
33649 __guess_grouping.
33650
33651 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33652
33653 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33654 definition for issignaling that does not rely on __MATH_TG,
33655 since __MATH_TG uses __builtin_types_compatible_p, which is only
33656 available in C mode.
33657 (CFLAGS-test-math-issignaling.cc): New variable.
33658 * math/Makefile [CXX] (tests): Add test-math-issignaling.
33659 * math/test-math-issignaling.cc: New test for C++ implementation
33660 of type-generic issignaling.
33661 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33662 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33663 options of test-math-issignaling on powerpc64le.
33664
33665 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33666
33667 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33668 building libc.a.
33669 (hidden_proto): Likewise.
33670 (hidden_tls_proto): Likewise.
33671 (__hidden_proto): Likewise.
33672
33673 2017-08-22 Florian Weimer <fweimer@redhat.com>
33674
33675 math: Statically link tests of internal functionality.
33676 * math/Makefile (tests): Remove atest-exp, atest-sincos,
33677 atest-exp2.
33678 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33679 (gmp-objs): Remove assignment.
33680 (atest-exp, atest-sincos, atest-exp2): Remove targets.
33681
33682 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33683
33684 [BZ #21987]
33685 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33686 and copy to ...
33687 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33688 ... here.
33689 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33690 ... and here.
33691
33692 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33693 variable definitions above inclusion of ../Rules.
33694
33695 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33696
33697 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33698 case calling __builtin_unreachable.
33699
33700 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33701
33702 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33703 __waitpid_nocancel.
33704 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33705 (__waitpid_nocancel): New macro.
33706 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33707 macro.
33708 (__waitpid_nocancel): Replace macro with a function.
33709 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33710 function.
33711
33712 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33713 __fcntl_nocancel.
33714 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33715 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33716
33717 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33718 __writev_nocancel_nostatus.
33719 (write_call_graph): Likewise.
33720 (write_bb_counts): Likewise.
33721 * resolv/herror.c (herror): Likewise.
33722 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33723 macro.
33724 (__writev_nocancel_nostatus): New macro.
33725 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33726 Remove macro.
33727 (__writev_nocancel_nostatus): New function.
33728
33729 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33730
33731 Revert:
33732 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33733
33734 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33735 building libc.a.
33736 (hidden_proto): Likewise.
33737 (hidden_tls_proto): Likewise.
33738 (__hidden_proto): Likewise.
33739
33740 [BZ #21973]
33741 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33742 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33744 Likewise.
33745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33746 Likewise.
33747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33748 Likewise.
33749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33750 Likewise.
33751 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33752 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33753 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33754 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33755 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33756 GLIBC_2.0 sqrtl symbol.
33757
33758 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33759 [__USE_MISC] (_LIB_VERSION): Likewise.
33760 [__USE_MISC] (struct exception): Likewise.
33761 [__USE_MISC] (matherr): Likewise.
33762 [__USE_MISC] (DOMAIN): Likewise.
33763 [__USE_MISC] (SING): Likewise.
33764 [__USE_MISC] (OVERFLOW): Likewise.
33765 [__USE_MISC] (UNDERFLOW): Likewise.
33766 [__USE_MISC] (TLOSS): Likewise.
33767 [__USE_MISC] (PLOSS): Likewise.
33768 [__USE_MISC] (HUGE): Likewise.
33769 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33770 * math/math-svid-compat.h: New file.
33771 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33772 and matherrl.
33773 * include/math.h [!_ISOMAC] (__matherr): Remove.
33774 * manual/arith.texi (FP Exceptions): Do not document matherr.
33775 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33776 (tests-internal): New variable.
33777 (install-lib): Do not add libieee.a.
33778 (non-lib.a): Likewise.
33779 (extra-objs): Do not add libieee.a and ieee-math.o.
33780 (CPPFLAGS-s_lib_version.c): Remove variable.
33781 ($(objpfx)libieee.a): Remove rule.
33782 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33783 * math/ieee-math.c: Remove.
33784 * math/libm-test-support.c (matherr): Remove.
33785 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33786 and license notices. Include <math-svid-compat.h> and
33787 <shlib-compat.h>.
33788 (matherr): Undefine as macro. Use compat_symbol_reference.
33789 (_LIB_VERSION): Likewise.
33790 * math/test-matherr-2.c: New file.
33791 * math/test-matherr-3.c: Likewise.
33792 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33793 declaration.
33794 (__kernel_standard_f): Likewise.
33795 (__kernel_standard_l): Likewise.
33796 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33797 <math_private.h>. Include <math-svid-compat.h>.
33798 (_LIB_VERSION): Undefine as macro.
33799 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33800 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33801 [LIBM_SVID_COMPAT], use compat_symbol.
33802 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33803 <math_private.h>. Include <math-svid-compat.h>.
33804 (matherr): Undefine as macro.
33805 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33806 compat_symbol.
33807 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33808 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33809 compat_symbol_reference.
33810 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33811 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33812 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33813 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33814 (MATHERR_D): Remove declaration.
33815 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33816 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33817 [LIBM_BUILD] (pmatherrf): Likewise.
33818 [LIBM_BUILD] (pmatherr): Likewise.
33819 [LIBM_BUILD] (pmatherrl): Likewise.
33820 (DOMAIN): Likewise.
33821 (SING): Likewise.
33822 (OVERFLOW): Likewise.
33823 (UNDERFLOW): Likewise.
33824 (TLOSS): Likewise.
33825 (PLOSS): Likewise.
33826 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33827 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33828 compat_symbol.
33829 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33830 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33831 compat_symbol.
33832 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33833 * math/w_acos_compat.c: Likewise.
33834 * math/w_acosf_compat.c: Likewise.
33835 * math/w_acosh_compat.c: Likewise.
33836 * math/w_acoshf_compat.c: Likewise.
33837 * math/w_acoshl_compat.c: Likewise.
33838 * math/w_acosl_compat.c: Likewise.
33839 * math/w_asin_compat.c: Likewise.
33840 * math/w_asinf_compat.c: Likewise.
33841 * math/w_asinl_compat.c: Likewise.
33842 * math/w_atan2_compat.c: Likewise.
33843 * math/w_atan2f_compat.c: Likewise.
33844 * math/w_atan2l_compat.c: Likewise.
33845 * math/w_atanh_compat.c: Likewise.
33846 * math/w_atanhf_compat.c: Likewise.
33847 * math/w_atanhl_compat.c: Likewise.
33848 * math/w_cosh_compat.c: Likewise.
33849 * math/w_coshf_compat.c: Likewise.
33850 * math/w_coshl_compat.c: Likewise.
33851 * math/w_exp10_compat.c: Likewise.
33852 * math/w_exp10f_compat.c: Likewise.
33853 * math/w_exp10l_compat.c: Likewise.
33854 * math/w_exp2_compat.c: Likewise.
33855 * math/w_exp2f_compat.c: Likewise.
33856 * math/w_exp2l_compat.c: Likewise.
33857 * math/w_fmod_compat.c: Likewise.
33858 * math/w_fmodf_compat.c: Likewise.
33859 * math/w_fmodl_compat.c: Likewise.
33860 * math/w_hypot_compat.c: Likewise.
33861 * math/w_hypotf_compat.c: Likewise.
33862 * math/w_hypotl_compat.c: Likewise.
33863 * math/w_j0_compat.c: Likewise.
33864 * math/w_j0f_compat.c: Likewise.
33865 * math/w_j0l_compat.c: Likewise.
33866 * math/w_j1_compat.c: Likewise.
33867 * math/w_j1f_compat.c: Likewise.
33868 * math/w_j1l_compat.c: Likewise.
33869 * math/w_jn_compat.c: Likewise.
33870 * math/w_jnf_compat.c: Likewise.
33871 * math/w_jnl_compat.c: Likewise.
33872 * math/w_lgamma_main.c: Likewise.
33873 * math/w_lgamma_r_compat.c: Likewise.
33874 * math/w_lgammaf_main.c: Likewise.
33875 * math/w_lgammaf_r_compat.c: Likewise.
33876 * math/w_lgammal_main.c: Likewise.
33877 * math/w_lgammal_r_compat.c: Likewise.
33878 * math/w_log10_compat.c: Likewise.
33879 * math/w_log10f_compat.c: Likewise.
33880 * math/w_log10l_compat.c: Likewise.
33881 * math/w_log2_compat.c: Likewise.
33882 * math/w_log2f_compat.c: Likewise.
33883 * math/w_log2l_compat.c: Likewise.
33884 * math/w_log_compat.c: Likewise.
33885 * math/w_logf_compat.c: Likewise.
33886 * math/w_logl_compat.c: Likewise.
33887 * math/w_pow_compat.c: Likewise.
33888 * math/w_powf_compat.c: Likewise.
33889 * math/w_powl_compat.c: Likewise.
33890 * math/w_remainder_compat.c: Likewise.
33891 * math/w_remainderf_compat.c: Likewise.
33892 * math/w_remainderl_compat.c: Likewise.
33893 * math/w_scalb_compat.c: Likewise.
33894 * math/w_scalbf_compat.c: Likewise.
33895 * math/w_scalbl_compat.c: Likewise.
33896 * math/w_sinh_compat.c: Likewise.
33897 * math/w_sinhf_compat.c: Likewise.
33898 * math/w_sinhl_compat.c: Likewise.
33899 * math/w_sqrt_compat.c: Likewise.
33900 * math/w_sqrtf_compat.c: Likewise.
33901 * math/w_sqrtl_compat.c: Likewise.
33902 * math/w_tgamma_compat.c: Likewise.
33903 * math/w_tgammaf_compat.c: Likewise.
33904 * math/w_tgammal_compat.c: Likewise.
33905 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33906 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33907 * sysdeps/ieee754/k_standard.c: Likewise.
33908 * sysdeps/ieee754/k_standardf.c: Likewise.
33909 * sysdeps/ieee754/k_standardl.c: Likewise.
33910 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33911 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33912 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33913 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33914 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33915 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33916 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33917 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33918 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33920 Likewise.
33921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33922 Likewise.
33923 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33924 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33925 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33926 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33927
33928 2017-08-21 Florian Weimer <fweimer@redhat.com>
33929
33930 [BZ #21864]
33931 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33932 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33933 Move before inclusion of ../Rules.
33934
33935 2017-08-21 Florian Weimer <fweimer@redhat.com>
33936
33937 [BZ #21972]
33938 * assert/assert.h (assert): Use static_cast (bool) for C++.
33939 Use the ternary operator in the warning branch for GNU C.
33940 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33941 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33942 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33943 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33944 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33945
33946 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33947
33948 [BZ #18822]
33949 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33950 (__syscall_clock_gettime): Add attribute_hidden.
33951 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33952 (__start_context): Likewise.
33953
33954 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33955
33956 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33957 building libc.a.
33958 (hidden_proto): Likewise.
33959 (hidden_tls_proto): Likewise.
33960 (__hidden_proto): Likewise.
33961
33962 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33963
33964 * include/libc-symbols.h (attribute_hidden): Enable hidden
33965 visibility in libc.a compiled with PIE.
33966
33967 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33968
33969 [BZ #18822]
33970 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33971 Add attribute_hidden.
33972
33973 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33974
33975 [BZ #21864]
33976 * Makerules (all-nonlib): Add $(others-extras).
33977 * catgets/Makefile (others-extras): New.
33978 * elf/Makefile (others-extras): Likewise.
33979 * nss/Makefile (others-extras): Likewise.
33980
33981 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33982
33983 [BZ #18822]
33984 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33985 * elf/dl-open.c: Include <libc-internal.h>.
33986 (__libc_multiple_libcs): Removed.
33987 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33988 <hp-timing.h>.
33989 * include/libc-internal.h (__libc_multiple_libcs): New.
33990 * misc/sbrk.c: Include <libc-internal.h>.
33991 (__libc_multiple_libcs): Removed.
33992
33993 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33994
33995 [BZ #18822]
33996 * grp/initgroups.c (__nss_group_database): Removed.
33997 (__nss_initgroups_database): Likewise.
33998 * nscd/gai.c (__nss_hosts_database): Likewise.
33999 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
34000 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
34001 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
34002 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
34003 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
34004 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
34005 attribute_hidden.
34006 * nss/nsswitch.c (__nss_database_custom): Define only if
34007 USE_NSCD is defined.
34008 (__nss_configure_lookup): Use __nss_database_custom only if
34009 USE_NSCD is defined.
34010 * nss/nsswitch.h (__nss_database_custom): Declare only if
34011 USE_NSCD is defined. Add attribute_hidden.
34012 (__nss_setent): Add attribute_hidden.
34013 (__nss_endent): Likewise.
34014 (__nss_getent_r): Likewise.
34015 (__nss_getent): Likewise.
34016 (DEFINE_DATABASE): Declare __nss_##arg##_database.
34017
34018 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
34019
34020 [BZ #18822]
34021 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
34022 libc_hidden_proto and libc_hidden_def.
34023
34024 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
34025
34026 [BZ #18822]
34027 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
34028 Add libc_hidden_proto.
34029 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
34030 Add libc_hidden_def.
34031
34032 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
34033
34034 [BZ #21974]
34035 * gmon/Makefile (routines): Remove bb_init_func and
34036 bb_exit_func.
34037 (elide-routines.os): Removed.
34038 * gmon/bb_exit_func.c: Likewise.
34039 * gmon/bb_init_func.c: Likewise.
34040 * include/sys/gmon.h (__bb): Likewise.
34041 (__bb_init_func): Likewise.
34042 (__bb_exit_func): Likewise.
34043 * sysdeps/alpha/bb_init_func.S: Likewise.
34044
34045 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
34046
34047 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
34048 * include/setjmp.h (____longjmp_chk): Here. Add
34049 attribute_hidden.
34050
34051 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
34052
34053 [BZ #18822]
34054 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
34055 attribute_hidden.
34056 (__strspn_sse2): Likewise.
34057
34058 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34059
34060 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
34061 (close_not_cancel_no_status): Likewise.
34062 (__close_nocancel): New macro.
34063 (__close_nocancel_nostatus): Likewise.
34064 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
34065 macro.
34066 (close_not_cancel): Likewise.
34067 (close_not_cancel_no_status): Likewise.
34068 (__close_nocancel): New prototype.
34069 (__close_nocancel_nostatus): New function.
34070 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
34071 * catgets/open_catalog.c (__open_catalog): Replace
34072 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
34073 * gmon/gmon.c (write_gmon): Likewise.
34074 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
34075 * intl/loadmsgcat.c (close): Likewise.
34076 * io/ftw.c (open_dir_stream): Likewise.
34077 (ftw_startup): Likewise.
34078 * libio/fileops.c (_IO_file_open): Likewise.
34079 (_IO_file_close_mmap): Likewise.
34080 (_IO_file_close): Likewise.
34081 * libio/iopopen.c (_IO_dup2): Likewise.
34082 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34083 * locale/loadlocale.c (_nl_load_locale): Likewise.
34084 * login/utmp_file.c (pututline_file): Likewise.
34085 (endutent_file): Likewise.
34086 * misc/daemon.c (daemon): Likewise.
34087 * nscd/nscd_getai.c (__nscd_getai): Likewise.
34088 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34089 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34090 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34091 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
34092 * nscd/nscd_helper.c (open_socket): Likewise.
34093 (__nscd_open_socket): Likewise.
34094 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
34095 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
34096 (__nscd_innetgr): Likewise.
34097 * nss/nss_db/db-open.c (internal_setent): Likewise.
34098 * resolv/res-close.c (__res_iclose): Likewise.
34099 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
34100 * sysdeps/posix/closedir.c (__closedir): Likewise.
34101 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
34102 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34103 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
34104 (opendir_tail): Likewise.
34105 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34106 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
34107 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
34108 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
34109 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34110 (gethostid): Likewise.
34111 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34112 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34113 Likewise.
34114 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
34115 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
34116 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34117 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34118 Likewise.
34119 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
34120 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
34121 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34122 Likewise.
34123 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
34124 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34125 Likewise.
34126 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34127 Likewise.
34128 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
34129 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34130 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34131 __close_nocancel.
34132
34133 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
34134 (openat_not_cancel_3): Likewise.
34135 (openat64_not_cancel_3): Likewise).
34136 (openat_not_cancel_3): Likewise).
34137 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
34138 macro.
34139 (openat_not_cancel_3): Likewise.
34140 (openat64_not_cancel): Likewise.
34141 (openat64_not_cancel_3): Likewise.
34142 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
34143 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
34144 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
34145 __open{64}_nocancel.
34146 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34147 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34148 * sysdeps/posix/opendir.c (__opendirat): Likewise.
34149
34150 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
34151
34152 [BZ #18822]
34153 * include/argz.h (__argz_create_sep): New function prototype.
34154 (__argz_append): Likewise.
34155 (__argz_add): Likewise.
34156 (__argz_add_sep): Likewise.
34157 (__argz_delete): Likewise.
34158 (__argz_insert): Likewise.
34159 (__argz_replace): Likewise.
34160 * string/argz.h (__argz_create_sep): Removed.
34161 (__argz_append): Likewise.
34162 (__argz_add): Likewise.
34163 (__argz_add_sep): Likewise.
34164 (__argz_delete): Likewise.
34165 (__argz_insert): Likewise.
34166 (__argz_replace): Likewise.
34167
34168 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
34169
34170 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
34171 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
34172 (GNU_PROPERTY_STACK_SIZE): Likewie.
34173 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
34174 (GNU_PROPERTY_LOPROC): Likewise.
34175 (GNU_PROPERTY_HIPROC): Likewise.
34176 (GNU_PROPERTY_LOUSER): Likewise.
34177 (GNU_PROPERTY_HIUSER): Likewise.
34178 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
34179 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
34180 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
34181 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
34182 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
34183 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
34184 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
34185 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
34186 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
34187 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
34188 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
34189 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
34190 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
34191 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
34192 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
34193 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
34194 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
34195 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
34196 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
34197 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
34198 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
34199 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
34200 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
34201
34202 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34203
34204 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
34205 in C++ mode.
34206
34207 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34208
34209 [BZ #21930]
34210 * math/math.h (isinf): Check if in C or C++ mode before using
34211 __builtin_types_compatible_p, since this is a C mode feature.
34212
34213 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34214
34215 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
34216 (__write_nocancel): New macro.
34217 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
34218 Rewrite as a function prototype.
34219 (write_not_cancel): Remove macro.
34220 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
34221 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
34222 (write_gmon): Likewise.
34223 * libio/fileops.c (_IO_new_file_write): Likewise.
34224 * login/utmp_file.c (pututline_file): Likewise.
34225 (updwtmp_file): Likewise.
34226 * stdio-common/psiginfo.c (psiginfo): Likewise.
34227 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34228 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34229 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34230 Likewise.
34231 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34232 Likewise.
34233
34234 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
34235 (__read_nocancel): New macro.
34236 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34237 __read_nocancel.
34238 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
34239 macro.
34240 (__read_nocancel): New prototype.
34241 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
34242 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
34243 with __read_nocancel.
34244 * intl/loadmsgcat.c (read): Likewise.
34245 * libio/fileops.c (_IO_file_read): Likewise.
34246 * locale/loadlocale.c (_nl_load_locale): Likewise.
34247 * login/utmp_file.c (getutent_r_file): Likewise.
34248 (internal_getut_r): Likewise.
34249 (getutline_r_file): Likewise.
34250 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34251 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
34252 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34253 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34254 Likewise.
34255 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
34256 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34257 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34258 Likewise.
34259 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34260 Likewise.
34261 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34262 Likewise.
34263 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34264 Likewise.
34265 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34266
34267 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
34268
34269 [BZ #21966]
34270 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
34271 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
34272 usable.
34273
34274 2017-08-17 DJ Delorie <dj@redhat.com>
34275
34276 * bug17079.c: Update to new test harness.
34277 * test-digits-dots.c: Likewise.
34278 * test-netdb.c: Likewise.
34279 * tst-field.c: Likewise.
34280 * tst-nss-getpwent.c: Likewise.
34281 * tst-nss-static.c: Likewise.
34282 * tst-nss-test1.c: Likewise.
34283 * tst-nss-test2.c: Likewise.
34284 * tst-nss-test3.c: Likewise.
34285 * tst-nss-test4.c: Likewise.
34286 * tst-nss-test5.c: Likewise.
34287
34288 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34289
34290 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
34291 (open_not_cancel_2): Likewise.
34292 (open_nocancel): New macro.
34293 (open64_nocancel): Likewise.
34294 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
34295 (open_not_cancel_2): Likewise.
34296 (__open_nocancel): New prototype.
34297 (__open64_nocancel): Likewise.
34298 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34299 __open_nocancel.
34300 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
34301 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
34302 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
34303 with __open_nocancel.
34304 * csu/check_fds.c (check_one_fd): Likewise.
34305 * gmon/gmon.c (write_gmon): Likewise.
34306 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
34307 * intl/loadmsgcat.c (open): Likewise.
34308 * libio/fileops.c (_IO_file_open): Likewise.
34309 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34310 * locale/loadlocale.c (_nl_load_locale): Likewise.
34311 * login/utmp_file.c (setutent_file): Likewise.
34312 * misc/daemon.c (daemon): Likewise.
34313 * nss/nss_db/db-open.c (internal_setent): Likewise.
34314 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34315 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
34316 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
34317 (__opendir): Likewise.
34318 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34319 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34320 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34321 (gethostid): Likewise.
34322 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34323 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34324 Likewise.
34325 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
34326 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
34327 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34328 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34329 Likewise.
34330 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34331 Likewise.
34332 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34333 Likewise.
34334 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34335 Likewise.
34336 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34337 Likewise.
34338 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34339 Likewise.
34340 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
34341 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34342
34343 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
34344
34345 * benchtests/bench-skeleton.c (main): Add support for
34346 latency benchmarking.
34347 * benchtests/scripts/bench.py: Add support for latency benchmarking.
34348
34349 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
34350
34351 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
34352 the startup object.
34353
34354 2017-08-17 Florian Weimer <fweimer@redhat.com>
34355
34356 * include/sys/socket.h (__opensock): Remove internal_function.
34357 * socket/opensock.c (__opensock): Likewise.
34358 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
34359
34360 2017-08-16 Joseph Myers <joseph@codesourcery.com>
34361
34362 [BZ #21944]
34363 * signal/bits/types/__sigval_t.h: New file.
34364 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
34365 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
34366 and define sigval_t using __sigval_t.
34367 * include/bits/types/__sigval_t.h: New file.
34368 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
34369 instead of <bits/types/__sigval_t.h>.
34370 (struct sigevent): Use __sigval_t instead of sigval_t.
34371 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
34372 instead of <bits/types/__sigval_t.h>.
34373 (siginfo_t): Use __sigval_t instead of sigval_t.
34374 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
34375 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34376 (struct sigevent): Use __sigval_t instead of sigval_t.
34377 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
34378 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34379 (siginfo_t): Use __sigval_t instead of sigval_t.
34380 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
34381
34382 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
34383
34384 * NEWS: Remove "[Add new features here]" for 2.27.
34385
34386 2017-08-16 Joseph Myers <joseph@codesourcery.com>
34387
34388 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
34389 libc.so.
34390
34391 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
34392
34393 * NEWS: Mention x86-64 FMA optimization.
34394
34395 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
34396
34397 [BZ #21912]
34398 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34399 Add e_expf-fma.
34400 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
34401 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
34402 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
34403
34404 2017-08-16 Andreas Schwab <schwab@suse.de>
34405
34406 [BZ #16750]
34407 CVE-2009-5064
34408 * elf/ldd.bash.in: Never run file directly.
34409
34410 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
34411
34412 [BZ #21955]
34413 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
34414 (L(SP_INF_0)): Likewise.
34415
34416 2017-08-15 Florian Weimer <fweimer@redhat.com>
34417
34418 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
34419 run-built-tests.
34420
34421 2017-08-15 Florian Weimer <fweimer@redhat.com>
34422
34423 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
34424 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
34425 BROKEN_THREAD_SIGNALS code.
34426 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
34427 request_list): Remove caller_pid member used for
34428 BROKEN_THREAD_SIGNALS.
34429 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
34430 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34431 Remove BROKEN_THREAD_SIGNALS support.
34432 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
34433 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
34434
34435 2017-08-15 Florian Weimer <fweimer@redhat.com>
34436
34437 * gmon/Makefile (tests): Add tst-gmon.
34438 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
34439 Set.
34440 (tests-special): Add tst-gmon-prof.out.
34441 (tst-gmon.out): Depend on clean-tst-gmon-data.
34442 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
34443 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
34444 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
34445 startup object.
34446 * aclocal.m4 (GPROF): Set and substitute.
34447 * config.amke.in (GPROF): Set.
34448 * configure: Regenerate.
34449
34450 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
34451
34452 * elf/elf.h A (NT_PPC_TAR): New macro.
34453 (NT_PPC_PPR): Likewise.
34454 (NT_PPC_DSCR): Likewise.
34455 (NT_PPC_EBB): Likewise.
34456 (NT_PPC_PMU): Likewise.
34457 (NT_PPC_TM_CGPR): Likewise.
34458 (NT_PPC_TM_CFPR): Likewise.
34459 (NT_PPC_TM_CVMX): Likewise.
34460 (NT_PPC_TM_CVSX): Likewise.
34461 (NT_PPC_TM_SPR): Likewise.
34462 (NT_PPC_TM_CTAR): Likewise.
34463 (NT_PPC_TM_CPPR): Likewise.
34464 (NT_PPC_TM_CDSCR): Likewise.
34465
34466 2017-08-15 Florian Weimer <fweimer@redhat.com>
34467
34468 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
34469 regparm (2) instead of internal_function.
34470 (_MCOUNT_DECL): Adjust.
34471
34472 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
34473
34474 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34475 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34476
34477 2017-08-14 Joseph Myers <joseph@codesourcery.com>
34478
34479 * conform/data/sys/wait.h-data (si_value): Do not expect for
34480 XPG42.
34481
34482 2017-08-14 Florian Weimer <fweimer@redhat.com>
34483
34484 [BZ #21962]
34485 NSS: Create stubs for accidentally exported lookup functions.
34486 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34487 Remove declaration.
34488 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34489 (ether_hostton): Call __nss_ethers_lookup2 instead.
34490 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34491 (ether_ntohost): Call __nss_ethers_lookup2 instead.
34492 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34493 (setup): Call __nss_netgroup_lookup2 instead.
34494 * nss/Makefile (routines): Add compat-lookup.
34495 * nss/Versions (GLIBC_2.27): Add symbol version.
34496 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
34497 (DB_COMPAT_FCT): Remove.
34498 * nss/compat-lookup.c: New file.
34499 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34500 from databases.def.
34501 * nss/service-lookup.c (NO_COMPAT): Remove definition.
34502 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34503 (netname2user): Call __nss_publickey_lookup2 instead.
34504 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34505 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34506 instead.
34507
34508 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34509 Sergei Trofimovich <slyfox@inbox.ru>
34510
34511 [BZ #21908]
34512 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34513 Rename to MMAP2_PAGE_UNIT.
34514 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34515 __OFF_T_MATCHES_OFF64_T is not defined.
34516 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34517 uint64_t.
34518 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34519 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34520
34521 2017-08-14 Florian Weimer <fweimer@redhat.com>
34522
34523 i386: Do not set internal_function.
34524 * config.h.in (USE_REGPARMS, internal_function): Remove.
34525 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34526 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34527
34528 2017-08-14 Florian Weimer <fweimer@redhat.com>
34529
34530 * elf/dl-init.c (_dl_init): Remove internal_function.
34531 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34532 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34533
34534 2017-08-14 Florian Weimer <fweimer@redhat.com>
34535
34536 * elf/rtld.c (_dl_start): Remove internal_function.
34537 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34538 _dl_start.
34539
34540 2017-08-14 Florian Weimer <fweimer@redhat.com>
34541
34542 * elf/dl-fini.c (_dl_fini): Remove internal_function
34543 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34544
34545 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
34546
34547 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34548 (bit_cpu_SHSTK): Likewise.
34549 (index_cpu_IBT): Likewise.
34550 (index_cpu_SHSTK): Likewise.
34551 (reg_IBT): Likewise.
34552 (reg_SHSTK): Likewise.
34553 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34554 Handle index_cpu_IBT and index_cpu_SHSTK.
34555
34556 2017-08-14 Mike FABIAN <mfabian@redhat.com>
34557
34558 [BZ #19982]
34559 * po/fr.po: Fix spelling mistake.
34560
34561 2017-08-13 Florian Weimer <fweimer@redhat.com>
34562
34563 * elf/dl-addr.c (_dl_addr): Remove internal_function.
34564 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34565 (_dl_catch_error, _dl_receive_error): Likewise.
34566 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34567 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34568 (_dl_deallocate_tls): Likewise.
34569 * include/dlfcn.h (_dl_addr): Likewise.
34570 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34571 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34572 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34573 Likewise.
34574
34575 2017-08-13 Florian Weimer <fweimer@redhat.com>
34576
34577 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34578 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34579 internal_function.
34580 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34581
34582 2017-08-13 Florian Weimer <fweimer@redhat.com>
34583
34584 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34585 internal_function.
34586 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34587 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34588 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34589 internal_function from _dl_make_stack_executable_hook member.
34590 (_dl_make_stack_executable): Remove internal_function.
34591 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34592 Likewise.
34593 * sysdeps/unix/sysv/linux/dl-execstack.c
34594 (_dl_make_stack_executable): Likewise.
34595
34596 2017-08-13 Florian Weimer <fweimer@redhat.com>
34597
34598 * sysdeps/unix/sysv/linux/netlinkaccess.h
34599 (__netlink_assert_response): Remove internal_function.
34600 * sysdeps/unix/sysv/linux/netlink_assert_response.c
34601 (__netlink_assert_response): Likewise.
34602
34603 2017-08-13 Florian Weimer <fweimer@redhat.com>
34604
34605 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34606 internal_function.
34607 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34608
34609 2017-08-13 Florian Weimer <fweimer@redhat.com>
34610
34611 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34612 internal_function.
34613 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34614 * inet/netgroup.h (__internal_setnetgrent)
34615 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34616 * inet/getnetgrent_r.c (__internal_setnetgrent)
34617 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34618 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34619 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34620 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34621 * nss/nsswitch.h (db_lookup_function): Likewise.
34622
34623 2017-08-13 Florian Weimer <fweimer@redhat.com>
34624
34625 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34626 Remove internal_function.
34627 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34628 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34629 message argument on the stack.
34630 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34631 Likeweise.
34632
34633 2017-08-12 Mike FABIAN <mfabian@redhat.com>
34634
34635 Adapt test case data to the changes in the thousands
34636 separators.
34637
34638 [BZ #20756]
34639 * localedata/tst-langinfo.sh: Adapt test case data.
34640 * stdlib/tst-strfmon_l.c: Likewise.
34641 * stdlib/tst-strtod4.c: Likewise.
34642 * stdlib/tst-strtod5i.c: Likewise.
34643
34644 2017-08-11 Florian Weimer <fweimer@redhat.com>
34645
34646 [BZ #21242]
34647 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34648 Suppress pedantic warning resulting from statement expression.
34649 (__ASSERT_FUNCTION): Add missing __extension__.
34650
34651 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34652
34653 * benchtests/bench-memmove-large.c: Print output in JSON
34654 format.
34655 * benchtests/bench-memmove.c: Likewise.
34656
34657 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34658 * benchtests/bench-memchr.c (do_one_test): Likewise.
34659 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34660 * benchtests/bench-memcpy.c (do_one_test): Likewise.
34661 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34662 * benchtests/bench-memmove.c (do_one_test): Likewise.
34663 * benchtests/bench-memset-large.c (do_one_test): Likewise.
34664 * benchtests/bench-memset.c (do_one_test): Likewise.
34665 * benchtests/bench-string.h (test_init): Remove memsets.
34666
34667 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34668
34669 * manual/lang.texi
34670 (Computing the Width of an Integer Data Type): Rename section to
34671 "Width of an Integer Type". Remove inaccurate statement regarding
34672 lack of C language facilities for determining width of integer
34673 types, and reorder content to improve flow and context of
34674 discussion.
34675
34676 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34677
34678 * lang.texi (va_copy): Change standard from ISO to C99.
34679 (__va_copy): Add standard and header annotation.
34680 Update description for clarity of origins and current use.
34681
34682 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34683
34684 [BZ #21941]
34685 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34686 xssqrtqp requires operands to be in Vector Registers
34687 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34688 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34689 (__ieee754_sqrtf128): Likewise.
34690
34691 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
34692
34693 * sysdeps/aarch64/memcmp.S (memcmp):
34694 Rewrite of optimized memcmp.
34695
34696 2017-08-10 Florian Weimer <fweimer@redhat.com>
34697
34698 Introduce ld.so exceptions.
34699 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34700 (_dl_exception_create, _dl_exception_create_format)
34701 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34702 (_dl_catch_exception): Declare.
34703 (_dl_catch_error): Update comment.
34704 * elf/dl-error-skeleton.c (struct catch): Replace objname,
34705 errstring, malloced members with exception member.
34706 (_dl_out_of_memory): Remove.
34707 (fatal_error): New function, extracted from _dl_signal_error.
34708 (_dl_signal_exception, _dl_signal_cexception): New functions.
34709 (_dl_signal_error): Call _dl_exception_create to allocate an
34710 exception object.
34711 (_dl_catch_exception): New function, based on _dl_catch_error.
34712 (_dl_catch_error): Implement using _dl_catch_exception.
34713 * elf/dl-exception.c: New file.
34714 * elf/Makefile (dl-routines): Add dl-exception.
34715 (elide-routines.os): Likewise.
34716 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34717 _dl_exception_create_format, _dl_exception_free.
34718 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34719 _dl_signal_exception.
34720 * elf/dl-lookup.c (make_string): Remove.
34721 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34722 _dl_signal_cexception, _dl_exception_free.
34723 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34724 _dl_signal_exception.
34725 * elf/dl-sym.c (do_sym): Likewise.
34726 * elf/dl-version.c (make_string): Remove.
34727 (match_symbol): Use _dl_exception_create_format,
34728 _dl_signal_cexception, _dl_exception_free.
34729 (_dl_check_map_versions): Likewise.
34730 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34731 _dl_catch_exception.
34732 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34733 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34734 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34735 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34736 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34737 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34738 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34739 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34740 Likewise.
34741 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34743 (ld.so): Likewise.
34744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34745 (ld.so): Likewise.
34746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34747 Likewise.
34748 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34749 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34750 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34751 Likewise.
34752 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34753 Likewise.
34754 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34755
34756 2017-08-10 Florian Weimer <fweimer@redhat.com>
34757
34758 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34759 attribute_hidden, internal_function.
34760 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34761 internal_function.
34762
34763 2017-08-10 Florian Weimer <fweimer@redhat.com>
34764
34765 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34766 function which calls __builtin_unreachable.
34767
34768 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34769
34770 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34771 Indian monetary formatting
34772 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34773 test cases.
34774
34775 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34776
34777 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34778 Fix typo in comment.
34779
34780 [BZ #21928]
34781 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34782 PTRACE_SEIZE_DEVEL): Remove.
34783 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34784 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34785 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34786 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34787 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34788
34789 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34790
34791 * posix/bits/types.h (__qaddr_t): Remove.
34792
34793 [BZ #21457]
34794 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34795 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34796 __glibc_reserved1.
34797 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34798 (ucontext_t): Use __ctx with uc_flags.
34799 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34800 (__ctxt): Likewise.
34801 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34802 __glibc_reserved1.
34803 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34804 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34805 __glibc_reserved1.
34806 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34807 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34808 __glibc_reserved1.
34809 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34810 macro.
34811 (ucontext_t): Use __ctx with uc_flags.
34812 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34813 (ucontext_t): Use __ctx with uc_flags.
34814 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34815 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34816 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34817 (ucontext_t): Use __ctx with uc_flags.
34818 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34819 undefine further down.
34820 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34821 __glibc_reserved1.
34822 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34823 undefine further down.
34824 (ucontext_t): Use __ctx with uc_flags.
34825 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34826 undefine further down.
34827 (ucontext_t): Use __ctx with uc_flags.
34828 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34829 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34830 Rename uc_pad to __glibc_reserved1.
34831 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34832 undefine further down.
34833 (ucontext_t): Use __ctx with uc_flags.
34834 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34835 further down.
34836 (ucontext_t): Use __ctx with uc_flags.
34837 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34838 __ctx with uc_flags.
34839 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34840 (ucontext_t): Use __ctx with uc_flags.
34841 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34842 __ctx with uc_flags.
34843
34844 2017-08-09 Florian Weimer <fweimer@redhat.com>
34845
34846 [BZ #21932]
34847 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34848 before early return.
34849
34850 2017-08-09 Andreas Schwab <schwab@suse.de>
34851
34852 [BZ #21041]
34853 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34854 renamed alias.
34855
34856 [BZ #21041]
34857 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34858 tst-compat-forwarder.
34859 (modules-names): Add tst-compat-forwarder-mod.
34860 ($(objpfx)tst-compat-forwarder): Depend on
34861 $(objpfx)tst-compat-forwarder-mod.so.
34862 * nptl/tst-compat-forwarder.c: New file.
34863 * nptl/tst-compat-forwarder-mod.c: New file.
34864
34865 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34866
34867 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34868 comments.
34869
34870 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34871 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34872 memcpy_falkor.
34873 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34874 Bump.
34875 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34876 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34877 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34878 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34879 Add falkor.
34880 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34881 New macro.
34882
34883 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34884
34885 [BZ #759]
34886 * manual/setjmp.texi (getcontex): Document uc_stack value
34887 compatibility differences.
34888
34889 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34890
34891 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34892 (old_malloc_hook): Likewise.
34893 (old_memalign_hook): Likewise.
34894 (old_realloc_hook): Likewise.
34895 (struct hdr): Likewise.
34896 (flood): Likewise.
34897 (freehook): Likewise.
34898 (mallochook): Likewise.
34899 (memalignhook): Likewise.
34900 (reallochook): Likewise.
34901 (mprobe): Likewise.
34902 * malloc/mtrace.c (mallwatch): Likewise.
34903 (tr_old_free_hook): Likewise.
34904 (tr_old_malloc_hook): Likewise.
34905 (tr_old_realloc_hook): Likewise.
34906 (tr_old_memalign_hook): Likewise.
34907 (tr_where): Likewise.
34908 (lock_and_info): Likewise.
34909 (tr_freehook): Likewise.
34910 (tr_mallochook): Likewise.
34911 (tr_reallochook): Likewise.
34912 (tr_memalignhook): Likewise.
34913 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34914 * misc/mmap.c (__mmap): Likewise.
34915 * misc/mmap64.c (__mmap64): Likewise.
34916 * misc/mprotect.c (__mprotect): Likewise.
34917 * misc/msync.c (msync): Likewise.
34918 * misc/munmap.c (__munmap): Likewise.
34919 * posix/posix_madvise.c (posix_madvise): Likewise.
34920 * socket/send.c (__send): Likewise.
34921 * socket/sendto.c (__sendto): Likewise.
34922 * socket/setsockopt.c (__setsockopt): Likewise.
34923 * string/memcmp.c (__ptr_t): Remove macro.
34924 (MEMCMP): Use void * instead of ptr_t.
34925 * string/memrchr.c (__ptr_t): Remove macro.
34926 (__memrchr): Use void * instead of ptr_t.
34927 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34928 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34929 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34930 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34931 * sysdeps/mach/msync.c (msync): Likewise.
34932 * sysdeps/mach/munmap.c (__munmap): Likewise.
34933 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34934 Likewise.
34935 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34936 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34937 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34938 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34939 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34940 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34941 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34942 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34943 Likewise.
34944 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34945 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34946 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34947 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34948 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34949 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34950 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34951 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34952 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34953 Likewise.
34954 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34955 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34956 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34957 (MEMCMP): Use void * instead of ptr_t.
34958 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34959 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34960
34961 2017-08-08 Florian Weimer <fweimer@redhat.com>
34962
34963 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34964 return statement.
34965
34966 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34967
34968 [BZ #21913]
34969 * csu/libc-tls.c: Include <startup.h> first.
34970 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34971 * elf/dl-tunables.c: Include <startup.h> first.
34972 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34973 * sysdeps/generic/startup.h: New file.
34974 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34975 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34976 (I386_USE_SYSENTER): New. Defined to 0.
34977
34978 2017-08-08 Andreas Schwab <schwab@suse.de>
34979
34980 [BZ #21041]
34981 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34982 * nptl/pt-system.c (system): Likewise.
34983
34984 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34985
34986 [BZ #21780]
34987 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34988 EOPNOTSUPP.
34989 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34990 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34991 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34992 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34993 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34994 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34995 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34996
34997 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34998
34999 [BZ #21899]
35000 * bits/sigaction.h (struct sigaction): Define sa_handler and
35001 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
35002 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35003 [__USE_XOPEN_EXTENDED].
35004 (SA_RESTART): Likewise.
35005 (SA_NODEFER): Likewise.
35006 (SA_RESETHAND): Likewise.
35007 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
35008 (struct sigaction): Define sa_handler and sa_sigaction using union
35009 also for [__USE_XOPEN_EXTENDED].
35010 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35011 [__USE_XOPEN_EXTENDED].
35012 (SA_RESTART): Likewise.
35013 (SA_NODEFER): Likewise.
35014 (SA_RESETHAND): Likewise.
35015 * sysdeps/unix/sysv/linux/bits/sigaction.h
35016 (struct sigaction): Define sa_handler and sa_sigaction using union
35017 also for [__USE_XOPEN_EXTENDED].
35018 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35019 [__USE_XOPEN_EXTENDED].
35020 (SA_RESTART): Likewise.
35021 (SA_NODEFER): Likewise.
35022 (SA_RESETHAND): Likewise.
35023 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
35024 (struct sigaction): Define sa_handler and sa_sigaction using union
35025 also for [__USE_XOPEN_EXTENDED].
35026 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35027 [__USE_XOPEN_EXTENDED].
35028 (SA_RESTART): Likewise.
35029 (SA_NODEFER): Likewise.
35030 (SA_RESETHAND): Likewise.
35031 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
35032 (struct sigaction): Define sa_handler and sa_sigaction using union
35033 also for [__USE_XOPEN_EXTENDED].
35034 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35035 [__USE_XOPEN_EXTENDED].
35036 (SA_RESTART): Likewise.
35037 (SA_NODEFER): Likewise.
35038 (SA_RESETHAND): Likewise.
35039 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35040 (struct sigaction): Define sa_handler and sa_sigaction using union
35041 also for [__USE_XOPEN_EXTENDED].
35042 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35043 [__USE_XOPEN_EXTENDED].
35044 (SA_RESTART): Likewise.
35045 (SA_NODEFER): Likewise.
35046 (SA_RESETHAND): Likewise.
35047 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35048 (struct sigaction): Define sa_handler and sa_sigaction using union
35049 also for [__USE_XOPEN_EXTENDED].
35050 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35051 [__USE_XOPEN_EXTENDED].
35052 (SA_RESTART): Likewise.
35053 (SA_NODEFER): Likewise.
35054 (SA_RESETHAND): Likewise.
35055 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
35056 (struct sigaction): Define sa_handler and sa_sigaction using union
35057 also for [__USE_XOPEN_EXTENDED].
35058 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35059 [__USE_XOPEN_EXTENDED].
35060 (SA_RESTART): Likewise.
35061 (SA_NODEFER): Likewise. Define directly rather than as alias.
35062 (SA_RESETHAND): Likewise.
35063 (SA_INTERRUPT): Define only for [__USE_MISC].
35064 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
35065 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
35066 [__USE_MISC].
35067 (SA_STACK): Define only for [__USE_MISC].
35068 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
35069 (struct sigaction): Define sa_handler and sa_sigaction using union
35070 also for [__USE_XOPEN_EXTENDED].
35071 (SA_ONSTACK): Change [__USE_UNIX98] condition to
35072 [__USE_XOPEN_EXTENDED].
35073 (SA_RESTART): Likewise.
35074 (SA_NODEFER): Likewise.
35075 (SA_RESETHAND): Likewise.
35076 (SA_NOPTRACE): Define only for [__USE_MISC].
35077
35078 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
35079 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
35080 (struct catalog_info): Likewise.
35081 * inet/htontest.c (lo): Likewise.
35082 (foo): Likewise.
35083 * inet/inet_lnaof.c (inet_lnaof): Likewise.
35084 * inet/inet_net.c (inet_network): Likewise.
35085 * inet/inet_netof.c (inet_netof): Likewise.
35086 * inet/rcmd.c (__ivaliduser): Likewise.
35087 (iruserok): Likewise.
35088 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
35089 * locale/programs/locale-spec.c (locale_special): Likewise.
35090 * nis/nis_findserv.c (struct findserv_req): Likewise.
35091 (__nis_findfastest_with_timeout): Likewise.
35092 * nss/test-netdb.c (test_network): Likewise.
35093 * resolv/inet_neta.c (inet_neta): Likewise.
35094 * resolv/ns_date.c (ns_datetosecs): Likewise.
35095 (SECS_PER_DAY): Likewise.
35096 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
35097 Likewise.
35098 * resolv/res_comp.c (__putlong): Likewise.
35099 (__putshort): Likewise.
35100 (_getlong): Likewise.
35101 (_getshort): Likewise.
35102 * resolv/res_debug.c (p_time): Likewise.
35103 (precsize_ntoa): Likewise.
35104 (precsize_aton): Likewise.
35105 (latlon2ul): Likewise.
35106 (loc_aton): Likewise.
35107 (loc_ntoa): Likewise.
35108 * resolv/res_hconf.c (struct netaddr): Likewise.
35109 (_res_hconf_reorder_addrs): Likewise.
35110 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
35111 (clnttcp_control): Likewise.
35112 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
35113 (clntudp_control): Likewise.
35114 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
35115 (clntunix_control): Likewise.
35116 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
35117 * sunrpc/rpc/auth.h (union des_block): Likewise.
35118 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
35119 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
35120 (xdrrec_create): Likewise.
35121 (xdrrec_endofrecord): Likewise.
35122 (flush_out): Likewise.
35123 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
35124 (xdrstdio_putlong): Likewise.
35125 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
35126 Likewise.
35127
35128 * misc/sys/cdefs.h (__long_double_t): Remove.
35129 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
35130 instead of __long_double_t,
35131 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
35132
35133 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
35134
35135 * benchtests/scripts/compare_strings.py: Avoid display error when
35136 running on a text terminal.
35137
35138 * benchtests/scripts/compare_strings.py (main): Add an
35139 optional -base option.
35140 (process_results): New argument base_func.
35141
35142 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
35143 hardcoding memcpy.
35144 * benchtests/bench-memcpy-large.c (test_name): Likewise.
35145 * benchtests/bench-memcpy-random.c (test_name): Likewise.
35146
35147 2017-08-07 Andreas Schwab <schwab@suse.de>
35148
35149 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
35150 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
35151 * intl/Makefile ($(objpfx)tst-gettext.out)
35152 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
35153 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
35154 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
35155 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
35156 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
35157 * posix/Makefile ($(objpfx)globtest.out)
35158 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
35159 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
35160 ($(objpfx)tst-printf.out): Likewise.
35161 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
35162 ($(objpfx)tst-setcontext3.out): Likewise.
35163
35164 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
35165
35166 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35167 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
35168 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
35169 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
35170 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
35171 and mptan-fma.
35172 (CFLAGS-doasin-fma.c): New.
35173 (CFLAGS-dosincos-fma.c): Likewise.
35174 (CFLAGS-e_asin-fma.c): Likewise.
35175 (CFLAGS-e_atan2-fma.c): Likewise.
35176 (CFLAGS-e_exp-fma.c): Likewise.
35177 (CFLAGS-e_log-fma.c): Likewise.
35178 (CFLAGS-e_pow-fma.c): Likewise.
35179 (CFLAGS-halfulp-fma.c): Likewise.
35180 (CFLAGS-mpa-fma.c): Likewise.
35181 (CFLAGS-mpatan-fma.c): Likewise.
35182 (CFLAGS-mpatan2-fma.c): Likewise.
35183 (CFLAGS-mpexp-fma.c): Likewise.
35184 (CFLAGS-mplog-fma.c): Likewise.
35185 (CFLAGS-mpsqrt-fma.c): Likewise.
35186 (CFLAGS-mptan-fma.c): Likewise.
35187 (CFLAGS-s_atan-fma.c): Likewise.
35188 (CFLAGS-sincos32-fma.c): Likewise.
35189 (CFLAGS-slowexp-fma.c): Likewise.
35190 (CFLAGS-slowpow-fma.c): Likewise.
35191 (CFLAGS-s_sin-fma.c): Likewise.
35192 (CFLAGS-s_tan-fma.c): Likewise.
35193 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
35194 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
35195 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
35196 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
35197 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
35198 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
35199 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
35200 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
35201 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
35202 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
35203 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
35204 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
35205 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
35206 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
35207 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
35208 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
35209 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
35210 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
35211 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
35212 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
35213 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
35214 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
35215 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
35216 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
35217 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
35218 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
35219 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
35220 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
35221 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
35222 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
35223 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
35224
35225 2017-08-04 Joseph Myers <joseph@codesourcery.com>
35226
35227 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
35228 (min_of_type_f): New macro.
35229 (min_of_type_): Likewise.
35230 (min_of_type_l): Likewise.
35231 (min_of_type_f128): Likewise.
35232 (min_of_type): Define using __MATH_TG and taking an expression
35233 argument.
35234 (math_check_force_underflow): Pass expression instead of type to
35235 min_of_type.
35236 (math_check_force_underflow_nonneg): Likewise.
35237
35238 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35239
35240 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35241 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
35242 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
35243
35244 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35245
35246 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35247 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
35248 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
35249 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
35250 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
35251 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
35252 memcpy_chk-nonshared, mempcpy_chk-nonshared,
35253 memmove_chk-nonshared and memset_chk-nonshared
35254 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
35255 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
35256 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
35257 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
35258 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
35259 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
35260 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
35261 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
35262 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
35263 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
35264 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
35265 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
35266 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
35267 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
35268 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
35269 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
35270 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
35271 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
35272 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
35273 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
35274 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
35275 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
35276 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
35277 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
35278 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
35279 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
35280 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
35281 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
35282 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
35283 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
35284 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
35285 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
35286 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
35287 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35288 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35289 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
35290 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
35291 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
35292 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
35293 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
35294 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
35295 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
35296 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
35297 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
35298 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
35299 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
35300 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
35301 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
35302 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
35303 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
35304 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
35305 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
35306 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
35307 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
35308 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
35309 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
35310 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
35311 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
35312 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
35313 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
35314 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
35315 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
35316 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
35317 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
35318 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
35319 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
35320 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
35321 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
35322 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
35323 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
35324 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
35325 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
35326 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
35327 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
35328 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
35329 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
35330 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
35331 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
35332 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
35333 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
35334 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
35335 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
35336 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
35337 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
35338 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
35339 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
35340 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
35341 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
35342 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
35343 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
35344 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
35345 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
35346 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
35347 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
35348 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
35349 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
35350 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
35351 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
35352 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
35353 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
35354 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
35355 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
35356 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
35357 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
35358 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
35359 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
35360 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
35361 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
35362
35363 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35364
35365 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
35366 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
35367 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
35368 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
35369 svml_d_log2_core-sse2, svml_d_log4_core-sse,
35370 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
35371 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
35372 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
35373 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
35374 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
35375 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
35376 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
35377 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
35378 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
35379 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
35380 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
35381 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
35382 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
35383 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
35384 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
35385 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
35386 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
35387 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
35388 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
35389 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
35390 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
35391 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
35392 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
35393 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
35394 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
35395 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
35396 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
35397 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
35398 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
35399 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
35400 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
35401 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
35402 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
35403 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
35404 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
35405 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
35406 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
35407 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
35408 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
35409 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
35410 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
35411 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
35412 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
35413 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
35414 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
35415 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
35416 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
35417 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
35418 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
35419 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
35420 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
35421 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
35422 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
35423 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
35424 ...
35425 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
35426 Don't include <sysdep.h> nor <init-arch.h>.
35427 (_ZGVbN2v_cos): Removed.
35428 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
35429 ...
35430 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
35431 Don't include <sysdep.h> nor <init-arch.h>.
35432 (_ZGVdN4v_cos): Removed.
35433 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
35434 ...
35435 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
35436 Don't include <sysdep.h> nor <init-arch.h>.
35437 (_ZGVeN8v_cos): Removed.
35438 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
35439 ...
35440 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
35441 Don't include <sysdep.h> nor <init-arch.h>.
35442 (_ZGVbN2v_exp): Removed.
35443 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
35444 ...
35445 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
35446 Don't include <sysdep.h> nor <init-arch.h>.
35447 (_ZGVdN4v_exp): Removed.
35448 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
35449 ...
35450 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
35451 Don't include <sysdep.h> nor <init-arch.h>.
35452 (_ZGVeN8v_exp): Removed.
35453 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
35454 ...
35455 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
35456 Don't include <sysdep.h> nor <init-arch.h>.
35457 (_ZGVbN2v_log): Removed.
35458 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
35459 ...
35460 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
35461 Don't include <sysdep.h> nor <init-arch.h>.
35462 (_ZGVdN4v_log): Removed.
35463 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
35464 ...
35465 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
35466 Don't include <sysdep.h> nor <init-arch.h>.
35467 (_ZGVeN8v_log): Removed.
35468 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
35469 ...
35470 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35471 Don't include <sysdep.h> nor <init-arch.h>.
35472 (_ZGVbN2vv_pow): Removed.
35473 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
35474 ...
35475 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35476 Don't include <sysdep.h> nor <init-arch.h>.
35477 (_ZGVdN4vv_pow): Removed.
35478 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
35479 ...
35480 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35481 Don't include <sysdep.h> nor <init-arch.h>.
35482 (_ZGVeN8vv_pow): Removed.
35483 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
35484 ...
35485 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35486 Don't include <sysdep.h> nor <init-arch.h>.
35487 (_ZGVbN2v_sin): Removed.
35488 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
35489 ...
35490 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35491 Don't include <sysdep.h> nor <init-arch.h>.
35492 (_ZGVbN4v_sin): Removed.
35493 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
35494 ...
35495 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35496 Don't include <sysdep.h> nor <init-arch.h>.
35497 (_ZGVbN8v_sin): Removed.
35498 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
35499 ...
35500 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35501 Don't include <sysdep.h> nor <init-arch.h>.
35502 (_ZGVbN2vvv_sincos): Removed.
35503 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
35504 ...
35505 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35506 Don't include <sysdep.h> nor <init-arch.h>.
35507 (_ZGVdN4vvv_sincos): Removed.
35508 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
35509 ...
35510 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35511 Don't include <sysdep.h> nor <init-arch.h>.
35512 (_ZGVeN8vvv_sincos): Removed.
35513 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
35514 ...
35515 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35516 Don't include <sysdep.h> nor <init-arch.h>.
35517 (_ZGVeN16v_cosf): Removed.
35518 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
35519 ...
35520 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35521 Don't include <sysdep.h> nor <init-arch.h>.
35522 (_ZGVbN4v_cosf): Removed.
35523 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
35524 ...
35525 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35526 Don't include <sysdep.h> nor <init-arch.h>.
35527 (_ZGVdN8v_cosf): Removed.
35528 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
35529 ...
35530 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35531 Don't include <sysdep.h> nor <init-arch.h>.
35532 (_ZGVeN16v_expf): Removed.
35533 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
35534 ...
35535 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35536 Don't include <sysdep.h> nor <init-arch.h>.
35537 (_ZGVbN4v_expf): Removed.
35538 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
35539 ...
35540 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35541 Don't include <sysdep.h> nor <init-arch.h>.
35542 (_ZGVdN8v_expf): Removed.
35543 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
35544 ...
35545 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35546 Don't include <sysdep.h> nor <init-arch.h>.
35547 (_ZGVeN16v_logf): Removed.
35548 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
35549 ...
35550 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35551 Don't include <sysdep.h> nor <init-arch.h>.
35552 (_ZGVbN4v_logf): Removed.
35553 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
35554 ...
35555 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35556 Don't include <sysdep.h> nor <init-arch.h>.
35557 (_ZGVdN8v_logf): Removed.
35558 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
35559 ...
35560 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35561 Don't include <sysdep.h> nor <init-arch.h>.
35562 (_ZGVeN16vv_powf): Removed.
35563 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
35564 ...
35565 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35566 Don't include <sysdep.h> nor <init-arch.h>.
35567 (_ZGVbN4vv_powf): Removed.
35568 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
35569 ...
35570 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35571 Don't include <sysdep.h> nor <init-arch.h>.
35572 (_ZGVdN8vv_powf): Removed.
35573 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
35574 ...
35575 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35576 Don't include <sysdep.h> nor <init-arch.h>.
35577 (_ZGVeN16vvv_sincosf): Removed.
35578 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
35579 ...
35580 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35581 Don't include <sysdep.h> nor <init-arch.h>.
35582 (_ZGVbN4vvv_sincosf): Removed.
35583 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
35584 ...
35585 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35586 Don't include <sysdep.h> nor <init-arch.h>.
35587 (_ZGVdN8vvv_sincosf): Removed.
35588 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
35589 ...
35590 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35591 Don't include <sysdep.h> nor <init-arch.h>.
35592 (_ZGVeN16v_sinf): Removed.
35593 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
35594 ...
35595 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35596 Don't include <sysdep.h> nor <init-arch.h>.
35597 (_ZGVbN4v_sinf): Removed.
35598 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
35599 ...
35600 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35601 Don't include <sysdep.h> nor <init-arch.h>.
35602 (_ZGVdN8v_sinf): Removed.
35603
35604 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35605
35606 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35607 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35608 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35609 s_rint-sse4_1 and s_rintf-sse4_1.
35610 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35611 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35612 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35613 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35614 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35615 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35616 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35617 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35618 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35619 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35620 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
35621 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35622 (__ceil): Removed.
35623 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35624 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
35625 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35626 (__ceilf): Removed.
35627 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35628 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
35629 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35630 (__floor): Removed.
35631 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35632 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
35633 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35634 (__floorf): Removed.
35635 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35636 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
35637 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35638 (__nearbyint): Removed.
35639 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35640 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
35641 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35642 (__nearbyintf): Removed.
35643 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35644 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
35645 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35646 (__rint): Removed.
35647 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35648 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
35649 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35650 (__rintf): Removed.
35651
35652 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35653
35654 * sysdeps/i386/start.S (_start): Check Check PIC instead of
35655 SHARED. Avoid dynamic relocation against main in static PIE.
35656
35657 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35658
35659 [BZ #21815]
35660 * elf/Makefile (CFLAGS-tst-prelink.c): New.
35661 (LDFLAGS-tst-prelink): Likewise.
35662
35663 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35664
35665 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35666 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35667 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35668 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35669 (INTERNAL_SYSCALL_NCS): Likewise.
35670 (LOADARGS_1): Likewise.
35671 (LOADARGS_5): Likewise.
35672 (RESTOREARGS_1): Likewise.
35673 (RESTOREARGS_5): Likewise.
35674
35675 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35676
35677 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35678 (MEMPCPY_SYMBOL): Likewise.
35679 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35680 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35681 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35682 in libc.a.
35683 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35684 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35685 Likewise.
35686 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35687 (__hidden_ver1): Don't use in libc.a.
35688 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35689 (__mempcpy): Don't create a weak alias in libc.a.
35690 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35691 libc.a.
35692 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35693 (__hidden_ver1): Don't use in libc.a.
35694
35695 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35696
35697 * config.make.in (have-insert): New.
35698 * configure.ac (libc_cv_insert): New. Set to yes if linker
35699 supports INSERT in linker script.
35700 (AC_SUBST(libc_cv_insert): New.
35701 * configure: Regenerated.
35702 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35703 if $(have-insert) == yes.
35704
35705 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35706
35707 * elf/Makefile (tests): Add vismain only if
35708 $(have-protected-data) == yes.
35709 (tests-pie): Likewise.
35710
35711 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35712
35713 [BZ #21871]
35714 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35715 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35716
35717 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35718
35719 [BZ #21790]
35720 * sysdeps/i386/i586/memset.S
35721 (__memset_zero_constant_len_parameter): Removed.
35722 * sysdeps/i386/i686/memset.S
35723 (__memset_zero_constant_len_parameter): Likewise.
35724 * sysdeps/i386/i686/multiarch/memset_chk.S
35725 (__memset_zero_constant_len_parameter): Likewise.
35726 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35727 Likewise.
35728
35729 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35730
35731 * stdlib/getentropy.c (getentropy): Change return type to int.
35732
35733 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35734
35735 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35736
35737 2017-08-03 Joseph Myers <joseph@codesourcery.com>
35738
35739 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35740 u_intN_t.
35741 * math/s_nexttowardf.c (__nexttowardf): Likewise.
35742 * sysdeps/generic/math_private.h (ieee_double_shape_type):
35743 Likewise.
35744 (ieee_float_shape_type): Likewise.
35745 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35746 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35747 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35748 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35749 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35750 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35751 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35752 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35753 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35754 Likewise.
35755 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35756 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35757 (__ieee754_yn): Likewise.
35758 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35759 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35760 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35761 Likewise.
35762 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35763 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35764 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35765 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35766 (__erfc): Likewise.
35767 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35768 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35769 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35770 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35771 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35772 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35773 Likewise.
35774 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35775 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35776 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35777 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35778 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35779 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35780 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35781 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35782 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35783 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35784 (__issignaling): Likewise.
35785 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35786 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35787 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35788 Likewise.
35789 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35790 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35791 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35792 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35793 Likewise.
35794 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35795 Likewise.
35796 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35797 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35798 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35799 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35800 (__erfcf): Likewise.
35801 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35802 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35803 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35804 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35805 Likewise.
35806 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35807 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35808 Likewise.
35809 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35810 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35811 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35812 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35813 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35814 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35815 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35816 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35817 Likewise.
35818 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35819 Likewise.
35820 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35821 Likewise.
35822 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35823 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35824 Likewise.
35825 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35826 Likewise.
35827 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35828 (__ieee754_ynl): Likewise.
35829 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35830 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35831 Likewise.
35832 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35833 Likewise.
35834 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35835 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35836 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35837 Likewise.
35838 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35839 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35840 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35841 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35842 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35843 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35844 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35845 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35846 Likewise.
35847 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35848 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35849 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35850 Likewise.
35851 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35852 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35853 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35854 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35855 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35856 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35857 Likewise.
35858 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35859 Likewise.
35860 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35861 Likewise.
35862 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35863 Likewise.
35864 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35865 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35866 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35867 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35868 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35869 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35870 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35871 Likewise.
35872 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35873 Likewise.
35874 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35875 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35876 Likewise.
35877 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35878 (__ieee754_remainderl): Likewise.
35879 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35880 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35881 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35882 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35883 Likewise.
35884 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35885 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35886 Likewise.
35887 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35888 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35889 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35890 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35891 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35892 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35893 Likewise.
35894 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35895 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35896 (__ieee754_y0l): Likewise.
35897 (pzero): Likewise.
35898 (qzero): Likewise.
35899 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35900 (__ieee754_y1l): Likewise.
35901 (pone): Likewise.
35902 (qone): Likewise.
35903 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35904 (__ieee754_ynl): Likewise.
35905 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35906 (__ieee754_lgammal_r): Likewise.
35907 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35908 Likewise.
35909 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35910 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35911 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35912 (__erfcl): Likewise.
35913 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35914 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35915 Likewise.
35916 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35917 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35918 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35919 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35920 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35921 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35922 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35923 Likewise.
35924 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35925 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35926 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35927 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35928 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35929 Likewise.
35930 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35931 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35932 Likewise.
35933 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35934 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35935 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35936 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35937 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35938
35939 2017-08-03 Florian Weimer <fweimer@redhat.com>
35940
35941 [BZ #21885]
35942 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35943 on memory allocation failure.
35944
35945 2017-08-03 Alan Modra <amodra@gmail.com>
35946
35947 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35948 tst-tlsopt-powerpc.c with function name change and no test harness.
35949 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35950 Call tls_get_addr_opt_test.
35951 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35952 (modules-names): Add mod-tlsopt-powerpc.
35953 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35954 (tst-tlsopt-powerpc): Depend on .so.
35955 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35956 define. Expand use in TLS_GD and TLS_LD.
35957
35958 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35959
35960 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35961 function.
35962 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35963
35964 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35965
35966 [BZ #21686]
35967 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35968 comparing size with that of double.
35969 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35970 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35971 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35972 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35973 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35974 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35975 unsigned __int128 types.
35976
35977 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35978
35979 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35980 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35981 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35982 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35983 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35984
35985 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35986
35987 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35988
35989 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35990
35991 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35992 of SHARED.
35993 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35994 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35995 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35996 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35997 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35998 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35999 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
36000
36001 2017-08-02 Joseph Myers <joseph@codesourcery.com>
36002
36003 [BZ #21685]
36004 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
36005 bit-field expressions passed to sizeof or typeof.
36006 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36007 (__TGMATH_F128): Likewise.
36008 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36009 (__TGMATH_CF128): Likewise.
36010 (__TGMATH_UNARY_REAL_ONLY): Likewise.
36011 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
36012 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
36013 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
36014 (__TGMATH_BINARY_REAL_ONLY): Likewise.
36015 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
36016 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
36017 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
36018 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
36019 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
36020 (__TGMATH_UNARY_REAL_IMAG): Likewise.
36021 (__TGMATH_UNARY_IMAG): Likewise.
36022 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
36023 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36024 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
36025 type.
36026 (define_vars_for_type): Handle bit_field type specially.
36027 (Tests.__init__): Declare structure with bit-field element.
36028
36029 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
36030
36031 [BZ #21791]
36032 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
36033 (MEMCPY_CHK): Define only if SHARED is defined.
36034 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
36035 Likewise.
36036 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
36037 Likewise.
36038
36039 See ChangeLog.18 for earlier changes.