]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Update syscall-names.list for Linux 5.1.
[thirdparty/glibc.git] / ChangeLog
1 2019-05-07 Joseph Myers <joseph@codesourcery.com>
2
3 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4 version to 5.1.
5 (clock_adjtime64) New syscall.
6 (clock_getres_time64) Likewise.
7 (clock_gettime64) Likewise.
8 (clock_nanosleep_time64) Likewise.
9 (clock_settime64) Likewise.
10 (futex_time64) Likewise.
11 (io_pgetevents_time64) Likewise.
12 (io_uring_enter) Likewise.
13 (io_uring_register) Likewise.
14 (io_uring_setup) Likewise.
15 (mq_timedreceive_time64) Likewise.
16 (mq_timedsend_time64) Likewise.
17 (pidfd_send_signal) Likewise.
18 (ppoll_time64) Likewise.
19 (pselect6_time64) Likewise.
20 (recvmmsg_time64) Likewise.
21 (rt_sigtimedwait_time64) Likewise.
22 (sched_rr_get_interval_time64) Likewise.
23 (semtimedop_time64) Likewise.
24 (timer_gettime64) Likewise.
25 (timer_settime64) Likewise.
26 (timerfd_gettime64) Likewise.
27 (timerfd_settime64) Likewise.
28 (utimensat_time64) Likewise.
29
30 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
31 version to 9 branch.
32
33 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
34
35 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
36 __memmove_thunderx2 to the list of implementations
37 * sysdeps/aarch64/multiarch/memmove.c: Likewise
38 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
39 (__memmove_thunderx2): Rewritten using SIMD ld/st
40 (__memcpy_thunderx2): Fixed handling overlapping cases.
41 Used ldp/stp instead of ldr/str if possible. Made loops
42 tails branchless.
43
44 2019-05-03 Florian Weimer <fweimer@redhat.com>
45
46 * misc/tst-tsearch.c (walk_tree): Add more error checking.
47
48 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
49
50 [BZ #24506]
51 * elf/tst-pldd.c (in_str_list): New function.
52 (do_test): Add default names for ld and libc as one option.
53
54 2019-05-02 Florian Weimer <fweimer@redhat.com>
55
56 misc: Add twalk_r function.
57 * include/search.h (__twalk_r): Declare.
58 * manual/examples/twalk.c: New file.
59 * manual/search.texi (Tree Search Function): Document twalk_r.
60 * misc/Versions (2.30): Export twalk_r.
61 (GLIBC_PRIVATE): Export __twalk_r.
62 * misc/search.h [__USE_GNU] (twalk_r): Declare.
63 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
64 (twalk_r): Add weak alias.
65 * misc/tst-tsearch.c (struct walk_trace_element): Define.
66 (walk_trace): New variable.
67 (struct twalk_with_twalk_r_closure): Define.
68 (twalk_with_twalk_r_action): New function.
69 (twalk_with_twalk_r): Likewise.
70 (walk_action): Call walk_trace_add.
71 (walk_tree_with): Rename from walk_tree. Add walk argument.
72 (walk_tree): New function.
73 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
74 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
75 Likewise.
76 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
77 Likewise.
78 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
79 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
80 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
81 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
82 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
83 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
84 Likewise.
85 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
86 Likewise.
87 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
88 Likewise.
89 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
90 (GLIBC_2.30): Likewise.
91 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
92 (GLIBC_2.30): Likewise.
93 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
94 (GLIBC_2.30): Likewise.
95 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
96 (GLIBC_2.30): Likewise.
97 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
98 Likewise.
99 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
100 (GLIBC_2.30): Likewise.
101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
102 (GLIBC_2.30): Likewise.
103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
104 (GLIBC_2.30): Likewise.
105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
106 (GLIBC_2.30): Likewise.
107 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
108 Likewise.
109 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
110 Likewise.
111 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
112 Likewise.
113 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
114 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
115 Likewise.
116 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
117 Likewise.
118 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
119 Likewise.
120 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
121 Likewise.
122
123 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
124
125 Make mktime etc. compatible with __time64_t
126 Keep these functions compatible with Gnulib while adding
127 __time64_t support. The basic idea is to move private API
128 declarations from include/time.h to time/mktime-internal.h, since
129 the former file cannot easily be shared with Gnulib whereas the
130 latter can.
131 Also, do some other minor cleanup while in the neighborhood.
132 * include/time.h: Include stdbool.h, time/mktime-internal.h.
133 (__mktime_internal): Move this prototype to time/mktime-internal.h,
134 since Gnulib needs it.
135 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
136 Move these macros to time/mktime-internal.h, since Gnulib needs them.
137 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
138 (in_time_t_range): New static function.
139 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
140 so that glibc users are not tempted to use __time64_t.
141 * time/mktime-internal.h: Rewrite so that it does both glibc
142 and Gnulib work. Include time.h if not _LIBC.
143 (mktime_offset_t) [!_LIBC]: Define for gnulib.
144 (__time64_t): New type or macro, moved here from
145 posix/bits/types.h.
146 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
147 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
148 from include/time.h.
149 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
150 New macros, taken from GNulib.
151 (__mktime_internal): New prototype, moved here from include/time.h.
152 * time/mktime.c (mktime_min, mktime_max, convert_time)
153 (ranged_convert, __mktime_internal, __mktime64):
154 * time/timegm.c (__timegm64):
155 Use __time64_t, not time_t.
156 * time/mktime.c: Stop worrying about whether time_t is floating-point.
157 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
158 Rename from mktime.
159 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
160 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
161 for libc_hidden_def.
162 Include errno.h.
163 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
164 Rename from timegm.
165 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
166
167 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
168
169 [BZ #19444]
170 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
171 from `-Wmaybe-uninitialized'.
172 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
173
174 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
175
176 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
177 function.
178 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
179 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
180 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
181 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
182 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
184 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
186 Remove file.
187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
188 Likewise.
189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
190 Likewise.
191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
192 Likewise.
193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
194 New file.
195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
196 Likewise.
197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
198 Likewise.
199 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
200 Likewise.
201 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
202 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
203 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
204 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
205 Likewise.
206 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
207 Likewise.
208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
209 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
210 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
211 file.
212 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
213 Likewise.
214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
215 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
216 * here.
217 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
218 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
219 s_ceilf-power5+, and s_ceilf-ppc64.
220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
221 file.
222 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
223 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
224 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
225 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
226 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
227 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
228 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
229
230 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
231 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
232 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
233
234 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
235
236 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
237 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
238 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
239 (sem_getvalue): Likewise.
240
241 2019-04-26 Florian Weimer <fweimer@redhat.com>
242
243 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
244 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
245
246 2019-04-26 Florian Weimer <fweimer@redhat.com>
247
248 Makeconfig: Move -Wl,-rpath-link options before library references.
249 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
250 (link-libc): Remove $(link-libc-rpath-link).
251
252 2019-04-25 Florian Weimer <fweimer@redhat.com>
253
254 * Makeconfig (+link-pie-before-libc): Remove $(CC).
255 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
256 (+link-static-before-libc): Remove $(CC).
257 (+link-static, +link-static-tests): Add $(CC).
258 (+link-before-libc): Remove $(CC).
259 (+link, +link-pie, +link-pie-printers): Add $(CC).
260
261 2019-04-26 Florian Weimer <fweimer@redhat.com>
262
263 * Makeconfig (+link-pie-before-libc): Remove $(CC).
264 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
265 (+link-static-before-libc): Remove $(CC).
266 (+link-static, +link-static-tests): Add $(CC).
267 (+link-before-libc): Remove $(CC).
268 (+link, +link-pie, +link-pie-printers): Add $(CC).
269
270 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
271
272 [BZ#24484]
273 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
274
275 2019-04-25 Florian Weimer <fweimer@redhat.com>
276
277 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
278 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
279 (bench-link-targets): New variable.
280 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
281
282 2019-04-25 Florian Weimer <fweimer@redhat.com>
283
284 Also enable BIND_NOW for programs if --enable-bind-now.
285 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
286 (+link-pie): Use $(link-extra-flags).
287 (+link-static): Likewise.
288 [! $(build-pie-default)] (+link): Likewise.
289 * manual/install.texi (Configuring and compiling): Update
290 --enable-bind-now description.
291 * INSTALL: Regenerated.
292
293 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
294
295 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
296 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
297
298 2019-04-24 Mike Frysinger <vapier@gentoo.org>
299
300 [BZ #18465]
301 * malloc/Makefile (others): Add memusagestat.
302 ($(objpfx)memusagestat): Delete rule.
303 (LDLIBS-memusagestat): New variable.
304
305 2019-04-24 Florian Weimer <fweimer@redhat.com>
306
307 * locale/Makefile (tests-special): Guard setting by
308 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
309 to run while cross-compiling.
310
311 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
312
313 [BZ #18035]
314 * elf/Makefile (tests-container): Add tst-pldd.
315 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
316 (E(find_maps)): Avoid use alloca, use default read file operations
317 instead of explicit LFS names, and fix infinite loop.
318 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
319 (get_process_info): Use _Static_assert instead of assert, use default
320 directory operations instead of explicit LFS names, and free some
321 leadek pointers.
322 * elf/tst-pldd.c: New file.
323
324 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
325
326 * malloc/arena.c (do_set_mallopt_check): Removed.
327
328 2019-04-23 Florian Weimer <fweimer@redhat.com>
329
330 locale: Add LOCPATH diagnostics to the locale program.
331 * locale/programs/locale.c (setlocale_failed): New variable.
332 (try_setlocale): New function.
333 (quote_string): Likewise.
334 (setlocale_diagnostics): Likewise.
335 (main): Call try_setlocale instead of setlocale. Call
336 setlocale_diagnostics.
337 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
338 (tst-locale-locpath.out): New target.
339 * locale/tst-locale-locpath.sh: New file.
340
341 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
342
343 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
344 to 2.30 notes.
345
346 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
347
348 [BZ #23741]
349 * malloc/hooks.c (malloc_check, realloc_check): Use
350 __builtin_add_overflow on overflow check and adapt to
351 checked_request2size change.
352 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
353 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
354 allocation size to PTRDIFF_MAX.
355 (REQUEST_OUT_OF_RANGE): Remove macro.
356 (checked_request2size): Change to inline function and limit maximum
357 requested size to PTRDIFF_MAX.
358 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
359 maximum allocation size to PTRDIFF_MAX.
360 (_mid_memalign): Use _int_memalign call for overflow check.
361 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
362 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
363 limit maximum requested size to PTRDIFF_MAX.
364 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
365 valloc, pvalloc): Add __attribute_alloc_size__.
366 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
367 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
368 larger than PTRDIFF_MAX.
369 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
370 around tests of malloc with negative sizes.
371 * malloc/tst-posix_memalign.c (do_test): Likewise.
372 * malloc/tst-pvalloc.c (do_test): Likewise.
373 * malloc/tst-valloc.c (do_test): Likewise.
374 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
375 with resulting size allocation larger than PTRDIFF_MAX with
376 reallocarray_nowarn.
377 (reallocarray_nowarn): New function.
378 * NEWS: Mention the malloc function semantic change.
379
380 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
381
382 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
383 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
384
385 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
386 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
387 * sysdeps/powerpc/fpu/s_fma.c: New file.
388 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
389
390 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
391 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
392
393 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
394 the magic flag store.
395 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
396 Likewise.
397 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
398 Likewise.
399 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
400 Remove rt_sigreturn call.
401
402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
403 Remove rt_sigreturn call.
404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
405 Likewise.
406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
408
409 * support/Makefile (libsupport-routines): Add support_subprocess,
410 xposix_spawn, xposix_spawn_file_actions_addclose, and
411 xposix_spawn_file_actions_adddup2.
412 (tst-support_capture_subprocess-ARGS): New rule.
413 * support/capture_subprocess.h (support_capture_subprogram): New
414 prototype.
415 * support/support_capture_subprocess.c (support_capture_subprocess):
416 Refactor to use support_subprocess and support_capture_poll.
417 (support_capture_subprogram): New function.
418 * support/tst-support_capture_subprocess.c (write_mode_to_str,
419 str_to_write_mode, test_common, parse_int, handle_restart,
420 do_subprocess, do_subprogram, do_multiple_tests): New functions.
421 (do_test): Add support_capture_subprogram tests.
422 * support/subprocess.h: New file.
423 * support/support_subprocess.c: Likewise.
424 * support/xposix_spawn.c: Likewise.
425 * support/xposix_spawn_file_actions_addclose.c: Likewise.
426 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
427 * support/xspawn.h: Likewise.
428
429 2019-04-17 Mike Gerow <gerow@google.com>
430
431 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
432 groups limit.
433
434 2019-04-11 Florian Weimer <fweimer@redhat.com>
435
436 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
437 domain with empty string.
438 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
439
440 2019-04-11 Florian Weimer <fweimer@redhat.com>
441
442 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
443 comment.
444 (alloc_buffer_next): Change return type to non-const. Update
445 comment.
446
447 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
448
449 * manual/time.texi (Formatting Calendar Time): Add missing percent
450 sign to conversion specifier.
451
452 2019-04-09 Carlos O'Donell <carlos@redhat.com>
453 Kwok Cheung Yeung <kcy@codesourcery.com>
454
455 [BZ #16573]
456 * malloc/mtrace.c: Define prototypes for all hooks.
457 (set_default_hooks): New function.
458 (set_trace_hooks): Likewise.
459 (save_default_hooks): Likewise.
460 (tr_freehook): Use new s*_hooks functions.
461 (tr_mallochook): Likewise.
462 (tr_reallochook): Likewise.
463 (tr_memalignhook): Likewise.
464 (mtrace): Likewise.
465 (muntrace): Likewise.
466
467 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
468
469 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
470 (generic_stpcpy): New function.
471 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
472 (generic_stpncpy): New function.
473 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
474 (generic_strcat): New function.
475 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
476 (generic_strcpy): New function.
477 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
478 (STUPID_STRNCAT): Remove function.
479 (generic_strncat): New function.
480 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
481 (STUPID_STRNCPY): Remove function.
482 (generic_strncpy): New function.
483 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
484 (generic_strnlen): New function.
485 (memchr_strnlen): New function.
486 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
487 (memchr_strlen): Likewise.
488
489 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
490
491 * benchtests/bench-strstr.c (input): Add realistic input text.
492 (stupid_strstr): Remove function.
493 (basic_strstr): Add function.
494 (twoway_strstr): Add function.
495 (do_one_test): Add result checking.
496 (do_test): Use new input text. Remove accidental early matches.
497 (test_main): Improve range of tests, reduce unaligned cases.
498
499 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
500
501 * benchtests/bench-memmem.c (simple_memmem): Remove function.
502 (basic_memmem): Add function.
503 (twoway_memmem): Add function.
504
505 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
506
507 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
508 * benchtests/bench-malloc-thread.c: Likewise.
509 * benchtests/bench-skeleton.c: Likewise.
510 * benchtests/bench-strtod.c: Likewise.
511 * benchtests/bench-timing.h: Likewise.
512
513 2019-04-08 Florian Weimer <fweimer@redhat.com>
514
515 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
516 definitions.
517 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
518 RES_INSECURE2 security checks.
519 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
520 RES_INSECURE2 handling.
521
522 2019-04-08 Florian Weimer <fweimer@redhat.com>
523
524 resolv: Remove support for RES_USE_INET6 and the inet6 option.
525 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
526 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
527 GETHOSTBYNAME.
528 * resolv/Makefile (tests): Remove tst-res_use_inet6.
529 (tests-internal): Update justification for tst-resolv-res_init,
530 tst-resolv-res_init-thread.
531 (tst-res_use_inet6): Remove target.
532 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
533 * resolv/res_debug.c (p_option): Remove "inet6" support.
534 * resolv/res_init.c (res_setoptions): Likewise.
535 * resolv/res_use_inet6.h: Remove file.
536 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
537 definition.
538 (res_use_inet6): Always return false.
539 * resolv/resolv.h (RES_USE_INET6): Remove definition.
540 * resolv/resolv_context.h: Adjust file comment.
541 (struct resolv_context): Update comment on __next field.
542 (__resolv_context_put): Update comment.
543 * resolv/tst-res_use_inet6.c: Remove file.
544 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
545 "inet6" support.
546 (test_cases): Adjust test case.
547 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
548 (thread_byname2_af_inet6): Use old byname_inet6 code.
549 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
550 (gai): Remove do_inet6 argument.
551 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
552 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
553 (thread_gai_unspec_inet6): Remove functions.
554 (do_test): Adjust thread_funcs.
555 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
556 RES_USE_INET6 flag.
557 (gaih_inet): Do not disable RES_USE_INET6 flag.
558
559 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
560
561 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
562 and remove redundant code.
563
564 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
565
566 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
567 New rule.
568 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
569 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
570 Likewise.
571 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
572 Likewise.
573 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
574 Likewise.
575 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
576 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
577 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
578 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
579 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
580 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
581 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
582 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
583 wcsrchr-power7.
584 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
585 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
586 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
587 Remove wcsrchr optimizations.
588 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
589
590 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
591 the loop unroll.
592
593 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
594 New rule.
595 * sysdeps/powerpc/power6/wcschr.c: Remove file.
596 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
597 Likewise.
598 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
599 Likewise.
600 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
601 Likewise.
602 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
603 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
604 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
605 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
606 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
607 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
608 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
609 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
610 wcschr-power7.
611 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
612 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
613 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
614 Remove wcschr optimizations.
615 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
616
617 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
618 the loop unroll.
619
620 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
621 New rule.
622 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
623 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
624 Likewise.
625 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
626 Likewise.
627 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
628 Likewise.
629 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
630 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
631 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
632 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
633 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
634 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
635 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
636 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
637 wcscpy-power7.
638 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
639 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
640 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
641 Remove wcscpy optimizations.
642 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
643
644 * include/loop_unroll.h: New file.
645 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
646 besides generic implementation.
647
648 2019-04-03 DJ Delorie <dj@redhat.com>
649
650 * time/tst-strftime3.c (tm_to_printed): Disable warning about
651 snprintf truncating output.
652
653 2019-04-02 DJ Delorie <dj@redhat.com>
654
655 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
656 warning.
657
658 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
659
660 [BZ #22964]
661 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
662 era.
663 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
664 (mkreftable): Add rules for the new Japanese era and the new dates.
665
666 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
667 Rafal Luzynski <digitalfreak@lingonborough.com>
668
669 * time/tst-strftime2.c (date_t): Explicitly define the type.
670 (dates): Use natural month and year numbers to express a date.
671 (is_before): New function to compare dates.
672 (mkreftable): Minor improvements to simplify maintenance.
673 (do_test): Reflect the changes in dates array.
674
675 [BZ #24293]
676 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
677 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
678 * time/tst-strftime2.c (locales): Likewise.
679 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
680 2010-04-01, and 2011-04-01.
681 (mkreftable): Add rules for the new locales and the new dates.
682
683 2019-04-01 Carlos O'Donell <carlos@redhat.com>
684
685 * localedata/locales/ja_JP: Add comments to era entries.
686
687 2019-04-01 DJ Delorie <dj@redhat.com>
688
689 [BZ #24394]
690 * time/strptime_l.c (%Ey): Fix fencepost error.
691 * time/tst-strftime3.c: New.
692 * time/Makefile (tests): Add tst-strftime3.
693
694 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
695
696 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
697 conditional branch to DIVBYZERO. Fix unwind info.
698 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
699 excb after conditional branch to $powerof2. Add missing unop
700 instructions and .align directives and reorder instructions to
701 match __divqu.
702
703 2019-04-01 Richard Henderson <rth@twiddle.net>
704
705 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
706 Do not redefine.
707 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
708 Do not redefine.
709
710 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
711
712 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
713 $libc_cv_riscv_float_abi in `test' invocation.
714 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
715
716 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
717
718 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
719 asm with builtin.
720 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
721 Likewise.
722 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
723 (_GET_SI_FPSCR): Likewise.
724 (_SET_SI_FPSCR): Likewise.
725
726 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
727
728 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
729 clang 2.8.
730 (signbit): Use builtin for clang 3.3.
731 (isinf): Use builtin for clang 3.7.
732
733 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
734
735 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
736
737 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
738
739 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
740 quote in printf.
741
742 2019-03-25 Mike Crowe <mac@mcrowe.com>
743
744 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
745 pthread_rwlock_timedrdlock with calls to
746 pthread_rwlock_timedwrlock to ensure that the latter is tested
747 too. Use new function name in diagnostic messages too.
748
749 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
750 (do_test) Use libsupport test macros rather than hand-coded
751 conditionals and error messages. Ensure that sem_init returns zero
752 rather than not -1. Use <support/test-driver.c> rather than
753 test-skeleton.c.
754
755 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
756 test macros rather than hand-coded conditionals and error messages.
757 Use <support/test-driver.c> rather than test-skeleton.c.
758
759 2019-03-25 Joseph Myers <joseph@codesourcery.com>
760
761 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
762
763 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
764 (NT_MIPS_MSA): Likewise.
765
766 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
767
768 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
769 * benchtests/README: Update description.
770 * benchtests/bench-timing.h: Default to hp-timing.
771 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
772 HP_TIMING_PRINT): Remove.
773 (HP_TIMING_NOW): Add generic implementation.
774 (hp_timing_t): Change to uint64_t.
775
776 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
777 HP_TIMING_INLINE.
778 * nptl/descr.h: Likewise.
779 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
780 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
781 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
782 Abstract hp-timing usage with RTLD_* macros.
783 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
784 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
785 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
786 HP_TIMING_NONAVAIL): Likewise.
787 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
788 Likewise.
789 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
790 HP_SMALL_TIMING_AVAIL): Likewise.
791 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
792 HP_SMALL_TIMING_AVAIL): Likewise.
793 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
794 HP_SMALL_TIMING_AVAIL): Likewise.
795 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
796 HP_SMALL_TIMING_AVAIL): Likewise.
797 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
798 Likewise.
799 * sysdeps/generic/hp-timing-common.h: Update comment with
800 HP_TIMING_AVAIL removal.
801
802 * include/random-bits.h: New file.
803 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
804 (__res_context_mkquery): Remove usage hp-timing usage and replace with
805 random_bits.
806 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
807 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
808 Likewise.
809
810 * include/libc-internal.h (__get_clockfreq): Remove prototype.
811 * rt/Makefile (clock-routines): Remove get_clockfreq.
812 * rt/get_clockfreq.c: Remove file.
813 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
814 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
815 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
816 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
817 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
818
819 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
820 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
821 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
822 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
823 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
824
825 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
826 pthread_clock_settime.
827 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
828 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
829 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
830 * elf/rtld.c (_dl_start_final): Likewise.
831 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
832 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
833 Remove.
834 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
835 (_dl_cpuclock_offset): Remove.
836 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
837 cpuclock_offset_ununsed.
838 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
839 cpuclock_offset set.
840 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
841 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
842 * nptl/pthread_clock_gettime.c: Remove file.
843 * nptl/pthread_clock_settime.c: Likewise.
844 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
845 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
846 and CLOCK_PROCESS_CPUTIME_ID support.
847 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
848 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
849 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
850 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
851 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
852 Likewise.
853 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
854
855 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
856
857 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
858 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
859 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
860 New defines.
861 * sysdeps/s390/memmem-arch13.S: New file.
862 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
863 if it is only used as fallback.
864 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
865 * sysdeps/s390/multiarch/ifunc-impl-list.c
866 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
867
868 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
869
870 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
871 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
872 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
873 New defines.
874 * sysdeps/s390/multiarch/ifunc-impl-list.c
875 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
876 * sysdeps/s390/strstr-arch13.S: New file.
877 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
878 if it is only used as fallback.
879 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
880
881 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
882
883 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
884 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
885 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
886 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
887 ifunc selector.
888 * sysdeps/s390/multiarch/ifunc-impl-list.c
889 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
890 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
891 S390_IS_ARCH13_MIE3): New defines.
892
893 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
894
895 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
896 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
897 * sysdeps/s390/configure.ac: Add checks for arch13 support.
898 * sysdeps/s390/configure: Regenerated.
899
900 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
901
902 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
903 Add vxe2, vxp, dflt, sort flags.
904 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
905 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
906 capabilities.
907 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
908 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
909 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
910 HWCAP_S390_DFLT): Define.
911
912 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
913
914 [BZ #24372]
915 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
916 of compiler warning.
917 * locale/programs/ld-collate.c (collate_output): Likewise.
918
919 2019-03-21 DJ Delorie <dj@redhat.com>
920
921 [BZ #24372]
922 * iconv/iconvconfig.c (write_output): Replace floating point math
923 with integer math to avoid imprecise results.
924 * locale/programs/ld-collate.c (collate_output): Likewise.
925
926 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
927
928 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
929 Add HWCAP_S390_VX and HWCAP_S390_VXE.
930
931 2019-03-20 mansayk <6688000@gmail.com>
932
933 [BZ #24296]
934 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
935 (abday): Likewise, but remove the trailing dots.
936
937 2019-03-19 Joseph Myers <joseph@codesourcery.com>
938
939 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
940 macro.
941 (HWCAP_PACA): Likewise.
942 (HWCAP_PACG): Likewise.
943 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
944 Increase to 32.
945 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
946
947 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
948
949 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
950 should be handled.
951
952 2019-03-15 Joseph Myers <joseph@codesourcery.com>
953
954 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
955 version to 5.0.
956 (old_getpagesize): New syscall.
957
958 2019-03-15 Felix Yan <felixonmars@archlinux.org>
959
960 [BZ #24293]
961 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
962 * localedata/locales/cmn_TW (era): Likewise.
963 * localedata/locales/hak_TW (era): Likewise.
964 * localedata/locales/lzh_TW (era): Likewise.
965 * localedata/locales/nan_TW (era): Likewise.
966
967 2019-03-14 Florian Weimer <fweimer@redhat.com>
968
969 Remove obsolete, never-implemented XSI STREAMS declarations.
970 * manual/terminal.texi (Allocation): Remove portability note and
971 adjust example.
972 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
973 _SC_STREAMS.
974 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
975 * sysdeps/unix/inet/Subdirs (streams): Remove.
976 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
977 (conformtest-headers-UNIX98): Likewise.
978 (conformtest-headers-XOPEN2K): Likewise.
979 (conformtest-headers-POSIX2008): Likewise.
980 * posix/compat-streams.c: New file.
981 * posix/Makefile (routines): Add it.
982 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
983 getpmsg, isastream, putmsg, putpmsg.
984 (GLIBC_2.30): New section.
985 * bits/stropts.h: Remove file.
986 * bits/xtitypes.h: Likewise.
987 * conform/data/stropts.h-data: Likewise.
988 * include/stropts.h: Likewise.
989 * include/sys/stropts.h: Likewise.
990 * include/xtitypes.h: Likewise.
991 * streams/Makefile: Likewise.
992 * streams/fattach.c: Likewise.
993 * streams/fdetach.c: Likewise.
994 * streams/getmsg.c: Likewise.
995 * streams/getpmsg.c: Likewise.
996 * streams/isastream.c: Likewise.
997 * streams/putmsg.c: Likewise.
998 * streams/putpmsg.c: Likewise.
999 * streams/stropts.h: Likewise.
1000 * streams/sys/stropts.h: Likewise.
1001 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1002 * sysdeps/s390/bits/xtitypes.h: Likewise.
1003 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1004 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1005 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1006 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1007 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1008 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1009 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1010 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1011 * sysdeps/x86/bits/xtitypes.h: Likewise.
1012
1013 2019-03-14 Florian Weimer <fweimer@redhat.com>
1014
1015 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1016 libnss_files.
1017 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1018 but not with libnss_files.
1019 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1020
1021 2019-03-14 Zack Weinberg <zackw@panix.com>
1022
1023 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1024 Specify encoding="utf-8" when opening headers to check.
1025
1026 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1027
1028 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1029 version to 5.0.
1030 (Context.checkout_tar): Handle variable major version for Linux
1031 kernel.
1032
1033 2019-03-13 Florian Weimer <fweimer@redhat.com>
1034
1035 [BZ #24047]
1036 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1037
1038 2019-03-13 Zack Weinberg <zackw@panix.com>
1039
1040 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1041 Move to stdlib.
1042 * include/inttypes.h: Adjust to match.
1043 * include/stdint.h: New wrapper.
1044
1045 2019-03-13 Zack Weinberg <zackw@panix.com>
1046
1047 * scripts/check-obsolete-constructs.py: New test script.
1048 * scripts/check-installed-headers.sh: Remove tests for
1049 obsolete typedefs, superseded by check-obsolete-constructs.py.
1050 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1051 as a special test. Update commentary.
1052 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1053 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1054 Update commentary.
1055 * posix/sys/types.h (__u_intN_t): Remove.
1056 (u_int8_t): Typedef using __uint8_t.
1057 (u_int16_t): Typedef using __uint16_t.
1058 (u_int32_t): Typedef using __uint32_t.
1059 (u_int64_t): Typedef using __uint64_t.
1060
1061 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1062
1063 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1064 call _dl_procinfo.
1065 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1066 Ignore types other than AT_HWCAP.
1067 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1068 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1069 Likewise.
1070 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1071 in the case of falling back to generic output mechanism.
1072 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1073 Likewise.
1074
1075 2019-03-12 Florian Weimer <fweimer@redhat.com>
1076
1077 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1078
1079 2019-03-12 Florian Weimer <fweimer@redhat.com>
1080
1081 [BZ #24047]
1082 resolv: Enable full ICMP errors for UDP DNS sockets
1083 * resolv/res_enable_icmp.c: New file.
1084 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1085 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1086 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1087 socket.
1088
1089 2019-03-11 Mao Han <han_mao@c-sky.com>
1090
1091 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1092 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1093
1094 2019-03-11 Mao Han <han_mao@c-sky.com>
1095
1096 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1097 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1098 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1099
1100 2019-03-11 Mao Han <han_mao@c-sky.com>
1101
1102 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1103 directly.
1104 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1105 definition.
1106
1107 2019-03-11 Mao Han <han_mao@c-sky.com>
1108
1109 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1110 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1111 in mcontext_t
1112
1113 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1114
1115 [BZ #24307]
1116 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1117 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1118 Unicode 12.0.0.
1119 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1120 * localedata/unicode-gen/PropList.txt: Likewise.
1121 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1122 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1123 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1124 * localedata/charmaps/UTF-8: Regenerate.
1125 * localedata/locales/i18n_ctype: Likewise.
1126 * localedata/locales/tr_TR: Likewise.
1127 * localedata/locales/translit_circle: Likewise.
1128 * localedata/locales/translit_cjk_compat: Likewise.
1129 * localedata/locales/translit_combining: Likewise.
1130 * localedata/locales/translit_compat: Likewise.
1131 * localedata/locales/translit_font: Likewise.
1132 * localedata/locales/translit_fraction: Likewise.
1133
1134 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1135
1136 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1137 than after operators.
1138 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1139 (setitimer_locked): Likewise.
1140 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1141 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1142 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1143 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1144 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1145 (PPC_CPU_SUPPORTED): Likewise.
1146 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1147 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1148 (stat_overflow): Likewise.
1149 (statfs_overflow): Likewise.
1150 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1151 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1152 (eq_ttyname_r): Likewise.
1153 (run_chroot_tests): Likewise.
1154
1155 2019-03-07 Florian Weimer <fweimer@redhat.com>
1156
1157 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1158 header check.
1159
1160 2019-03-07 Martin Liska <mliska@suse.cz>
1161
1162 * math/Makefile: Change location where math-vector-fortran.h is
1163 installed.
1164 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1165 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1166 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1167 * scripts/check-installed-headers.sh: Skip Fortran header files.
1168 * scripts/check-wrapper-headers.py: Likewise.
1169
1170 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1171
1172 * nptl/nptl-init.c (__have_futex_clock_realtime,
1173 __have_futex_clock_realtime): Remove definition.
1174 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1175 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1176 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1177 __ASSUME_FUTEX_CLOCK_REALTIME support.
1178 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1179 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1180 * sysdeps/unix/sysv/linux/kernel-features.h
1181 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1182 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1183 Adjust comment.
1184
1185 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1186
1187 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1188 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1189 __GI___wcscpy and wcscpy.
1190
1191 2019-03-04 Florian Weimer <fweimer@redhat.com>
1192
1193 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1194 declaration.
1195 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1196 defined.
1197
1198 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1199
1200 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1201 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1202
1203 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1204
1205 [BZ #24162]
1206 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1207 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1208
1209 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1210
1211 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1212 tests.
1213 (do_test): Likewise.
1214 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1215 (do_test_call_varg): Likewise.
1216 (do_test_call_rarg): Likewise.
1217 * sysdeps/ieee754/ldbl-opt/Makefile
1218 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1219 tst-nldbl-error.
1220 ($(objpfx)tst-nldbl-warn.c): New rule.
1221 ($(objpfx)tst-nldbl-error.c): Likewise.
1222 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1223 New variables.
1224
1225 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1226
1227 [BZ #23984]
1228 * include/bits/error-ldbl.h: New file.
1229 * include/error.h: Include stdarg.h. Declare internal functions
1230 __error_internal and __error_at_line_internal.
1231 * misc/Makefile (headers): Add bits/error-ldbl.h.
1232 * misc/bits/error-ldbl.h: New file.
1233 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1234 avoid the inclusion of bits/error.h.
1235 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1236 and __nldbl_error_at_line.
1237 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1238 (__nldbl_error, __ndlbl_error_at_line): New functions.
1239 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1240 Redirect error and error_at_line.
1241 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1243 Likewise.
1244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1245 Likewise.
1246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1247 Likewise.
1248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1249 Likewise.
1250 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1251 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1252 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1253
1254 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1255
1256 [BZ #23984]
1257 * include/bits/err-ldbl.h: New file.
1258 * include/err.h: Add prototypes for the internal functions:
1259 __vwarnx_internal and __vwarn_internal.
1260 * misc/Makefile (headers): Add bits/err-ldbl.h.
1261 * misc/bits/err-ldbl.h: New file.
1262 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1263 defined, i.e.: when -mlong-double-64 is in use.
1264 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1265 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1266 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1267 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1268 (VA_CALL): New macro.
1269 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1270 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1271 functions.
1272 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1273 declare prototypes for the new functions.
1274 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1276 Likewise.
1277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1278 Likewise.
1279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1280 Likewise.
1281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1282 Likewise.
1283 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1284 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1285 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1286
1287 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1288
1289 * sysdeps/ieee754/ldbl-opt/Makefile
1290 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1291 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1292 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1293
1294 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1295
1296 [BZ #23983]
1297 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1298 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1299 * argp/bits/argp-ldbl.h: New file.
1300 * include/argp.h: Include stdarg.h. Add prototypes for internal
1301 functions: __argp_error_internal and __argp_failure_internal.
1302 * include/bits/argp-ldbl.h: New file.
1303 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1304 __nldbl_argp_error and __nldbl_argp_failure.
1305 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1306 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1307 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1308 Redirect argp_error and argp_failure calls.
1309 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1311 Likewise.
1312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1313 Likewise.
1314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1315 Likewise.
1316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1317 Likewise.
1318 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1319 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1320 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1321
1322 2019-03-01 Florian Weimer <fweimer@redhat.com>
1323
1324 [BZ #20419]
1325 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1326 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1327 code, to avoid creating an ABI tag note.
1328 (modules-names-nobuild): Add tst-big-note-lib.
1329
1330 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1331
1332 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1333 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1334
1335 2019-03-01 Florian Weimer <fweimer@redhat.com>
1336
1337 [BZ #20271]
1338 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1339 (__netlink_assert_response): Add additional missing newlines.
1340
1341 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1342
1343 * sysdeps/powerpc/powerpc32/dl-machine.c
1344 (__elf_machine_fixup_plt): Use space before '('.
1345 (__process_machine_rela): Likewise.
1346 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1347 Likewise.
1348 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1349 Likewise.
1350 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1351 Likewise.
1352 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1353 (pattern): Likewise.
1354 (delta): Likewise.
1355 (check_result): Likewise.
1356 (check_excepts): Likewise.
1357 (check_op): Likewise.
1358 (fail_xr): Likewise.
1359 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1360 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1361 (SCNHSZ): Likewise.
1362 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1363 Likewise.
1364 (ARGS): Likewise.
1365 (__makecontext): Likewise.
1366 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1367 Likewise.
1368
1369 2019-02-28 Florian Weimer <fweimer@redhat.com>
1370
1371 [BZ #23937]
1372 elf: Add test with a local IFUNC resolver.
1373 * elf/ifuncmain9.c: New file.
1374 * elf/ifuncmain9pic.c: Likewise.
1375 * elf/ifuncmain9picstatic.c: Likewise.
1376 * elf/ifuncmain9pie.c: Likewise.
1377 * elf/ifuncmain9static.c: Likewise.
1378 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1379 ifuncmain9static, ifuncmain9picstatic.
1380 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1381 Add ifuncmain9, ifuncmain9pic.
1382 * elf/Makefile [multi-arch && build-shared && have-fpie]
1383 (ifunc-pie-tests): Add ifuncmain9pie.
1384 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1385 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1386 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1387
1388 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1391 * configure: Regenerated.
1392 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1393
1394 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1395
1396 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1397 symbol as __wcspcy instead of wcscpy.
1398
1399 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1400
1401 * include/stdio.h (__renameat2): New hidden prototype.
1402 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
1403 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
1404 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
1405 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
1406
1407 2019-02-27 Joseph Myers <joseph@codesourcery.com>
1408
1409 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
1410 if statement.
1411
1412 * benchtests/bench-strcpy.c (do_test): Use space before '('.
1413 * benchtests/bench-string.h (cmdline_process_function): Likewise.
1414 * benchtests/bench-strlen.c (do_test): Likewise.
1415 (test_main): Likewise.
1416 * catgets/gencat.c (read_old): Likewise.
1417 * elf/cache.c (load_aux_cache): Likewise.
1418 * iconvdata/bug-iconv8.c (do_test): Likewise.
1419 * math/test-tgmath-ret.c (do_test): Likewise.
1420 * nis/nis_call.c (rec_dirsearch): Likewise.
1421 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1422 * nptl/tst-audit-threads.c (do_test): Likewise.
1423 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
1424 * nss/nss_test1.c (init): Likewise.
1425 * nss/test-netdb.c (test_hosts): Likewise.
1426 * posix/execvpe.c (maybe_script_execute): Likewise.
1427 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
1428 * stdio-common/tst-printf.c (do_test): Likewise.
1429 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
1430 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
1431 * stdlib/qsort.c (STACK_SIZE): Likewise.
1432 * stdlib/test-canon.c (do_test): Likewise.
1433 * stdlib/tst-swapcontext1.c (do_test): Likewise.
1434 * string/memcmp.c (OPSIZ): Likewise.
1435 * string/test-strcpy.c (do_test): Likewise.
1436 (do_random_tests): Likewise.
1437 * string/test-strlen.c (do_test): Likewise.
1438 (test_main): Likewise.
1439 * string/test-strrchr.c (do_test): Likewise.
1440 (do_random_tests): Likewise.
1441 * string/tester.c (test_memrchr): Likewise.
1442 (test_memchr): Likewise.
1443 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
1444 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
1445 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
1446 (read_encoded_value_with_base): Likewise.
1447 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
1448 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
1449 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
1450 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1451 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
1452 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
1453 Likewise.
1454 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
1455 Likewise.
1456 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
1457 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
1458 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
1459 Likewise.
1460 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
1461 Likewise.
1462 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
1463 Likewise.
1464 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1465 Likewise.
1466 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
1467 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
1468 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1469 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
1470 * time/test_time.c (main): Likewise.
1471
1472 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1473
1474 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
1475
1476 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
1477 wmemcpy.
1478
1479 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
1480 wmemcpy.
1481
1482 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1483
1484 * include/wchar.h (__wcscpy): New prototype.
1485 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
1486 (__wcscpy): Route internal symbol to generic implementation.
1487 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
1488 Add internal __wcscpy alias.
1489 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
1490 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
1491 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
1492 * wcsmbs/wcscpy.c (wcscpy): Add
1493 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
1494 use generic implementation.
1495 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
1496
1497 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
1498 wmemset.
1499
1500 * sysdeps/m68k/wcpcpy.c: Remove file.
1501 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1502
1503 2019-02-26 Joseph Myers <joseph@codesourcery.com>
1504
1505 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
1506 than after operators.
1507 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1508 * sysdeps/mach/hurd/getcwd.c
1509 (__hurd_canonicalize_directory_name_internal): Likewise.
1510 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
1511 (pthread_mutex_consistent): Likewise.
1512 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
1513 Likewise.
1514 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
1515 (__pthread_mutex_transfer_np): Likewise.
1516 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
1517 (__pthread_mutex_unlock): Likewise.
1518 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
1519 (mtx_owned_p): Likewise.
1520 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
1521 (pthread_mutexattr_getrobust): Likewise.
1522 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
1523 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1524 Likewise.
1525 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1526 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1527 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1528 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
1529 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1530 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1531 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
1532 Likewise.
1533 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
1534 Likewise.
1535 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
1536 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
1537 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
1538 (____longjmp_chk): Likewise.
1539 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
1540 Likewise.
1541 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1542 (INTERNAL_SYSCALL): Likewise.
1543 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1544 (INTERNAL_SYSCALL): Likewise.
1545 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1546 (__get_clockfreq_via_cpuinfo): Likewise.
1547
1548 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
1549 comments.
1550 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
1551 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
1552 (WORD_COPY_BWD): Likewise.
1553 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1554 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1555 Likewise.
1556 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
1557 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
1558 comment.
1559 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
1560
1561 2019-02-25 Joseph Myers <joseph@codesourcery.com>
1562
1563 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
1564 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
1565 rather than after operators.
1566 * elf/cache.c (print_cache): Likewise.
1567 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
1568 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
1569 * hurd/hurdinit.c (_hurd_setproc): Likewise.
1570 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
1571 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
1572 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
1573 (reauth_proc): Likewise.
1574 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
1575 (__file_name_split_at): Likewise.
1576 (__directory_name_split_at): Likewise.
1577 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1578 * hurd/port2fd.c (_hurd_port2fd): Likewise.
1579 * iconv/gconv_dl.c (do_print): Likewise.
1580 * inet/netinet/in.h (struct sockaddr_in): Likewise.
1581 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
1582 * locale/setlocale.c (new_composite_name): Likewise.
1583 * malloc/memusagestat.c (main): Likewise.
1584 * misc/fstab.c (fstab_convert): Likewise.
1585 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
1586 Likewise.
1587 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
1588 (getgrent_next_file): Likewise.
1589 (internal_getgrnam_r): Likewise.
1590 (internal_getgrgid_r): Likewise.
1591 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
1592 Likewise.
1593 (internal_getgrent_r): Likewise.
1594 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
1595 (getpwent_next_nss): Likewise.
1596 (getpwent_next_file): Likewise.
1597 (internal_getpwnam_r): Likewise.
1598 (internal_getpwuid_r): Likewise.
1599 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
1600 Likewise.
1601 (getspent_next_nss): Likewise.
1602 (internal_getspnam_r): Likewise.
1603 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
1604 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
1605 * string/strchr.c (STRCHR): Likewise.
1606 * string/strchrnul.c (STRCHRNUL): Likewise.
1607 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
1608 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1609 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
1610 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
1611 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
1612 Likewise.
1613 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
1614 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1615 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1616 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
1617 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
1618 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
1619 (open_file): Likewise.
1620 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
1621 (pthread_mutexattr_setprotocol): Likewise.
1622 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1623 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
1624 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1625 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1626 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
1627 Likewise.
1628 (elf_machine_rela): Likewise.
1629 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1630 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1631 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
1632 * sysdeps/posix/rename.c (rename): Likewise.
1633 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
1634 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
1635 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
1636 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
1637 * sysdeps/unix/grantpt.c (grantpt): Likewise.
1638 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
1639 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
1640 Likewise.
1641 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
1642 Likewise.
1643 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
1644 * time/tzfile.c (__tzfile_compute): Likewise.
1645
1646 2019-02-22 Joseph Myers <joseph@codesourcery.com>
1647
1648 * benchtests/bench-memmem.c (simple_memmem): Break lines before
1649 rather than after operators.
1650 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
1651 * crypt/md5.c (md5_finish_ctx): Likewise.
1652 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
1653 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
1654 * elf/cache.c (load_aux_cache): Likewise.
1655 * elf/dl-load.c (open_verify): Likewise.
1656 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
1657 * elf/readelflib.c (process_elf_file): Likewise.
1658 * elf/rtld.c (dl_main): Likewise.
1659 * elf/sprof.c (generate_call_graph): Likewise.
1660 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
1661 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
1662 * hurd/dtable.c (reauth_dtable): Likewise.
1663 * hurd/getdport.c (__getdport): Likewise.
1664 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
1665 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
1666 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
1667 Likewise.
1668 * hurd/hurdioctl.c (fioctl): Likewise.
1669 * hurd/hurdselect.c (_hurd_select): Likewise.
1670 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
1671 (STOPSIGS): Likewise.
1672 * hurd/hurdstartup.c (_hurd_startup): Likewise.
1673 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
1674 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1675 * hurd/msgportdemux.c (msgport_server): Likewise.
1676 * hurd/setauth.c (_hurd_setauth): Likewise.
1677 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
1678 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
1679 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
1680 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
1681 * login/tst-utmp.c (do_check): Likewise.
1682 (simulate_login): Likewise.
1683 * mach/lowlevellock.h (lll_lock): Likewise.
1684 (lll_trylock): Likewise.
1685 * math/test-fenv.c (ALL_EXC): Likewise.
1686 * math/test-fenvinline.c (ALL_EXC): Likewise.
1687 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
1688 * nis/nis_call.c (__do_niscall3): Likewise.
1689 * nis/nis_callback.c (cb_prog_1): Likewise.
1690 * nis/nis_defaults.c (searchaccess): Likewise.
1691 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1692 * nis/nis_ismember.c (internal_ismember): Likewise.
1693 * nis/nis_local_names.c (nis_local_principal): Likewise.
1694 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
1695 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
1696 Likewise.
1697 * nis/ypclnt.c (yp_match): Likewise.
1698 (yp_first): Likewise.
1699 (yp_next): Likewise.
1700 (yp_master): Likewise.
1701 (yp_order): Likewise.
1702 * nscd/hstcache.c (cache_addhst): Likewise.
1703 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1704 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
1705 (internal_getpwuid_r): Likewise.
1706 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
1707 * posix/glob.h (__GLOB_FLAGS): Likewise.
1708 * posix/regcomp.c (peek_token): Likewise.
1709 (peek_token_bracket): Likewise.
1710 (parse_expression): Likewise.
1711 * posix/regexec.c (sift_states_iter_mb): Likewise.
1712 (check_node_accept_bytes): Likewise.
1713 * posix/tst-spawn3.c (do_test): Likewise.
1714 * posix/wordexp-test.c (testit): Likewise.
1715 * posix/wordexp.c (parse_tilde): Likewise.
1716 (exec_comm): Likewise.
1717 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
1718 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
1719 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
1720 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
1721 * stdio-common/tst-fileno.c (do_test): Likewise.
1722 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
1723 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
1724 * stdlib/strtod_l.c (round_and_return): Likewise.
1725 (____STRTOF_INTERNAL): Likewise.
1726 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
1727 * string/strcspn.c (STRCSPN): Likewise.
1728 * string/test-memmem.c (simple_memmem): Likewise.
1729 * termios/tcsetattr.c (tcsetattr): Likewise.
1730 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
1731 * time/asctime.c (asctime_internal): Likewise.
1732 * time/strptime_l.c (__strptime_internal): Likewise.
1733 * time/sys/time.h (timercmp): Likewise.
1734 * time/tzfile.c (__tzfile_compute): Likewise.
1735
1736 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
1737
1738 [BZ #21915]
1739 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
1740
1741 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1742
1743 * argp/argp-help.c (__argp_error_internal): New function,
1744 renamed from __argp_error, but that takes a 'mode_flags'
1745 parameter to control the format of long double parameters.
1746 (__argp_error): Converted into a call __argp_error_internal.
1747 (__argp_failure_internal): New function, renamed from
1748 __argp_failure, but that takes a 'mode_flags' parameter.
1749 (__argp_failure): Converted into a call __argp_failure_internal.
1750 * misc/err.c (__vwarnx_internal): New function, renamed from
1751 vwarnx, but that takes a 'mode_flags' parameter.
1752 (vwarnx): Converted into a call to __vwarnx_internal.
1753 (__vwarn_internal): New function, renamed from vwarn, but that
1754 takes a 'mode_flags' parameter.
1755 (vwarn): Converted into a call to __vwarn_internal.
1756 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1757 call to __vfxprintf with 'mode_flags'.
1758 (__error_internal): New function, renamed from error, but that
1759 takes a 'mode_flags' parameter.
1760 (error): Converted into a call to __error_internal.
1761 (__error_at_line_internal): New function, renamed from
1762 error_at_line, but that takes a 'mode_flags' parameter.
1763 (error_at_line): Converted into a call to
1764 __error_at_line_internal.
1765 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1766 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1767 Likewise.
1768
1769 2019-02-20 Martin Liska <mliska@suse.cz>
1770
1771 * math/Makefile: Install math-vector-fortran.h.
1772 * bits/math-vector-fortran.h: New file.
1773 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1774
1775 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1776
1777 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1778 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1779
1780 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
1781
1782 * nptl/pthread_mutex_trylock.c: Fix comment.
1783
1784 2019-02-19 Carlos O'Donell <carlos@redhat.com>
1785
1786 * nptl/pthread_tryjoin.c: Fix comment.
1787
1788 2019-02-18 Joseph Myers <joseph@codesourcery.com>
1789
1790 [BZ #24231]
1791 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1792 after R_SPARC_H34 case.
1793
1794 2019-02-18 Florian Weimer <fweimer@redhat.com>
1795
1796 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1797 (getanswer): Do not call Dprintf.
1798 (res_gethostbyname2_context): Likewise.
1799 (res_gethostbyaddr_context): Likewise.
1800
1801 2019-02-18 Florian Weimer <fweimer@redhat.com>
1802
1803 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1804 declaration.
1805 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1806 Remove definitions.
1807 * libio/stdfiles.c: Update comment.
1808 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
1809 set _IO_stdin, _IO_stdout, _IO_stderr.
1810 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1811 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1812 inline function.
1813 (_IO_deallocate_file): New inline function.
1814 * libio/iolibio.h (_IO_vprintf): Remove definition.
1815 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1816 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1817 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1818 _IO_legacy_file.
1819 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1820 __builtin_expect. Use _IO_legacy_file.
1821
1822 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
1823
1824 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1825 Initialize ctid with a known value and remove update of ctid
1826 after clone.
1827 (wait_tid): Adjust arguments and call futex_wait with ctid_val
1828 as assumed current value of ctid_ptr.
1829
1830 2019-02-16 Florian Weimer <fweimer@redhat.com>
1831
1832 Check that non-sysdeps headers have wrapper headers.
1833 * scripts/check-wrapper-headers.py: New file.
1834 * Makefile (tests-special): Add check-wrapper-headers.out.
1835 (check-wrapper-headers.out): New target.
1836 * Rules (tests-special): Add check-wrapper-headers.out.
1837 (check-wrapper-headers.out): New target.
1838
1839 2019-02-16 Florian Weimer <fweimer@redhat.com>
1840
1841 Add missing header wrappers under include/.
1842 * include/ar.h: New file.
1843 * include/bits/mqueue2.h: Likewise.
1844 * include/bits/stdio.h: Likewise.
1845 * include/bits/stdio2.h: Likewise.
1846 * include/fstab.h: Likewise.
1847 * include/fts.h: Likewise.
1848 * include/lastlog.h: Likewise.
1849 * include/netinet/icmp6.h: Likewise.
1850 * include/netinet/igmp.h: Likewise.
1851 * include/netinet/ip6.h: Likewise.
1852 * include/re_comp.h: Likewise.
1853 * include/regexp.h: Likewise.
1854 * include/rpcsvc/bootparam.h: Likewise.
1855 * include/rpcsvc/yp_prot.h: Likewise.
1856 * include/sys/random.h: Likewise.
1857 * include/sys/stropts.h: Likewise.
1858 * include/sys/ttychars.h: Likewise.
1859 * include/sys/vfs.h: Likewise.
1860 * include/wait.h: Likewise.
1861
1862 2019-02-16 Florian Weimer <fweimer@redhat.com>
1863
1864 * nptl_db/proc_service.h: Move to ...
1865 * sysdeps/nptl/proc_service.h: ... here.
1866 * nptl_db/thread_db.h: Move to ...
1867 * sysdeps/nptl/thread_db.h: ... here.
1868 * nptl/descr.h: Include <thread_db.h>.
1869
1870 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1871
1872 * io/Makefile (tests): Add tst-lockf.
1873 * io/lockf.c (lockf): Use __fcntl and only define for
1874 !__OFF_T_MATCHES_OFF64_T.
1875 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1876 __OFF_T_MATCHES_OFF64_T case.
1877 * io/tst-lockf.c: New file.
1878 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1879 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1880 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1881 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1882 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1884 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1885 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1886 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1887
1888 2019-02-15 Florian Weimer <fweimer@redhat.com>
1889
1890 [BZ #24211]
1891 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1892 pd->result after the thread descriptor has been freed.
1893
1894 2019-02-15 Joseph Myers <joseph@codesourcery.com>
1895
1896 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1897 from function return type.
1898
1899 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1900
1901 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1902
1903 * scripts/test_printers_common.py: Set TERM to a known harmless
1904 value.
1905
1906 2019-02-14 Joseph Myers <joseph@codesourcery.com>
1907
1908 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1909 (xdr_u_int): Likewise.
1910 (xdr_enum): Likewise.
1911 (xdr_bytes): Reword fall-through comment.
1912 (xdr_string): Likewise.
1913
1914 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1915
1916 [BZ #2421]
1917 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1918 (tests): Add tst-join8 tst-join9.
1919 * nptl/lll_timedwait_tid.c: Remove file.
1920 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1921 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1922 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1923 * nptl/pthread_join_common.c (timedwait_tid): New function.
1924 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1925 is set.
1926 * nptl/tst-join5.c (thread_join): New function.
1927 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1928 check.
1929 * nptl/tst-join8.c: New file.
1930 * nptl/tst-join9.c: Likewise.
1931 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1932 lll_futex_timed_wait_cancel): Add generic macros.
1933 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1934 Remove definitions.
1935 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1936 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1937 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1938 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1939 Remove function.
1940 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1941 Likewise.
1942 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1943 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1944 (lll_futex_timed_wait_cancel): New macro.
1945
1946 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1947
1948 * benchtests/Makefile: Add malloc-simple benchmark.
1949 * benchtests/bench-malloc-simple.c: New benchmark.
1950
1951 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1952
1953 * benchtests/bench-memmove.c (do_one_test): Remove unused
1954 ORIG_SRC.
1955 (do_test): Adjust.
1956 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1957 ORIG_SRC.
1958 (do_test): Adjust.
1959
1960 2019-01-13 Jim Wilson <jimw@sifive.com>
1961
1962 [BZ #24040]
1963 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1964 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1965 (func): New.
1966 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1967 call func directly.
1968 * nptl/Makefile (tests): Add tst-unwind-thread.
1969 (CFLAGS-tst-unwind-thread.c): Define.
1970 * nptl/tst-unwind-thread.c: New file.
1971 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1972 as undefined.
1973
1974 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1975
1976 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1977 comment wording.
1978 * nis/nis_call.c (__do_niscall3): Likewise.
1979
1980 * catgets/gencat.c (normalize_line): Use braces around empty
1981 'else' body.
1982 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1983 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1984 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1985 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1986 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1987 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1988 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1989 definition.
1990
1991 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1992 execlp returns.
1993
1994 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1995
1996 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1997 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1998 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1999 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2000 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2001 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2002 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2003 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2004 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2005 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2006 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2007 * benchtests/bench-bcopy.c: Delete file.
2008 * benchtests/bench-bzero.c: Likewise.
2009 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2010 (simple_memccpy): Remove.
2011 (generic_memccpy): Add function.
2012 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2013 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2014 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2015 (generic_mempcpy): Add new function.
2016 * benchtests/bench-memset.c (simple_bzero): Remove.
2017 (builtin_bzero): Remove.
2018 (builtin_memset): Remove.
2019 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2020 (generic_rawmemchr): Add new function.
2021
2022 2019-02-12 Florian Weimer <fweimer@redhat.com>
2023
2024 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2025
2026 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2027
2028 [BZ #24122]
2029 * elf/Makefile (tests): Add tst-audit13.
2030 (modules-names): Add tst-audit13mod1.
2031 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2032 rule.
2033 * elf/tst-audit13.c: New file.
2034 * elf/tst-audit13mod1.c: Likewise.
2035
2036 2019-02-12 Florian Weimer <fweimer@redhat.com>
2037
2038 [BZ #24122]
2039 * elf/rtld.c (unload_audit_module): New function.
2040 (report_audit_module_load_error): Likewise.
2041 (load_audit_module): Likewise. Extracted from dl_main. Call
2042 _dl_close if the laversion symbol cannot be found. Use early
2043 returns for error handling. Add malloc error check. Check for a
2044 zero return value from la_version. Remove spurious comment about
2045 static TLS initialization. Remove useless casts.
2046 (notify_audit_modules_of_loaded_object): New function. Extracted
2047 from dl_main.
2048 (load_audit_module): Likewise.
2049 (dl_main): Call load_audit_modules.
2050
2051 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2052
2053 * elf/dl-exception.c (_dl_exception_create_format): Add
2054 fall-through comments.
2055 * elf/ldconfig.c (parse_conf_include): Likewise.
2056 * elf/rtld.c (print_statistics): Likewise.
2057 * locale/programs/charmap.c (parse_charmap): Likewise.
2058 * misc/mntent_r.c (__getmntent_r): Likewise.
2059 * posix/wordexp.c (parse_arith): Likewise.
2060 (parse_backtick): Likewise.
2061 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2062 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2063 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2064
2065 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2066
2067 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2068 Use float instead of double.
2069
2070 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2071
2072 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2073
2074 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2075
2076 * sysdeps/powerpc/bits/mathinline.h: Remove.
2077
2078 2019-02-08 Florian Weimer <fweimer@redhat.com>
2079
2080 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2081 * math/bits/math-finite.h: Move to ...
2082 * bits/math-finite.h: ... here.
2083
2084 2019-02-08 Florian Weimer <fweimer@redhat.com>
2085
2086 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2087 * bits/unistd_ext.h: here.
2088
2089 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2090
2091 [BZ #21915]
2092 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2093 * nss/tst-nss-files-hosts-long.c: New file.
2094 * nss/tst-nss-files-hosts-long.root: New directory.
2095 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2096 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2097
2098 2019-02-08 Florian Weimer <fweimer@redhat.com>
2099
2100 * include/bits/unistd_ext.h: Remove file.
2101 * posix/bits/unistd_ext.h: Move to ...
2102 * sysdeps/generic/bits/unistd_ext.h: ... here.
2103
2104 2019-02-08 Florian Weimer <fweimer@redhat.com>
2105
2106 * include/bits/unistd_ext.h: New file.
2107
2108 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2109
2110 * time/tst-strftime2.c: Use array_length macros instead of magic
2111 numbers.
2112
2113 2019-02-08 Florian Weimer <fweimer@redhat.com>
2114
2115 [BZ #24161]
2116 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2117 argument.
2118 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2119 locking if the new do_locking argument is true.
2120 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2121 __run_fork_handlers.
2122
2123 2019-02-08 Florian Weimer <fweimer@redhat.com>
2124
2125 [BZ #6399]
2126 Linux: Add gettid system call wrapper.
2127 * posix/Makefile (headers): Add bits/unistd_ext.h.
2128 * posix/bits/unistd_ext.h: New file.
2129 * posix/unistd.h: Include it.
2130 * manual/process.texi (Process Identification): Document gettid.
2131 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2132 tst-gettid, tst-gettid-kill.
2133 (tst-gettid): Link with $(shared-thread-library).
2134 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2135 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2136 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2137 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2138 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2139 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2140 Add gettid.
2141 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2142 Likewise.
2143 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2144 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2145 Likewise.
2146 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2147 Likewise.
2148 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2149 Likewise.
2150 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2151 Likewise.
2152 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2153 Likewise.
2154 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2155 Likewise.
2156 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2157 Likewise.
2158 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2159 (GLIBC_2.30): Likewise.
2160 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2161 (GLIBC_2.30): Likewise.
2162 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2163 (GLIBC_2.30): Likewise.
2164 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2165 (GLIBC_2.30): Likewise.
2166 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2167 Likewise.
2168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2169 (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2171 (GLIBC_2.30): Likewise.
2172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2173 (GLIBC_2.30): Likewise.
2174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2175 (GLIBC_2.30): Likewise.
2176 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2177 Likewise.
2178 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2179 Likewise.
2180 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2181 Likewise.
2182 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2183 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2184 Likewise.
2185 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2186 Likewise.
2187 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2188 Likewise.
2189 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2190 Likewise.
2191 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2192
2193 2019-02-08 Florian Weimer <fweimer@redhat.com>
2194
2195 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2196 compatibility symbols.
2197
2198 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2199
2200 [BZ #24180]
2201 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2202 Add compiler barriers and comments.
2203
2204 2019-02-07 Florian Weimer <fweimer@redhat.com>
2205
2206 * include/array_length.h (array_length): Do not use a statement
2207 expression and _Static_assert, so that array_length can be used at
2208 file scope and as a constant expression.
2209
2210 2019-02-07 Florian Weimer <fweimer@redhat.com>
2211
2212 * support/xdlfcn.h (xdlmopen): Declare.
2213 * support/xdlmopen.c: New file.
2214 * support/Makefile (libsupport-routines): Add xdlmopen.
2215
2216 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2217
2218 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2219 before return type, without separate inline.
2220 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2221 * elf/dl-tunables.h (tunable_is_name): Likewise.
2222 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2223 (do_set_top_pad): Likewise.
2224 (do_set_mmap_threshold): Likewise.
2225 (do_set_mmaps_max): Likewise.
2226 (do_set_mallopt_check): Likewise.
2227 (do_set_perturb_byte): Likewise.
2228 (do_set_arena_test): Likewise.
2229 (do_set_arena_max): Likewise.
2230 (do_set_tcache_max): Likewise.
2231 (do_set_tcache_count): Likewise.
2232 (do_set_tcache_unsorted_limit): Likewise.
2233 * nis/nis_subr.c (count_dots): Likewise.
2234 * nptl/allocatestack.c (advise_stack_range): Likewise.
2235 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2236 (do_sin): Likewise.
2237 (reduce_sincos): Likewise.
2238 (do_sincos): Likewise.
2239 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2240 (do_set_elision_enable): Likewise.
2241 (TUNABLE_CALLBACK_FNDECL): Likewise.
2242
2243 2019-02-06 Florian Weimer <fweimer@redhat.com>
2244
2245 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2246 (xdlsym): Use dlerror to detect a NULL symbol.
2247
2248 2019-02-06 Florian Weimer <fweimer@redhat.com>
2249
2250 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2251 <stap-probe.h>.
2252 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2253
2254 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2255
2256 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2257
2258 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2259
2260 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2261 __wmemcmp and weak alias to wmemcmp.
2262
2263 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2264
2265 [BZ #23403]
2266 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2267 TLS_TCB_AT_TP tls variant.
2268 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2269 Add alignment checks.
2270 * support/Makefile (libsupport-routines): Add xposix_memalign and
2271 xpthread_setstack.
2272 * support/support.h: Add xposix_memalign.
2273 * support/xthread.h: Add xpthread_attr_setstack.
2274 * support/xposix_memalign.c: New File.
2275 * support/xpthread_attr_setstack.c: Likewise.
2276
2277 2019-02-05 Florian Weimer <fweimer@redhat.com>
2278
2279 [BZ #24164]
2280 arm: Use "nr" constraint for Systemtap probes, to avoid the
2281 compiler using memory operands for constants, due to the "o"
2282 alternative in the default "nor" constraint.
2283 * include/stap-probe.h [USE_STAP_PROBE]: Include
2284 <stap-probe-machine.h>
2285 * sysdeps/generic/stap-probe-machine.h: New file.
2286 * sysdeps/arm/stap-probe-machine.h: Likewise.
2287
2288 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2289
2290 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2291 with 0, not tcache->entries[tc_idx].
2292
2293 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2294 once.
2295
2296 2019-02-04 Andreas Schwab <schwab@suse.de>
2297
2298 [BZ #16976]
2299 [BZ #17396]
2300 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2301 looking up collating elements match against (wide) character
2302 sequence instead of name. Correct alignment adjustment.
2303 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2304 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2305 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2306 (LOCALES): Add cs_CZ.ISO-8859-2.
2307 * posix/tst-fnmatch4.c: New file.
2308 * posix/tst-fnmatch5.c: New file.
2309 * include/wchar.h (__wmemcmp): Declare.
2310 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2311 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2312 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2313 * sysdeps/s390/wmemcmp.c: Likewise.
2314
2315 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2316
2317 [BZ #24155]
2318 CVE-2019-7309
2319 * NEWS: Updated for CVE-2019-7309.
2320 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2321 upper 32 bits of RDX register for x32. Use unsigned Jcc
2322 instructions, instead of signed.
2323 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2324 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2325
2326 2019-02-04 Florian Weimer <fweimer@redhat.com>
2327
2328 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2329 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2330 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2331 Likewise.
2332 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2333 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2334 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2335 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2336 Likewise.
2337 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2338 Likewise.
2339 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2340 Likewise.
2341 (posix_spawn_file_actions_addopen): Likewise.
2342 (posix_spawn_file_actions_addclose): Likewise.
2343 (posix_spawn_file_actions_adddup2): Likewise.
2344 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2345 qualifiers.
2346 (posix_spawn_file_actions_addfchdir_np): Likewise.
2347
2348 2019-02-04 David Newall <glibc@davidnewall.com>
2349
2350 elf: Implement --preload option for the dynamic linker.
2351 * elf/rtld.c (preloadarg): New variable.
2352 (handle_preload_list): Pass through “where” argument to
2353 do_preload.
2354 (dl_main): Handle "--preload" and add second call to
2355 handle_preload_list.
2356 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2357 (tst-rtld-preload-OBJS): Set variable.
2358 (tst-rtld-preload.out): New target.
2359 * elf/tst-rtld-preload.sh: New file.
2360
2361 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2362
2363 * Makefile (testrun.sh): Exit in case of incorrect argument.
2364
2365 2019-02-04 Florian Weimer <fweimer@redhat.com>
2366
2367 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2368 alignment gaps.
2369
2370 2019-02-03 Florian Weimer <fweimer@redhat.com>
2371
2372 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2373 implicit overflow checks.
2374
2375 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2376
2377 * stdlib/isomac.c: Include <unistd.h>.
2378
2379 2019-02-03 Florian Weimer <fweimer@redhat.com>
2380
2381 * include/time.h (__tzfile_default): Use int, not long int, for
2382 the GMT offsets.
2383 * time/tzfile.c (struct ttinfo): Change type of the offset member
2384 to int.
2385 (__tzfile_read): Remove useless cast.
2386 (__tzfile_default): Adjust prototype.
2387 * time/tzset.c (tz_rule): Change type of the offset member to int.
2388 (parse_offset): Change the type of the sign variable to int.
2389
2390 2019-02-03 Florian Weimer <fweimer@redhat.com>
2391
2392 [BZ #24153]
2393 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2394 * libio/getchar.c (getchar): Likewise.
2395 * libio/getchar_u.c (getchar_unlocked): Likewise.
2396 * libio/getwchar.c (getwchar): Likewise.
2397 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2398 * libio/iogets.c (_IO_gets): Likewise.
2399 * libio/vscanf.c (_IO_vscanf): Likewise.
2400 * libio/vwscanf.c (__vwscanf): Likewise.
2401 * libio/tst-bz24153.c: New file.
2402 * libio/Makefile (tests): Add it.
2403
2404 2019-02-02 Florian Weimer <fweimer@redhat.com>
2405
2406 [BZ #14829]
2407 * manual/resource.texi (Basic Scheduling Functions): Add
2408 portability note. Change process to task throughout the section.
2409 Remove incorrect comment about sched_yield as it affects
2410 tasks/threads, not entire processes.
2411 * sysdeps/unix/sysv/linux/bits/posix_opt.h
2412 (_POSIX_PRIORITY_SCHEDULING): Update comment.
2413
2414 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2415
2416 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
2417 * configure: Regenerated.
2418 * manual/install.texi (Tools for Compilation): Update minimum GCC
2419 version.
2420 * INSTALL: Regenerated.
2421
2422 2019-02-01 Florian Weimer <fweimer@redhat.com>
2423
2424 * support/support_test_compare_string.c
2425 (support_test_compare_string): Use "string" in error message.
2426 * support/tst-test_compare_string.c (do_test): Adjust.
2427
2428 2019-02-01 Florian Weimer <fweimer@redhat.com>
2429
2430 * support/support_format_address_family.c
2431 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2432
2433 2019-02-01 Florian Weimer <fweimer@redhat.com>
2434
2435 * manual/socket.texi (Internet Address Formats): Clarify the byte
2436 order of struct sockaddr_in, struct sockaddr_in6. Document
2437 sin6_flowinfo and sin6_scope_id.
2438
2439 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
2440
2441 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
2442 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
2443 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
2444 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
2445 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
2446 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
2447
2448 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2449
2450 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
2451 [!MEMCHR](MEMCHR): Set to __memchr.
2452 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2453 Add memchr_generic and memchr_nosimd.
2454 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2455 (__libc_ifunc_impl_list): Add memchr ifuncs.
2456 * sysdeps/aarch64/multiarch/memchr.c: New file.
2457 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
2458 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
2459
2460 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2461
2462 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2463 Add memset_emag.
2464 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2465 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
2466 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
2467 Add IS_EMAG check for ifunc dispatch.
2468 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
2469 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
2470
2471 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2472
2473 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
2474 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2475 Add emag.
2476 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
2477 New macro.
2478
2479 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
2480
2481 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
2482
2483 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
2484
2485 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
2486 syscall-template file.
2487
2488 2019-01-31 Carlos O'Donell <carlos@redhat.com>
2489 Torvald Riegel <triegel@redhat.com>
2490 Rik Prohaska <prohaska7@gmail.com>
2491
2492 [BZ# 23844]
2493 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
2494 tst-rwlock-trywrlock-stall.
2495 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
2496 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
2497 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
2498 Set __wrphase_fute to 1 only if we started the write phase.
2499 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
2500 * nptl/tst-rwlock-trywrlock-stall.c: New file.
2501 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
2502 * support/xpthread_rwlock_destroy.c: New file.
2503 * support/xthread.h: Declare xpthread_rwlock_destroy.
2504
2505 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2506
2507 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2508 version to 4.0.2.
2509
2510 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2511
2512 [BZ #24051]
2513 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
2514 * libio/fileops.c (_IO_new_file_underflow): Likewise
2515 * libio/wfileops.c (_IO_wfile_underflow): Likewise
2516 * libio/putchar.c (putchar): Likewise.
2517 * libio/putchar_u.c (putchar_unlocked): Likewise.
2518 * libio/putwchar.c (putchar): Likewise.
2519 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
2520 * libio/tst-bz24051.c: New test.
2521 * libio/Makefile (tests): Add tst-bz24051
2522
2523 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
2524
2525 CVE-2019-9169
2526 regex: fix read overrun [BZ #24114]
2527 Problem found by AddressSanitizer, reported by Hongxu Chen in:
2528 https://debbugs.gnu.org/34140
2529 * posix/regexec.c (proceed_next_node):
2530 Do not read past end of input buffer.
2531
2532 2019-01-31 Florian Weimer <fweimer@redhat.com>
2533
2534 [BZ #24059]
2535 * nss/nss_files/files-alias.c (get_next_alias): Handle
2536 continuation line without newline at the end.
2537 * nss/tst-nss-files-alias-truncated.c: New file.
2538 * nss/Makefile [$(build-shared)] (tests): Add
2539 tst-nss-files-alias-truncated.
2540 (tst-nss-files-alias-truncated): Link with libnss_files.so.
2541 * support/namespace.h (struct support_chroot_configuration): Add
2542 aliases member.
2543 (struct support_chroot): Add path_aliases member.
2544 * support/support_chroot.c (support_chroot_create): Handle
2545 aliases.
2546 (support_chroot_free): Free path_aliases.
2547
2548 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
2549
2550 * version.h (RELEASE): Set to "development".
2551 (VERSION): Set to "2.29.9000".
2552 * NEWS: Add section for 2.30.
2553
2554 * version.h (RELEASE): Set to "stable".
2555 (VERSION): Set to "2.29".
2556 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
2557
2558 * NEWS: Add the list of bugs fixed in 2.29.
2559 * manual/contrib.texi: Update contributors list with some more
2560 names.
2561 * manual/install.texi: Update latest versions of packages
2562 tested.
2563 * INSTALL: Regenerated.
2564
2565 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
2566
2567 * po/be.po: Update translations.
2568 * po/bg.po: Likewise.
2569 * po/ca.po: Likewise.
2570 * po/cs.po: Likewise.
2571 * po/da.po: Likewise.
2572 * po/de.po: Likewise.
2573 * po/el.po: Likewise.
2574 * po/eo.po: Likewise.
2575 * po/es.po: Likewise.
2576 * po/fi.po: Likewise.
2577 * po/fr.po: Likewise.
2578 * po/gl.po: Likewise.
2579 * po/hr.po: Likewise.
2580 * po/hu.po: Likewise.
2581 * po/ia.po: Likewise.
2582 * po/id.po: Likewise.
2583 * po/it.po: Likewise.
2584 * po/ja.po: Likewise.
2585 * po/ko.po: Likewise.
2586 * po/lt.po: Likewise.
2587 * po/nb.po: Likewise.
2588 * po/nl.po: Likewise.
2589 * po/pl.po: Likewise.
2590 * po/pt_BR.po: Likewise.
2591 * po/ru.po: Likewise.
2592 * po/rw.po: Likewise.
2593 * po/sk.po: Likewise.
2594 * po/sl.po: Likewise.
2595 * po/sv.po: Likewise.
2596 * po/tr.po: Likewise.
2597 * po/uk.po: Likewise.
2598 * po/vi.po: Likewise.
2599 * po/zh_CN.po: Likewise.
2600 * po/zh_TW.po: Likewise.
2601
2602 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
2603
2604 [BZ #24130]
2605 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
2606 of $f3 register on $y_is_neg path.
2607
2608 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2609
2610 [BZ #24110]
2611 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
2612 sigaltstack.ss_flags.
2613
2614 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
2615
2616 [BZ #23758]
2617 * manual/time.texi (strftime): Document "%Ey".
2618 * time/strftime_l.c (__strftime_internal): Set the default width
2619 padding with zero of "%Ey" to 2.
2620
2621 [BZ #24096]
2622 * manual/time.texi (strftime): Document "%EC" and "%EY".
2623 * time/Makefile (tests): Add tst-strftime2.
2624 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
2625 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
2626 override padding for "%Ey".
2627 If an optional flag ('_' or '-') is specified to "%EY", interpret the
2628 "%Ey" in the subformat as if decorated with that flag.
2629 * time/tst-strftime2.c: New file.
2630
2631 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2632
2633 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
2634 are not defined.
2635
2636 [BZ #24122]
2637 * elf/Makefile (tests): Add tst-audit13.
2638 (modules-names): Add tst-audit13mod1.
2639 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2640 rule.
2641 * elf/rtld.c (dl_main): Handle invalid audit module version.
2642 * elf/tst-audit13.c: New file.
2643 * elf/tst-audit13mod1.c: Likewise.
2644
2645 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2646
2647 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
2648 returned by __hurd_at_flags.
2649 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
2650 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
2651 directly instead of __hurd_file_name_lookup.
2652
2653 2019-01-21 Joseph Myers <joseph@codesourcery.com>
2654
2655 * scripts/build-many-glibcs.py (Context.checkout): Default
2656 binutils version to 2.32 branch.
2657
2658 2019-01-21 Florian Weimer <fweimer@redhat.com>
2659
2660 [BZ #20018]
2661 CVE-2016-10739
2662 resolv: Reject trailing characters in host names
2663 * include/arpa/inet.h (__inet_aton_exact): Declare.
2664 (inet_aton): Remove hidden prototype. No longer used internally.
2665 * nscd/gai.c (__inet_aton): Do not define.
2666 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
2667 * nss/digits_dots.c (__inet_aton): Likewise.
2668 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
2669 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
2670 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
2671 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
2672 (tst-resolv-trailing): Likewise.
2673 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
2674 libc.
2675 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
2676 Make static. Add endp parameter.
2677 (__inet_aton_exact): New function.
2678 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
2679 (__inet_addr): Call inet_aton_end.
2680 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
2681 not just IPv6. Call __inet_aton_exact.
2682 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
2683 (tests): Make const. Add additional test cases with trailing
2684 characters.
2685 (do_test): Use array_length.
2686 * resolv/tst-inet_aton_exact.c: New file.
2687 * resolv/tst-resolv-trailing.c: Likewise.
2688 * resolv/tst-resolv-nondecimal.c: Likewise.
2689 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
2690
2691 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2692
2693 [BZ# 24097]
2694 CVE-2019-6488
2695 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
2696 Clear the upper 32 bits of RSI register.
2697 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
2698 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
2699 and tst-size_t-wcsnlen.
2700 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
2701 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
2702
2703 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2704
2705 [BZ# 24097]
2706 CVE-2019-6488
2707 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
2708 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2709 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
2710 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
2711 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
2712
2713 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2714
2715 [BZ# 24097]
2716 CVE-2019-6488
2717 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
2718 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2719 * sysdeps/x86_64/strcmp.S: Likewise.
2720 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
2721 tst-size_t-strncmp and tst-size_t-wcsncmp.
2722 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
2723 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
2724 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
2725
2726 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2727
2728 [BZ# 24097]
2729 CVE-2019-6488
2730 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
2731 RDX_LP for length. Clear the upper 32 bits of RDX register.
2732 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
2733 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
2734 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
2735 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
2736
2737 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2738
2739 [BZ# 24097]
2740 CVE-2019-6488
2741 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
2742 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
2743 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
2744 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
2745
2746 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2747
2748 [BZ# 24097]
2749 CVE-2019-6488
2750 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2751 length. Clear the upper 32 bits of RDX register.
2752 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2753 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2754 Likewise.
2755 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2756 Likewise.
2757 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2758 tst-size_t-wmemchr.
2759 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2760
2761 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2762
2763 [BZ# 24097]
2764 CVE-2019-6488
2765 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2766 length. Clear the upper 32 bits of RDX register.
2767 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2768 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2769 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2770 tst-size_t-wmemcmp.
2771 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2772 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2773
2774 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2775
2776 [BZ# 24097]
2777 CVE-2019-6488
2778 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
2779 upper 32 bits of RDX register.
2780 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2781 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2782 tst-size_t-wmemchr.
2783 * sysdeps/x86_64/x32/test-size_t.h: New file.
2784 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2785 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2786
2787 2019-01-18 Florian Weimer <fweimer@redhat.com>
2788
2789 [BZ #24112]
2790 resolv: Do not send queries for non-host-names in nss_dns.
2791 * resolv/nss_dns/dns-host.c (check_name): New function.
2792 (_nss_dns_gethostbyname2_r): Use it.
2793 (_nss_dns_gethostbyname_r): Likewise.
2794 (_nss_dns_gethostbyname4_r): Likewise.
2795
2796 2019-01-21 Florian Weimer <fweimer@redhat.com>
2797
2798 * resolv/inet_addr.c: Reformat to GNU style.
2799 (__inet_addr, __inet_aton): Update comment.
2800
2801 2019-01-18 Florian Weimer <fweimer@redhat.com>
2802
2803 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2804 ("malloc: Use current (C11-style) atomics for fastbin access").
2805 This commit introduces a substantial performance regression on
2806 POWER and Aarch64.
2807 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2808 (REMOVE_FB): Define.
2809 (_int_malloc): Use it and reindent.
2810 (_int_free): Use CAS loop with
2811 catomic_compare_and_exchange_val_rel.
2812 (malloc_consolidate): Use atomic_exchange_acq.
2813
2814
2815 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
2816
2817 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
2818 -Wl,-z,now.
2819 (LDFLAGS-tst-minsigstksz-2): Likewise.
2820 (LDFLAGS-tst-minsigstksz-3): Likewise.
2821 (LDFLAGS-tst-minsigstksz-3a): Likewise.
2822 (LDFLAGS-tst-minsigstksz-4): Likewise.
2823
2824 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
2825
2826 * manual/time.texi (strftime): Fix the wording to "alternative" rather
2827 than "alternate".
2828
2829 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
2830
2831 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2832
2833 2019-01-16 Zack Weinberg <zackw@panix.com>
2834
2835 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2836 (xget_sigstack_location): New test support functions.
2837 * support/xsigstack.c: New file, implementing them.
2838 * support/tst-xsigstack.c: New test for them.
2839 * support/Makefile: Update.
2840
2841 * signal/tst-minsigstksz-1.c
2842 * signal/tst-minsigstksz-2.c
2843 * signal/tst-minsigstksz-3.c
2844 * signal/tst-minsigstksz-3a.c
2845 * signal/tst-minsigstksz-4.c: New tests.
2846 * signal/Makefile: Run them.
2847
2848 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
2849
2850 * po/libc.pot: Regenerate.
2851
2852 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2853
2854 * math/libm-test-fma.inc (fma_test_data): Set
2855 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2856
2857 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2858
2859 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2860 (do_test): Changed __vector __int128_t to __vector unsigned int.
2861
2862 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2863
2864 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2865 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2866 stpcpy-avx2 and stpncpy-avx2.
2867 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2868 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2869 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2870 and __stpncpy_avx2.
2871 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2872 ifunc-strcpy.h}: rename header for a more generic name.
2873 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2874 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2875 AVX unaligned load is fast and vzeroupper is preferred.
2876 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2877 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2878 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2879 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2880 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2881 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2882
2883 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
2884
2885 * argp/argp-help.c: Fix typo in comment.
2886 * misc/sys/cdefs.h: Likewise.
2887 * posix/regexec.c (sift_states_iter_mb): Likewise.
2888 * socket/sockatmark.c: Likewise.
2889 * socket/sys/socket.h: Likewise.
2890 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2891 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2892 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2893 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2894 * sysdeps/unix/sockatmark.c: Likewise.
2895 * time/strptime_l.c: Likewise.
2896
2897 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2898
2899 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2900 missing space after the cast of "_NL_CURRENT".
2901
2902 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2903
2904 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2905 ifdef to fix read of VSCR.
2906 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2907 tst-ucontext-ppc64-vscr.c to test list.
2908 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2909
2910 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2911
2912 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2913 fall-through.
2914
2915 2019-01-09 Jim Wilson <jimw@sifive.com>
2916
2917 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2918
2919 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2920
2921 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2922 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2923 __memcpy_falkor for ares.
2924 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2925 Add new define.
2926 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2927 Add ares cpu.
2928
2929 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2930
2931 [BZ #24066]
2932 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2933 4_FP_W_TYPEs are used for IEEE quad precision.
2934 * soft-fp/extendhftf2.c: Likewise.
2935 * soft-fp/extendsftf2.c: Likewise.
2936 * soft-fp/extendxftf2.c: Likewise.
2937 * soft-fp/trunctfdf2.c: Likewise.
2938 * soft-fp/trunctfhf2.c: Likewise.
2939 * soft-fp/trunctfsf2.c: Likewise.
2940 * soft-fp/trunctfxf2.c: Likewise.
2941 * sysdeps/alpha/ots_cvttx.c: Likewise.
2942 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2943 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2944 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2945 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2946 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2947 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2948 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2949 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2950 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2951 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2952 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2953 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2954 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2955 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2956 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2957 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2958 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2959
2960 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2961
2962 [BZ #24024]
2963 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2964 code with -fmath-errno.
2965 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2966 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2967 * string/test-strerror-errno.c: New file.
2968
2969 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2970
2971 [BZ #24046]
2972 * localedata/locales/en_US (date_fmt): Add, set to
2973 "%a %d %b %Y %r %Z".
2974
2975 2019-01-07 Florian Weimer <fweimer@redhat.com>
2976
2977 [BZ #24063]
2978 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2979 instead of @var{errno}.
2980 (Parsing of Integers): Likewise.
2981 (Parsing of Floats): Likewise.
2982 * manual/filesys.texi (Working with Directory Trees): Likewise.
2983 (Temporary Files): Likewise.
2984 * manual/job.texi (Terminal Access Functions): Likewise.
2985 * manual/llio.texi (Synchronizing I/O): Likewise.
2986 * manual/math.texi (SVID Random): Likewise.
2987 * manual/message.texi (The catgets Functions): Likewise.
2988 (Translation with gettext): Likewise.
2989 (Locating gettext catalog): Likewise.
2990 (Charset conversion in gettext): Likewise.
2991 * manual/nss.texi (NSS Module Function Internals): Likewise.
2992 * manual/search.texi (Hash Search Function): Likewise.
2993 * manual/setjmp.texi (System V contexts): Likewise.
2994 * manual/time.texi (Sleeping): Likewise.
2995 * manual/users.texi (Lookup User): Likewise.
2996 (Lookup Group): Likewise.
2997
2998 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2999
3000 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3001 fix typo.
3002
3003 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3004
3005 [BZ #19444]
3006 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3007 __builtin_unreachable for default case in switch.
3008 (__ieee754_yn): Likewise.
3009 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3010 (__ieee754_ynl): Likewise.
3011 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3012 (__ieee754_ynl): Likewise.
3013 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3014 (__ieee754_ynl): Likewise.
3015
3016 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3017
3018 * manual/maint.texi: Use @{ and @}.
3019
3020 2019-01-04 Florian Weimer <fweimer@redhat.com>
3021
3022 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3023 function.
3024 (do_in_chroot_1): Call it.
3025 (run_chroot_tests):
3026 Improve error reporting in case it is not possible to create a
3027 collision for the PTY name required by the test.
3028
3029 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3030
3031 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3032 lll_wait_tid with timeout.
3033 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3034 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3035 futex_reltimed_wait_cancelable for cancelabla mode.
3036 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3037 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3038 macros.
3039 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3040 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3041 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3042 SYSCALL_CANCEL_NCS): New macro.
3043 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3044 (lll_timedwait_tid): Remove macro.
3045 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3046 Likewise.
3047 (lll_timedwait_tid): Likewise.
3048 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3049 Likewise.
3050 (lll_timedwait_tid): Likewise.
3051 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3052 Likewise.
3053 (lll_timedwait_tid): Likewise.
3054 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3055 Use INTERNAL_SYSCALL_CANCEL.
3056 * sysdeps/unix/sysv/linux/futex-internal.h
3057 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3058 instead of __pthread_{enable,disable}_asynccancel.
3059 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3060 (lll_futex_wait_cancel): New macro.
3061
3062 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3063 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3064
3065 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3066 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3067
3068 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3069 in backtrace analysis.
3070 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3071 side-effects.
3072 (tf_send): Likewise.
3073
3074 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3075 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3076 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3077 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3078 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3079 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3080 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3081 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3082 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3083 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3084 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3085 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3086 Likewise.
3087 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3088 tst-cancel-wrappers.sh.
3089 (generated): Remove tst-cancel-wrappers.out.
3090 (tst-cancel-wrappers.out): Remove rule.
3091 * nptl/tst-cancel-wrappers.sh: Remove file.
3092
3093 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3094
3095 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3096 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3097 Update.
3098
3099 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3100
3101 [BZ #23640]
3102 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3103 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3104 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3105 close-on-exec reset for adddup2 file action.
3106 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3107
3108 2019-01-03 Zack Weinberg <zackw@panix.com>
3109
3110 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3111 parameter. Only use deprecated scanf when __USE_GNU is defined
3112 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3113 than 201103L, whichever is relevant for the language being compiled.
3114
3115 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3116 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3117 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3118 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3119 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3120
3121 * libio/iovsscanf.c
3122 * libio/fwscanf.c
3123 * libio/iovswscanf.c
3124 * libio/swscanf.c
3125 * libio/vscanf.c
3126 * libio/vwscanf.c
3127 * libio/wscanf.c
3128 * stdio-common/fscanf.c
3129 * stdio-common/scanf.c
3130 * stdio-common/vfscanf.c
3131 * stdio-common/vfwscanf.c
3132 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3133 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3134 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3135 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3136 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3137 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3138 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3139 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3140 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3141 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3142 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3143 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3144 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3145 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3146 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3147
3148 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3149 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3150 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3151 not sscanf.
3152 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3153 with a preprocessor macro.
3154
3155 * stdio-common/bug21.c, stdio-common/scanf14.c:
3156 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3157 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3158 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3159 to xscanf, xfscanf, xsscanf.
3160
3161 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3162 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3163 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3164 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3165 xfscanf, xsscanf.
3166 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3167 override feature selection macros or provide definitions of u_char etc.
3168 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3169 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3170 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3171 with -std=gnu89.
3172
3173 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3174
3175 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3176 bits/termios-misc.h.
3177 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3178 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3179 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3180 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3181 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3182 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3183
3184 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3185 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3186 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3187 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3188 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3189 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3190 termios-misc.h.
3191 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3192 (sysdep_headers): Add termios-misc.h.
3193
3194 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3195 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3196 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3197
3198 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3199 termios-tcflow.h.
3200 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3201 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3202 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3203 TCSAFLUSH): Move to termios-tcflow.h.
3204 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3205 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3206 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3207 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3208
3209 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3210 termios-c_lflag.h.
3211 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3212 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3213 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3214 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3215 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3216 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3217 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3218 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3219 Likewise.
3220 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3221 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3222 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3223 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3224
3225 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3226 termios-c_cflag.h.
3227 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3228 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3229 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3230 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3231 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3232 termios-c_cflag.h.
3233 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3234 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3235 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3236 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3237
3238 [BZ #23783]
3239 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3240 termios-baud.h.
3241 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3242 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3243 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3244 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3245 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3246 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3247 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3248 __MAX_BAUD): Move to termios-baud.h.
3249 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3250 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3251 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3252 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3253 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3254
3255 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3256 termios-c_oflag.h.
3257 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3258 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3259 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3260 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3261 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3262 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3263 termios-c_oflag.h.
3264 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3265 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3266 FFR1): Likewise.
3267 [USE_MISC] (XTABS): Likewise.
3268 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3269 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3270 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3271 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3272
3273 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3274 termios-c_iflag.h.
3275 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3276 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3277 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3278 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3279 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3280 IUTF8): Move to termios-c_iflag.h.
3281 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3282 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3283 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3284 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3285
3286 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3287 termios-cc.h.
3288 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3289 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3290 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3291 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3292 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3293 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3294 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3295 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3296 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3297 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3298 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3299 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3300
3301 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3302 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3303 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3304 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3305 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3306 termios-struct.h.
3307 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3308 termios-struct.h.
3309 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3310 Likewise.
3311 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3312 Likewise.
3313 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3314 Likewise.
3315 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3316 Likewise.
3317 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3318 _HAVE_C_OSPEED): Define.
3319 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3320 _HAVE_C_OSPEED): Likewise.
3321 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3322 _HAVE_C_OSPEED): Likewise.
3323 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3324 (cfsetospeed): Check for define value instead of existence.
3325 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3326 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3327 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3328 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3329 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3330
3331 [BZ #17783]
3332 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3333 Define.
3334 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3335 (TIOCSER_TEMT): Likewise.
3336 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3337 (TEOCSER_TEMT): Likewise.
3338
3339 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3340
3341 [BZ #24011]
3342 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3343
3344 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3345
3346 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3347
3348 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3349
3350 * sysdeps/htl/pt-barrierattr-setpshared.c
3351 (pthread_barrierattr_setpshared): Add stub warning.
3352 * sysdeps/htl/pt-condattr-setpshared.c
3353 (pthread_condattr_setpshared): Likewise.
3354 * sysdeps/htl/pt-mutexattr-setpshared.c
3355 (pthread_mutexattr_setpshared): Likewise.
3356 * sysdeps/htl/pt-rwlockattr-setpshared.c
3357 (pthread_rwlockattr_setpshared): Likewise.
3358 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3359 (pthread_mutexattr_setpshared): Likewise.
3360
3361 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3362
3363 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3364 constants to match with Linux 4.20.
3365
3366 * sysdeps/mips/mips32/libm-test-ulps: Update.
3367 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3368
3369 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3370
3371 [BZ #24034]
3372 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3373 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3374 than __typeof (...) for the a_ptr variable.
3375
3376 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3377
3378 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3379 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3380 * libio/Makefile (tests): Add tst-sprintf-ub and
3381 tst-sprintf-chk-ub.
3382 (CFLAGS-tst-sprintf-ub.c): New variable.
3383 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3384 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3385 destination buffer and check for overflows in fortified mode.
3386 * libio/libioP.h (PRINTF_CHK): New macro.
3387 * libio/tst-sprintf-chk-ub.c: New file.
3388 * libio/tst-sprintf-ub.c: Likewise.
3389
3390 2019-01-02 Florian Weimer <fweimer@redhat.com>
3391
3392 [BZ #24018]
3393 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3394 failure.
3395
3396 2019-01-02 Florian Weimer <fweimer@redhat.com>
3397
3398 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3399
3400 2019-01-01 Joseph Myers <joseph@codesourcery.com>
3401
3402 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
3403 macro.
3404
3405 * sysdeps/unix/sysv/linux/netpacket/packet.h
3406 (PACKET_IGNORE_OUTGOING): New macro.
3407
3408 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
3409 macro.
3410
3411 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3412 version to 4.20.
3413 (riscv_flush_icache): New syscall.
3414
3415 * manual/texinfo.tex: Update to version 2018-12-28.17 with
3416 trailing whitespace removed.
3417 * scripts/config.guess: Update to version 2019-01-01.
3418 * scripts/config.sub: Update to version 2019-01-01.
3419 * scripts/move-if-change: Update from gnulib.
3420
3421 * NEWS: Update copyright dates.
3422 * catgets/gencat.c (print_version): Likewise.
3423 * csu/version.c (banner): Likewise.
3424 * debug/catchsegv.sh: Likewise.
3425 * debug/pcprofiledump.c (print_version): Likewise.
3426 * debug/xtrace.sh (do_version): Likewise.
3427 * elf/ldconfig.c (print_version): Likewise.
3428 * elf/ldd.bash.in: Likewise.
3429 * elf/pldd.c (print_version): Likewise.
3430 * elf/sotruss.sh: Likewise.
3431 * elf/sprof.c (print_version): Likewise.
3432 * iconv/iconv_prog.c (print_version): Likewise.
3433 * iconv/iconvconfig.c (print_version): Likewise.
3434 * locale/programs/locale.c (print_version): Likewise.
3435 * locale/programs/localedef.c (print_version): Likewise.
3436 * login/programs/pt_chown.c (print_version): Likewise.
3437 * malloc/memusage.sh (do_version): Likewise.
3438 * malloc/memusagestat.c (print_version): Likewise.
3439 * malloc/mtrace.pl: Likewise.
3440 * manual/libc.texinfo: Likewise.
3441 * nptl/version.c (banner): Likewise.
3442 * nscd/nscd.c (print_version): Likewise.
3443 * nss/getent.c (print_version): Likewise.
3444 * nss/makedb.c (print_version): Likewise.
3445 * posix/getconf.c (main): Likewise.
3446 * scripts/test-installation.pl: Likewise.
3447 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3448
3449 * All files with FSF copyright notices: Update copyright dates
3450 using scripts/update-copyrights.
3451 * locale/programs/charmap-kw.h: Regenerated.
3452 * locale/programs/locfile-kw.h: Likewise.
3453
3454 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3455
3456 * timezone/zdump.c: Update from tzcode 2018i.
3457 * timezone/zic.c: Likewise.
3458
3459 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
3460
3461 regex: improve Gnulib port to AIX
3462 From the glibc point of view, this removes duplicate macro
3463 definitions and is obviously safe.
3464 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
3465 * posix/regex_internal.h:
3466 (__attribute__, __attribute_warn_unused_result__):
3467 Remove; already defined elsewhere.
3468
3469 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
3470
3471 [BZ #24027]
3472 * malloc/malloc.c (_int_realloc): Always call memcpy for the
3473 copying operation. (ncopies had the wrong type, resulting in an
3474 integer wraparound and too few elements being copied.)
3475
3476 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
3477
3478 [BZ #24022]
3479 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
3480 <asm/syscalls.h> exists with __has_include__ before including it.
3481
3482 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3483
3484 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3485 version to 4.20.
3486
3487 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
3488
3489 * hurd/lookup-retry: Include <unistd.h>.
3490 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
3491 Release it on return. Handle "pid" magical lookup retry.
3492
3493 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3494
3495 [BZ #10496]
3496 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
3497 (t_fmt_ampm): Likewise.
3498 * localedata/locales/aa_ER (t_fmt): Likewise.
3499 (t_fmt_ampm): Likewise.
3500 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
3501 (t_fmt_ampm): Likewise.
3502 * localedata/locales/aa_ET (t_fmt): Likewise.
3503 (t_fmt_ampm): Likewise.
3504 * localedata/locales/am_ET (t_fmt): Likewise.
3505 (t_fmt_ampm): Likewise.
3506 * localedata/locales/byn_ER (t_fmt): Likewise.
3507 (t_fmt_ampm): Likewise.
3508 * localedata/locales/om_ET (t_fmt): Likewise.
3509 (t_fmt_ampm): Likewise.
3510 * localedata/locales/sid_ET (t_fmt): Likewise.
3511 (t_fmt_ampm): Likewise.
3512 * localedata/locales/so_DJ (t_fmt): Likewise.
3513 (t_fmt_ampm): Likewise.
3514 * localedata/locales/so_ET (t_fmt): Likewise.
3515 (t_fmt_ampm): Likewise.
3516 * localedata/locales/so_SO (t_fmt): Likewise.
3517 (t_fmt_ampm): Likewise.
3518 * localedata/locales/ti_ER (t_fmt): Likewise.
3519 (t_fmt_ampm): Likewise.
3520 * localedata/locales/ti_ET (t_fmt): Likewise.
3521 (t_fmt_ampm): Likewise.
3522 * localedata/locales/tig_ER (t_fmt): Likewise.
3523 (t_fmt_ampm): Likewise.
3524 * localedata/locales/wal_ET (t_fmt): Likewise.
3525 (t_fmt_ampm): Likewise.
3526
3527 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
3528 * localedata/locales/ar_IN (t_fmt): Likewise.
3529 * localedata/locales/bhb_IN (t_fmt): Likewise.
3530 * localedata/locales/bho_IN (t_fmt): Likewise.
3531 * localedata/locales/bi_VU (t_fmt): Likewise.
3532 * localedata/locales/bn_BD (t_fmt): Likewise.
3533 * localedata/locales/bn_IN (t_fmt): Likewise.
3534 * localedata/locales/brx_IN (t_fmt): Likewise.
3535 * localedata/locales/doi_IN (t_fmt): Likewise.
3536 * localedata/locales/en_HK (t_fmt): Likewise.
3537 (t_fmt_ampm): Likewise.
3538 * localedata/locales/en_IN (t_fmt): Likewise.
3539 * localedata/locales/en_PH (t_fmt): Likewise.
3540 * localedata/locales/gu_IN (t_fmt): Likewise.
3541 * localedata/locales/hi_IN (t_fmt): Likewise.
3542 * localedata/locales/hif_FJ (t_fmt): Likewise.
3543 * localedata/locales/hne_IN (t_fmt): Likewise.
3544 * localedata/locales/kn_IN (t_fmt): Likewise.
3545 * localedata/locales/kok_IN (t_fmt): Likewise.
3546 * localedata/locales/ks_IN (t_fmt): Likewise.
3547 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
3548 * localedata/locales/mag_IN (t_fmt): Likewise.
3549 * localedata/locales/mai_IN (t_fmt): Likewise.
3550 * localedata/locales/mjw_IN (t_fmt): Likewise.
3551 * localedata/locales/ml_IN (t_fmt): Likewise.
3552 * localedata/locales/mni_IN (t_fmt): Likewise.
3553 * localedata/locales/mr_IN (t_fmt): Likewise.
3554 * localedata/locales/ms_MY (t_fmt): Likewise.
3555 * localedata/locales/pa_IN (t_fmt): Likewise.
3556 * localedata/locales/raj_IN (t_fmt): Likewise.
3557 * localedata/locales/sa_IN (t_fmt): Likewise.
3558 * localedata/locales/sat_IN (t_fmt): Likewise.
3559 * localedata/locales/sd_IN (t_fmt): Likewise.
3560 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
3561 * localedata/locales/tcy_IN (t_fmt): Likewise.
3562 * localedata/locales/the_NP (t_fmt): Likewise.
3563 * localedata/locales/to_TO (t_fmt): Likewise.
3564 * localedata/locales/ur_IN (t_fmt): Likewise.
3565
3566 * localedata/locales/hif_FJ (d_t_fmt): Set to
3567 "%A %d %b %Y %I:%M:%S %p".
3568 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
3569
3570 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
3571 * localedata/locales/ar_BH (t_fmt): Likewise.
3572 * localedata/locales/ar_DZ (t_fmt): Likewise.
3573 * localedata/locales/ar_EG (t_fmt): Likewise.
3574 * localedata/locales/ar_IQ (t_fmt): Likewise.
3575 * localedata/locales/ar_JO (t_fmt): Likewise.
3576 * localedata/locales/ar_KW (t_fmt): Likewise.
3577 * localedata/locales/ar_LB (t_fmt): Likewise.
3578 * localedata/locales/ar_LY (t_fmt): Likewise.
3579 * localedata/locales/ar_OM (t_fmt): Likewise.
3580 * localedata/locales/ar_QA (t_fmt): Likewise.
3581 * localedata/locales/ar_SD (t_fmt): Likewise.
3582 * localedata/locales/ar_SS (t_fmt): Likewise.
3583 * localedata/locales/ar_SY (t_fmt): Likewise.
3584 * localedata/locales/ar_TN (t_fmt): Likewise.
3585 * localedata/locales/ar_YE (t_fmt): Likewise.
3586
3587 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
3588 (t_fmt_ampm): Likewise.
3589 * localedata/locales/gez_ET (t_fmt): Likewise.
3590 (t_fmt_ampm): Likewise.
3591
3592 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
3593 (t_fmt_ampm): Likewise.
3594 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
3595
3596 * localedata/locales/zh_HK (t_fmt):
3597 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
3598
3599 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
3600 because this locale does not use the 12-hour clock.
3601 (t_fmt): Set to "%Z %H:%M:%S".
3602 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
3603
3604 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
3605 because this locale does not use the 12-hour clock.
3606 (t_fmt): Set to "%H:%M:%S %Z".
3607 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
3608
3609 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
3610 because this locale does not use the 12-hour clock.
3611 (t_fmt): Set to "%T".
3612 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
3613 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
3614
3615 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
3616 because this locale does not use the 12-hour clock.
3617 (t_fmt): Set to "%H:%M:%S %Z".
3618 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
3619
3620 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
3621 because this locale does not use the 12-hour clock.
3622 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
3623 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
3624
3625 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3626
3627 [BZ #10496]
3628 [BZ #23724]
3629 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
3630 (t_fmt_ampm): Likewise.
3631 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
3632 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
3633 (d_fmt): Set to "%-d.%-m.%y".
3634
3635 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3636
3637 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
3638 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
3639 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
3640 Likewise.
3641 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
3642 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
3643 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
3644 function.
3645 * support/blob_repeat.c (check_mul_overflow_size_t,
3646 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
3647
3648 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
3649
3650 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
3651
3652 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
3653
3654 regex: simplify Gnulib port
3655 This simplifies the code, by removing stuff intended for porting
3656 to Gnulib but no longer needed there.
3657 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
3658 uses of libc_hidden_def, weak_alias.
3659 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
3660 _Restrict_ except for public-facing headers.
3661 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
3662 Remove; already defined elsewhere.
3663 * posix/regex.c, posix/regex_internal.h:
3664 Use __GNUC_PREREQ instead of rolling our own.
3665 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
3666
3667 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
3668
3669 * benchtests/bench-strlen.c (generic_strlen): New function.
3670 (memchr_strlen): New function.
3671
3672 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3673
3674 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
3675 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
3676 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
3677
3678 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3679
3680 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
3681
3682 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3683
3684 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
3685 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
3686 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
3687 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
3688 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
3689 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
3690 <sysdeps/ieee754/flt-32/s_sincosf.c>.
3691
3692 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3693
3694 [BZ #24023]
3695 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
3696 PLT reference in libc.so.
3697 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
3698 _Q_lltoq and _Q_qtod PLT references in libc.so.
3699
3700 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
3701
3702 * benchtests/bench-memchr.c: Cleanup defines.
3703 * benchtests/bench-memcmp.c: Likewise.
3704 * benchtests/bench-memset.c: Likewise.
3705 * benchtests/bench-memset-large.c: Likewise.
3706 * benchtests/bench-memset-walk.c: Likewise.
3707 * benchtests/bench-stpcpy.c: Likewise.
3708 * benchtests/bench-stpncpy.c: Likewise.
3709 * benchtests/bench-strcat.c: Likewise.
3710 * benchtests/bench-strchr.c: Likewise.
3711 * benchtests/bench-strcmp.c: Likewise.
3712 * benchtests/bench-strcpy.c: Likewise.
3713 * benchtests/bench-strcspn.c: Likewise.
3714 * benchtests/bench-string.h: Likewise.
3715 * benchtests/bench-strlen.c: Likewise.
3716 * benchtests/bench-strncat.c: Likewise.
3717 * benchtests/bench-strncmp.c: Likewise.
3718 * benchtests/bench-strncpy.c: Likewise.
3719 * benchtests/bench-strnlen.c: Likewise.
3720 * benchtests/bench-strpbrk.c: Likewise.
3721 * benchtests/bench-strrchr.c: Likewise.
3722 * benchtests/bench-strspn.c: Likewise.
3723
3724 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3725
3726 * stdlib/longlong.h: Update from GCC.
3727
3728 [BZ #23993]
3729 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
3730 * configure: Regenerated.
3731 * manual/install.texi (Tools for Compilation): Update minimum GCC
3732 version.
3733 * INSTALL: Regenerated.
3734
3735 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
3736
3737 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
3738
3739 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
3740
3741 * malloc/malloc.c (mremap_chunk): Additional checks.
3742
3743 2018-12-21 Mao Han <han_mao@c-sky.com>
3744
3745 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3746 * scripts/build-many-glibcs.py: Add C-SKY targets.
3747 * sysdeps/csky/Implies: New file.
3748 * sysdeps/csky/Makefile: Likewise.
3749 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3750 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3751 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3752 * sysdeps/csky/abiv2/memcmp.S: Likewise.
3753 * sysdeps/csky/abiv2/memcpy.S: Likewise.
3754 * sysdeps/csky/abiv2/memmove.S: Likewise.
3755 * sysdeps/csky/abiv2/memset.S: Likewise.
3756 * sysdeps/csky/abiv2/setjmp.S: Likewise.
3757 * sysdeps/csky/abiv2/start.S: Likewise.
3758 * sysdeps/csky/abiv2/strcmp.S: Likewise.
3759 * sysdeps/csky/abiv2/strcpy.S: Likewise.
3760 * sysdeps/csky/abiv2/strlen.S: Likewise.
3761 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3762 * sysdeps/csky/abort-instr.h: Likewise.
3763 * sysdeps/csky/atomic-machine.h: Likewise.
3764 * sysdeps/csky/bits/endian.h: Likewise.
3765 * sysdeps/csky/bits/fenv.h: Likewise.
3766 * sysdeps/csky/bits/link.h: Likewise.
3767 * sysdeps/csky/bits/setjmp.h: Likewise.
3768 * sysdeps/csky/bsd-_setjmp.S: Likewise.
3769 * sysdeps/csky/bsd-setjmp.S: Likewise.
3770 * sysdeps/csky/configure: Likewise.
3771 * sysdeps/csky/configure.ac: Likewise.
3772 * sysdeps/csky/dl-machine.h: Likewise.
3773 * sysdeps/csky/dl-procinfo.c: Likewise.
3774 * sysdeps/csky/dl-procinfo.h: Likewise.
3775 * sysdeps/csky/dl-sysdep.h: Likewise.
3776 * sysdeps/csky/dl-tls.h: Likewise.
3777 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3778 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3779 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3780 * sysdeps/csky/fpu/fegetenv.c: Likewise.
3781 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3782 * sysdeps/csky/fpu/fegetmode.c: Likewise.
3783 * sysdeps/csky/fpu/fegetround.c: Likewise.
3784 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3785 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3786 * sysdeps/csky/fpu/fenv_private.h: Likewise.
3787 * sysdeps/csky/fpu/fesetenv.c: Likewise.
3788 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3789 * sysdeps/csky/fpu/fesetmode.c: Likewise.
3790 * sysdeps/csky/fpu/fesetround.c: Likewise.
3791 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3792 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3793 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3794 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3795 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3796 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3797 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3798 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3799 * sysdeps/csky/fpu_control.h: Likewise.
3800 * sysdeps/csky/gccframe.h: Likewise.
3801 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3802 * sysdeps/csky/ldsodefs.h: Likewise.
3803 * sysdeps/csky/libc-tls.c: Likewise.
3804 * sysdeps/csky/linkmap.h: Likewise.
3805 * sysdeps/csky/machine-gmon.h: Likewise.
3806 * sysdeps/csky/memusage.h: Likewise.
3807 * sysdeps/csky/nofpu/Implies: Likewise.
3808 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3809 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3810 * sysdeps/csky/nptl/Makefile: Likewise.
3811 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3812 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3813 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3814 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3815 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3816 * sysdeps/csky/nptl/tls.h: Likewise.
3817 * sysdeps/csky/preconfigure: Likewise.
3818 * sysdeps/csky/sfp-machine.h: Likewise.
3819 * sysdeps/csky/sotruss-lib.c: Likewise.
3820 * sysdeps/csky/stackinfo.h: Likewise.
3821 * sysdeps/csky/sysdep.h: Likewise.
3822 * sysdeps/csky/tininess.h: Likewise.
3823 * sysdeps/csky/tst-audit.h: Likewise.
3824 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3825 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3826 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3827 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3828 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3829 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3830 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3831 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3832 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3833 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3834 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3835 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3836 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3837 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3838 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3839 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3840 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3841 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3842 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3843 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3844 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3845 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3846 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3847 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3848 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3849 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3850 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3851 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3852 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3853 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3854 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3855 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3856 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3857 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3858 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3859 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3860 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3861 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3862 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3863 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3864 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3865 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3866 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3867 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3868
3869 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3870
3871 * include/time.h (__difftime64): Add.
3872 * time/difftime.c (subtract): convert to 64-bit time.
3873 * time/difftime.c (__difftime64): Add.
3874 * time/difftime.c (__difftime): Wrap around __difftime64.
3875
3876 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
3877
3878 * manual/examples/add.c: Remove redundant "if not".
3879 * manual/examples/argp-ex1.c: Likewise.
3880 * manual/examples/argp-ex2.c: Likewise.
3881 * manual/examples/argp-ex3.c: Likewise.
3882 * manual/examples/argp-ex4.c: Likewise.
3883 * manual/examples/atexit.c: Likewise.
3884 * manual/examples/db.c: Likewise.
3885 * manual/examples/dir.c: Likewise.
3886 * manual/examples/dir2.c: Likewise.
3887 * manual/examples/execinfo.c: Likewise.
3888 * manual/examples/filecli.c: Likewise.
3889 * manual/examples/filesrv.c: Likewise.
3890 * manual/examples/fmtmsgexpl.c: Likewise.
3891 * manual/examples/genpass.c: Likewise.
3892 * manual/examples/inetcli.c: Likewise.
3893 * manual/examples/inetsrv.c: Likewise.
3894 * manual/examples/isockad.c: Likewise.
3895 * manual/examples/longopt.c: Likewise.
3896 * manual/examples/memopen.c: Likewise.
3897 * manual/examples/memstrm.c: Likewise.
3898 * manual/examples/mkdirent.c: Likewise.
3899 * manual/examples/mkfsock.c: Likewise.
3900 * manual/examples/mkisock.c: Likewise.
3901 * manual/examples/mygetpass.c: Likewise.
3902 * manual/examples/pipe.c: Likewise.
3903 * manual/examples/popen.c: Likewise.
3904 * manual/examples/rprintf.c: Likewise.
3905 * manual/examples/search.c: Likewise.
3906 * manual/examples/select.c: Likewise.
3907 * manual/examples/setjmp.c: Likewise.
3908 * manual/examples/sigh1.c: Likewise.
3909 * manual/examples/sigusr.c: Likewise.
3910 * manual/examples/stpcpy.c: Likewise.
3911 * manual/examples/strdupa.c: Likewise.
3912 * manual/examples/strftim.c: Likewise.
3913 * manual/examples/subopt.c: Likewise.
3914 * manual/examples/swapcontext.c: Likewise.
3915 * manual/examples/termios.c: Likewise.
3916 * manual/examples/testopt.c: Likewise.
3917 * manual/examples/testpass.c: Likewise.
3918 * manual/examples/timeval_subtract.c: Likewise.
3919
3920 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3921
3922 * sysdeps/x86/fpu/math_private.h: New file.
3923 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3924
3925 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3926 definition.
3927 (cosh): Likewise.
3928 (tanh): Likewise.
3929
3930 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3931
3932 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3933 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3934 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3935 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3936 fields.
3937 (_dl_show_auxv): Give a special treatment to
3938 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3939 and AT_L3_CACHEGEOMETRY.
3940 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3941 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3942 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3943 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3944
3945 2018-12-19 Andreas Schwab <schwab@suse.de>
3946
3947 * nscd/connections.c (check_use): Don't abort on invalid len.
3948
3949 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3950
3951 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3952 values in the 64bit value cases.
3953
3954 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3955
3956 * include/time.h
3957 (__ctime64_r): Add.
3958 * time/ctime_r.c
3959 (__ctime64_r): Add.
3960 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3961
3962 * include/time.h
3963 (__ctime64): Add.
3964 * time/gmtime.c
3965 (__ctime64): Add.
3966 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3967
3968 * include/time.h
3969 (__gmtime64_r): Add.
3970 * time/gmtime.c
3971 (__gmtime64_r): Add.
3972 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3973
3974 * include/time.h
3975 (__gmtime64): Add.
3976 * time/gmtime.c
3977 (__gmtime64): Add.
3978 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3979
3980 * include/time.h
3981 (__localtime64_r): Add.
3982 * time/localtime.c
3983 (__localtime64_r): Add.
3984 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3985
3986 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3987
3988 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3989 kernel_sigction definition.
3990
3991 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3992
3993 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3994
3995 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3996 __syscall_rt_sigaction.
3997 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3998 (kernel_sigaction): Use Linux generic defintion.
3999 (STUB): Define.
4000 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4001 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4002 (__syscall_rt_sigaction): Remove implementation.
4003 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4004 hidden.
4005 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4006 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4007 INTERNAL_SYSCALL): Remove definitions.
4008 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4009 action and signal set size.
4010 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4011 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4012
4013 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4014 James Clarke <jrtc27@jrtc27.com>
4015
4016 [BZ #23967]
4017 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4018 Define if SA_RESTORER is defined.
4019 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4020 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4021 already defined.
4022 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4023 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4024 definitions.
4025 (HAS_SA_RESTORER): Define.
4026 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4027 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4028 (HAS_SA_RESTORER): Define.
4029 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4030 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4031 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4032 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4033 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4034
4035 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4036
4037 * sysdeps/unix/sysv/linux/kernel-features.h
4038 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4039 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4040 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4041 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4042 (__ASSUME_ST_INO_64_BIT): Likewise.
4043 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4044 <kernel-features.h>.
4045 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4046 Remove conditional code.
4047 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4048 <kernel-features.h>.
4049 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4050 Remove conditional code.
4051 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4052 <kernel-features.h>.
4053 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4054 Remove conditional code.
4055 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4056 <kernel-features.h>.
4057 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4058 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4059
4060 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4061
4062 * sysdeps/s390/multiarch/ifunc-resolve.h
4063 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4064 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4065 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4066 Delete macro definition.
4067 (s390_libc_ifunc_init): Rename to
4068 s390_libc_ifunc_expr_stfle_init.
4069 * sysdeps/s390/bzero: Use
4070 s390_libc_ifunc_expr_stfle_init instead of
4071 s390_libc_ifunc_init.
4072 * sysdeps/s390/memcmp.c: Likewise.
4073 * sysdeps/s390/memcpy.c: Likewise.
4074 * sysdeps/s390/mempcpy.c: Likewise.
4075 * sysdeps/s390/memset.c: Likewise.
4076
4077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4078
4079 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4080 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4081
4082 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4083
4084 * sysdeps/s390/multiarch/Makefile
4085 (sysdep_routines): Remove wmemcmp variants.
4086 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4087 * sysdeps/s390/multiarch/ifunc-impl-list.c
4088 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4089 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4090 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4091 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4092 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4093 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4094 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4095 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4096
4097 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4098
4099 * sysdeps/s390/multiarch/Makefile
4100 (sysdep_routines): Remove wmemset variants.
4101 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4102 * sysdeps/s390/multiarch/ifunc-impl-list.c
4103 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4104 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4105 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4106 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4107 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4108 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4109 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4110 * sysdeps/s390/ifunc-wmemset.h: New file.
4111
4112 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4113
4114 * sysdeps/s390/multiarch/Makefile
4115 (sysdep_routines): Remove wmemchr variants.
4116 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4117 * sysdeps/s390/multiarch/ifunc-impl-list.c
4118 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4119 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4120 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4121 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4122 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4123 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4124 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4125 * sysdeps/s390/ifunc-wmemchr.h: New file.
4126
4127 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4128
4129 * sysdeps/s390/multiarch/Makefile
4130 (sysdep_routines): Remove wcscspn variants.
4131 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4132 * sysdeps/s390/multiarch/ifunc-impl-list.c
4133 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4134 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4135 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4136 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4137 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4138 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4139 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4140 * sysdeps/s390/ifunc-wcscspn.h: New file.
4141
4142 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4143
4144 * sysdeps/s390/multiarch/Makefile
4145 (sysdep_routines): Remove wcspbrk variants.
4146 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4147 * sysdeps/s390/multiarch/ifunc-impl-list.c
4148 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4149 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4150 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4151 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4152 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4153 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4154 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4155 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4156
4157 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4158
4159 * sysdeps/s390/multiarch/Makefile
4160 (sysdep_routines): Remove wcsspn variants.
4161 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4162 * sysdeps/s390/multiarch/ifunc-impl-list.c
4163 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4164 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4165 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4166 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4167 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4168 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4169 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4170 * sysdeps/s390/ifunc-wcsspn.h: New file.
4171
4172 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4173
4174 * sysdeps/s390/multiarch/Makefile
4175 (sysdep_routines): Remove wcsrchr variants.
4176 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4177 * sysdeps/s390/multiarch/ifunc-impl-list.c
4178 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4179 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4180 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4181 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4182 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4183 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4184 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4185 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4186
4187 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4188
4189 * sysdeps/s390/multiarch/Makefile
4190 (sysdep_routines): Remove wcschrnul variants.
4191 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4192 * sysdeps/s390/multiarch/ifunc-impl-list.c
4193 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4194 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4195 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4196 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4197 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4198 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4199 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4200 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4201
4202 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4203
4204 * sysdeps/s390/multiarch/Makefile
4205 (sysdep_routines): Remove wcschr variants.
4206 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4207 * sysdeps/s390/multiarch/ifunc-impl-list.c
4208 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4209 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4210 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4211 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4212 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4213 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4214 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4215 * sysdeps/s390/ifunc-wcschr.h: New file.
4216
4217 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4218
4219 * sysdeps/s390/multiarch/Makefile
4220 (sysdep_routines): Remove wcsncmp variants.
4221 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4222 * sysdeps/s390/multiarch/ifunc-impl-list.c
4223 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4224 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4225 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4226 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4227 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4228 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4229 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4230 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4231
4232 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4233
4234 * sysdeps/s390/multiarch/Makefile
4235 (sysdep_routines): Remove wcscmp variants.
4236 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4237 * sysdeps/s390/multiarch/ifunc-impl-list.c
4238 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4239 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4240 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4241 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4242 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4243 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4244 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4245 * sysdeps/s390/ifunc-wcscmp.h: New file.
4246
4247 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4248
4249 * sysdeps/s390/multiarch/Makefile
4250 (sysdep_routines): Remove wcsncat variants.
4251 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4252 * sysdeps/s390/multiarch/ifunc-impl-list.c
4253 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4254 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4255 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4256 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4257 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4258 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4259 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4260 * sysdeps/s390/ifunc-wcsncat.h: New file.
4261
4262 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4263
4264 * sysdeps/s390/multiarch/Makefile
4265 (sysdep_routines): Remove wcscat variants.
4266 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4267 * sysdeps/s390/multiarch/ifunc-impl-list.c
4268 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4269 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4270 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4271 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4272 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4273 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4274 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4275 * sysdeps/s390/ifunc-wcscat.h: New file.
4276
4277 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4278
4279 * sysdeps/s390/multiarch/Makefile
4280 (sysdep_routines): Remove wcpncpy variants.
4281 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4282 * sysdeps/s390/multiarch/ifunc-impl-list.c
4283 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4284 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4285 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4286 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4287 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4288 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4289 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4290 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4291
4292 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4293
4294 * sysdeps/s390/multiarch/Makefile
4295 (sysdep_routines): Remove wcsncpy variants.
4296 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4297 * sysdeps/s390/multiarch/ifunc-impl-list.c
4298 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4299 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4300 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4301 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4302 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4303 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4304 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4305 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4306
4307 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4308
4309 * sysdeps/s390/multiarch/Makefile
4310 (sysdep_routines): Remove wcpcpy variants.
4311 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4312 * sysdeps/s390/multiarch/ifunc-impl-list.c
4313 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4314 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4315 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4316 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4317 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4318 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4319 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4320 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4321
4322 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4323
4324 * sysdeps/s390/multiarch/Makefile
4325 (sysdep_routines): Remove wcscpy variants.
4326 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4327 * sysdeps/s390/multiarch/ifunc-impl-list.c
4328 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4329 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4330 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4331 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4332 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4333 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4334 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4335 * sysdeps/s390/ifunc-wcscpy.h: New file.
4336
4337 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4338
4339 * sysdeps/s390/multiarch/Makefile
4340 (sysdep_routines): Remove wcsnlen variants.
4341 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4342 * sysdeps/s390/multiarch/ifunc-impl-list.c
4343 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4344 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4345 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4346 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4347 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4348 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4349 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4350 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4351
4352 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4353
4354 * sysdeps/s390/multiarch/Makefile
4355 (sysdep_routines): Remove wcslen variants.
4356 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4357 * sysdeps/s390/multiarch/ifunc-impl-list.c
4358 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4359 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4360 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4361 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4362 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4363 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4364 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4365 * sysdeps/s390/ifunc-wcslen.h: New file.
4366
4367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4368
4369 * sysdeps/s390/multiarch/Makefile
4370 (sysdep_routines): Remove memrchr variants.
4371 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4372 * sysdeps/s390/multiarch/ifunc-impl-list.c
4373 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4374 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4375 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4376 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4377 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4378 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4379 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4380 * sysdeps/s390/ifunc-memrchr.h: New file.
4381
4382 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4383
4384 * sysdeps/s390/multiarch/Makefile
4385 (sysdep_routines): Remove memccpy variants.
4386 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4387 * sysdeps/s390/multiarch/ifunc-impl-list.c
4388 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4389 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4390 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4391 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4392 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4393 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4394 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4395 * sysdeps/s390/ifunc-memccpy.h: New file.
4396
4397 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4398
4399 * sysdeps/s390/multiarch/Makefile
4400 (sysdep_routines): Remove rawmemchr variants.
4401 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
4402 * sysdeps/s390/multiarch/ifunc-impl-list.c
4403 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
4404 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
4405 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
4406 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
4407 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
4408 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
4409 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
4410 * sysdeps/s390/ifunc-rawmemchr.h: New file.
4411
4412 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4413
4414 * sysdeps/s390/multiarch/Makefile
4415 (sysdep_routines): Remove memchr variants.
4416 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
4417 * sysdeps/s390/multiarch/ifunc-impl-list.c
4418 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
4419 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
4420 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
4421 * sysdeps/s390/multiarch/memchr.c: Move to ...
4422 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
4423 * sysdeps/s390/ifunc-memchr.h: New file.
4424 * sysdeps/s390/s390-64/memchr.S: Move to ...
4425 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
4426 for 31/64bit and ifunc handling.
4427 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
4428 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
4429 * sysdeps/s390/s390-32/memchr.S: Likewise.
4430
4431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4432
4433 * sysdeps/s390/multiarch/Makefile
4434 (sysdep_routines): Remove strcspn variants.
4435 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
4436 * sysdeps/s390/multiarch/ifunc-impl-list.c
4437 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
4438 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
4439 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
4440 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
4441 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
4442 * sysdeps/s390/multiarch/strcspn.c: Move to ...
4443 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
4444 * sysdeps/s390/ifunc-strcspn.h: New file.
4445
4446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4447
4448 * sysdeps/s390/multiarch/Makefile
4449 (sysdep_routines): Remove strpbrk variants.
4450 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
4451 * sysdeps/s390/multiarch/ifunc-impl-list.c
4452 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
4453 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
4454 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
4455 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
4456 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
4457 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
4458 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
4459 * sysdeps/s390/ifunc-strpbrk.h: New file.
4460
4461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4462
4463 * sysdeps/s390/multiarch/Makefile
4464 (sysdep_routines): Remove strspn variants.
4465 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
4466 * sysdeps/s390/multiarch/ifunc-impl-list.c
4467 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
4468 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
4469 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
4470 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
4471 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
4472 * sysdeps/s390/multiarch/strspn.c: Move to ...
4473 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
4474 * sysdeps/s390/ifunc-strspn.h: New file.
4475
4476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4477
4478 * sysdeps/s390/multiarch/Makefile
4479 (sysdep_routines): Remove strrchr variants.
4480 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
4481 * sysdeps/s390/multiarch/ifunc-impl-list.c
4482 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
4483 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
4484 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
4485 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
4486 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
4487 * sysdeps/s390/multiarch/strrchr.c: Move to ...
4488 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
4489 * sysdeps/s390/ifunc-strrchr.h: New file.
4490
4491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4492
4493 * sysdeps/s390/multiarch/Makefile
4494 (sysdep_routines): Remove strchrnul variants.
4495 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
4496 * sysdeps/s390/multiarch/ifunc-impl-list.c
4497 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
4498 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
4499 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
4500 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
4501 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
4502 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
4503 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
4504 * sysdeps/s390/ifunc-strchrnul.h: New file.
4505
4506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4507
4508 * sysdeps/s390/multiarch/Makefile
4509 (sysdep_routines): Remove strchr variants.
4510 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
4511 * sysdeps/s390/multiarch/ifunc-impl-list.c
4512 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
4513 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
4514 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
4515 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
4516 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
4517 * sysdeps/s390/multiarch/strchr.c: Move to ...
4518 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
4519 * sysdeps/s390/ifunc-strchr.h: New file.
4520
4521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4522
4523 * sysdeps/s390/multiarch/Makefile
4524 (sysdep_routines): Remove strncmp variants.
4525 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
4526 * sysdeps/s390/multiarch/ifunc-impl-list.c
4527 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
4528 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
4529 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
4530 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
4531 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
4532 * sysdeps/s390/multiarch/strncmp.c: Move to ...
4533 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
4534 * sysdeps/s390/ifunc-strncmp.h: New file.
4535
4536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4537
4538 * sysdeps/s390/multiarch/Makefile
4539 (sysdep_routines): Remove strcmp variants.
4540 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
4541 * sysdeps/s390/multiarch/ifunc-impl-list.c
4542 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
4543 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
4544 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
4545 * sysdeps/s390/multiarch/strcmp.c: Move to ...
4546 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
4547 * sysdeps/s390/ifunc-strcmp.h: New file.
4548 * sysdeps/s390/s390-64/strcmp.S: Move to ...
4549 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
4550 for 31/64bit and ifunc handling.
4551 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
4552 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
4553 * sysdeps/s390/s390-32/strcmp.S: Likewise.
4554
4555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4556
4557 * sysdeps/s390/multiarch/Makefile
4558 (sysdep_routines): Remove strncat variants.
4559 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
4560 * sysdeps/s390/multiarch/ifunc-impl-list.c
4561 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
4562 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
4563 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
4564 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
4565 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
4566 * sysdeps/s390/multiarch/strncat.c: Move to ...
4567 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
4568 * sysdeps/s390/ifunc-strncat.h: New file.
4569
4570 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4571
4572 * sysdeps/s390/multiarch/Makefile
4573 (sysdep_routines): Remove strcat variants.
4574 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
4575 * sysdeps/s390/multiarch/ifunc-impl-list.c
4576 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
4577 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
4578 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
4579 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
4580 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
4581 * sysdeps/s390/multiarch/strcat.c: Move to ...
4582 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
4583 * sysdeps/s390/ifunc-strcat.h: New file.
4584
4585 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4586
4587 * sysdeps/s390/multiarch/Makefile
4588 (sysdep_routines): Remove stpncpy variants.
4589 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
4590 * sysdeps/s390/multiarch/ifunc-impl-list.c
4591 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
4592 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
4593 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
4594 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
4595 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
4596 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
4597 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
4598 * sysdeps/s390/ifunc-stpncpy.h: New file.
4599
4600 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4601
4602 * sysdeps/s390/multiarch/Makefile
4603 (sysdep_routines): Remove strncpy variants.
4604 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
4605 * sysdeps/s390/multiarch/ifunc-impl-list.c
4606 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
4607 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
4608 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
4609 * sysdeps/s390/multiarch/strncpy.c: Move to ...
4610 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
4611 * sysdeps/s390/ifunc-strncpy.h: New file.
4612 * sysdeps/s390/s390-64/strncpy.S: Move to ...
4613 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
4614 and adjust ifunc handling.
4615 * sysdeps/s390/s390-32/strncpy.S: Move to ...
4616 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
4617 and adjust ifunc handling.
4618 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
4619 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
4620
4621 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4622
4623 * sysdeps/s390/multiarch/Makefile
4624 (sysdep_routines): Remove stpcpy variants.
4625 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
4626 * sysdeps/s390/multiarch/ifunc-impl-list.c
4627 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
4628 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
4629 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
4630 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
4631 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
4632 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
4633 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
4634 * sysdeps/s390/ifunc-stpcpy.h: New file.
4635
4636 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4637
4638 * sysdeps/s390/multiarch/Makefile
4639 (sysdep_routines): Remove strcpy variants.
4640 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
4641 * sysdeps/s390/multiarch/ifunc-impl-list.c
4642 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
4643 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
4644 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
4645 * sysdeps/s390/multiarch/strcpy.c: Move to ...
4646 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
4647 * sysdeps/s390/ifunc-strcpy.h: New file.
4648 * sysdeps/s390/s390-64/strcpy.S: Move to ...
4649 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
4650 for 31/64bit and ifunc handling.
4651 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
4652 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
4653 * sysdeps/s390/s390-32/strcpy.S: Likewise.
4654
4655 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4656
4657 * sysdeps/s390/multiarch/Makefile
4658 (sysdep_routines): Remove strnlen variants.
4659 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
4660 * sysdeps/s390/multiarch/ifunc-impl-list.c
4661 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
4662 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
4663 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
4664 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
4665 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
4666 * sysdeps/s390/multiarch/strnlen.c: Move to ...
4667 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
4668 * sysdeps/s390/ifunc-strnlen.h: New file.
4669
4670 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4671
4672 * sysdeps/s390/multiarch/Makefile
4673 (sysdep_routines): Remove strlen variants.
4674 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
4675 * sysdeps/s390/multiarch/ifunc-impl-list.c
4676 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
4677 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
4678 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
4679 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
4680 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
4681 * sysdeps/s390/multiarch/strlen.c: Move to ...
4682 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
4683 * sysdeps/s390/ifunc-strlen.h: New file.
4684
4685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4686
4687 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
4688 * sysdeps/s390/multiarch/ifunc-impl-list.c
4689 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
4690 * sysdeps/s390/ifunc-memmem.h: New file.
4691 * sysdeps/s390/memmem.c: Likewise.
4692 * sysdeps/s390/memmem-c.c: Likewise.
4693 * sysdeps/s390/memmem-vx.c: Likewise.
4694
4695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4696
4697 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
4698 * sysdeps/s390/multiarch/ifunc-impl-list.c
4699 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
4700 * sysdeps/s390/ifunc-strstr.h: New file.
4701 * sysdeps/s390/strstr.c: Likewise.
4702 * sysdeps/s390/strstr-c.c: Likewise.
4703 * sysdeps/s390/strstr-vx.c: Likewise.
4704
4705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4706
4707 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
4708 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
4709 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
4710 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
4711 New defines.
4712 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
4713 * sysdeps/s390/memmove-c.c: New file.
4714 * sysdeps/s390/memmove.c: Likewise.
4715 * sysdeps/s390/multiarch/ifunc-impl-list.c
4716 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
4717
4718 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4719
4720 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
4721 * sysdeps/s390/configure.ac: Add check for z13 support.
4722 * sysdeps/s390/configure: Regenerated.
4723
4724 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4725
4726 * sysdeps/s390/memcopy.h: New file.
4727
4728 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4729
4730 * sysdeps/s390/s390-32/bcopy.S: Remove.
4731 * sysdeps/s390/s390-64/bcopy.S: Likewise.
4732
4733 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4734
4735 * sysdeps/s390/ifunc-memcpy.h: New File.
4736 * sysdeps/s390/memcpy.S: Move to ...
4737 * sysdeps/s390/memcpy-z900.S ... here.
4738 Move implementations from memcpy-s390x.s to here.
4739 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
4740 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4741 Remove memcpy/mempcpy variants.
4742 * sysdeps/s390/Makefile (sysdep_routines):
4743 Add memcpy/mempcpy variants.
4744 * sysdeps/s390/multiarch/ifunc-impl-list.c
4745 (__libc_ifunc_impl_list): Adjust ifunc variants for
4746 memcpy and mempcpy.
4747 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4748 to ...
4749 * sysdeps/s390/memcpy.c: ... here.
4750 Adjust ifunc variants for memcpy.
4751 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4752 * sysdeps/s390/mempcpy.c: ... here.
4753 Adjust ifunc variants for mempcpy.
4754 * sysdeps/s390/mempcpy.S: Delete file.
4755
4756 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4757
4758 * sysdeps/s390/s390-64/memcpy.S: Move to ...
4759 * sysdeps/s390/memcpy.S: ... here.
4760 Adjust to be usable for 31/64bit.
4761 * sysdeps/s390/s390-32/memcpy.S: Delete File.
4762 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4763 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4764 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4765 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4766 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4767 Adjust to be usable for 31/64bit.
4768 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4769 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4770 * sysdeps/s390/multiarch/memcpy.c: ... here.
4771 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4772
4773 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4774
4775 * sysdeps/s390/ifunc-memcmp.h: New File.
4776 * sysdeps/s390/memcmp.S: Move to ...
4777 * sysdeps/s390/memcmp-z900.S ... here.
4778 Move implementations from memcmp-s390x.s to here.
4779 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4780 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4781 Remove memcmp variants.
4782 * sysdeps/s390/Makefile (sysdep_routines):
4783 Add memcmp variants.
4784 * sysdeps/s390/multiarch/ifunc-impl-list.c
4785 (__libc_ifunc_impl_list): Adjust ifunc variants for
4786 memcmp.
4787 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4788 to ...
4789 * sysdeps/s390/memcmp.c: ... here.
4790 Adjust ifunc variants for memcmp.
4791
4792 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4793
4794 * sysdeps/s390/s390-64/memcmp.S: Move to ...
4795 * sysdeps/s390/memcmp.S: ... here.
4796 Adjust to be usable for 31/64bit.
4797 * sysdeps/s390/s390-32/memcmp.S: Delete File.
4798 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4799 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4800 Remove memcmp.
4801 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4802 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4803 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4804 Adjust to be usable for 31/64bit.
4805 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4806 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4807 * sysdeps/s390/multiarch/memcmp.c: ... here.
4808 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4809
4810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4811
4812 * sysdeps/s390/s390-32/bzero.S: Delete file.
4813 * sysdeps/s390/s390-64/bzero.S: Likewise.
4814 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4815 * sysdeps/s390/bzero.c: New file.
4816 * sysdeps/s390/memset-z900.S: Add bzero entry points.
4817 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4818 * sysdeps/s390/multiarch/ifunc-impl-list.c
4819 (__libc_ifunc_impl_list): Add bzero ifunc variants.
4820
4821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4822
4823 * sysdeps/s390/ifunc-memset.h: New File.
4824 * sysdeps/s390/memset.S: Move to ...
4825 * sysdeps/s390/memset-z900.S ... here.
4826 Move implementations from memset-s390x.s to here.
4827 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4828 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4829 Remove memset variants.
4830 * sysdeps/s390/Makefile (sysdep_routines):
4831 Add memset variants.
4832 * sysdeps/s390/multiarch/ifunc-impl-list.c
4833 (__libc_ifunc_impl_list): Adjust ifunc variants for
4834 memset.
4835 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4836 to ...
4837 * sysdeps/s390/memset.c: ... here.
4838 Adjust ifunc variants for memset.
4839
4840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4841
4842 * sysdeps/s390/s390-64/memset.S: Move to ...
4843 * sysdeps/s390/memset.S: ... here.
4844 Adjust to be usable for 31/64bit.
4845 * sysdeps/s390/s390-32/memset.S: Delete File.
4846 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4847 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4848 Remove memset.
4849 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4850 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4851 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4852 Adjust to be usable for 31/64bit.
4853 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4854 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4855 * sysdeps/s390/multiarch/memset.c: ... here.
4856 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4857
4858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4859
4860 * sysdeps/s390/multiarch/ifunc-resolve.h
4861 (s390_libc_ifunc_init, s390_libc_ifunc,
4862 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4863
4864 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4865
4866 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4867 * sysdeps/s390/configure.ac: Add check for z10 support.
4868 * sysdeps/s390/configure: Regenerated.
4869
4870 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
4871
4872 * sysdeps/i386/atomic-machine.h: Merged with ...
4873 * sysdeps/x86_64/atomic-machine.h: To ...
4874 * sysdeps/x86/atomic-machine.h: This. New file.
4875
4876 2018-12-18 Florian Weimer <fweimer@redhat.com>
4877
4878 Rewrite locale/gen-translit.pl in Python.
4879 * locale/Makefile (generated): Add C-translit.h.
4880 (before-compile): Add $(objpfx)C-translit.h.
4881 (C-translit.h): Move to $(objpfx). Create target directory.
4882 Build using Python script.
4883 * locale/gen-translit.py: New file.
4884 * locale/gen-translit.pl: Remove file.
4885 * locale/C-translit.h.in: Change comment character to '#' for
4886 easier parsing without a C preprocessor.
4887 * locale/C-translit.h: Remove generated file.
4888 * manual/install.texi (Tools for Compilation): Do not mention
4889 C-translit.h.
4890 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4891 Remove locale/C-translit.h.
4892 * scripts/update-copyrights: Likewise.
4893 * INSTALL: Regenerate.
4894
4895 2018-12-18 Florian Weimer <fweimer@redhat.com>
4896
4897 [BZ #23995]
4898 * localedata/locales/bi_VU: Remove executable bit from file.
4899
4900 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
4901
4902 * include/time.h
4903 (__localtime64): Add.
4904 * manual/maint.texi: Document Y2038 symbol handling.
4905 * time/localtime.c
4906 (__localtime64): Add.
4907 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4908
4909 2018-12-17 Joseph Myers <joseph@codesourcery.com>
4910
4911 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4912 Do not clobber r12.
4913
4914 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4915 to allow extra macros from first or second sources.
4916 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4917 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4918 (tests-special): Add $(objpfx)tst-mman-consts.out.
4919 ($(objpfx)tst-mman-consts.out): New makefile target.
4920
4921 2018-12-17 Mao Han <han_mao@c-sky.com>
4922
4923 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4924 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4925 without stat64 system call support.
4926 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4927 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4928 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4929 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4930 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4931 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4932 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4933 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4934 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4935 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4936 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4937
4938 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4939
4940 regex: fix storage-exhaustion error
4941 [BZ #18040]
4942 * posix/regexec.c (get_subexp):
4943 Do not continue if storage is exhausted.
4944
4945 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4946
4947 regex: fix heap-use-after-free error
4948 [BZ #18040]
4949 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4950 https://debbugs.gnu.org/32592
4951 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4952 call extend_buffers which reallocates the re_string_t internal buffer.
4953 Local variable 'buf' was not updated in such case, resulting in
4954 use-after-free.
4955 * posix/regexec.c (get_subexp): Update 'buf' after call to
4956 get_subexp_sub.
4957
4958 2018-12-15 Florian Weimer <fweimer@redhat.com>
4959
4960 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4961 (minimum_stride_size): Use it.
4962 (support_blob_repeat_allocate): Likewise.
4963
4964 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4965
4966 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4967 definition.
4968 (acosh): Likewise.
4969 (atanh): Likewise.
4970
4971 2018-12-14 Florian Weimer <fweimer@redhat.com>
4972
4973 * manual/process.texi (Process Creation Concepts): Remove
4974 documentation of process (ID) lifetime. List more process
4975 creation functions. Reference Process Identification section.
4976 (Process Identification): Add information about process ID
4977 lifetime. Describe Linux thread/task IDs.
4978 * manual/signal.texi (Signaling Another Process): Mention that the
4979 signal is always sent to the process.
4980
4981 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4982
4983 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4984 and tst-ldbl-efgcvt.
4985 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4986 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4987 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4988 (fcvt_tests, output_error, output_r_error, do_test): Use the
4989 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4990 select the type of floating-point variables and arguments; to
4991 produce extra tests for double and conversion specifiers for
4992 printf; and to set the names of called functions.
4993 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4994 in tst-efgcvt-template.c.
4995 * misc/tst-ldbl-efgcvt.c: Likewise.
4996
4997 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4998
4999 * nss/Makefile (tst-nss-test3.out): New rule.
5000
5001 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5002
5003 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5004 clobber sp.
5005
5006 2018-12-13 fanjinke <fanjinke@hygon.cn>
5007
5008 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5009 "HygonGenuine".
5010
5011 2018-12-13 Andreas Schwab <schwab@suse.de>
5012
5013 [BZ #23861]
5014 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5015 (__pthread_rwlock_rdlock_full): Update expected value for
5016 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5017 * nptl/tst-rwlock-pwn.c: New file.
5018 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5019
5020 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5021
5022 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5023 definition.
5024
5025 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5026
5027 * benchtests/scripts/compare_bench.py (do_compare): write to
5028 stderr in casestat is not present.
5029 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5030 stderr in case timings field is not present. Also string showing
5031 the output filename goes into the stderr.
5032
5033 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5034
5035 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5036 and ZeroDivisorError exceptions.
5037 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5038 argument to loop through user provided statistics.
5039 * benchtests/scripts/compare_bench.py (main): Include the --stats
5040 argument.
5041
5042 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5043
5044 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5045 instead of return.
5046
5047 2018-12-12 Florian Weimer <fweimer@redhat.com>
5048
5049 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5050 clause to copyright header.
5051
5052 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5053
5054 [BZ #23614]
5055 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5056 registers saved in the stack frame.
5057 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5058 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5059
5060 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5061
5062 * include/bits/monetary-ldbl.h: New file.
5063 * include/bits/printf-ldbl.h: Likewise.
5064 * include/bits/stdio-ldbl.h: Likewise.
5065 * include/bits/stdlib-ldbl.h: Likewise.
5066 * include/bits/syslog-ldbl.h: Likewise.
5067 * include/bits/wchar-ldbl.h: Likewise.
5068
5069 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5070
5071 * libio/libio.h: Remove redirection for _IO_vfprintf.
5072
5073 2018-12-11 Andreas Schwab <schwab@suse.de>
5074
5075 * Makerules: Remove all references to abilist-pattern.
5076 (update-all-abi): Simplify find expression.
5077
5078 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5079
5080 [BZ #23961]
5081 * math/auto-libm-test-in: Add new test case.
5082 * math/auto-libm-test-out-pow: Regenerated.
5083 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5084
5085 2018-12-10 DJ Delorie <dj@redhat.com>
5086
5087 [BZ #23948]
5088 * support/test-container.c: Move postclean step to before we
5089 change namespaces.
5090
5091 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5092
5093 * scripts/gen-as-const.py (main): Handle --python option.
5094 * scripts/gen-py-const.awk: Remove.
5095 * Makerules (py-const-script): Use gen-as-const.py.
5096 ($(py-const)): Likewise.
5097 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5098 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5099 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5100 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5101 ~PTHREAD_MUTEX_NO_ELISION_NP.
5102 * manual/README.pretty-printers: Update reference to
5103 gen-py-const.awk.
5104
5105 * scripts/glibcextract.py: New file.
5106 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5107 or tempfile. Import glibcexctract.
5108 (compute_c_consts): Remove. Moved to glibcextract.py.
5109 (gen_test): Update reference to compute_c_consts.
5110 (main): Likewise.
5111 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5112 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5113 * sysdeps/unix/sysv/linux/Makefile
5114 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5115 Redirect stderr as well as stdout.
5116
5117 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5118
5119 [BZ #19767]
5120 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5121 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5122 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5123 ALWAYS_USE_VSYSCALL.
5124 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5125 ALWAYS_USE_VSYSCALL.
5126 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5127 ALWAYS_USE_VSYSCALL.
5128
5129 2018-12-10 Florian Weimer <fweimer@redhat.com>
5130
5131 [BZ #23972]
5132 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5133 offset instead of count for clarity. Fix typo in comment.
5134 (__old_getdents64): Keep track of previous offset. Use it to call
5135 handle_overflow.
5136 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5137 that d_off is never zero.
5138
5139 2018-12-10 Andreas Schwab <schwab@suse.de>
5140
5141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5142 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5144 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5145 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5146
5147 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5148
5149 * timezone/private.h: Update from tzcode 2018g.
5150 * timezone/tzfile.h: Likewise.
5151 * timezone/tzselect.ksh: Likewise.
5152 * timezone/zdump.c: Likewise.
5153 * timezone/zic.c: Likewise.
5154
5155 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5156
5157 [BZ #23490]
5158 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5159 (do_test): Adjust buffer size and fix format.
5160
5161 2018-12-07 DJ Delorie <dj@redhat.com>
5162
5163 [BZ #23907]
5164 * malloc/tst-tcfree3.c: New.
5165 * malloc/Makefile: Add it.
5166
5167 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5168
5169 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5170
5171 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5172
5173 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5174 used as a mask for the mode argument of __vfscanf_internal and
5175 __vfwscanf_internal.
5176 * stdio-common/vfscanf-internal.c
5177 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5178 (__strtof128_internal): Define to __wcstof128_internal.
5179 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5180 __strtof128_internal or __wcstof128_internal when the format of
5181 long double is the same as _Float128.
5182
5183 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5184
5185 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5186 * posix/confstr.c (confstr): Rename to __confstr.
5187 (__confstr): Add hidden def.
5188 (confstr): Add weak alias for __confstr.
5189 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5190 confstr.
5191
5192 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5193
5194 * NEWS: Mention getcpu.
5195 * include/sched.h (__getcpu): New libc_hidden_proto.
5196 * manual/resource.texi: Document getcpu.
5197 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5198 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5199 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5200 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5201 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5202 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5203 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5204 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5205 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5206 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5207 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5208 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5209 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5210 Likewise.
5211 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5212 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5213 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5215 Likewise.
5216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5217 Likewise.
5218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5219 Likewise.
5220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5221 Likewise.
5222 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5223 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5224 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5225 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5226 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5227 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5228 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5229 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5230 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5231 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5232 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5233 Also check getcpu.
5234
5235 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5236
5237 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5238 functions.
5239 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5240
5241 2018-12-07 Florian Weimer <fweimer@redhat.com>
5242
5243 [BZ #17405]
5244 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5245 * posix/Versions (GLIBC_2.29): Export
5246 posix_spawn_file_actions_addfchdir_np.
5247 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5248 * posix/spawn_faction_destroy.c
5249 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5250 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5251 and the field action.fchdir_action.
5252 * posix/tst-spawn-chdir.c (add_chdir): New function.
5253 (do_test): Add do_fchdir loop. Call add_chdir.
5254 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5255 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5256 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5257 posix_spawn_file_actions_addfchdir_np.
5258 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5259 Likewise.
5260 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5261 Likewise.
5262 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5263 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5264 Likewise.
5265 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5266 Likewise.
5267 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5268 Likewise.
5269 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5270 Likewise.
5271 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5272 Likewise.
5273 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5274 Likewise.
5275 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5276 (GLIBC_2.29): Likewise.
5277 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5278 (GLIBC_2.29): Likewise.
5279 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5280 (GLIBC_2.29): Likewise.
5281 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5282 (GLIBC_2.29): Likewise.
5283 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5284 Likewise.
5285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5286 (GLIBC_2.29): Likewise.
5287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5288 (GLIBC_2.29): Likewise.
5289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5290 (GLIBC_2.29): Likewise.
5291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5292 (GLIBC_2.29): Likewise.
5293 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5294 Likewise.
5295 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5296 Likewise.
5297 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5298 Likewise.
5299 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5300 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5301 Likewise.
5302 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5303 Likewise.
5304 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5305 Likewise.
5306 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5307 Likewise.
5308
5309 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5310
5311 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5312 trailing whitespace removed.
5313 * scripts/config.guess: Update to version 2018-11-28.
5314 * scripts/config.sub: Update to version 2018-11-28.
5315 * scripts/install-sh: Update to version 2018-03-11.20.
5316 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5317 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5318
5319 2018-12-07 Florian Weimer <fweimer@redhat.com>
5320
5321 [BZ #23927]
5322 CVE-2018-19591
5323 * inet/tst-if_index-long.c: New file.
5324 * inet/Makefile (tests): Add tst-if_index-long.
5325
5326 2018-12-07 Florian Weimer <fweimer@redhat.com>
5327
5328 * support/check.h (support_record_failure_is_failed): Declare.
5329 * support/descriptors.h: New file.
5330 * support/support_descriptors.c: Likewise.
5331 * support/tst-support_descriptors.c: Likewise.
5332 * support/support_record_failure.c
5333 (support_record_failure_is_failed): New function.
5334 * support/Makefile (libsupport-routines): Add support_descriptors.
5335 (tests): Add tst-support_descriptors.
5336
5337 2018-12-05 Zack Weinberg <zackw@panix.com>
5338 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5339
5340 * stdio-common/vfprintf-internal.c
5341 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5342 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5343 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5344 and __no_long_double.
5345 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5346 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5347 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5348 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5349 and __nldbl_*syslog* functions.
5350 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5351 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5352 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5353 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5354 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5355 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5356 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5357 (__nldbl_vwprintf, __nldbl_wprintf):
5358 Directly call the appropriate __v*printf_internal routine, passing
5359 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5360 variable names.
5361 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5362 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5363 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5364 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5365 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5366 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5367 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5368 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5369 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5370 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5371 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5372 (__nldbl_syslog, __nldbl_vsyslog):
5373 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5374 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5375 appropriate.
5376 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5377 appropriate.
5378
5379 2018-12-05 Zack Weinberg <zackw@panix.com>
5380 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5381
5382 [BZ #11319]
5383 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5384 Moved here from debug/vsprintf_chk.c.
5385 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5386 and completion logic for the strfile to match exactly what
5387 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5388 _IO_str_init_static_internal instead of maxlen-1.
5389 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5390 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5391 __vsprintf_internal.
5392
5393 * debug/vsprintf_chk.c (__vsprintf_chk)
5394 * debug/sprintf_chk.c (__sprintf_chk):
5395 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5396 'flags' argument is positive, and slen as maxlen. No need to lock
5397 the FILE and/or construct a temporary FILE. Minimize and normalize
5398 header inclusions and variable names. Do not libc_hidden_def anything.
5399
5400 * debug/asprintf_chk.c (__asprintf_chk)
5401 * debug/dprintf_chk.c (__dprintf_chk)
5402 * debug/fprintf_chk.c (__fprintf_chk)
5403 * debug/fwprintf_chk.c (__fwprintf_chk)
5404 * debug/printf_chk.c (__printf_chk)
5405 * debug/snprintf_chk.c (__snprintf_chk)
5406 * debug/swprintf_chk.c (__swprintf_chk)
5407 * debug/vasprintf_chk.c (__vasprintf_chk)
5408 * debug/vdprintf_chk.c (__vdprintf_chk)
5409 * debug/vfprintf_chk.c (__vfprintf_chk)
5410 * debug/vfwprintf_chk.c (__vfwprintf_chk)
5411 * debug/vprintf_chk.c (__vprintf_chk)
5412 * debug/vsnprintf_chk.c (__vsnprintf_chk)
5413 * debug/vswprintf_chk.c (__vswprintf_chk)
5414 * debug/vwprintf_chk.c (__vwprintf_chk)
5415 * debug/wprintf_chk.c (__wprintf_chk):
5416 Directly call the corresponding vxxprintf_internal function, passing
5417 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
5418 the FILE and/or construct a temporary FILE. Minimize and normalize
5419 header inclusions and variable names. Do not libc_hidden_def anything.
5420
5421 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
5422 __obstack_vprintf_internal.
5423 (__obstack_vprintf_chk): Convert into a wrapper that calls
5424 __obstack_vprintf_internal (these two functions already had the
5425 same code) and move to new file...
5426 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
5427 file.
5428 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
5429 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
5430 * debug/Makefile (routines): Add vobprintf_chk.
5431
5432 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5433 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5434 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
5435 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5436 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
5437 (__nldbl___obstack_vfprintf_chk):
5438 Directly call the corresponding vxxprintf_internal function,
5439 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
5440 duplicate comparison of slen with 0 or maxlen from the corresponding
5441 non-__nldbl function.
5442
5443 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
5444 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
5445 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
5446 Remove libc_hidden_proto.
5447
5448 * stdio-common/vfprintf-internal.c
5449 (__vfprintf_internal, __vfwprintf_internal):
5450 Do not check _IO_FLAGS2_FORTIFY.
5451 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
5452 * libio/libioP.h: Update prototype of __vsprintf_internal and add
5453 a comment explaining why it has the maxlen argument.
5454 (_IO_acquire_lock_clear_flags2_fct): Remove.
5455 (_IO_acquire_lock_clear_flags2): Remove.
5456 (_IO_release_lock): Remove conditional statement which will
5457 now never execute.
5458 (_IO_acquire_lock): Remove variable which is now unused.
5459 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5460 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5461
5462 * stdio-common/Makefile (tests): Add tst-bz11319 and
5463 tst-bz11319-fortify2.
5464 (CFLAGS-tst-bz11319-fortify2.c): New macro.
5465 * stdio-common/tst-bz11319-fortify2.c: New file.
5466 * stdio-common/tst-bz11319.c: Likewise.
5467
5468 2018-12-05 Zack Weinberg <zackw@panix.com>
5469 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5470
5471 * misc/syslog.c: Include libioP.h, not iolibio.h.
5472 (__vsyslog_internal): New function with the former body of
5473 __vsyslog_chk; takes mode_flags argument same as
5474 __v*printf_internal. Call __vfprintf_internal directly.
5475
5476 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
5477 Remove libc_hidden_def.
5478 (__syslog, __syslog_chk): Use __vsyslog_internal.
5479 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
5480
5481 * include/sys/syslog.h: Add multiple inclusion guard.
5482 Add prototype for __vsyslog_internal.
5483 Remove declaration and libc_hidden_proto for __vsyslog_chk.
5484
5485 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
5486 Use __vsyslog_internal.
5487
5488 2018-12-05 Zack Weinberg <zackw@panix.com>
5489 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5490
5491 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
5492 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
5493 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
5494 New functions.
5495 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
5496 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
5497
5498 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
5499 Include wctype.h here if COMPILE_WPRINTF is defined.
5500 Define __vfprintf_internal or __vfwprintf_internal, depending
5501 on COMPILE_WPRINTF.
5502 Temporarily, on entry to this function, update mode_flags
5503 according to the environmental settings corresponding to
5504 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
5505 Throughout, check mode_flags instead of __ldbl_is_dbl and
5506 _IO_FLAGS2_FORTIFY on the destination FILE.
5507 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
5508 Include vfprintf-internal.c. Don't include wctype.h.
5509 * stdio-common/vfprintf.c: New file. Just define __vfprintf
5510 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
5511 and vfprintf.
5512 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
5513 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
5514 and vfwprintf.
5515 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
5516
5517 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
5518 and add mode_flags argument; use __vfprintf_internal.
5519 (__vdprintf): New function. Alias vdprintf to this.
5520 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
5521 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
5522 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
5523 (__obstack_printf): Use __obstack_printf_internal.
5524 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
5525 public aliases __vsnprintf and vsnprintf.
5526 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
5527 called internally.
5528 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
5529 public aliases _IO_vsprintf and vsprintf.
5530 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
5531 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
5532 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
5533 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
5534 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
5535
5536 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
5537 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
5538 * stdio-common/fprintf.c, stdio-common/fxprintf.c
5539 * stdio-common/printf.c: Use __vfprintf_internal.
5540
5541 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
5542 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
5543 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
5544
5545 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
5546 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
5547 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
5548 __vfwprintf_internal.
5549
5550 * libio/libio.h: Remove libc_hidden_proto and declaration for
5551 _IO_vfprintf.
5552 Remove declaration of _IO_vfwprintf.
5553 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
5554 _IO_vsprintf.
5555 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
5556 _IO_obstack_printf.
5557 * include/stdio.h: Add prototype for __vasprintf.
5558 (__vsnprintf): Remove declaration, because there are no more
5559 internal calls.
5560 * include/wchar.h (__vfwprintf, __vswprintf): Remove
5561 declaration, because there are no more internal calls.
5562
5563 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
5564 __vsnprintf_internal, instead of _IO_vsnprintf.
5565 * argp/argp-help.c (__argp_error, __argp_failure): Use
5566 __vasprintf_internal, instead of _IO_vasprintf.
5567 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
5568 redefine, because there are no more internal calls.
5569
5570 2018-12-05 Zack Weinberg <zackw@panix.com>
5571 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5572
5573 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
5574 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
5575 Include libio/strfile.h instead of libioP.h.
5576 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
5577 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
5578 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
5579 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
5580 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
5581 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
5582 necessary. Do not set __no_long_double. Normalize variable names.
5583 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
5584 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
5585 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
5586 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
5587 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
5588 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
5589 Call __vfscanf_internal / __vfwscanf_internal directly, passing
5590 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
5591 Do not set __no_long_double. Normalize variable names.
5592
5593 2018-12-05 Zack Weinberg <zackw@panix.com>
5594 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5595
5596 * stdio-common/isoc99_scanf.c
5597 * stdio-common/isoc99_fscanf.c
5598 * stdio-common/isoc99_sscanf.c
5599 * stdio-common/isoc99_vscanf.c
5600 * stdio-common/isoc99_vfscanf.c
5601 * stdio-common/isoc99_vsscanf.c
5602 * wcsmbs/isoc99_wscanf.c
5603 * wcsmbs/isoc99_fwscanf.c
5604 * wcsmbs/isoc99_swscanf.c
5605 * wcsmbs/isoc99_vwscanf.c
5606 * wcsmbs/isoc99_vfwscanf.c
5607 * wcsmbs/isoc99_vswscanf.c:
5608 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
5609 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
5610 No need to lock and unlock the FILE passed to that function.
5611
5612 * stdio-common/vfscanf-internal.c
5613 (__vfscanf_internal, __vfwscanf_internal):
5614 Don't look at _IO_FLAGS2_SCANF_STD.
5615 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
5616 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
5617 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
5618
5619 2018-12-05 Zack Weinberg <zackw@panix.com>
5620 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5621
5622 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
5623 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
5624 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
5625 * libio/strfile.h: Add multiple inclusion guard.
5626 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
5627
5628 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
5629 consistency with the other version of this file.
5630 (ldbl_compat_symbol): New macro.
5631 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
5632 New macro.
5633
5634 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
5635 Define __vfscanf_internal or __vfwscanf_internal, depending on
5636 COMPILE_WSCANF; don't define any other public symbols.
5637 Remove errval and code to set errp.
5638 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
5639 as the mode_flags argument.
5640 (encode_error, conv_error, input_error): Don't set errval.
5641 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
5642 Include vfscanf-internal.c.
5643 * stdio-common/vfscanf.c: New file defining the public entry
5644 point vfscanf, which calls __vfscanf_internal.
5645 * stdio-common/vfwscanf.c: New file defining the public entry
5646 point vfwscanf, which calls __vfwscanf_internal.
5647
5648 * stdio-common/iovfscanf.c: New file.
5649 * stdio-common/iovfwscanf.c: Likewise.
5650
5651 * stdio-common/Makefile (routines): Add vfscanf-internal,
5652 vfwscanf-internal, iovfscanf, iovfwscanf.
5653 * stdio-common/Versions: Mention GLIBC_2.29, so that
5654 it can be used in SHLIB_COMPAT expressions.
5655 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
5656 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
5657 Call __vfscanf_internal, instead of _IO_vfscanf.
5658 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
5659 _IO_vfscanf.
5660 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
5661 _IO_vfwscanf.
5662
5663 * libio/iovsscanf.c: Clean up includes, when possible. Use
5664 _IO_strfile_read or _IO_strfile_readw, when needed. Call
5665 __vfscanf_internal or __vfwscanf_internal directly.
5666 * libio/iovswscanf.c: Likewise.
5667 * libio/swscanf.c: Likewise.
5668 * libio/vscanf.c: Likewise.
5669 * libio/vwscanf.c: Likewise.
5670 * libio/wscanf.c: Likewise.
5671 * stdio-common/isoc99_fscanf.c: Likewise.
5672 * stdio-common/isoc99_scanf.c: Likewise.
5673 * stdio-common/isoc99_sscanf.c: Likewise.
5674 * stdio-common/isoc99_vfscanf.c: Likewise.
5675 * stdio-common/isoc99_vscanf.c: Likewise.
5676 * stdio-common/isoc99_vsscanf.c: Likewise.
5677 * stdio-common/scanf.c: Likewise.
5678 * stdio-common/sscanf.c: Likewise.
5679 * wcsmbs/isoc99_fwscanf.c: Likewise.
5680 * wcsmbs/isoc99_swscanf.c: Likewise.
5681 * wcsmbs/isoc99_vfwscanf.c: Likewise.
5682 * wcsmbs/isoc99_vswscanf.c: Likewise.
5683 * wcsmbs/isoc99_vwscanf.c: Likewise.
5684 * wcsmbs/isoc99_wscanf.c: Likewise.
5685
5686 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
5687
5688 * include/time.h
5689 (__tz_compute): Replace time_t with __time64_t.
5690 (__tz_convert): Replace time_t* with __time64_t.
5691 (__offtime): Replace time_t* with __time64_t.
5692 * time/gmtime.c
5693 (__gmtime_r): Adjust call to __tz_convert.
5694 (gmtime): Likewise.
5695 * time/localtime.c
5696 (__localtime_r): Likewise.
5697 (localtime): Likewise.
5698 * time/offtime.c: Replace time_t with __time64_t.
5699 * time/tzset.c: Likewise.
5700
5701 2018-12-04 Joseph Myers <joseph@codesourcery.com>
5702
5703 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
5704 dynamic linker unless [$(run-built-tests) = yes].
5705
5706 2018-12-03 DJ Delorie <dj@delorie.com>
5707
5708 * support/test-container.c (check_for_unshare_hints): New.
5709 (main): Call it if unshare fails. Add support for "su" scriptlet
5710 command.
5711
5712 2018-12-03 Joseph Myers <joseph@codesourcery.com>
5713
5714 * scripts/gen-as-const.py (compute_c_consts): Take an argument
5715 'START' to indicate that start text should be output.
5716 (gen_test): Likewise.
5717 (main): Generate 'START' for first symbol or '--' line, or at end
5718 of input if not previously generated.
5719
5720 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
5721
5722 [BZ #19767]
5723 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
5724 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
5725 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
5726 ALWAYS_USE_VSYSCALL.
5727
5728 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5729
5730 [BZ #23913]
5731 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
5732 new_argv by one.
5733
5734 2018-12-03 Carlos O'Donell <carlos@redhat.com>
5735
5736 [BZ #23923]
5737 * locale/programs/localedef.c: Declare boolean hard_links default true.
5738 (options): Add --no-hard-links option.
5739 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
5740 * locale/programs/localedef.h: Declare prototype for hard_links.
5741 * locale/programs/locfile.c (write_locale_data): Don't use hard
5742 links if hard_links is false.
5743
5744 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
5745
5746 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5747 cpu_features_basic.
5748 (__cache_sysconf): Likewise.
5749 (init_cacheinfo): Likewise.
5750 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5751 populate COMMON_CPUID_INDEX_80000007 and
5752 COMMON_CPUID_INDEX_80000008.
5753 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5754 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5755 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
5756 (init_cpu_features): Use _Static_assert on
5757 index_arch_Fast_Unaligned_Load.
5758 __get_cpuid_registers and __get_arch_feature. Updated for
5759 cpu_features_basic. Set stepping in cpu_features.
5760 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5761 (FEATURE_INDEX_2): New.
5762 (FEATURE_INDEX_MAX): Changed to enum.
5763 (COMMON_CPUID_INDEX_D_ECX_1): New.
5764 (COMMON_CPUID_INDEX_80000007): Likewise.
5765 (COMMON_CPUID_INDEX_80000008): Likewise.
5766 (cpuid_registers): Likewise.
5767 (cpu_features_basic): Likewise.
5768 (CPU_FEATURE_USABLE): Likewise.
5769 (bit_arch_XXX_Usable): Likewise.
5770 (cpu_features): Use cpuid_registers and cpu_features_basic.
5771 (bit_arch_XXX): Reweritten.
5772 (bit_cpu_XXX): Likewise.
5773 (index_cpu_XXX): Likewise.
5774 (reg_XXX): Likewise.
5775 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5776 <support/check.h>.
5777 (CHECK_CPU_FEATURE): New.
5778 (CHECK_CPU_FEATURE_USABLE): Likewise.
5779 (cpu_kinds): Likewise.
5780 (do_test): Print vendor, family, model and stepping. Check
5781 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5782 (TEST_FUNCTION): Removed.
5783 Include <support/test-driver.c> instead of
5784 "../../test-skeleton.c".
5785 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5786 Check POPCNT instead of POPCOUNT.
5787 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5788
5789 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5790
5791 * scripts/gen-as-const.py (main): Avoid emitting empty line when
5792 there is no element in `consts'.
5793
5794 2018-12-01 Florian Weimer <fweimer@redhat.com>
5795
5796 * support/support_capture_subprocess.c
5797 (support_capture_subprocess): Check that pipe descriptors have
5798 expected values. Close original pipe descriptors in subprocess.
5799
5800 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5801
5802 [BZ #23032]
5803 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5804 attr with __pthread_default_barrierattr.
5805 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5806 attr with __pthread_default_condattr.
5807 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5808 attr with __pthread_default_mutexattr.
5809 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5810 attr with __pthread_default_rwlockattr.
5811
5812 2018-12-01 Kemi Wang <kemi.wang@intel.com>
5813
5814 * manual/tunables.texi (POSIX Thread Tunables): New node.
5815 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5816 * nptl/nptl-init.c: Include pthread_mutex_conf.h
5817 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5818 __pthread_tunables_init.
5819 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5820 (max_adaptive_count): Define.
5821 * nptl/pthread_mutex_conf.c: New file.
5822 * nptl/pthread_mutex_conf.h: New file.
5823 * sysdeps/generic/adaptive_spin_count.h: New file.
5824 * sysdeps/nptl/dl-tunables.list: New file.
5825 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5826 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5827 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5828 Likewise.
5829
5830 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5831
5832 [BZ #20544]
5833 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5834 * stdlib/on_exit.c (__on_exit): Likewise.
5835 * stdlib/Makefile (tests): Add tst-bz20544.
5836 * stdlib/tst-bz20544.c: New test.
5837
5838 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
5839
5840 [BZ #19767]
5841 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5842 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5843 New.
5844
5845 2018-11-30 Florian Weimer <fweimer@redhat.com>
5846
5847 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5848 Extend error logging.
5849 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5850 symbol.
5851
5852 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5853
5854 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5855 __sigismember instead of sigismember.
5856 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5857 cancel_handler): New definitions.
5858 (do_system): Use posix_spawn instead of fork and execl and remove
5859 reentracy code.
5860 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5861 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5862 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5863 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5864 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5865 * sysdeps/unix/sysv/linux/system.c: Likewise.
5866
5867 [BZ #22834]
5868 [BZ #17490]
5869 * NEWS: Add new semantic for atfork with popen and system.
5870 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5871 fork and execl.
5872
5873 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5874
5875 [BZ #23690]
5876 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5877 modification order when accessing reloc_result->addr.
5878 * include/link.h (reloc_result): Add field init.
5879 * nptl/Makefile (tests): Add tst-audit-threads.
5880 (modules-names): Add tst-audit-threads-mod1 and
5881 tst-audit-threads-mod2.
5882 Add rules to build tst-audit-threads.
5883 * nptl/tst-audit-threads-mod1.c: New file.
5884 * nptl/tst-audit-threads-mod2.c: Likewise.
5885 * nptl/tst-audit-threads.c: Likewise.
5886 * nptl/tst-audit-threads.h: Likewise.
5887
5888 2018-11-30 Joseph Myers <joseph@codesourcery.com>
5889
5890 * scripts/gen-as-const.py: New file.
5891 * scripts/gen-as-const.awk: Remove.
5892 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5893 gen-as-const.py.
5894 ($(objpfx)test-as-const-%.c): Likewise.
5895
5896 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5897
5898 * elf/dl-exception.c: Include <_itoa.h>.
5899
5900 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5901
5902 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5903 returned by __f_setlk.
5904
5905 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
5906 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5907
5908 * elf/Makefile (tests-internal): Add tst-create_format1.
5909 * elf/dl-exception.c (_dl_exception_create_format): Support
5910 %x, %lx and %zx.
5911 * elf/tst-create_format1.c: New file.
5912
5913 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5914
5915 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5916 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5917 gnulib.)
5918 * argp/argp-help.c (__argp_failure): Likewise.
5919
5920 2018-11-29 Mao Han <han_mao@c-sky.com>
5921
5922 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5923 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5924 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5925 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5926 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5927 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5928 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5929 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5930 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5931 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5932 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5933 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5934 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5935 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5936 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5937 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5938 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5939 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5940 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5941 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5942 (R_CKCORE_TLS_TPOFF32): New defines.
5943
5944 2018-11-29 Florian Weimer <fweimer@redhat.com>
5945
5946 * posix/Makefile (before-compile): Remove testcases.h and
5947 ptestcases.h.
5948 (generated): Add testcases.h and ptestcases.h.
5949 (testcases.h, ptestcases.h): Move to $(objpfx).
5950 (runtests.o): Add dependency on testcases.h.
5951 (runptests.o): Add dependency on ptestcases.h.
5952 * posix/testcases.h, posix/ptestcases.h: Remove files.
5953 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5954 not touch posix/testcases.h and posix/ptestcases.h.
5955
5956 2018-11-28 Florian Weimer <fweimer@redhat.com>
5957
5958 support: Add signal support to support_capture_subprocess_check.
5959 * support/capture_subprocess.h (support_capture_subprocess_check):
5960 Adjust comment and rename parameter.
5961 * support/support_capture_subprocess_check.c
5962 (print_actual_status): New function.
5963 (support_capture_subprocess_check): Support negative
5964 status_or_signal. Call print_actual_status.
5965 * support/tst-support_capture_subprocess.c (do_test): Call
5966 support_capture_subprocess_check.
5967 * libio/tst-vtables-common.c (termination_status)
5968 (init_termination_status): Remove.
5969 (check_for_termination): Adjust support_capture_subprocess_check
5970 call.
5971 (do_test): Remove call to init_termination_status.
5972
5973 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5974
5975 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5976 source directory instead of a copy.
5977 (CommandList.create_copy_dir): Remove.
5978
5979 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5980
5981 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5982
5983 2018-11-28 Florian Weimer <fweimer@redhat.com>
5984
5985 * support/support.h (support_quote_string): Do not use str
5986 parameter name.
5987
5988 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5989
5990 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5991 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5992
5993 2018-11-27 Florian Weimer <fweimer@redhat.com>
5994
5995 * support/support.h (support_quote_string): Declare.
5996 * support/support_quote_string.c: New file.
5997 * support/tst-support_quote_string.c: Likewise.
5998 * support/Makefile (libsupport-routines): Add
5999 support_quote_string.
6000 (tests): Add tst-support_quote_string.
6001
6002 2018-11-27 Florian Weimer <fweimer@redhat.com>
6003
6004 [BZ #23927]
6005 CVE-2018-19591
6006 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6007 descriptor leak in case of ENODEV error.
6008
6009 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6010
6011 [BZ #19767]
6012 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6013 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6014 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6015
6016 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6017
6018 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6019 Error for unknown lines.
6020
6021 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6022
6023 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6024 Touch additional files.
6025
6026 2018-11-26 Florian Weimer <fweimer@redhat.com>
6027
6028 [BZ #23907]
6029 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6030 double-frees.
6031
6032 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6033
6034 [BZ #19767]
6035 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6036 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6037 SHARED. Include sysdep.h.
6038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6039 ALWAYS_USE_VSYSCALL.
6040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6041 ALWAYS_USE_VSYSCALL.
6042
6043 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6044
6045 [BZ #19767]
6046 * nptl/Makefile (tests-static): Add tst-cond11-static.
6047 (tests): Likewise.
6048 * nptl/tst-cond11-static.c: New File.
6049 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6050 tst-affinity-static.
6051 (tests): Likewise.
6052 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6053 instead of SHARED.
6054 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6055 (USE_VSYSCALL): Likewise.
6056 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6057 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6058 instead of SHARED.
6059 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6060 SHARED.
6061 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6062 New.
6063
6064 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6065
6066 [BZ #23915]
6067 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6068 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6069 Undefine.
6070
6071 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6072
6073 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6074 (tst-cet-legacy-1a-ARGS): New.
6075 ($(objpfx)tst-cet-legacy-1a): New target.
6076 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6077
6078 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6079
6080 * conform/conformtest.py (CompileSubTest.__init__): Set
6081 self.run_early to False.
6082 (ExecuteSubTest.__init__): Likewise.
6083 (HeaderTests.run): Try running all non-optional, non-XFAILed
6084 compilation tests in a single execution of the compiler.
6085
6086 * conform/conformtest.py (CompileSubTest): New class.
6087 (ExecuteSubTest): Likewise.
6088 (ElementTest.run): Rename to gen_subtests. Append tests to
6089 self.subtests instead of running them.
6090 (ConstantTest.run): Likewise.
6091 (SymbolTest.run): Likewise.
6092 (TypeTest.run): Likewise.
6093 (TagTest.run): Likewise.
6094 (FunctionTest.run): Likewise.
6095 (VariableTest.run): Likewise.
6096 (MacroFunctionTest.run): Likewise.
6097 (MacroStrTest.run): Likewise.
6098 (HeaderTests.handle_test_line): Generate subtests for tests.
6099 (HeaderTests.run): Run subtests for tests.
6100
6101 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6102
6103 * math/Versions (GLIBC_2.29): Add pow.
6104 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6105 symbol.
6106 * math/w_pow.c: New file.
6107 * sysdeps/i386/fpu/w_pow.c: New file.
6108 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6109 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6110 and add necessary aliases.
6111 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6112 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6113 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6114 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6115 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6116 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6117 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6118 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6119 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6120 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6121 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6122 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6123 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6124 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6125 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6130 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6131 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6132 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6133 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6134 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6135 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6136 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6137 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6138 __pow.
6139 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6140 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6141 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6142
6143 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6144
6145 * math/Versions (GLIBC_2.29): Add log2.
6146 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6147 symbol.
6148 * math/w_log2.c: New file.
6149 * sysdeps/i386/fpu/w_log2.c: New file.
6150 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6151 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6152 and add necessary aliases.
6153 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6154 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6155 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6156 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6157 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6158 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6159 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6160 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6161 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6162 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6163 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6164 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6165 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6166 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6167 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6169 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6172 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6173 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6174 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6175 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6176 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6177 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6178 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6179
6180 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6181
6182 * math/Versions (GLIBC_2.29): Add log.
6183 * math/w_log_compat.c (__log_compat): Change to versioned compat
6184 symbol.
6185 * math/w_log.c: New file.
6186 * sysdeps/i386/fpu/w_log.c: New file.
6187 * sysdeps/ia64/fpu/e_log.S: Update.
6188 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6189 and add necessary aliases.
6190 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6191 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6192 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6193 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6194 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6195 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6196 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6197 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6198 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6199 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6200 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6201 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6202 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6203 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6204 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6209 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6210 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6211 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6212 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6213 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6214 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6215 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6216 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6217 __log.
6218 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6219 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6220 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6221 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6222
6223 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6224
6225 * math/Versions (GLIBC_2.29): Add exp and exp2.
6226 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6227 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6228 * math/w_exp_compat.c (__exp_compat): Likewise.
6229 * math/w_exp.c: New file.
6230 * math/w_exp2.c: New file.
6231 * sysdeps/i386/fpu/w_exp.c: New file.
6232 * sysdeps/i386/fpu/w_exp2.c: New file.
6233 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6234 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6235 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6236 and add necessary aliases.
6237 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6238 and add necessary aliases.
6239 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6240 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6241 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6242 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6243 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6244 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6245 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6246 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6247 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6248 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6249 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6250 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6251 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6252 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6253 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6254 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6255 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6260 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6261 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6262 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6263 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6264 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6265 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6266 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6267 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6268 (__ieee754_exp): Rename to __exp.
6269 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6270 (__ieee754_exp): Rename to __exp.
6271 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6272 (__ieee754_exp): Rename to __exp.
6273 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6274 __exp.
6275 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6276
6277 2018-11-20 DJ Delorie <dj@redhat.com>
6278
6279 * malloc/malloc.c (tcache_entry): Add key field.
6280 (tcache_put): Set it.
6281 (tcache_get): Likewise.
6282 (_int_free): Check for double free in tcache.
6283 * malloc/tst-tcfree1.c: New.
6284 * malloc/tst-tcfree2.c: New.
6285 * malloc/Makefile: Run the new tests.
6286 * manual/probes.texi: Document memory_tcache_double_free probe.
6287
6288 * dlfcn/dlerror.c (check_free): Prevent double frees.
6289
6290 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6291
6292 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6293
6294 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6295
6296 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6297 in tests. Use names for format arguments.
6298 (ConstantTest.run): Likewise.
6299 (SymbolTest.run): Likewise.
6300 (TypeTest.run): Likewise.
6301 (TagTest.run): Likewise.
6302 (FunctionTest.run): Likewise.
6303 (VariableTest.run): Likewise.
6304 (MacroFunctionTest.run): Likewise.
6305 (MacroStrTest.run): Likewise.
6306 (HeaderTests.__init__): Set self.num_tests.
6307 (HeaderTests.handle_test_line): Set test.num. Increment
6308 self.num_tests.
6309
6310 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6311
6312 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6313 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6314 SEEK_SET.
6315
6316 2018-11-19 Mao Han <han_mao@c-sky.com>
6317
6318 * scripts/config.guess: Update to version 2018-08-29.
6319 * scripts/config.sub: Update to version 2018-08-29.
6320
6321 2018-11-19 Florian Weimer <fweimer@redhat.com>
6322
6323 support: Print timestamps in timeout handler.
6324 * support/support_test_main.c (print_timestamp): New function.
6325 (signal_handler): Use it to print the termination time and the
6326 time of the last write to standard output.
6327
6328 2018-11-16 Zack Weinberg <zackw@panix.com>
6329 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6330
6331 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6332 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6333 argument.
6334 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6335 and add flags argument. Check flags instead of __ldbl_is_dbl when
6336 deciding whether to set is_long_double.
6337 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6338 passing zero for flags argument.
6339 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6340
6341 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6342 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6343 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6344 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6345 variable names. Remove libc_hidden_def/libc_hidden_proto from
6346 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6347 longer called from within the library.
6348 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6349 for __nldbl___vstrfmon_l, declare it explicitly.
6350
6351 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6352
6353 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6354
6355 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6356 macros
6357 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6358 F_SETLK64, F_SETLKW64, respectively.
6359 * sysdeps/mach/hurd/f_setlk.c: New file.
6360 * sysdeps/mach/hurd/f_setlk.h: New file.
6361 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6362 f_setlk.
6363 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6364 (__libc_fcntl): Move non-flock operations to...
6365 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6366 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6367
6368 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6369
6370 mktime: DEBUG_MKTIME cleanup
6371 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6372 And it’s no longer needed now that glibc and Gnulib both have
6373 their own testing mechanisms for mktime.
6374 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6375
6376 mktime: fix non-EOVERFLOW errno handling
6377 [BZ#23789]
6378 mktime was not properly reporting failures when the underlying
6379 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6380 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6381 The problem could happen on non-glibc platforms, with Gnulib.
6382 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6383 (tm_diff): ... this simpler function, which does not change errno.
6384 All callers changed to deal with errno themselves.
6385 (ranged_convert, __mktime_internal): Return failure immediately if
6386 the underlying function reports any failure other than EOVERFLOW.
6387 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6388 gap code fails.
6389
6390 mktime: fix bug with Y2038 DST transition
6391 [BZ#23789]
6392 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6393 mishandle a DST transition that jumps over the Y2038 boundary.
6394 No such DST transitions are known so this is only a theoretical
6395 bug, but we might as well do things right.
6396
6397 mktime: make more room for overflow
6398 [BZ#23789]
6399 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
6400 This is so that we can add tm_diff results to a previous guess,
6401 which will be useful in a later patch.
6402
6403 mktime: simplify offset guess
6404 [BZ#23789]
6405 * time/mktime.c (__mktime_internal): Omit excess precision.
6406
6407 mktime: new test for mktime failure
6408 [BZ#23789]
6409 Based on a test suggested by Albert Aribaud in:
6410 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
6411 * time/Makefile (tests): Add bug-mktime4.
6412 * time/bug-mktime4.c: New file.
6413
6414 mktime: fix EOVERFLOW bug
6415 [BZ#23789]
6416 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
6417 Include libc-config.h, not config.h, for __set_errno.
6418 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
6419
6420 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6421
6422 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
6423 __attribute_copy__ to copy attributes from name. Drop static qualifier
6424 to avoid warnings about leaf attribute not having effect on static
6425 functions.
6426
6427 2018-11-13 Florian Weimer <fweimer@redhat.com>
6428
6429 * malloc/malloc.c (fastbin_push_entry): New function.
6430 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
6431 (REMOVE_FB): Remove macro.
6432 (_int_malloc): Use fastbin_pop_entry and reindent.
6433 (_int_free): Use fastbin_push_entry.
6434 (malloc_consolidate): Use atomic_exchange_acquire.
6435
6436 2018-11-13 Joseph Myers <joseph@codesourcery.com>
6437
6438 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
6439 alias attribute, not with strong_alias.
6440
6441 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
6442 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
6443 with additional parameter thread.
6444 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
6445 in terms of __hidden_ver2.
6446 (hidden_tls_def): New macro.
6447 (libc_hidden_tls_def): Likewise.
6448 (rtld_hidden_tls_def): Likewise.
6449 (libm_hidden_tls_def): Likewise.
6450 (libmvec_hidden_tls_def): Likewise.
6451 (libresolv_hidden_tls_def): Likewise.
6452 (librt_hidden_tls_def): Likewise.
6453 (libdl_hidden_tls_def): Likewise.
6454 (libnss_files_hidden_tls_def): Likewise.
6455 (libnsl_hidden_tls_def): Likewise.
6456 (libnss_nisplus_hidden_tls_def): Likewise.
6457 (libutil_hidden_tls_def): Likewise.
6458 (libutil_hidden_tls_def): Likweise.
6459 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
6460 libc_hidden_tls_def.
6461 (__sim_disabled_exceptions_thread): Likewise.
6462 (__sim_round_mode_thread): Likewise.
6463
6464 * sysdeps/sparc/sparc-ifunc.h [SHARED]
6465 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
6466 copy attributes from name.
6467
6468 2018-11-12 Joseph Myers <joseph@codesourcery.com>
6469
6470 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
6471 Use __attribute_copy__ to copy attributes from name.
6472
6473 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
6474 with __hidden_ver1 call.
6475 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
6476 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
6477 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
6478 (__cosf): Do not declare here.
6479 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
6480 (__sincosf): Do not declare here.
6481 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
6482 (__sinf): Do not declare here.
6483
6484 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
6485 (__BIG_ENDIAN): Likewise.
6486 (__BYTE_ORDER): Likewise.
6487 (strong_alias): Likewise.
6488 (_strong_alias): Likewise.
6489
6490 2018-11-12 Florian Weimer <fweimer@redhat.com>
6491
6492 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
6493 function. Move after the definition of in_smallbin_range. Do not
6494 use __builtin_expect for paths that lead to a noreturn function.
6495 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
6496 because it is unclear whether this is in fact an unlikely
6497 condition.
6498 (_int_malloc, _int_free): Adjust.
6499 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
6500 variables.
6501 * malloc/arena.c (heap_trim): Likewise.
6502
6503 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
6504
6505 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
6506 it, free it if needed.
6507 (reauthenticate): Test and use ccwdir.
6508 (child_init_port): In non-resetids case, test and use ccwdir.
6509 (child_chdir): New nested function to set ccwdir.
6510 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
6511 * hurd/hurd/port.h (_hurd_port_move): New function.
6512 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
6513 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
6514 * hurd/Versions (_hurd_port_move): Export function.
6515 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
6516 symbol.
6517 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
6518 of dtablesize for allocating dtable_cloexec.
6519
6520 2018-11-09 Martin Sebor <msebor@redhat.com>
6521
6522 * include/libc-symbols.h (__attribute_copy__): Define macro unless
6523 it's already defined.
6524 (_strong_alias): Use __attribute_copy__.
6525 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
6526 * misc/sys/cdefs.h (__attribute_copy__): New macro.
6527 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
6528 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
6529 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
6530 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
6531 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
6532 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
6533 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
6534 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
6535 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
6536 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
6537 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
6538 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
6539 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
6540 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
6541 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
6542 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
6543 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
6544
6545 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6546
6547 * misc/tst-efgcvt.c: Include support/check.h and
6548 support/test-driver.c. Do not include test-skeleton.c.
6549 (error_count): Remove.
6550 (output_error): Replace increments to error_count with calls to
6551 support_record_failure.
6552 (output_r_error): Likewise.
6553 (special): Likewise.
6554 (do_test): Unconditionally return zero.
6555 (TEST_FUNCTION): Remove.
6556
6557 2018-11-09 Joseph Myers <joseph@codesourcery.com>
6558
6559 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
6560 not $(@D)/scratch.
6561 ($(linknamespace-header-tests)): Likewise.
6562
6563 * conform/conformtest.py: New file.
6564 * conform/conformtest.pl: Remove.
6565 * conform/GlibcConform.pm: Likewise.
6566 * conform/glibcconform.py (KEYWORDS_C90): New constant.
6567 (KEYWORDS_C99): Likewise.
6568 (KEYWORDS): Likewise.
6569 * conform/Makefile ($(conformtest-header-tests)): Use
6570 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
6571 option. Use --header instead of --headers.
6572 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
6573 function entries.
6574 * conform/data/spawn.h-data: Likewise.
6575 * conform/data/fcntl.h-data (openat): Add space after function
6576 name.
6577 * conform/data/wchar.h-data (wcscasecmp): Likewise.
6578 (wcscasecmp_l): Likewise.
6579 * conform/data/termios.h-data (c_cc): Add space after element
6580 name.
6581
6582 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6583
6584 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
6585 instead of manually comparing and reporting mismatching strings.
6586 * misc/tst-ldbl-error.c (do_one_test): Likewise.
6587 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6588
6589 2018-11-08 Joseph Myers <joseph@codesourcery.com>
6590
6591 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
6592 __ASSUME_SOCKETCALL.
6593 * sysdeps/unix/sysv/linux/i386/kernel-features.h
6594 (__ASSUME_SOCKETCALL): Remove.
6595 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6596 (__ASSUME_SOCKETCALL): Likewise.
6597 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6598 (__ASSUME_SOCKETCALL): Likewise.
6599 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6600 (__ASSUME_SOCKETCALL): Likewise.
6601 * sysdeps/unix/sysv/linux/s390/kernel-features.h
6602 (__ASSUME_SOCKETCALL): Likewise.
6603 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6604 (__ASSUME_SOCKETCALL): Likewise.
6605 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6606 (__ASSUME_SOCKETCALL): Likewise.
6607
6608 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
6609
6610 [BZ #23509]
6611 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
6612 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
6613 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
6614 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
6615 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
6616 lc_unknown.
6617
6618 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
6619
6620 [BZ #17630]
6621 * resolv/tst-resolv-network.c: Add test for getnetbyname.
6622
6623 2018-11-07 Joseph Myers <joseph@codesourcery.com>
6624
6625 [BZ #23867]
6626 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6627 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6628 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6629 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6630
6631 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6632
6633 * support/support_test_compare_string.c
6634 (support_test_compare_string): Fix printf format.
6635
6636 2018-11-07 Florian Weimer <fweimer@redhat.com>
6637
6638 Implement TEST_COMPARE_STRING.
6639 * support/check.h (TEST_COMPARE_STRING): Define.
6640 (support_test_compare_string): Declare.
6641 * support/Makefile (libsupport-routines): Add
6642 support_test_compare_string.
6643 (tests): Add tst-test_compare_string.
6644 * support/support_test_compare_string.c: New file.
6645 * support/tst-test_compare_string.c: Likewise.
6646
6647 2018-11-07 Andreas Schwab <schwab@suse.de>
6648
6649 [BZ #23864]
6650 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
6651 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
6652 Undef.
6653
6654 2018-11-06 Joseph Myers <joseph@codesourcery.com>
6655
6656 [BZ #23862]
6657 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6658 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
6659 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
6660 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
6661 Likewise.
6662
6663 2018-11-06 Florian Weimer <fweimer@redhat.com>
6664
6665 [BZ #17405]
6666 * posix/Makefile (routines): Add spawn_faction_addchdir.
6667 (tests): Add tst-spawn-chdir.
6668 * posix/Versions (GLIBC_2.29): Add
6669 posix_spawn_file_actions_addchdir_np.
6670 * posix/spawn_faction_addchdir.c: New file.
6671 * posix/spawn_faction_destroy.c
6672 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
6673 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
6674 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
6675 chdir_action.
6676 * posix/tst-spawn-chdir.c: New file.
6677 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
6678 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6679 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6680 posix_spawn_file_actions_addchdir_np.
6681 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6682 Likewise.
6683 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6684 Likewise.
6685 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6686 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6687 Likewise.
6688 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6689 Likewise.
6690 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6691 Likewise.
6692 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6693 Likewise.
6694 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6695 Likewise.
6696 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6697 Likewise.
6698 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6699 (GLIBC_2.29): Likewise.
6700 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6701 (GLIBC_2.29): Likewise.
6702 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6703 (GLIBC_2.29): Likewise.
6704 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6705 (GLIBC_2.29): Likewise.
6706 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6707 Likewise.
6708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6709 (GLIBC_2.29): Likewise.
6710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6711 (GLIBC_2.29): Likewise.
6712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6713 (GLIBC_2.29): Likewise.
6714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6715 (GLIBC_2.29): Likewise.
6716 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6717 Likewise.
6718 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6719 Likewise.
6720 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6721 Likewise.
6722 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6723 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6724 Likewise.
6725 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6726 Likewise.
6727 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6728 Likewise.
6729 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6730 Likewise.
6731
6732 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6733
6734 * misc/Makefile (tests): Add tst-ldbl-error.
6735 * misc/tst-ldbl-error.c: New file.
6736
6737 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6738
6739 * misc/Makefile (tests): Add tst-ldbl-warn.
6740 * misc/tst-ldbl-warn.c: New file.
6741
6742 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6743
6744 * argp/Makefile (tests): Add tst-ldbl-argp.
6745 * argp/tst-ldbl-argp.c: New file.
6746
6747 2018-11-05 Arjun Shankar <arjun@redhat.com>
6748
6749 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6750 __gconv_path_elem and call __gconv_get_path unconditionally.
6751
6752 2018-11-05 Andreas Schwab <schwab@suse.de>
6753
6754 [BZ #22927]
6755 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6756 creating the first helper thread failed.
6757
6758 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6759
6760 * sysdeps/mach/hurd/msync.c: New file.
6761
6762 2018-11-02 Florian Weimer <fweimer@redhat.com>
6763
6764 * support/shell-container.c (copy_func): Call
6765 support_copy_file_range instead of copy_file_range to support
6766 cross-device copies.
6767
6768 2018-11-02 Florian Weimer <fweimer@redhat.com>
6769
6770 * support/test-container.c: Include <libc-pointer-arith.h> for
6771 ALIGN_UP.
6772
6773 2018-11-01 Zong Li <zong@andestech.com>
6774
6775 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6776 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6777 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6778 (__FP_FRAC_SET_8): Add implementation for RV32 use.
6779
6780 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6781 variable to avoid overlap arguments.
6782
6783 2018-11-01 Joseph Myers <joseph@codesourcery.com>
6784
6785 * posix/bug-regex22.c (main): Use puts with distinct error
6786 messages for unexpected success of re_compile_pattern, not printf
6787 with NULL argument to %s.
6788
6789 * stdio-common/bug22.c: Include <libc-diag.h>.
6790 (do_test): Disable -Wformat-overflow= warnings around fprintf
6791 calls outputting more than INT_MAX characters.
6792 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6793 around printf call with NULL %s argument.
6794
6795 [BZ #23848]
6796 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6797 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6798 Undefine.
6799 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6800 (__ASSUME_RECVMSG_SYSCALL): Likewise.
6801 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6802 (__ASSUME_SENDTO_SYSCALL): Likewise.
6803 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6804 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6805 [!__arch64__].
6806 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6807 (__ASSUME_CONNECT_SYSCALL): Likewise.
6808 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6809 (__ASSUME_RECVFROM_SYSCALL): Likewise.
6810 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6811 Define.
6812 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6813 Likewise.
6814 [__LINUX_KERNEL_VERSION >= 0x040400]
6815 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6816 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6817 Remove.
6818 (listen): Likewise.
6819 (setsockopt): Likewise.
6820
6821 2018-11-01 Fredrik Noring <noring@nocrew.org>
6822
6823 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6824 with the ISA override.
6825
6826 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
6827
6828 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6829 #endif.
6830
6831 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
6832
6833 * manual/errno.texi (EIEIO): Document how translators should
6834 translate the error message.
6835 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
6836 printing trailing whitespaces refused by git.
6837 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6838 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6839 * hurd/Makefile (user-interfaces): Add pci.
6840
6841 2018-10-30 Joseph Myers <joseph@codesourcery.com>
6842
6843 * conform/linknamespace.py: New file.
6844 * conform/linknamespace.pl: Remove file.
6845 * conform/Makefile ($(linknamespace-header-tests)): Use
6846 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
6847 option.
6848
6849 2018-10-30 Florian Weimer <fweimer@redhat.com>
6850
6851 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6852 memory leaks.
6853
6854 2018-10-30 Florian Weimer <fweimer@redhat.com>
6855
6856 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6857
6858 2018-10-30 Florian Weimer <fweimer@redhat.com>
6859
6860 * stdlib/tst-strtod-overflow.c (do_test): Switch to
6861 support_blob_repeat.
6862
6863 2018-10-30 Florian Weimer <fweimer@redhat.com>
6864
6865 Avoid spurious test failures in stdlib/test-bz22786.
6866 * support/Makefile (libsupport-routines): Add blob_repeat.
6867 (tests): Add tst-support_blob_repeat.
6868 * support/blob_repeat.h: New file.
6869 * support/blob_repeat.c: Likewise.
6870 * support/tst-support_blob_repeat.c: Likewise.
6871 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6872 support_blob_repeat_allocate.
6873
6874 2018-10-30 Andreas Schwab <schwab@suse.de>
6875
6876 [BZ #23125]
6877 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6878 Don't use tail call.
6879 * elf/tst-unwind-main.c: New file.
6880 * elf/Makefile (tests): Add tst-unwind-main.
6881 (CFLAGS-tst-unwind-main.c): Define.
6882
6883 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
6884
6885 [BZ #23791]
6886 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6887 n_cs_precedes to 0.
6888 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6889
6890 2018-10-29 Joseph Myers <joseph@codesourcery.com>
6891
6892 * conform/glibcconform.py: Do not import shutil.
6893 (list_exported_functions): Use tempfile.TemporaryDirectory instead
6894 of mkdtemp.
6895
6896 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
6897 critic_missing for versions before 3.4.
6898 * configure: Regenerated.
6899 * manual/install.texi (Tools for Compilation): Document
6900 requirement for Python to build glibc.
6901 * INSTALL: Regenerated.
6902 * Rules [PYTHON]: Make code unconditional.
6903 * benchtests/Makefile [PYTHON]: Likewise.
6904 * conform/Makefile [PYTHON]: Likewise.
6905 * manual/Makefile [PYTHON]: Likewise.
6906 * math/Makefile [PYTHON]: Likewise.
6907
6908 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6909
6910 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6911 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6912 answer to interrupt_operation, return EIEIO instead of EINTR.
6913 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6914 _hurd_intr_rpc_msg_about_to global point to start of controlled
6915 assembly snippet. Make it check canceled flag.
6916 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6917 the _hurd_intr_rpc_msg_about_to point.
6918 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6919 issue, remove cancel flag check.
6920
6921 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6922
6923 * scripts/build-many-glibcs.py: Remove compatibility for missing
6924 os.cpu_count and re.fullmatch.
6925
6926 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6927
6928 [BZ #23822]
6929 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6930 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6931 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6932
6933 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6934
6935 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6936 macro.
6937
6938 2018-10-25 Florian Weimer <fweimer@redhat.com>
6939
6940 [BZ #23562]
6941 [BZ #23821]
6942 XFAIL siginfo_t si_band conform test on sparc64.
6943 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6944 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6945 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6946 (conformtest-xfail-conds): Add sparc64-linux.
6947 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6948 sparc64.
6949 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6950
6951 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6952
6953 * elf/elf.h (NT_MIPS_DSP): New macro.
6954 (NT_MIPS_FP_MODE): Likewise.
6955
6956 2018-10-25 Zong Li <zong@andestech.com>
6957
6958 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6959 name by adding the file extension (.so).
6960
6961 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6962
6963 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6964 (test-xfail-ISO11/threads.h/linknamespace,
6965 test-xfail-ISO11/threads.h/conform): Add.
6966
6967 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6968
6969 * math/gen-libm-test.py: Import os.
6970 (ALL_FLOATS_MANUAL): New constant.
6971 (ALL_FLOATS_SUFFIX): Likewise.
6972 (Ulps.all_functions): New function.
6973 (real_all_ulps): Likewise.
6974 (generate_err_table_sub): Likewise.
6975 (generate_err_table): Likewise.
6976 (main): Handle -s and -m options.
6977 * manual/libm-err-tab.pl: Remove.
6978 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6979 instead of libm-err-tab.pl.
6980 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6981 != no].
6982 * manual/install.texi (Tools for Compilation): Document
6983 requirement for Python to build manual.
6984 * INSTALL: Regenerated.
6985
6986 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6987
6988 * bits/time64.h: New file.
6989 * include/time.h: Replace internal_time_t with __time64_t.
6990 * posix/bits/types (__time64_t): Add.
6991 * stdlib/Makefile: Add bits/time64.h to includes.
6992 * time/tzfile.c: Replace internal_time_t with __time64_t.
6993
6994 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6995
6996 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6997 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6998 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6999 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7000 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7001 prototype.
7002 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7003 * posix/spawn_faction_addclose.c
7004 (__posix_spawn_file_actions_addclose): Add hidden definition.
7005 * posix/spawn_faction_adddup2.c
7006 (__posix_spawn_file_actions_adddup2): Likewise.
7007 * posix/spawn_faction_destroy.c
7008 (__posix_spawn_file_actions_destroy): Likewise.
7009 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7010 Likewise.
7011 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7012 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7013 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7014 Likewise.
7015 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7016 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7017 Likewise.
7018
7019 2018-10-24 Andreas Schwab <schwab@suse.de>
7020
7021 [BZ #18093]
7022 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7023 format cache.
7024 * elf/cache.c (print_cache): Likewise.
7025
7026 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7027
7028 * bits/timesize.h: New file.
7029 * stdlib/Makefile (headers): Add bits/timesize.h.
7030 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7031 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7032 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7033 (__SEM_PAD_AFTER_TIME): Likewise.
7034 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7035 (__SHM_PAD_AFTER_TIME): Likewise.
7036 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7037 (__MSQ_PAD_BEFORE_TIME): Likewise.
7038 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7039 (__SEM_PAD_BEFORE_TIME): Likewise.
7040 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7041 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7042 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7043 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7044 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7045 (__MSQ_PAD_BEFORE_TIME): Likewise.
7046 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7047 (__SEM_PAD_BEFORE_TIME): Likewise.
7048 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7049 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7050 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7051 (__MSQ_PAD_BEFORE_TIME): Likewise.
7052 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7053 (__SEM_PAD_BEFORE_TIME): Likewise.
7054 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7055 (__SHM_PAD_BEFORE_TIME): Likewise.
7056 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7057 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7058 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7059
7060 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7061
7062 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7063 USE_RDTSCP is defined.
7064 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7065 USE_RDTSCP is defined.
7066
7067 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7068
7069 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7070 defined.
7071
7072 [BZ #23709]
7073 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7074 independently of other flags.
7075
7076 2018-10-23 Florian Weimer <fweimer@redhat.com>
7077
7078 * time/tst-mktime2.c (N_STRINGS): Remove.
7079 (set_timezone): New function.
7080 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7081 (mktime_test1): Report localtime failure and check errno value.
7082 Use TEST_COMPARE.
7083 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7084 (do_test): Remove alarm call. Use set_timezone and array_length.
7085
7086 2018-10-23 Andreas Schwab <schwab@suse.de>
7087
7088 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7089 (__start_context): Use END instead of PSEUDO_END.
7090
7091 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7092
7093 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7094 version to 4.19.
7095
7096 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7097 version to 4.19.
7098
7099 [BZ #23793]
7100 * wcsmbs/c32rtomb.c: New file.
7101 * wcsmbs/mbrtoc32.c: Likewise.
7102 * wcsmbs/tst-c32-state.c: Likewise.
7103 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7104 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7105 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7106 (tests): Add tst-c32-state.
7107 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7108 $(gen-locales).
7109
7110 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7111
7112 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7113 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7114
7115 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7116
7117 [BZ #23794]
7118 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7119 pair and return 0 in that case, and use saved character to
7120 interpret following character.
7121 * wcsmbs/tst-c16-surrogate.c: New file.
7122 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7123 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7124 Depend on $(gen-locales)
7125
7126 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7127
7128 [BZ #23562]
7129 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7130 (struct siginfo_t): Use correct type for si_band.
7131
7132 2018-10-19 Florian Weimer <fweimer@redhat.com>
7133
7134 [BZ #23689]
7135 * resource/bits/types/struct_rusage.h (struct rusage): Update
7136 comment on struct. Remove extraneous field comment.
7137
7138 2018-10-18 David S. Miller <davem@davemloft.net>
7139
7140 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7141 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7142 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7143 sysdep_routines in subdir elf.
7144 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7145 version for __vdso_clock_gettime.
7146 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7147 Define.
7148 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7149 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7150
7151 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7152
7153 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7154
7155 * sysdeps/i386/init-arch.h: Removed.
7156 * sysdeps/i386/i586/init-arch.h: Likewise.
7157 * sysdeps/i386/i686/init-arch.h: Likewise.
7158 * sysdeps/i386/i686/hp-timing.h: Likewise.
7159 * sysdeps/x86_64/hp-timing.h: Likewise.
7160 * sysdeps/i386/isa.h: New file.
7161 * sysdeps/i386/i586/isa.h: Likewise.
7162 * sysdeps/i386/i686/isa.h: Likewise.
7163 * sysdeps/x86_64/isa.h: Likewise.
7164 * sysdeps/x86/hp-timing.h: New file.
7165 * sysdeps/x86/init-arch.h: Include <isa.h>.
7166
7167 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7168
7169 * math/libm-test-pow.inc (pow_test_data): Do not allow
7170 divide-by-zero exception for pow(+/- 0, -Inf).
7171
7172 2018-10-17 Zack Weinberg <zackw@panix.com>
7173
7174 * manual/job.texi (Job Control is Optional): Remove node, as
7175 job control has not been optional in quite some time.
7176 (Job Control): Mention briefly that systems older than
7177 POSIX.1-2001 might not support job control.
7178 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7179 defined on systems conforming to POSIX.1-2001.
7180
7181 2018-10-17 Arjun Shankar <arjun@redhat.com>
7182
7183 [BZ #22062]
7184 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7185 indentation.
7186 * (__gconv_read_conf): Mark function static.
7187 * (once): New static variable.
7188 * (__gconv_load_conf): New function.
7189 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7190 * iconv/gconv_db.c (once): Remove static variable.
7191 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7192 __gconv_read_conf.
7193 * (__gconv_find_transform): Likewise.
7194 * iconv/tst-iconv-mt.c: New test.
7195 * iconv/Makefile: Add tst-iconv_mt.
7196
7197 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7198
7199 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7200 bits/shm-pad.h.
7201 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7202 (shmatt_t): Define as __syscall_ulong_t.
7203 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7204 and [__SHM_PAD_AFTER_TIME].
7205 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7206 Define shm_segsz and associated padding based on
7207 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7208 Use __syscall_ulong_t instead of unsigned long int.
7209 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7210 unsigned long int.
7211 [__USE_MISC] (struct shm_info): Likewise.
7212 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7213 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7214 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7215 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7216 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7217 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7218 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7219 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7220 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7221 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7222 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7223
7224 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7225 bits/shmlba.h.
7226 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7227 (SHMLBA): Remove macro.
7228 (__getpagesize): Remove function declaration.
7229 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7230 <bits/shmlba.h>.
7231 (SHMLBA): Remove macro.
7232 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7233 <bits/shmlba.h>.
7234 (SHMLBA): Remove macro.
7235 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7236 <bits/shmlba.h>.
7237 (SHMLBA): Remove macro.
7238 (__getpagesize): Remove function declaration.
7239 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7240 <bits/shmlba.h>.
7241 (SHMLBA): Remove macro.
7242 (__getshmlba): Remove function declaration.
7243 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7244 (SHMLBA): Remove macro.
7245 (__getpagesize): Remove function declaration.
7246 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7247 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7248 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7249 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7250 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7251 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7252 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7253 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7254 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7255 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7256
7257 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7258
7259 [BZ #23275]
7260 * nptl/tst-mutex10.c: New File.
7261 * nptl/Makefile (tests): Add tst-mutex10.
7262 (tst-mutex10-ENV): New variable.
7263 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7264 Ensure that elision path is used if elision is available.
7265 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7266 Likewise.
7267 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7268 Likewise.
7269 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7270 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7271 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7272 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7273 Likewise.
7274 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7275 (__pthread_mutex_cond_lock_adjust): Likewise.
7276 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7277 Likewise.
7278 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7279 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7280 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7281 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7282 Add comments.
7283 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7284 Use atomic_load_relaxed and atomic_store_relaxed.
7285 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7286 Use atomic_store_relaxed.
7287
7288 2018-10-17 Andreas Schwab <schwab@suse.de>
7289
7290 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7291 * crypt/badsalttest.c (TIMEOUT): Likewise.
7292 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7293 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7294 * io/test-lfs.c (TIMEOUT): Likewise.
7295 * libio/tst-atime.c (TIMEOUT): Likewise.
7296 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7297 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7298 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7299 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7300 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7301 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7302 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7303 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7304 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7305 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7306 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7307 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7308 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7309 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7310 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7311 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7312 * nptl/tst-once2.c (TIMEOUT): Likewise.
7313 * nptl/tst-once3.c (TIMEOUT): Likewise.
7314 * nptl/tst-once4.c (TIMEOUT): Likewise.
7315 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7316 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7317 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7318 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7319 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7320 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7321 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7322 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7323 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7324 * posix/tst-chmod.c (TIMEOUT): Likewise.
7325 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7326 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7327 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7328 * posix/tst-regex2.c (TIMEOUT): Likewise.
7329 * posix/tst-waitid.c (TIMEOUT): Likewise.
7330 * rt/tst-aio.c (TIMEOUT): Likewise.
7331 * rt/tst-aio10.c (TIMEOUT): Likewise.
7332 * rt/tst-aio4.c (TIMEOUT): Likewise.
7333 * rt/tst-aio5.c (TIMEOUT): Likewise.
7334 * rt/tst-aio6.c (TIMEOUT): Likewise.
7335 * rt/tst-aio64.c (TIMEOUT): Likewise.
7336 * rt/tst-aio7.c (TIMEOUT): Likewise.
7337 * rt/tst-aio9.c (TIMEOUT): Likewise.
7338 * rt/tst-clock.c (TIMEOUT): Likewise.
7339 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7340 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7341 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7342 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7343 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7344 * rt/tst-timer4.c (TIMEOUT): Likewise.
7345 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7346 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7347 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7348 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7349 * time/tst-ftime.c (TIMEOUT): Likewise.
7350 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7351
7352 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7353
7354 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7355 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7356 for thunderX2.
7357
7358 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7359
7360 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7361 bits/sem-pad.h.
7362 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7363 instead of <bits/wordsize.h>.
7364 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7365 and [__SEM_PAD_AFTER_TIME].
7366 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7367 __syscall_ulong_t instead of unsigned long int.
7368 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7369 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7370 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7371 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7372 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7373 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7374 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7375 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7376 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7377 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7378 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7379
7380 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7381
7382 regex: simplify by using intprops.h
7383 [BZ#23744]
7384 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7385 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7386 intprops.h defines them.
7387
7388 regex: __builtin_expect → __glibc_unlikely
7389 [BZ#23744]
7390 This refactoring was prompted by a problem when the regex code is
7391 used as part of Gnulib and when the builder’s compiler does not grok
7392 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7393 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7394 Although this refactoring does not fix the problem directly,
7395 we might as well have Gawk use the now-preferred glibc style for when
7396 __builtin_expect is unavailable.
7397 * posix/regex_internal.h (BE): Remove.
7398 All uses replaced by __glibc_unlikely or __glibc_likely.
7399
7400 2018-10-11 Joseph Myers <joseph@codesourcery.com>
7401
7402 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7403 bits/msq-pad.h.
7404 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
7405 instead of <bits/wordsize.h>.
7406 (msgqnum_t): Define as __syscall_ulong_t.
7407 (msglen_t): Likewise.
7408 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
7409 and [__MSQ_PAD_AFTER_TIME].
7410 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
7411 __syscall_ulong_t instead of unsigned long int.
7412 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
7413 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
7414 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
7415 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
7416 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
7417 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
7418 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
7419 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
7420 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
7421 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
7422 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
7423
7424 2018-10-10 Joseph Myers <joseph@codesourcery.com>
7425
7426 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
7427 (struct shmid_ds): Condition padding after time fields on
7428 [__WORDSIZE == 32].
7429 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
7430 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
7431 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7432
7433 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
7434 (struct semid_ds): Condition padding after time fields on
7435 [__WORDSIZE == 32].
7436 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
7437 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
7438 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
7439 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
7440
7441 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
7442 (struct msqid_ds): Condition padding after time fields on
7443 [__WORDSIZE == 32].
7444 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
7445 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
7446 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
7447 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
7448
7449 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7450
7451 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
7452
7453 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7454
7455 * libio/tst-readline.c (TIMEOUT): Define.
7456
7457 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
7458
7459 mktime fix for Gnulib + coreutils
7460 [BZ#23745]
7461 This fix affects only Gnulib. Problem discovered when
7462 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
7463 * time/mktime.c:
7464 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
7465 Do not define since it is not used. Defining an unused static
7466 function prompts a warning from GCC when Coreutils is configured
7467 with --enable-gcc-warnings.
7468
7469 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7470
7471 * benchtests/scripts/compare_bench.py (main): set float type on
7472 threshold argument.
7473
7474 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
7475
7476 [BZ #23740]
7477 * localedata/locales/kl_GL (mon): Update, the relative case.
7478 (alt_mon): Add, fill with month names in the nominative case.
7479 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
7480 (d_fmt): Set to "%b %d %Y".
7481
7482 2018-10-04 Joseph Myers <joseph@codesourcery.com>
7483
7484 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7485 <bits/mman-linux.h>.
7486 (PROT_READ): Don't define here.
7487 (PROT_WRITE): Likewise.
7488 (PROT_EXEC): Likewise.
7489 (PROT_NONE): Likewise.
7490 (PROT_GROWSDOWN): Likewise.
7491 (PROT_GROWSUP): Likewise.
7492 (MAP_SHARED): Likewise.
7493 (MAP_PRIVATE): Likewise.
7494 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
7495 [__USE_MISC] (MAP_FILE): Likewise.
7496 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
7497 [__USE_MISC] (MAP_ANON): Likewise.
7498 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
7499 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
7500 (MCL_CURRENT): Likewise.
7501 (MCL_FUTURE): Likewise.
7502 (MCL_ONFAULT): Likewise.
7503 [__USE_MISC] (MADV_NORMAL): Likewise.
7504 [__USE_MISC] (MADV_RANDOM): Likewise.
7505 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
7506 [__USE_MISC] (MADV_WILLNEED): Likewise.
7507 [__USE_MISC] (MADV_DONTNEED): Likewise.
7508 [__USE_MISC] (MADV_FREE): Likewise.
7509 [__USE_MISC] (MADV_REMOVE): Likewise.
7510 [__USE_MISC] (MADV_DONTFORK): Likewise.
7511 [__USE_MISC] (MADV_DOFORK): Likewise.
7512 [__USE_MISC] (MADV_HWPOISON): Likewise.
7513 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
7514 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
7515 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
7516 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
7517 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
7518 (__MAP_ANONYMOUS): New macro.
7519 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
7520 <bits/mman-linux.h> inclusion.
7521 (MAP_FIXED): Likewise.
7522 (MS_SYNC): Likewise.
7523 (MS_ASYNC): Likewise.
7524 (MS_INVALIDATE): Likewise.
7525 [__USE_MISC] (MADV_MERGEABLE): Likewise.
7526 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
7527 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
7528 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
7529 [__USE_MISC] (MADV_DONTDUMP): Likewise.
7530 [__USE_MISC] (MADV_DODUMP): Likewise.
7531 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
7532 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
7533
7534 [BZ #23735]
7535 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
7536 Define.
7537 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
7538 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
7539 Add test-nldbl-redirect.
7540 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
7541 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
7542 $(objpfx)libnldbl_nonshared.a.
7543
7544 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
7545
7546 * support/support.h (support_objdir_elf_ldso): New variable.
7547 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
7548 * support/Makefile (CFLAGS-support_paths.c): Add definition
7549 for OBJDIR_ELF_LDSO_PATH.
7550 * support/test-container.c (main): Search for the ld.so
7551 which is also used by the testsuite.
7552
7553 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
7554
7555 [BZ #20209]
7556 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
7557 should be "sap" rather than "sab".
7558 (day): Fix spelling of Sunday, should be "sapaat" rather than
7559 "sabaat".
7560
7561 2018-10-02 Joseph Myers <joseph@codesourcery.com>
7562
7563 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7564
7565 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
7566
7567 [BZ #19444]
7568 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
7569 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
7570 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
7571
7572 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7573
7574 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
7575
7576 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
7577
7578 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
7579 Add -mrtm.
7580 (CFLAGS-elision-unlock.c): Likewise.
7581 (CFLAGS-elision-timed.c): Likewise.
7582 (CFLAGS-elision-trylock.c): Likewise.
7583 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
7584
7585 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7586
7587 [BZ #21037]
7588 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
7589 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
7590 new fd_to_filename interface.
7591 * libio/freopen64.c (freopen64): Likewise.
7592 * libio/tst-memstream.h: New file.
7593 * libio/tst-memstream4.c: Likewise.
7594 * libio/tst-wmemstream4.c: Likewise.
7595 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
7596 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
7597 and remove internal dynamic allocation.
7598
7599 2018-10-01 Joseph Myers <joseph@codesourcery.com>
7600
7601 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
7602 (MREMAP_MAYMOVE): Do not define here.
7603 [__USE_GNU] (MREMAP_FIXED): Likewise.
7604 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
7605 (MREMAP_MAYMOVE): Define here instead.
7606 [__USE_GNU] (MREMAP_FIXED): Likewise.
7607 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
7608 (MREMAP_MAYMOVE): Remove.
7609 [__USE_GNU] (MREMAP_FIXED): Likewise.
7610
7611 2018-09-28 Joseph Myers <joseph@codesourcery.com>
7612
7613 * math/fromfp.h: Do not include <math_private.h>.
7614 * math/s_cacosh_template.c: Likewise.
7615 * math/s_casin_template.c: Likewise.
7616 * math/s_casinh_template.c: Likewise.
7617 * math/s_ccos_template.c: Likewise.
7618 * math/s_cproj_template.c: Likewise.
7619 * math/s_fdim_template.c: Likewise.
7620 * math/s_fmaxmag_template.c: Likewise.
7621 * math/s_fminmag_template.c: Likewise.
7622 * math/s_iseqsig_template.c: Likewise.
7623 * math/s_ldexp_template.c: Likewise.
7624 * math/s_nextdown_template.c: Likewise.
7625 * math/w_log1p_template.c: Likewise.
7626 * math/w_scalbln_template.c: Likewise.
7627 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7628 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7629 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7630 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7631 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
7632 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
7633 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
7634 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
7635 * sysdeps/i386/fpu/s_atanl.c: Likewise.
7636 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
7637 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
7638 * sysdeps/i386/fpu/s_fdim.c: Likewise.
7639 * sysdeps/i386/fpu/s_logbl.c: Likewise.
7640 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7641 * sysdeps/i386/fpu/s_significandl.c: Likewise.
7642 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
7643 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
7644 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7645 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7646 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7647 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7648 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7649 * sysdeps/ieee754/k_standardf.c: Likewise.
7650 * sysdeps/ieee754/k_standardl.c: Likewise.
7651 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7652 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
7653 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
7654 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
7655 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
7656 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
7657 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7658 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7659 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7660 * sysdeps/ieee754/s_signgam.c: Likewise.
7661 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
7662 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
7663 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
7664 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7665 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7666 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7667 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7668 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7669 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7670 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7671 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7672 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7673 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7674 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7675 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7676 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7677 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7678 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7679 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7680 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7681 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7682 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7683 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7684 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7685 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7686 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7687 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7688 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7689 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7690 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7691 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7692 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7693 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7694 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7695 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7696 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7697 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
7698 <math_private.h>.
7699 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7700
7701 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
7702
7703 [BZ #23716]
7704 * sysdeps/i386/dl-cet.c: Removed.
7705 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
7706 prototype.
7707 (_dl_runtime_profile_shstk): Likewise.
7708 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
7709 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
7710
7711 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7712
7713 [BZ #23579]
7714 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
7715 do_test_with_invalid_iov): New tests.
7716 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
7717 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
7718 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
7719 errno is ENOSYS.
7720 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7721 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7722 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7723
7724 2018-09-27 Joseph Myers <joseph@codesourcery.com>
7725
7726 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7727 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
7728 (MATH_REDIRECT_BINARY_ARGS): New macro.
7729 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7730 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
7731 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
7732 header inclusion.
7733 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
7734 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7735 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
7736 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7737 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7738 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7739 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7740 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
7741 Likewise.
7742 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
7743 Likewise.
7744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
7745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7746 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7747 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7749 Likewise.
7750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7751 Likewise.
7752 * sysdeps/generic/math_private_calls.h
7753 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7754 Do not declare and define as an inline function.
7755 * math/divtc3.c (__divtc3): Use copysign functions instead of
7756 __copysign variants.
7757 * math/multc3.c (__multc3): Likewise.
7758 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7759 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7760 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7761 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7762 Likewise.
7763 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7764 (__ieee754_yn): Likewise.
7765 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7766 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7767 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7768 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7769 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7770 (__sin): Likewise.
7771 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7772 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7773 Likewise.
7774 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7775 Likewise.
7776 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7777 Likewise.
7778 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7779 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7780 Likewise.
7781 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7782 (__ieee754_ynf): Likewise.
7783 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7784 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7785 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7786 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7787 Likewise.
7788 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7789 (__ieee754_ynl): Likewise.
7790 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7791 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7792 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7793 Likewise.
7794 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7795 (__ieee754_ynl): Likewise.
7796 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7797 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7798 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7799 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7800 Likewise.
7801 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7802 (__ieee754_ynl)
7803 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7804 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7805 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7806 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7807 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7808
7809 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7810 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7811 using MATH_REDIRECT.
7812 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7813 header inclusion.
7814 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7815 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7816 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7817 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7818 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7819 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7820 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7822 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7825 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7826 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7827 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7828 (round): Redirect to __round.
7829 (__roundl): Call round instead of __round.
7830 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7831 Remove macro.
7832 [_ARCH_PWR5X] (__roundf): Likewise.
7833 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7834 functions instead of __round variants.
7835 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7836 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7837 Likewise.
7838 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7839 Likewise.
7840 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7841 Likewise.
7842 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7843 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7844 __lroundl.
7845 (__ieee754_expl): Call roundl instead of __roundl.
7846
7847 2018-09-27 Andreas Schwab <schwab@suse.de>
7848
7849 [BZ #23717]
7850 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7851 (do_test): Make st1 static.
7852
7853 2018-09-26 Andreas Schwab <schwab@suse.de>
7854
7855 [BZ #23707]
7856 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7857 * elf/Makefile (tests): Add tst-unwind-ctor.
7858 (modules-names): Add tst-unwind-ctor-lib.
7859 ($(objpfx)tst-unwind-ctor): Depend on
7860 $(objpfx)tst-unwind-ctor-lib.so.
7861
7862 2018-09-26 Joseph Myers <joseph@codesourcery.com>
7863
7864 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7865 file. Most contents moved from ....
7866 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
7867 and include <bits/mman-map-flags-generic.h>.
7868 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7869 (sysdep_headers): Add bits/mman-map-flags-generic.h.
7870 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7871 <bits/mman-map-flags-generic.h>.
7872 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7873 macros defined in <bits/mman-map-flags-generic.h>.
7874 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7875 <bits/mman-map-flags-generic.h>.
7876 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7877 defined in <bits/mman-map-flags-generic.h>.
7878
7879 2018-09-26 Andreas Schwab <schwab@suse.de>
7880
7881 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7882 output.
7883
7884 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
7885 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7886 Fangrui Song <maskray@google.com>
7887
7888 [BZ #20480]
7889 * config.make.in (have-textrel_ifunc): New define.
7890 * configure.ac: Add check if linker supports textrel relocation with
7891 ifunc.
7892 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7893 tst-ifunc-textrel.
7894 (CFLAGS-tst-ifunc-textrel.c): New rule.
7895 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7896 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7897 * elf/tst-ifunc-textrel.c: New file.
7898
7899 2018-09-25 Joseph Myers <joseph@codesourcery.com>
7900
7901 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7902 <bits/procfs-prregset.h>.
7903 (prgregset_t): Define using __prgregset_t.
7904 (prfpregset_t): Define using __prfpregset_t.
7905 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7906 (sysdep_headers): Add bits/procfs-prregset.h.
7907 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7908 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7909 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7910 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7911
7912 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7913 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7914 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7915 pr_uid and pr_gid.
7916 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7917 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7918 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7919 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7920 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7921 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7922 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7923 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7924 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7925 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7926 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7927 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7928 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7929 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7930 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7931 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7932 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7933 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7934 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7935 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7936 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7937 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7938 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7939 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7940
7941 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7942 AArch64 version. Include <bits/procfs.h>.
7943 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7944 (sysdep_headers): Add bits/procfs.h.
7945 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7946 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7947 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7948 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7949 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7950 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7951 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7952 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7953 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7954 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7955 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7956 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7957 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7958 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7959 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7960 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7961 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7962
7963 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7964
7965 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7966 Use libsupport.
7967
7968 2018-09-25 Arjun Shankar <arjun@redhat.com>
7969
7970 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7971 (__gconv_max_path_elem_len): Likewise.
7972 (__gconv_nmodules): Likewise.
7973 (__gconv_get_path): Likewise.
7974 (path_elem): Move to ...
7975 * iconv/gconv_conf.c: ... here.
7976 (__gconv_get_path): Mark function static.
7977 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7978 * iconv/gconv_open.c: ... here.
7979
7980 2018-09-24 Andreas Schwab <schwab@suse.de>
7981
7982 * scripts/haveversions.awk: New file.
7983 * Makerules ($(common-objpfx)Versions.def)
7984 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7985 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7986 Move rules ...
7987 * Makeconfig ($(common-objpfx)Versions.def)
7988 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7989 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7990 ... here.
7991 ($(common-objpfx)Versions.mk): New rule. Include it.
7992 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7993 Emit error if build-obsolete-nsl = yes.
7994 * manual/install.texi (Configuring and compiling): Describe
7995 --enable-obsolete-nsl as unavaiable after version 2.28.
7996 * INSTALL: Regenerate.
7997
7998 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7999
8000 * NEWS: Add note about new TLE support on powerpc64le.
8001 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8002 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8003 __ununsed1.
8004 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8005 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8006 * sysdeps/powerpc/powerpc32/sysdep.h,
8007 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8008 ABORT_TRANSACTION): Remove macros.
8009 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8010 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8011 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8013 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8014 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8015 usage.
8016 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8017
8018 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8019
8020 [BZ #10425]
8021 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8022 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8023 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8024 which is the same as in it_IT.
8025 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8026 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8027
8028 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8029
8030 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8031 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8032 using MATH_REDIRECT.
8033 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8034 header inclusion.
8035 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8036 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8037 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8038 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8039 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8040 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8041 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8045 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8046 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8047 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8048 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8049 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8050 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8051 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8052 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8053 (ceil): Redirect to __ceil.
8054 (floor): Redirect to __floor.
8055 (trunc): Redirect to __trunc.
8056 (__truncl): Call trunc instead of __trunc.
8057 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8058 Remove macro.
8059 [_ARCH_PWR5X] (__truncf): Likewise.
8060 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8061 trunc functions instead of __trunc variants.
8062 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8063 Likewise.
8064 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8065 Likewise.
8066 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8067 Likewise.
8068 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8069 Likewise.
8070
8071 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8072 [__i586__ || __pentium__].
8073 [__i486__]: Handle explicitly.
8074 (HAS_CPUID): Define to 1 if above macros are undefined.
8075 (HAS_I586): Likewise.
8076 (HAS_I686): Likewise.
8077
8078 2018-09-20 Florian Weimer <fweimer@redhat.com>
8079
8080 * misc/tst-gethostid.c: New file.
8081 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8082 (tst-gethostid): Link with -ldl.
8083
8084 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8085
8086 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8087 value from gethostbyname_r.
8088
8089 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8090
8091 * stdlib/tst-setcontext9.c (f1): Rename to...
8092 (f1a): ... this.
8093 (f1b): New function implementing lower half of f1 in alternate stack.
8094
8095 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8096
8097 Fix mktime localtime offset confusion
8098 [BZ #23603]
8099 * include/time.h (__mktime_internal): The localtime offset is now
8100 of type long int instead of time_t. This is the longstanding type
8101 in glibc, and it is more than enough to represent difference
8102 between localtime and gmtime even if it is 32 bits and time_t is
8103 64. Changing it now will let us avoid an unnecessary change when
8104 time_t is widened to 64 bits on 32-bit platforms.
8105 * time/mktime-internal.h (mktime_offset_t): Now long int.
8106
8107 Merge mktime, timegm from upstream Gnulib
8108 [BZ #23603][BZ #16346]
8109 This fixes some obscure problems with integer overflow.
8110 Although it looks scary, it is almost all a byte-for-byte copy
8111 from Gnulib, and the Gnulib code has been tested reasonably well.
8112 * include/intprops.h: New file, copied from Gnulib.
8113 * include/verify.h, time/mktime-internal.h:
8114 New tiny files, simplified from Gnulib.
8115 * time/mktime.c: Copy from Gnulib. This has the following changes:
8116 Do not include config.h if DEBUG_MKTIME is nonzero.
8117 Include stdbool.h, intprops.h, verify.h.
8118 Include string.h only if needed.
8119 Include stdlib.h on MS-Windows.
8120 Include mktime-internal.h.
8121 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8122 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8123 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8124 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8125 simplify later conditionals; default the others to zero. Use
8126 these conditionals to express only the code needed on the current
8127 platform. In uses of these conditionals, explicitly spell out how
8128 _LIBC affects things, so it’s easier to review from a glibc
8129 viewpoint.
8130 (WRAPV): Remove; no longer needed now that we have
8131 systematic overflow checking.
8132 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8133 compartmentalize tzset issues. Move system-dependent tzsettish
8134 code here from mktime.
8135 (verify): Remove; now done by verify.h. All uses changed.
8136 (long_int): Use a more-conservative definition, to avoid
8137 integer overflow.
8138 (SHR): Remove, replacing with ...
8139 (shr): New function, which means we needn’t worry about side
8140 effects in args, and conversion analysis is simpler.
8141 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8142 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8143 (time_t_avg, time_t_add_ok): Remove.
8144 (mktime_min, mktime_max): New constants.
8145 (leapyear, isdst_differ): Use bool for booleans.
8146 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8147 Use long_int, not time_t, for mktime differences.
8148 (long_int_avg): New function, replacing time_t_avg.
8149 INT_ADD_WRAPV replaces time_t_add_ok.
8150 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8151 All uses changed.
8152 (convert_time): New function.
8153 (ranged_convert): Use it.
8154 (__mktime_internal): Last arg now points to mktime_offset_t, not
8155 time_t. All uses changed. This is a no-op on glibc, where
8156 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8157 offset guess. Directly check for integer overflow instead of
8158 using a heuristic that works only 99.9...% of the time.
8159 Access *OFFSET only once, to avoid an unlikely race if the
8160 compiler delays a load and if this cascades into a signed integer
8161 overflow.
8162 (mktime): Move tzsettish code to my_tzset, and move
8163 localtime_offset to within mktime so that it doesn’t
8164 need a separate ifdef.
8165 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8166 instead of localtime.
8167 * time/timegm.c: Copy from Gnulib. This has the following changes:
8168 Include mktime-internal.h.
8169 [!_LIBC]: Include config.h and time.h. Do not include
8170 timegm.h or time_r.h. Make __mktime_internal a macro,
8171 and include mktime-internal.h to get its declaration.
8172 (timegm): Temporary is now mktime_offset_t, not time_t.
8173 This affects only Gnulib.
8174
8175 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8176
8177 [BZ #23637]
8178 * string/test-strstr.c (pr23637): New function.
8179 (test_main): Add tests with longer needles.
8180 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8181 * string/strstr.c (AVAILABLE): Likewise.
8182
8183 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8184
8185 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8186
8187 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8188
8189 * NEWS: Mention pow improvements.
8190 * math/Makefile (type-double-routines): Add e_pow_log_data.
8191 * sysdeps/generic/math_private.h (__exp1): Remove.
8192 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8193 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8194 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8195 contraction.
8196 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8197 (exp_inline): Remove.
8198 (__ieee754_exp): Only single double input is handled.
8199 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8200 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8201 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8202 (__pow_log_data): Define.
8203 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8204 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8205 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8206 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8207 contraction.
8208 (CFLAGS-e_pow-fma4.c): Likewise.
8209
8210 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8211
8212 Simplify tzfile fstat failure code
8213 [BZ #21716]
8214 * time/tzfile.c (__tzfile_read): Simplify slightly.
8215
8216 Fix tzfile low-memory assertion failure
8217 [BZ #21716]
8218 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8219 when registering time zone abbreviations.
8220
8221 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8222
8223 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8224 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8225 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8226 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8227 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8228 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8229 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8230 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8231 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8232
8233 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8234 __ceil.
8235 (__ceill): Call ceil instead of __ceil.
8236 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8237 __floor.
8238 (__floorl): Call floor instead of __floor.
8239
8240 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8241
8242 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8243 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8244 using MATH_REDIRECT.
8245 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8246 header inclusion.
8247 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8248 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8249 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8250 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8251 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8252 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8253 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8254 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8255 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8259 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8260 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8261 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8262 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8263 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8264 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8265 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8266 Remove macro.
8267 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8268 functions instead of __ceil variants.
8269 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8270 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8271 Likewise.
8272 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8273 Likewise.
8274 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8275 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8276 Likewise.
8277 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8278 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8279
8280 [BZ #21286]
8281 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8282 constant.
8283 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8284 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8285 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8286 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8287 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8288 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8289 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8290 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8291 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8292 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8293 (ILL_BADIADDR): Remove constant.
8294 (TRAP_BRANCH): Likewise.
8295 (TRAP_HWBKPT): Likewise.
8296
8297 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8298
8299 [BZ #23656]
8300 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8301 Remove [_MIPS_SIM = _ABIN32] conditional case.
8302 (struct elf_prpsinfo): Likewise.
8303
8304 [BZ #23649]
8305 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8306 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8307 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8308 Likewise.
8309 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8310 elf_prpsinfo): Likewise.
8311 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8312 elf_prpsinfo): Likewise.
8313 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8314 Likewise.
8315
8316 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8317 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8318 using MATH_REDIRECT.
8319 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8320 header inclusion.
8321 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8322 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8323 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8324 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8325 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8326 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8327 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8328 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8329 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8330 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8331 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8332 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8333 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8334 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8335 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8336 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8337 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8338 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8339 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8341 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8342 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8343 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8344 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8345 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8346 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8347 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8348 __rint variants.
8349 * math/e_scalbf.c (invalid_fn): Likewise.
8350 * math/e_scalbl.c (invalid_fn): Likewise.
8351 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8352 Likewise.
8353 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8354 Likewise.
8355 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8356 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8357 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8358 Likewise.
8359 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8360 Likewise.
8361 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8362 Likewise.
8363 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8364 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8365
8366 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8367 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8368 New macro.
8369 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8370 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8371 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8372 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8373 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8374 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8375 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8376 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8377 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8378 && !NO_MATH_REDIRECT] (floor): Likewise.
8379 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8380 header inclusion.
8381 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8382 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8383 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8384 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8385 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8386 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8387 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8388 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8393 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8394 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8395 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8396 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8397 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8398 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8399 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
8400 Remove macro.
8401 [_ARCH_PWR5X] (__floorf): Likewise.
8402 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
8403 inline function.
8404 [__SSE4_1__] (__floorf): Likewise.
8405 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
8406 instead of __floor variants.
8407 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
8408 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
8409 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
8410 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
8411 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
8412 * math/w_tgamma_compat.c (__tgamma): Likewise.
8413 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
8414 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
8415 * math/w_tgammal_compat.c (__tgammal): Likewise.
8416 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
8417 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
8418 Likewise.
8419 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
8420 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
8421 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
8422 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8423 Likewise.
8424 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8425 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
8426 Likewise.
8427 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
8428 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
8429 Likewise.
8430 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8431 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
8432 Likewise.
8433 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
8434 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8435 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8436 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
8437 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8438 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8439
8440 2018-09-12 Joseph Myers <joseph@codesourcery.com>
8441
8442 * elf/Makefile (modules-names-tests): New variable.
8443
8444 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8445
8446 * NEWS: Mention log2 improvements.
8447 * math/Makefile (type-double-routines): Add e_log2_data.
8448 * sysdeps/i386/fpu/e_log2_data.c: New file.
8449 * sysdeps/ia64/fpu/e_log2_data.c: New file.
8450 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
8451 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
8452 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
8453 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
8454 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
8455
8456 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8457
8458 * NEWS: Mention log improvement.
8459 * math/Makefile (type-double-routines): Add e_log_data.
8460 * sysdeps/i386/fpu/e_log_data.c: New file.
8461 * sysdeps/ia64/fpu/e_log_data.c: New file.
8462 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8463 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
8464 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
8465 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
8466 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
8467 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
8468
8469 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
8470 Xuepeng Guo <xuepeng.guo@intel.com>
8471
8472 [BZ #23606]
8473 * sysdeps/i386/start.S: Include <sysdep.h>
8474 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
8475 enabled. Add cfi_undefined (eip).
8476
8477 2018-09-11 Joseph Myers <joseph@codesourcery.com>
8478
8479 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
8480 (MOVQ): Likewise.
8481 (EXTRACT_WORDS64): Likewise.
8482 (INSERT_WORDS64): Likewise.
8483 (GET_FLOAT_WORD): Likewise.
8484 (SET_FLOAT_WORD): Likewise.
8485
8486 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
8487 argument.
8488 (Config.build_gcc): Use --disable-libsanitizer for first GCC
8489 build, but not for second build if --full-gcc. Use
8490 --enable-languages=all for second build if --full-gcc.
8491 (get_parser): Add --full-gcc option.
8492 (main): Update call to Context.
8493
8494 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
8495
8496 [BZ #10797]
8497 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
8498 Single Quotation Mark).
8499 (thousands_sep): Likewise.
8500 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
8501 * localedata/locales/it_IT (thousands_sep): Use ".".
8502 (grouping): Use "3;3".
8503
8504 2018-09-10 Joseph Myers <joseph@codesourcery.com>
8505
8506 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
8507 x86_64 and i686 configs using --enable-obsolete-rpc
8508 --enable-obsolete-nsl.
8509
8510 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8511
8512 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8513
8514 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8515
8516 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
8517 Increment size of new_argv by one.
8518
8519 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
8520
8521 [BZ #17426]
8522 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
8523 * localedata/locales/ar_IN (d_fmt): Likewise.
8524 * localedata/locales/bhb_IN (d_fmt): Likewise.
8525 * localedata/locales/bho_IN (d_fmt): Likewise.
8526 * localedata/locales/bn_BD (d_fmt): Likewise.
8527 * localedata/locales/bn_IN (d_fmt): Likewise.
8528 * localedata/locales/doi_IN (d_fmt): Likewise.
8529 * localedata/locales/gu_IN (d_fmt): Likewise.
8530 * localedata/locales/hi_IN (d_fmt): Likewise.
8531 * localedata/locales/hne_IN (d_fmt): Likewise.
8532 * localedata/locales/kn_IN (d_fmt): Likewise.
8533 * localedata/locales/mag_IN (d_fmt): Likewise.
8534 * localedata/locales/mai_IN (d_fmt): Likewise.
8535 * localedata/locales/mjw_IN (d_fmt): Likewise.
8536 * localedata/locales/ml_IN (d_fmt): Likewise.
8537 * localedata/locales/mni_IN (d_fmt): Likewise.
8538 * localedata/locales/mr_IN (d_fmt): Likewise.
8539 * localedata/locales/pa_IN (d_fmt): Likewise.
8540 * localedata/locales/raj_IN (d_fmt): Likewise.
8541 * localedata/locales/sat_IN (d_fmt): Likewise.
8542 * localedata/locales/sd_IN (d_fmt): Likewise.
8543 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
8544 * localedata/locales/ta_IN (d_fmt): Likewise.
8545 * localedata/locales/ta_LK (d_fmt): Likewise.
8546 * localedata/locales/tcy_IN (d_fmt): Likewise.
8547 * localedata/locales/ur_IN (d_fmt): Likewise.
8548
8549 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
8550 * localedata/locales/ks_IN (d_fmt): Likewise.
8551 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
8552
8553 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
8554 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
8555 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
8556 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
8557
8558 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
8559
8560 * NEWS: Mention exp and exp2 improvements.
8561 * math/Makefile (libm-support): Remove t_exp.
8562 (type-double-routines): Add math_err and e_exp_data.
8563 * sysdeps/aarch64/libm-test-ulps: Update.
8564 * sysdeps/arm/libm-test-ulps: Update.
8565 * sysdeps/i386/fpu/e_exp_data.c: New file.
8566 * sysdeps/i386/fpu/math_err.c: New file.
8567 * sysdeps/i386/fpu/t_exp.c: Remove.
8568 * sysdeps/ia64/fpu/e_exp_data.c: New file.
8569 * sysdeps/ia64/fpu/math_err.c: New file.
8570 * sysdeps/ia64/fpu/t_exp.c: Remove.
8571 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
8572 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
8573 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
8574 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
8575 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
8576 * sysdeps/ieee754/dbl-64/math_config.h: New file.
8577 * sysdeps/ieee754/dbl-64/math_err.c: New file.
8578 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
8579 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
8580 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
8581 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
8582 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
8583 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
8584 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
8585 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8586 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8587
8588 2018-09-05 Joseph Myers <joseph@codesourcery.com>
8589
8590 * sysdeps/alpha/fpu/math_private.h: Remove.
8591
8592 * sysdeps/generic/math_private.h
8593 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
8594 Move this inline function ....
8595 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
8596 * include/math.h [!_ISOMAC]: To here....
8597
8598 2018-09-04 Joseph Myers <joseph@codesourcery.com>
8599
8600 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
8601 code ....
8602 [!FE_HAVE_ROUNDING_MODES]: And this code ....
8603 * include/fenv.h [!_ISOMAC]: ... to here.
8604 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
8605 (feraiseexcept): Likewise.
8606 * math/fromfp.h: Do not include <fenv_private.h>.
8607 * math/s_cexp_template.c: Likewise.
8608 * math/s_csin_template.c: Likewise.
8609 * math/s_csinh_template.c: Likewise.
8610 * math/s_ctan_template.c: Likewise.
8611 * math/s_ctanh_template.c: Likewise.
8612 * math/s_iseqsig_template.c: Likewise.
8613 * math/w_acos_compat.c: Likewise.
8614 * math/w_acosf_compat.c: Likewise.
8615 * math/w_acosl_compat.c: Likewise.
8616 * math/w_asin_compat.c: Likewise.
8617 * math/w_asinf_compat.c: Likewise.
8618 * math/w_asinl_compat.c: Likewise.
8619 * math/w_j0_compat.c: Likewise.
8620 * math/w_j0f_compat.c: Likewise.
8621 * math/w_j0l_compat.c: Likewise.
8622 * math/w_j1_compat.c: Likewise.
8623 * math/w_j1f_compat.c: Likewise.
8624 * math/w_j1l_compat.c: Likewise.
8625 * math/w_jn_compat.c: Likewise.
8626 * math/w_jnf_compat.c: Likewise.
8627 * math/w_log10_compat.c: Likewise.
8628 * math/w_log10f_compat.c: Likewise.
8629 * math/w_log10l_compat.c: Likewise.
8630 * math/w_log2_compat.c: Likewise.
8631 * math/w_log2f_compat.c: Likewise.
8632 * math/w_log2l_compat.c: Likewise.
8633 * math/w_log_compat.c: Likewise.
8634 * math/w_logf_compat.c: Likewise.
8635 * math/w_logl_compat.c: Likewise.
8636 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8637 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8638 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8639 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8640 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8641 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8642 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8643 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8644 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8645 * sysdeps/ieee754/k_standardl.c: Likewise.
8646 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8647 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8648 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8649 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8650 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8651 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8652 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8653 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8654 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8655 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8656 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8657 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8658 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8659 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8660 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8661 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8662 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8663 * math/w_ilogb_template.c: Include <fenv.h> instead of
8664 <fenv_private.h>.
8665 * math/w_llogb_template.c: Likewise.
8666 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8667 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8668
8669 2018-09-03 Joseph Myers <joseph@codesourcery.com>
8670
8671 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
8672 * math/fromfp.h: Include <fenv_private.h>.
8673 * math/math-narrow.h: Likewise.
8674 * math/s_cexp_template.c: Likewise.
8675 * math/s_csin_template.c: Likewise.
8676 * math/s_csinh_template.c: Likewise.
8677 * math/s_ctan_template.c: Likewise.
8678 * math/s_ctanh_template.c: Likewise.
8679 * math/s_iseqsig_template.c: Likewise.
8680 * math/w_acos_compat.c: Likewise.
8681 * math/w_acosf_compat.c: Likewise.
8682 * math/w_acosl_compat.c: Likewise.
8683 * math/w_asin_compat.c: Likewise.
8684 * math/w_asinf_compat.c: Likewise.
8685 * math/w_asinl_compat.c: Likewise.
8686 * math/w_ilogb_template.c: Likewise.
8687 * math/w_j0_compat.c: Likewise.
8688 * math/w_j0f_compat.c: Likewise.
8689 * math/w_j0l_compat.c: Likewise.
8690 * math/w_j1_compat.c: Likewise.
8691 * math/w_j1f_compat.c: Likewise.
8692 * math/w_j1l_compat.c: Likewise.
8693 * math/w_jn_compat.c: Likewise.
8694 * math/w_jnf_compat.c: Likewise.
8695 * math/w_llogb_template.c: Likewise.
8696 * math/w_log10_compat.c: Likewise.
8697 * math/w_log10f_compat.c: Likewise.
8698 * math/w_log10l_compat.c: Likewise.
8699 * math/w_log2_compat.c: Likewise.
8700 * math/w_log2f_compat.c: Likewise.
8701 * math/w_log2l_compat.c: Likewise.
8702 * math/w_log_compat.c: Likewise.
8703 * math/w_logf_compat.c: Likewise.
8704 * math/w_logl_compat.c: Likewise.
8705 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8706 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8707 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8708 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8709 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8710 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8711 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8712 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8713 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8714 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8715 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8716 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8717 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
8718 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8719 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8720 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8721 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8722 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8723 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8724 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8725 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8726 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8727 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8728 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8729 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8730 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8731 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8732 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
8733 * sysdeps/ieee754/float128/float128_private.h: Likewise.
8734 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8735 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8736 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8737 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8738 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8739 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8740 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8741 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8742 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8743 * sysdeps/ieee754/k_standardl.c: Likewise.
8744 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8745 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8746 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8747 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8748 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8749 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8750 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8751 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8752 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8753 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8754 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8755 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8756 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8757 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8758 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8759 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8760 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8761 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8762 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8763 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8764 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8765 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8766 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8767 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8768 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8769 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8770 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8771 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8772 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8773 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8774 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8775 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8776 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8777 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8778 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8779 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8780 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8781 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8782 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8783 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8784 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8785 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8786 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8787 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8788 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8789 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8790 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8791 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8792 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8793 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8794 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8795 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8796 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8797 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8798 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8799 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8800 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8801 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8802 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8803 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8804 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8805 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8806 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8807 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8808 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8809 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8810 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8811 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8812 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8813 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8814 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8815
8816 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8817
8818 [BZ #20271]
8819 * include/stdio.h (__libc_fatal): Mention newline in comment.
8820 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8821 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8822 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8823 * nss/nsswitch.c (__nss_next2): Likewise.
8824 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8825 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8826 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8827 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8828 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8829 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8830 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8831 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8832 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8833 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8834 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8835 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8836 (__netlink_assert_response): Likewise.
8837
8838 2018-08-31 Joseph Myers <joseph@codesourcery.com>
8839
8840 * conform/glibcconform.py: New file.
8841 * conform/list-header-symbols.py: Likewise.
8842 * conform/list-header-symbols.pl: Remove.
8843 * conform/Makefile (tests-special): Only add linknamespace tests
8844 if [PYTHON].
8845 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8846
8847 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
8848
8849 [BZ #23597]
8850 * support/Makefile (libsupport-routines): Add
8851 support_copy_file_range and xcopy_file_range.
8852 * support/support.h: Include <sys/types.h>.
8853 (support_copy_file_range): New prototype.
8854 * support/support_copy_file_range.c: New file. Copied and
8855 modified from io/copy_file_range-compat.c.
8856 * support/test-container.c (copy_one_file): Call xcopy_file_rang
8857 instead of copy_file_range.
8858 * support/xcopy_file_range.c: New file.
8859 * support/xunistd.h (xcopy_file_range): New prototype.
8860
8861 2018-08-30 Carlos O'Donell <carlos@redhat.com>
8862
8863 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8864 xpthread_create and xpthread_join.
8865
8866 2018-08-30 Florian Weimer <fweimer@redhat.com>
8867
8868 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8869
8870 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
8871
8872 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8873 if malloc fails.
8874
8875 2018-08-29 Joseph Myers <joseph@codesourcery.com>
8876
8877 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8878 and minus_oflow as non-finite.
8879
8880 2018-08-28 Joseph Myers <joseph@codesourcery.com>
8881
8882 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
8883 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
8884 moved to fenv_private.h except for ...
8885 (TOINT_INTRINSICS): Kept in math_private.h.
8886 (roundtoint): Likewise.
8887 (converttoint): Likewise.
8888 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8889 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8890 * sysdeps/arm/math_private.h: Remove.
8891 * sysdeps/generic/fenv_private.h: New file. Contents moved from
8892 ....
8893 * sysdeps/generic/math_private.h: ... this file. Include
8894 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
8895 Include <fenv_private.h>. Remove functions and macros moved to
8896 fenv_private.h.
8897 * sysdeps/i386/fpu/math_private.h: Remove.
8898 * sysdeps/mips/math_private.h: Move to ....
8899 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
8900 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
8901 [__mips_hard_float] conditional. Include next <fenv_private.h>.
8902 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8903 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8904 * sysdeps/powerpc/fpu/math_private.h: Do not include
8905 <fenv_private.h>.
8906 * sysdeps/riscv/rvf/math_private.h: Move to ....
8907 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
8908 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
8909 <fenv_private.h>.
8910 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8911 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8912 * sysdeps/sparc/fpu/math_private.h: Remove.
8913 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8914 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8915 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8916 <fenv_private.h>.
8917 * sysdeps/x86_64/fpu/math_private.h: Do not include
8918 <sysdeps/i386/fpu/fenv_private.h>.
8919
8920 2018-08-28 Florian Weimer <fweimer@redhat.com>
8921
8922 [BZ #23578]
8923 * posix/tst-regcomp-truncated.c: New file.
8924 * posix/Makefile (tests): Add it.
8925 (tst-regcomp-truncated.out): Depend on generated locales.
8926
8927 2018-08-28 Florian Weimer <fweimer@redhat.com>
8928
8929 * support/test-container.c (main): Treat unshare failure with
8930 EPERM as an unsupported test.
8931
8932 2018-08-28 Florian Weimer <fweimer@redhat.com>
8933
8934 [BZ #23520]
8935 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8936 * nscd/netgroupcache.c
8937 (addgetnetgrentX): Add tofreep parameter. Do not free
8938 heap-allocated buffer.
8939 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8940 (addgetnetgrentX_ignore): New function.
8941 (addgetnetgrent): Call it.
8942 (readdgetnetgrent): Likewise.
8943
8944 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8945
8946 * string/memmem.c: Use memcmp for first match.
8947
8948 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8949
8950 [BZ #17426]
8951 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8952
8953 2018-08-27 DJ Delorie <dj@redhat.com>
8954
8955 * support/Makefile (others): Don't list programs explicitly as a
8956 dependency of "others".
8957
8958 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8959
8960 * sysdeps/generic/math-tests-trap-force.h: New file.
8961 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8962 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8963 * sysdeps/powerpc/math-tests.h: Remove file.
8964 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8965
8966 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8967 Torvald Riegel <triegel@redhat.com>
8968
8969 [BZ #23538]
8970 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8971 Update r to include the set wake-request flag if waiters are
8972 remaining after spinning.
8973
8974 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8975
8976 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8977
8978 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8979
8980 [BZ #23578]
8981 regex: fix uninitialized memory access
8982 I introduced this bug into gnulib in commit
8983 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8984 eventually it was merged into glibc. The bug was found by
8985 project-repo <bugs@feusi.co> and reported here:
8986 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8987 Diagnosis and draft fix reported by Assaf Gordon here:
8988 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8989 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8990 * posix/regex_internal.c (build_wcs_upper_buffer):
8991 Fix bug when mbrtowc returns 0.
8992
8993 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8994
8995 * po/be.po: Update translation.
8996
8997 2018-08-24 DJ Delorie <dj@delorie.com>
8998
8999 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9000 $(libunwind).
9001
9002 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9003
9004 [BZ #23400]
9005 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9006 create temporary files in source tree.
9007
9008 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9009
9010 * sysdeps/generic/math-tests-trap.h: New file.
9011 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9012 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9013 * sysdeps/aarch64/math-tests.h: Remove file.
9014 * sysdeps/arm/math-tests.h: Likewise.
9015 * sysdeps/riscv/math-tests.h: Likewise.
9016 * sysdeps/aarch64/math-tests-trap.h: New file.
9017 * sysdeps/arm/math-tests-trap.h: Likewise.
9018 * sysdeps/riscv/math-tests-trap.h: Likewise.
9019
9020 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9021
9022 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9023 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9024 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9025 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9026 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9027 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9028 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9029 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9030 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9031 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9032 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9033 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9034 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9035 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9036 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9037 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9038 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9039 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9040
9041 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9042
9043 * sysdeps/generic/math-tests-exceptions.h: New file.
9044 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9045 (EXCEPTION_TESTS_float): Do not define here.
9046 (EXCEPTION_TESTS_double): Likewise.
9047 (EXCEPTION_TESTS_long_double): Likewise.
9048 (EXCEPTION_TESTS_float128): Likewise.
9049 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9050 Likewise.
9051 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9052 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9053 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9054 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9055 * sysdeps/mips/math-tests.h: Likewise.
9056 * sysdeps/nios2/math-tests.h: Likewise.
9057 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9058 (EXCEPTION_TESTS_float): Do not define here.
9059 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9060 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9061 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9062
9063 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9064
9065 * NEWS: Move optimized sinf entry to 2.29.
9066
9067 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9068
9069 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9070
9071 2018-08-22 DJ Delorie <dj@redhat.com>
9072
9073 * Makefile (testroot.pristine): New rules to initialize the
9074 test-in-container "testroot".
9075 * Makerules (all-testsuite): Add tests-container.
9076 * Rules (tests-expected): Add tests-container.
9077 (binaries-all-tests): Likewise.
9078 (tests-container): New, run these tests in the testroot container.
9079 * support/Makefile (others): Add *-container, support_paths.c,
9080 xmkdirp, and links-dso-program.
9081 * support/links-dso-program-c.c: New.
9082 * support/links-dso-program.cc: New.
9083 * support/test-container.c: New.
9084 * support/shell-container.c: New.
9085 * support/echo-container.c: New.
9086 * support/true-container.c: New.
9087 * support/xmkdirp.c: New.
9088 * support/xsymlink.c: New.
9089 * support/support_paths.c: New.
9090 * support/support.h: Add support paths prototypes.
9091 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9092
9093 * nss/tst-nss-test3.c: Convert to test-in-container.
9094 * nss/tst-nss-test3.root/: New.
9095
9096 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9097
9098 regex: port Gnulib code to z/OS POSIX environment
9099 Problem reported by Arnold Robbins in:
9100 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9101 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9102 Undef.
9103
9104 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9105
9106 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9107 (ROUNDING_TESTS_double): Remove.
9108 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9109 (ROUNDING_TESTS_double): Remove.
9110 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9111 (ROUNDING_TESTS_double): Remove.
9112 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9113 (ROUNDING_TESTS_float): Remove.
9114 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9115 (ROUNDING_TESTS_float): Remove.
9116 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9117 (ROUNDING_TESTS_float): Remove.
9118 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9119 !TEST_MATHVEC here.
9120 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9121 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9122
9123 * sysdeps/generic/math-tests-rounding.h: New file.
9124 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9125 (ROUNDING_TESTS_float): Do not define here.
9126 (ROUNDING_TESTS_double): Likewise.
9127 (ROUNDING_TESTS_long_double): Likewise.
9128 (ROUNDING_TESTS_float128): Likewise.
9129 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9130 (ROUNDING_TESTS_double): Undefine before defining.
9131 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9132 (ROUNDING_TESTS_double): Undefine before defining.
9133 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9134 (ROUNDING_TESTS_double): Undefine before defining.
9135 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9136 (ROUNDING_TESTS_float): Undefine before defining.
9137 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9138 (ROUNDING_TESTS_float): Undefine before defining.
9139 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9140 (ROUNDING_TESTS_float): Undefine before defining.
9141 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9142 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9143 not define here.
9144 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9145 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9146 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9147 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9148 (ROUNDING_TESTS_float): Do not define here.
9149 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9150 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9151 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9152 (ROUNDING_TESTS_float): Likewise.
9153 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9154 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9155 * sysdeps/mips/math-tests.h [__mips_soft_float]
9156 (ROUNDING_TESTS_float): Likewise.
9157 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9158 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9159 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9160 (ROUNDING_TESTS_double): Likewise.
9161 (ROUNDING_TESTS_long_double): Likewise.
9162
9163 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9164
9165 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9166 (PF_XDP): New macro.
9167 (AF_XDP): New macro.
9168 (SOL_XDP): New macro.
9169
9170 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9171
9172 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9173 (TCP_INQ): Likewise.
9174 (TCP_CM_INQ): Likewise.
9175 (TCP_REPAIR_ON): Likewise.
9176 (TCP_REPAIR_OFF): Likewise.
9177 (TCP_REPAIR_OFF_NO_WP): Likewise.
9178 (struct tcp_zerocopy_receive): New type.
9179
9180 2018-08-21 Florian Weimer <fweimer@redhat.com>
9181
9182 * support/support.h (support_descriptor_supports_holes): Declare.
9183 * support/Makefile (libsupport-routines): Add
9184 support_descriptor_supports_holes.
9185 * support/support_descriptor_supports_holes.c: New file.
9186 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9187 and stop testing if holes are not supported.
9188 * io/test-lfs.c (do_prepare): Likewise.
9189 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9190 Likewise.
9191 * timezone/tst-tzset.c (create_tz_file): Likewise.
9192 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9193 variable.
9194 (do_prepare): Set it.
9195 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9196
9197 2018-08-21 Florian Weimer <fweimer@redhat.com>
9198
9199 [BZ #17248]
9200 * Makeconfig (+cflags): Do not sort (and deduplicate).
9201
9202 2018-08-21 Florian Weimer <fweimer@redhat.com>
9203
9204 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9205 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9206
9207 2018-08-20 Florian Weimer <fweimer@redhat.com>
9208
9209 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9210 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9211
9212 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9213
9214 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9215 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9216 and ssi_arch members.
9217
9218 * elf/elf.c (NT_VMCOREDD): New macro.
9219 (AT_MINSIGSTKSZ): Likewise.
9220
9221 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9222
9223 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9224 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9225 s_cosf-ppc64 and s_cosf-power8.
9226 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9227 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9228 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9229 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9236 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9237 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9238
9239 2018-08-17 Florian Weimer <fweimer@redhat.com>
9240
9241 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9242
9243 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9244
9245 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9246
9247 2018-08-16 Florian Weimer <fweimer@redhat.com>
9248
9249 * configure.ac: Add --with-nonshared-cflags option.
9250 * config.make.in (extra-nonshared-cflags): Set variable.
9251 * Makeconfig (CFLAGS-.oS): Use it.
9252 * manual/install.texi (Configuring and compiling): Document
9253 --with-nonshared-cflags.
9254 * configure: Regenerate.
9255 * INSTALL: Likewise.
9256
9257 2018-08-16 Florian Weimer <fweimer@redhat.com>
9258
9259 * Makeconfig (ASFLAGS): Always append required assembler flags.
9260
9261 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9262
9263 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9264 (malloc_consolidate): Likewise.
9265
9266 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9267
9268 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9269
9270 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9271
9272 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9273 every strlen call.
9274
9275 * benchtests/bench-strlen.c: Print performance numbers in json.
9276
9277 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9278
9279 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9280 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9281 only for little endian.
9282 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9283 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9284 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9285 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9286 Add check for little endian.
9287 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9288 (__strcmp_power9): Add check for little endian.
9289 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9290 Add check for little endian.
9291 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9292 (__strncmp_power9): Add check for little endian.
9293 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9294 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9295 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9296 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9297 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9298
9299 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9300
9301 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9302 [!STRLEN](STRLEN): Set to __strlen.
9303 * sysdeps/aarch64/multiarch/strlen.c: New file.
9304 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9305 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9306 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9307 (__libc_ifunc_impl_list): Add strlen.
9308 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9309 strlen_generic and strlen_asimd.
9310
9311 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9312
9313 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9314 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9315 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9316
9317 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9318
9319 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9320
9321 2018-08-14 Florian Weimer <fweimer@redhat.com>
9322
9323 [BZ #23519]
9324 * include/stdio.h (__vfxprintf): Declare.
9325 * stdio-common/fxprintf.c (__vfxprintf): New function.
9326 (__fxprintf): Call it.
9327 * misc/err.c (convert_and_print): Remove function.
9328 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9329 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9330 * misc/Makefile (tests): Add tst-warn-wide.
9331 * misc/tst-warn-wide.c: New file.
9332
9333 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9334 Szabolcs Nagy <szabolcs.nagy@arm.com>
9335
9336 * NEWS: Mention sinf, cosf, sincosf.
9337 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9338 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9339 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9340 constants rather than including generic sincosf.h.
9341 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9342 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9343 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9344 (reduced_cos): Remove.
9345 (sinf_poly): New function.
9346 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9347
9348 2018-08-14 Florian Weimer <fweimer@redhat.com>
9349
9350 [BZ #23521]
9351 [BZ #23522]
9352 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9353 processing, bail out if no room, and close the stream before
9354 returning ERANGE.
9355 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9356 (tst-nss-files-alias-leak): Link with libdl.
9357 (tst-nss-files-alias-leak.out): Depend on nss_files.
9358
9359 * nss/tst-nss-files-alias-leak.c: New file.
9360
9361 2018-08-14 Florian Weimer <fweimer@redhat.com>
9362
9363 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9364 server_user, stat_user.
9365
9366 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9367
9368 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9369 version to 4.18.
9370 (io_pgetevents): New syscall.
9371 (rseq): Likewise.
9372
9373 * manual/install.texi (Configuring and compiling): Do not list
9374 tools used for testing pretty printers here.
9375 (Tools for Compilation): List Python, PExpect and GDB here.
9376 Update descriptions of uses of Perl and Python.
9377 * INSTALL: Regenerate.
9378
9379 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9380 version to 4.18.
9381
9382 2018-08-13 Florian Weimer <fweimer@redhat.com>
9383
9384 * misc/error.c (error): Add missing va_end call.
9385 (error_at_line): Likewise.
9386
9387 2018-08-13 Florian Weimer <fweimer@redhat.com>
9388
9389 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9390
9391 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9392
9393 * benchtests/scripts/benchout.schema.json (properties): Add
9394 new properties.
9395
9396 * benchtests/bench-skeleton.c (main): Add duration and
9397 iterations attributes.
9398
9399 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
9400
9401 regex: Gnulib unibyte RRI uses bytes not chars
9402 Adjust the non-glibc code to agree with what Gawk needs for
9403 rational range interpretation (RRI) for regular expression ranges.
9404 In unibyte locales, Gawk wants ranges to use the underlying byte
9405 rather than the character code point. This change does not affect
9406 glibc proper.
9407 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
9408 In unibyte locales, use the byte value rather than
9409 running it through btowc.
9410
9411 2018-08-10 Joseph Myers <joseph@codesourcery.com>
9412
9413 * sysdeps/generic/math-tests-snan.h: New file.
9414 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
9415 (SNAN_TESTS_float): Do not define here.
9416 (SNAN_TESTS_double): Likewise.
9417 (SNAN_TESTS_long_double): Likewise.
9418 (SNAN_TESTS_float128): Likewise.
9419 * sysdeps/i386/fpu/math-tests-snan.h: New file.
9420 * sysdeps/i386/fpu/math-tests.h: Remove file.
9421 * sysdeps/ia64/math-tests-snan.h: New file.
9422 * sysdeps/ia64/math-tests.h: Remove file.
9423 * sysdeps/x86/math-tests.h: Likewise.
9424 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
9425
9426 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9427 Szabolcs Nagy <szabolcs.nagy@arm.com>
9428
9429 * math/Makefile: Add s_sincosf_data.c.
9430 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
9431 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
9432 (sincosf_poly): Likewise.
9433 (reduce_small): Likewise.
9434 (reduce_large): Likewise.
9435 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
9436 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
9437 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
9438 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
9439
9440 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9441 Szabolcs Nagy <szabolcs.nagy@arm.com>
9442
9443 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
9444 (converttoint): Use lround.
9445 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
9446 document the semantics when TOINT_INTRINSICS is set.
9447 (converttoint): Likewise.
9448 (TOINT_RINT): Remove.
9449 (TOINT_SHIFT): Remove.
9450 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
9451 path.
9452
9453 2018-08-10 Florian Weimer <fweimer@redhat.com>
9454
9455 [BZ #23497]
9456 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
9457 function.
9458 (__old_getdents64): Use getdents64. Convert entries without
9459 moving them.
9460 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
9461 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
9462 tst-readdir64-compat.
9463
9464 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9465
9466 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
9467 Fix unwind.
9468
9469 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9470
9471 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
9472 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
9473 code to s390x-mcount.h and #include it.
9474 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
9475 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
9476 (__fentry__): Add.
9477
9478 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9479
9480 * stdlib/Versions: Remove __fentry__.
9481 * sysdeps/i386/Versions: Add __fentry__.
9482 * sysdeps/x86_64/Versions: Add __fentry__.
9483
9484 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9485
9486 * sysdeps/s390/Makefile: Register the new tests.
9487 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
9488 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
9489 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
9490 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
9491 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
9492 * sysdeps/s390/tst-dl-runtime.c: New file.
9493
9494 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9495
9496 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9497 Do not clobber R0.
9498
9499 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9500
9501 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9502 Do not clobber R0.
9503
9504 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9505
9506 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9507 Do not clobber R0.
9508
9509 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9510
9511 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9512 Do not clobber R0.
9513
9514 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9515
9516 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9517 Use symbolic offsets for stack variables.
9518
9519 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9520
9521 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9522 Use symbolic offsets for stack variables.
9523
9524 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9525
9526 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9527 Use symbolic offsets for stack variables.
9528
9529 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9530
9531 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9532 Use symbolic offsets for stack variables.
9533
9534 2018-08-09 Joseph Myers <joseph@codesourcery.com>
9535
9536 * math/gen-libm-test.py: New file.
9537 * math/gen-libm-test.pl: Remove.
9538 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
9539 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
9540 gen-libm-test.pl.
9541 ($(libm-test-c-noauto-obj)): Likewise.
9542 ($(libm-test-c-auto-obj)): Likewise.
9543 ($(libm-test-c-narrow-obj)): Likewise.
9544 (regen-ulps): Likewise.
9545 * math/README.libm-test: Update references to gen-libm-test.pl.
9546 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
9547 referencing gen-libm-test.pl.
9548 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
9549 * math/libm-test-support.c: Likewise.
9550 * math/libm-test-support.h: Likewise.
9551 * sysdeps/generic/libm-test-ulps: Likewise.
9552
9553 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
9554
9555 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
9556 Fix value.
9557
9558 2018-08-08 Joseph Myers <joseph@codesourcery.com>
9559
9560 * math/libm-test-nextdown.inc (do_test): Move comment to ....
9561 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
9562
9563 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9564
9565 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
9566 symbols.
9567 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
9568 __pthread_setspecific): Add hidden proto.
9569 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
9570 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
9571
9572 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
9573
9574 * benchtests/bench-string.h (buf1_size, buf2_size): New
9575 variables.
9576 (init_sizes): New function.
9577 (test_init): Use it.
9578 (alloc_buf, exit_error): New functions.
9579 (alloc_bufs): Use ALLOC_BUF.
9580 (realloc_bufs): Remove.
9581 * benchtests/bench-memcmp.c (do_test): Adjust.
9582 * benchtests/bench-memset-large.c (do_test): Likewise.
9583 * benchtests/bench-memset-walk.c (do_test): Likewise.
9584 * benchtests/bench-memset.c (do_test): Likewise.
9585 * benchtests/bench-strncmp.c (do_test): Likewise.
9586
9587 2018-08-06 Andreas Schwab <schwab@suse.de>
9588
9589 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
9590 of CONST_THREAD_AREA.
9591
9592 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
9593
9594 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
9595 (STATE_SAVE_MASK): Likewise.
9596 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
9597 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
9598 (STATE_SAVE_MASK): Likewise.
9599 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
9600 instead of <cpu-features.h>.
9601
9602 2018-08-03 DJ Delorie <dj@redhat.com>
9603
9604 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
9605 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
9606
9607 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
9608
9609 2018-08-03 Joseph Myers <joseph@codesourcery.com>
9610
9611 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
9612 after TEST_* calls.
9613 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
9614 * math/libm-test-logb.inc (logb_test_data): Likewise.
9615
9616 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
9617
9618 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
9619 * string/strstr.c (AVAILABLE): Likewise.
9620
9621 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9622
9623 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
9624 <init-arch.h>.
9625 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
9626 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
9627 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
9628
9629 2018-08-03 Carlos O'Donell <carlos@redhat.com>
9630
9631 * po/be.po: Update translation.
9632
9633 * po/be.po: Update translation.
9634
9635 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9636
9637 * sysdeps/x86/cpu-features-offsets.sym
9638 (rtld_global_ro_offsetof): Removed.
9639 (CPU_FEATURES_SIZE): Likewise.
9640 (CPUID_OFFSET): Likewise.
9641 (CPUID_SIZE): Likewise.
9642 (CPUID_EAX_OFFSET): Likewise.
9643 (CPUID_EBX_OFFSET): Likewise.
9644 (CPUID_ECX_OFFSET): Likewise.
9645 (CPUID_EDX_OFFSET): Likewise.
9646 (FAMILY_OFFSET): Likewise.
9647 (MODEL_OFFSET): Likewise.
9648 (FEATURE_OFFSET): Likewise.
9649 (FEATURE_SIZ): Likewise.
9650 (COMMON_CPUID_INDEX_1): Likewise.
9651 (COMMON_CPUID_INDEX_7): Likewise.
9652 (FEATURE_INDEX_1): Likewise.
9653 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
9654
9655 2018-08-02 Carlos O'Donell <carlos@redhat.com>
9656
9657 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
9658 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
9659 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
9660 (install-locales): Depend on install-locale-archive.
9661 (install-locale-archive): Define.
9662 (install-locale-files): Define.
9663 (build-one-locale): Define macro.
9664 * manual/install.texi (Running make install): Document.
9665 * manual/INSTALL: Regenerate.
9666
9667 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
9668
9669 * benchtests/scripts/compare_strings.py: Import traceback.
9670 (parse_file): Pretty-print error.
9671
9672 * NEWS: Mention the change.
9673 * elf/dl-tunables.list: Rename tune namespace to cpu.
9674 * sysdeps/powerpc/dl-tunables.list: Likewise.
9675 * sysdeps/x86/dl-tunables.list: Likewise.
9676 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
9677 cpu.name.
9678 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
9679 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
9680 * manual/README.tunables: Likewise.
9681 * manual/tunables.texi: Likewise.
9682 * sysdeps/powerpc/cpu-features.c: Likewise.
9683 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
9684 (init_cpu_features): Likewise.
9685 * sysdeps/x86/cpu-features.c: Likewise.
9686 * sysdeps/x86/cpu-features.h: Likewise.
9687 * sysdeps/x86/cpu-tunables.c: Likewise.
9688 * sysdeps/x86_64/Makefile: Likewise.
9689 * sysdeps/x86/dl-cet.c: Likewise.
9690
9691 2018-08-02 Joseph Myers <joseph@codesourcery.com>
9692
9693 [BZ #23479]
9694 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
9695 [__mips_hard_float].
9696 (FE_UNDERFLOW): Likewise.
9697 (FE_OVERFLOW): Likewise.
9698 (FE_DIVBYZERO): Likewise.
9699 (FE_INVALID): Likewise.
9700 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
9701 (FE_TOWARDZERO): Define only if [__mips_hard_float].
9702 (FE_UPWARD): Likewise.
9703 (FE_DOWNWARD): Likewise.
9704 (__FE_UNDEFINED): Define if [!__mips_hard_float]
9705 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
9706 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
9707 [__mips_hard_float].
9708 (FP_ROUNDMODE): Likewise.
9709 (FP_RND_NEAREST): Likewise.
9710 (FP_RND_ZERO): Likewise.
9711 (FP_RND_PINF): Likewise.
9712 (FP_RND_MINF): Likewise.
9713 (FP_EX_INVALID): Likewise.
9714 (FP_EX_OVERFLOW): Likewise.
9715 (FP_EX_UNDERFLOW): Likewise.
9716 (FP_EX_DIVZERO): Likewise.
9717 (FP_EX_INEXACT): Likewise.
9718 (FP_INIT_ROUNDMODE): Likewise.
9719 * sysdeps/mips/nofpu/fesetenv.c: New file.
9720 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
9721
9722 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9723
9724 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
9725 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
9726 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
9727 conditional on [FE_UPWARD].
9728
9729 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
9730
9731 regex: fix memory leak in Gnulib
9732 Problem and fix reported by Assaf Gordon in:
9733 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
9734 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
9735 range_ends members too, as they are defined in 'struct
9736 re_charset_t' even if not _LIBC. This affects only Gnulib.
9737
9738 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
9739
9740 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
9741 ...
9742 (get_common_indices): This.
9743 (init_cpu_features): Updated.
9744
9745 2018-08-01 Joseph Myers <joseph@codesourcery.com>
9746
9747 * sysdeps/generic/math-tests-snan-payload.h: New file.
9748 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9749 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9750 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9751 * sysdeps/generic/math-tests.h: Include
9752 <math-tests-snan-payload.h>.
9753 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9754 * sysdeps/hppa/math-tests.h: Remove file.
9755 * sysdeps/mips/math-tests.h [!__mips_nan2008]
9756 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9757 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9758 Likewise.
9759
9760 * sysdeps/generic/math-tests-snan-cast.h: New file.
9761 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9762 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9763 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9764 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9765
9766 2018-08-01 Carlos O'Donel <carlos@redhat.com>
9767
9768 * version.h (RELEASE): Set to "development".
9769 (VERSION): Set to "2.28.9000".
9770 * NEWS (2.29): New section.
9771
9772 * version.h (RELEASE): Set to "stable".
9773 (VERSION): Set to "2.28".
9774 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9775 * NEWS: Add the list of bugs fixed in 2.28.
9776
9777 * po/ca.po: Update to latest version.
9778 * po/cs.po: Likewise
9779 * po/da.po: Likewise
9780 * po/el.po: Likewise
9781 * po/eo.po: Likewise
9782 * po/es.po: Likewise
9783 * po/fi.po: Likewise
9784 * po/fr.po: Likewise
9785 * po/gl.po: Likewise
9786 * po/hu.po: Likewise
9787 * po/ia.po: Likewise
9788 * po/id.po: Likewise
9789 * po/it.po: Likewise
9790 * po/ja.po: Likewise
9791 * po/ko.po: Likewise
9792 * po/lt.po: Likewise
9793 * po/nb.po: Likewise
9794 * po/nl.po: Likewise
9795 * po/pt_BR.po: Likewise
9796 * po/ru.po: Likewise
9797 * po/rw.po: Likewise
9798 * po/sk.po: Likewise
9799 * po/sl.po: Likewise
9800 * po/tr.po: Likewise
9801 * po/zh_CN.po: Likewise
9802 * po/zh_TW.po: Likewise
9803
9804 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
9805
9806 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9807 initialization...
9808 (init): ... before initializing libpthread.
9809
9810 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9811 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9812 (__mach_setup_tls): ... new function.
9813 (mach_setup_tls): New alias.
9814 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9815 __mach_setup_thread.
9816 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9817 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9818 * mach/Versions [libc] (mach_setup_tls): Add symbol.
9819 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9820
9821 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9822
9823 * manual/install.texi: Update versions.
9824 * INSTALL: Regenerate.
9825
9826 * manual/contrib.texi (Contributors): Update contributions.
9827
9828 2018-07-31 Carlos O'Donell <carlos@redhat.com>
9829
9830 * po/be.po: Update translations.
9831
9832 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9833
9834 * sysdeps/sh/libm-test-ulps: Update.
9835
9836 2018-07-30 Carlos O'Donell <carlos@redhat.com>
9837
9838 * po/bg.po: Update translations.
9839 * po/de.po: Likewise.
9840 * po/hr.po: Likewise.
9841 * po/pt_BR.po: Likewise.
9842 * po/sv.po: Likewise.
9843 * po/vi.po: Likewise.
9844
9845 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9846
9847 [BZ #23467]
9848 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9849 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9850 (CFLAGS-tst-cet-property-1.o): New.
9851 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9852 ($(objpfx)tst-cet-property-2): Likewise.
9853 ($(objpfx)tst-cet-property-2.out): Likewise.
9854 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9855 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9856 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9857 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9858 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9859
9860 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
9861
9862 [BZ #23458]
9863 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9864
9865 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9866
9867 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9868 __sbrk): Do not set attribute_hidden.
9869 * sysdeps/mach/hurd/not-errno.h: New file.
9870 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9871 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9872
9873 2018-07-27 Carlos O'Donell <carlos@redhat.com>
9874
9875 * po/uk.po: Update translations.
9876 * po/cs.po: Likewise.
9877 * po/pl.po: Likewise.
9878
9879 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
9880
9881 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9882 parse beyond the note end.
9883
9884 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9885
9886 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9887 kernel does not support OFD locks.
9888 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9889
9890 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9891
9892 * sysdeps/mach/hurd/Versions (libc): Make __access and
9893 __access_noerrno external so they can override the ld symbols.
9894 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9895 __writev, __open64, __access_noerrno extern so they can be overrided.
9896 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9897 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9898
9899 2018-07-26 Carlos O'Donell <carlos@redhat.com>
9900
9901 * po/libc.pot: Regenerate.
9902
9903 2018-07-26 Joseph Myers <joseph@codesourcery.com>
9904
9905 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9906
9907 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9908
9909 [BZ #23459]
9910 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9911 function.
9912 (init_cpu_features): Call get_extended_indices for both Intel
9913 and AMD CPUs.
9914 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9915 Remove "for AMD" comment.
9916
9917 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9918
9919 [BZ # 23456]
9920 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9921 COMMON_CPUID_INDEX_80000001.
9922
9923 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9924
9925 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9926 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9927
9928 2018-07-26 Florian Weimer <fweimer@redhat.com>
9929
9930 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9931 aliases for symbols not in the implementation namespace.
9932
9933 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9934
9935 [BZ #23393]
9936 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9937 lowercase in LATIN script.
9938 * localedata/Makefile (test-input): Add en_US.UTF-8.
9939 * localedata/en_US.UTF-8.in: New file.
9940 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9941 and restore old tests.
9942 * posix/tst-regexloc.c (do_test): Add back range expression test.
9943
9944 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9945
9946 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9947
9948 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9949
9950 * nptl/threads.h: Move to ...
9951 * sysdeps/nptl/threads.h: ... here.
9952 * sysdeps/hurd/stdc-predef.h: New file.
9953
9954 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9955
9956 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9957 tst-cet-setcontext-1 if CET is enabled.
9958 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9959 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9960
9961 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9962
9963 * include/threads.h: Move to ...
9964 * sysdeps/nptl/threads.h: ... here.
9965 * sysdeps/htl/threads.h: New file.
9966 * conform/Makefile (linknamespace-libs-ISO11): Use
9967 static-thread-library instead of linking libpthread.
9968 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9969
9970 2018-07-25 Florian Weimer <fweimer@redhat.com>
9971
9972 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9973 nanoseconds into seconds.
9974 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9975 (do_test): Likewise.
9976 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9977 (do_test): Likewise. Avoid nanosecond overflow and spurious
9978 timeouts due to system load.
9979 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9980 (child_wait): Increment it.
9981 (do_test): Wait as long as necessary until all expected threads
9982 have arrived.
9983
9984 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9985 H.J. Lu <hongjiu.lu@intel.com>
9986
9987 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9988 __ssp.
9989 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9990 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9991 (__push___start_context): New.
9992 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9993 <asm/prctl.h>.
9994 (__getcontext): Record the current shadow stack base. Save the
9995 caller's shadow stack pointer and base.
9996 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9997 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9998 (__push___start_context): New prototype.
9999 (__makecontext): Call __push___start_context to allocate a new
10000 shadow stack, push __start_context onto the new stack as well
10001 as the new shadow stack.
10002 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10003 <asm/prctl.h>.
10004 (__setcontext): Restore the target shadow stack.
10005 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10006 <asm/prctl.h>.
10007 (__swapcontext): Record the current shadow stack base. Save
10008 the caller's shadow stack pointer and base. Restore the target
10009 shadow stack.
10010 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10011 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10012 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10013
10014 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10015
10016 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10017 tst-setcontext8 and tst-setcontext9.
10018 * stdlib/tst-setcontext6.c: New file.
10019 * stdlib/tst-setcontext7.c: Likewise.
10020 * stdlib/tst-setcontext8.c: Likewise.
10021 * stdlib/tst-setcontext9.c: Likewise.
10022
10023 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10024
10025 * stdlib/Makefile ((tests): Add tst-setcontext5.
10026 * stdlib/tst-setcontext5.c: New file.
10027
10028 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10029
10030 * stdlib/Makefile (tests): Add tst-setcontext4.
10031 * stdlib/tst-setcontext4.c: New file.
10032
10033 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10034
10035 * stdlib/Makefile (tests): Add tst-swapcontext1.
10036 * stdlib/tst-swapcontext1.c: New test.
10037
10038 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10039
10040 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10041 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10042 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10043 and tst-cet-legacy-4c.
10044 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10045 and tst-cet-legacy-mod-4.
10046 (CFLAGS-tst-cet-legacy-2.c): New.
10047 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10048 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10049 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10050 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10051 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10052 ($(objpfx)tst-cet-legacy-1): Likewise.
10053 ($(objpfx)tst-cet-legacy-2): Likewise.
10054 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10055 ($(objpfx)tst-cet-legacy-2a): Likewise.
10056 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10057 ($(objpfx)tst-cet-legacy-4): Likewise.
10058 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10059 ($(objpfx)tst-cet-legacy-4a): Likewise.
10060 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10061 (tst-cet-legacy-4a-ENV): Likewise.
10062 ($(objpfx)tst-cet-legacy-4b): Likewise.
10063 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10064 (tst-cet-legacy-4b-ENV): Likewise.
10065 ($(objpfx)tst-cet-legacy-4c): Likewise.
10066 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10067 (tst-cet-legacy-4c-ENV): Likewise.
10068 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10069 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10070 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10071 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10072 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10073 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10074 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10075 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10076 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10077 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10078 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10079
10080 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10081
10082 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10083 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10084 with ssp_base.
10085 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10086 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10087 with ssp_base.
10088
10089 2018-07-25 Andreas Schwab <schwab@suse.de>
10090
10091 [BZ #23442]
10092 * locale/weightwc.h (findidx): Handle the case where usrc is a
10093 prefix of cp but one character too short.
10094
10095 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10096
10097 * NEWS: Add ISO C threads addition.
10098
10099 2018-07-24 Florian Weimer <fweimer@redhat.com>
10100
10101 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10102 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10103 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10104 4.13.
10105
10106 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10107
10108 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10109 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10110 <sys/prctl.h> and <asm/prctl.h>.
10111 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10112 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10113 and <asm/prctl.h>.
10114 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10115 ARCH_CET_LEGACY_BITMAP.
10116 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10117 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10118 * sysdeps/x86/libc-start.c: Include <startup.h>.
10119
10120 2018-07-24 Florian Weimer <fweimer@redhat.com>
10121
10122 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10123 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10124
10125 2018-07-24 Rical Jasan <rj@2c3t.io>
10126 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10127 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10128
10129 [BZ #14092]
10130 * manual/debug.texi: Update adjacent chapter name.
10131 * manual/probes.texi: Likewise.
10132 * manual/threads.texi (ISO C Threads): New section.
10133 (POSIX Threads): Convert to a section.
10134
10135 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10136 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10137
10138 [BZ# 14092]
10139 * nptl/Makefile (tests): Add new test files.
10140 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10141 * nptl/tst-cnd-basic.c: Likewise.
10142 * nptl/tst-cnd-broadcast.c: Likewise.
10143 * nptl/tst-cnd-timedwait.c: Likewise.
10144 * nptl/tst-mtx-basic.c: Likewise.
10145 * nptl/tst-mtx-recursive.c: Likewise.
10146 * nptl/tst-mtx-timedlock.c: Likewise.
10147 * nptl/tst-mtx-trylock.c: Likewise.
10148 * nptl/tst-thrd-basic.c: Likewise.
10149 * nptl/tst-thrd-detach.c: Likewise.
10150 * nptl/tst-thrd-sleep.c: Likewise.
10151 * nptl/tst-tss-basic.c: Likewise.
10152
10153 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10154
10155 [BZ #14092]
10156 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10157 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10158 symbols.
10159 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10160 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10161 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10162 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10163 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10164 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10165 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10166 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10167 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10168 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10169 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10170 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10172 Likewise.
10173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10174 Likewise.
10175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10176 Likewise.
10177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10178 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10179 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10180 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10181 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10182 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10183 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10184 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10185 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10186 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10187 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10188 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10189 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10190 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10191 Likewise.
10192 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10193 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10194 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10195 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10196 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10197 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10198 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10199 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10200 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10201 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10202 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10203 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10204 ikewise.
10205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10207 Likewise.
10208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10209 Likewise.
10210 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10211 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10212 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10213 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10214 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10215 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10216 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10217 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10218
10219 [BZ #14092]
10220 * conform/data/threads.h-data (thread_local): New macro.
10221 (TSS_DTOR_ITERATIONS): Likewise.
10222 (tss_t): New type.
10223 (tss_dtor_t): Likewise.
10224 (tss_create): New function.
10225 (tss_get): Likewise.
10226 (tss_set): Likewise.
10227 (tss_delete): Likewise.
10228 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10229 tss_get, and tss_set objects.
10230 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10231 * nptl/tss_create.c: New file.
10232 * nptl/tss_delete.c: Likewise.
10233 * nptl/tss_get.c: Likewise.
10234 * nptl/tss_set.c: Likewise.
10235 * sysdeps/nptl/threads.h (thread_local): New define.
10236 (TSS_DTOR_ITERATIONS): Likewise.
10237 (tss_t): New typedef.
10238 (tss_dtor_t): Likewise.
10239 (tss_create): New prototype.
10240 (tss_get): Likewise.
10241 (tss_set): Likewise.
10242 (tss_delete): Likewise.
10243
10244 [BZ #14092]
10245 * conform/data/threads.h-data (cnd_t): New type.
10246 (cnd_init): New function.
10247 (cnd_signal): Likewise.
10248 (cnd_broadcast): Likewise.
10249 (cnd_wait): Likewise.
10250 (cnd_timedwait): Likewise.
10251 (cnd_destroy): Likewise.
10252 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10253 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10254 object.
10255 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10256 * nptl/cnd_broadcast.c: New file.
10257 * nptl/cnd_destroy.c: Likewise.
10258 * nptl/cnd_init.c: Likewise.
10259 * nptl/cnd_signal.c: Likewise.
10260 * nptl/cnd_timedwait.c: Likewise.
10261 * nptl/cnd_wait.c: Likewise.
10262 * sysdeps/nptl/threads.h (cnd_t): New type.
10263 (cnd_init): New prototype.
10264 (cnd_signa): Likewise.
10265 (cnd_broadcast): Likewise.
10266 (cnd_wait): Likewise.
10267 (cnd_timedwait): Likewise.
10268 (cnd_destroy): Likewise.
10269
10270 [BZ #14092]
10271 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10272 (once_flag): New type.
10273 (call_once): New function.
10274 * nptl/Makefile (libpthread-routines): Add call_once object.
10275 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10276 * nptl/call_once.c: New file.
10277 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10278 (once_flag): New type.
10279 (call_once): New prototype.
10280
10281 [BZ #14092]
10282 * conform/data/threads.h-data (mtx_plain): New constant.
10283 (mtx_recursive): Likewise.
10284 (mtx_timed): Likewise.
10285 (mtx_t): New type.
10286 (mtx_init): New function.
10287 (mtx_lock): Likewise.
10288 (mtx_timedlock): Likewise.
10289 (mtx_trylock): Likewise.
10290 (mtx_unlock): Likewise.
10291 (mtx_destroy): Likewise.
10292 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10293 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10294 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10295 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10296 * nptl/mtx_destroy.c: New file.
10297 * nptl/mtx_init.c: Likewise.
10298 * nptl/mtx_lock.c: Likewise.
10299 * nptl/mtx_timedlock.c: Likewise.
10300 * nptl/mtx_trylock.c: Likewise.
10301 * nptl/mtx_unlock.c: Likewise.
10302 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10303 (mtx_recursive): Likewise.
10304 (mtx_timed): Likewise.
10305 (mtx_t): New type.
10306 (mtx_init): New prototype.
10307 (mtx_lock): Likewise.
10308 (mtx_timedlock): Likewise.
10309 (mtx_trylock): Likewise.
10310 (mtx_unlock): Likewise.
10311 (mtx_destroy): Likewise.
10312
10313 [BZ #14092]
10314 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10315 (linknamespace-libs-ISO11): Add libpthread.a.
10316 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10317 functions.
10318 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10319 * nptl/Makefile (headers): Add threads.h.
10320 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10321 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10322 thrd_yield.
10323 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10324 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10325 thrd_join, thrd_sleep, and thrd_yield symbols.
10326 * nptl/descr.h (struct pthread): Add c11 field.
10327 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10328 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10329 routine with expected function prototype.
10330 (__pthread_create_2_1): Add C11 threads check based on attribute
10331 value.
10332 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10333 * nptl/thrd_create.c: New file.
10334 * nptl/thrd_current.c: Likewise.
10335 * nptl/thrd_detach.c: Likewise.
10336 * nptl/thrd_equal.c: Likewise.
10337 * nptl/thrd_exit.c: Likewise.
10338 * nptl/thrd_join.c: Likewise.
10339 * nptl/thrd_priv.h: Likewise.
10340 * nptl/thrd_sleep.c: Likewise.
10341 * nptl/thrd_yield.c: Likewise.
10342 * include/threads.h: Likewise.
10343
10344 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10345
10346 * bits/indirect-return.h: New file.
10347 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10348 * sysdeps/x86/bits/indirect-return.h: Likewise.
10349 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10350 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10351 (swapcontext): Add __INDIRECT_RETURN.
10352 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10353 (prepare_test_buffer): Use it.
10354
10355 2018-07-24 Andreas Schwab <schwab@suse.de>
10356
10357 [BZ #23448]
10358 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10359 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10360
10361 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10362
10363 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10364 Redefine if shadow stack is enabled.
10365 (SYSCALL_ERROR_LABEL): Likewise.
10366 (__vfork): Pop shadow stack and jump back to to caller directly
10367 when shadow stack is in use.
10368 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10369 Redefine if shadow stack is enabled.
10370 (SYSCALL_ERROR_LABEL): Likewise.
10371 (__vfork): Pop shadow stack and jump back to to caller directly
10372 when shadow stack is in use.
10373
10374 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10375
10376 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10377 enabled.
10378 (foo): Likewise.
10379 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10380 (foo): Likewise.
10381
10382 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10383
10384 * scripts/build-many-glibcs.py (Context.checkout): Default
10385 binutils version to 2.31 branch.
10386
10387 2018-07-20 Zong Li <zong@andestech.com>
10388
10389 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10390 URL of gcc's tarball.
10391
10392 2018-07-20 Florian Weimer <fweimer@redhat.com>
10393
10394 [BZ #23396]
10395 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10396 not compare an extra byte after the end of the weights.
10397
10398 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10399
10400 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
10401 to 1.
10402 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
10403 hidden prototypes.
10404 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
10405 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
10406 * scripts/check-execstack.awk: Consider `xfail' variable containing a
10407 list of libraries whose stack executability is expected.
10408 * elf/Makefile ($(objpfx)check-execstack.out): Pass
10409 $(check-execstack-xfail) to check-execstack.awk through `xfail'
10410 variable.
10411 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
10412 libc.so libpthread.so.
10413
10414 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
10415
10416 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
10417 SOCK_NONBLOCK.
10418 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
10419 and SOCK_NONBLOCK.
10420 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
10421 implement __pipe2.
10422 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
10423
10424 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10425
10426 * benchtests/scripts/compare_bench.py (__main__): use the argparse
10427 library to improve command line parsing.
10428 (__main__): make schema file as optional parameter (--schema),
10429 defaulting to benchtests/scripts/benchout.schema.json.
10430 (main): move out of the parsing stuff to __main_  and leave it
10431 only as caller of main comparison functions.
10432
10433 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
10434
10435 * NEWS: Add a note for Intel CET status.
10436 * manual/install.texi: Likewise.
10437 * INSTALL: Regenerated.
10438
10439 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
10440
10441 [BZ #23140]
10442 * localedata/locales/oc_FR (mon): Rename to...
10443 (alt_mon): This, then update October (typo fix).
10444 (mon): New content (genitive case, month names preceded by
10445 "de" or "d’").
10446
10447 [BZ #23422]
10448 * localedata/locales/oc_FR (abday): Update all items.
10449 (day): Update Wednesday and Saturday (typo fixes).
10450 (abmon): Update all items, except May.
10451 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
10452 (LC_IDENTIFICATION): Bump the revision number and date.
10453 Keep the "category" entries in alphabetic order.
10454 (LC_ADDRESS): Remove no longer needed comment.
10455 (LC_COLLATE): Use “copy "ca_ES"”.
10456 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
10457 "name_mrs".
10458
10459 2018-07-18 Joseph Myers <joseph@codesourcery.com>
10460
10461 * grp/tst_fgetgrent.c: Include <unistd.h>.
10462 (main): Use mkstemp instead of tmpnam.
10463 * io/test-utime.c (main): Likewise.
10464 * posix/annexc.c (macrofile): Change to modifiable array.
10465 (main): Remove macrofile here.
10466 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10467 macrofile here.
10468 (check_header): Do not remove macrofile here.
10469 * posix/bug-getopt1.c: Include <stdlib.h>.
10470 (do_test): Use mkstemp instead of tmpnam.
10471 * posix/bug-getopt2.c: Include <stdlib.h>.
10472 (do_test): Use mkstemp instead of tmpnam.
10473 * posix/bug-getopt3.c: Include <stdlib.h>.
10474 (do_test): Use mkstemp instead of tmpnam.
10475 * posix/bug-getopt4.c: Include <stdlib.h>.
10476 (do_test): Use mkstemp instead of tmpnam.
10477 * posix/bug-getopt5.c: Include <stdlib.h>.
10478 (do_test): Use mkstemp instead of tmpnam.
10479 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
10480 (main): Use mkstemp instead of tmpnam.
10481 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
10482 (main): Use mkstemp instead of tmpnam.
10483 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
10484 (main): use mkstemp instead of tmpnam.
10485 * stdlib/isomac.c (macrofile): Change to modifiable array.
10486 (main): Remove macrofile here.
10487 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10488 macrofile here.
10489 (check_header): Do not remove macrofile here.
10490
10491 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10492
10493 * manual/tunables.texi: Document glibc.tune.x86_ibt and
10494 glibc.tune.x86_shstk.
10495
10496 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10497
10498 * NEWS: Mention --enable-cet.
10499 * manual/install.texi: Document --enable-cet.
10500 * INSTALL: Regenerated.
10501
10502 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10503
10504 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
10505 Add _CET_NOTRACK before indirect jump to jump table.
10506
10507 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10508
10509 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
10510 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10511 to jump table.
10512
10513 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10514
10515 * sysdeps/i386/i686/multiarch/strcat-sse2.S
10516 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10517 to jump table.
10518
10519 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10520
10521 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
10522 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10523 to jump table.
10524
10525 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10526
10527 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
10528 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10529 to jump table.
10530
10531 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10532
10533 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
10534 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10535 to jump table.
10536 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
10537
10538 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10539
10540 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
10541 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10542 to jump table.
10543
10544 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10545
10546 * sysdeps/i386/i686/multiarch/memset-sse2.S
10547 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10548 to jump table.
10549
10550 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10551
10552 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
10553 indirect jump to jump table.
10554
10555 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10556
10557 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
10558 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10559 to jump table.
10560 (MEMCPY): Likewise.
10561
10562 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10563
10564 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
10565 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10566 to jump table.
10567 (MEMCPY): Likewise.
10568
10569 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10570
10571 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10572 _CET_NOTRACK before indirect jump to jump table.
10573
10574 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10575
10576 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
10577 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10578 to jump table.
10579
10580 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10581
10582 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
10583 indirect jump to jump table.
10584
10585 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
10586
10587 [BZ #22241]
10588 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
10589 (LOCALES): Likewise.
10590 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
10591 * localedata/locales/sah_RU: New file.
10592 * localedata/sah_RU.UTF-8.in: New file.
10593
10594 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10595
10596 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
10597 "sysdep.h".
10598 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10599 _CET_ENDBR to indirect jump targets and adjust jump destination
10600 for _CET_ENDBR.
10601 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
10602 "sysdep.h".
10603 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10604 _CET_ENDBR to indirect jump targets and adjust jump destination
10605 for _CET_ENDBR.
10606 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
10607 "sysdep.h".
10608 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
10609 _CET_ENDBR to indirect jump targets and adjust jump destination
10610 for _CET_ENDBR.
10611
10612 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10613
10614 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10615 _CET_ENDBR.
10616
10617 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10618
10619 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
10620 _CET_ENDBR.
10621 (_dl_tlsdesc_undefweak): Likewise.
10622 (_dl_tlsdesc_dynamic): Likewise.
10623 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
10624 (_dl_tlsdesc_resolve_rel): Likewise.
10625 (_dl_tlsdesc_resolve_rela): Likewise.
10626 (_dl_tlsdesc_resolve_hold): Likewise.
10627 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
10628 (_dl_tlsdesc_undefweak): Likewise.
10629 (_dl_tlsdesc_dynamic): Likewise.
10630 (_dl_tlsdesc_resolve_rela): Likewise.
10631 (_dl_tlsdesc_resolve_hold): Likewise.
10632
10633 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10634
10635 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
10636 (_fini): Likewise.
10637 * sysdeps/x86_64/crti.S (_init): Likewise.
10638 (_fini): Likewise.
10639
10640 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
10641
10642 [BZ #23140]
10643 * localedata/locales/os_RU (mon): Rename to...
10644 (alt_mon): This.
10645 (mon): Import from CLDR (genitive case).
10646
10647 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10648
10649 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
10650 cet-tunables.h> when CET is enabled.
10651
10652 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
10653
10654 [BZ #21598]
10655 * configure.ac: Add --enable-cet.
10656 * configure: Regenerated.
10657 * elf/Makefille (all-built-dso): Add a comment.
10658 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
10659 Include <dl-prop.h>.
10660 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
10661 segment.
10662 * elf/dl-open.c: Include <dl-prop.h>.
10663 (dl_open_worker): Call _dl_open_check.
10664 * elf/rtld.c: Include <dl-prop.h>.
10665 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
10666 _rtld_main_check.
10667 * sysdeps/generic/dl-prop.h: New file.
10668 * sysdeps/i386/dl-cet.c: Likewise.
10669 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
10670 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
10671 * sysdeps/x86/cet-tunables.h: Likewise.
10672 * sysdeps/x86/check-cet.awk: Likewise.
10673 * sysdeps/x86/configure: Likewise.
10674 * sysdeps/x86/configure.ac: Likewise.
10675 * sysdeps/x86/dl-cet.c: Likewise.
10676 * sysdeps/x86/dl-procruntime.c: Likewise.
10677 * sysdeps/x86/dl-prop.h: Likewise.
10678 * sysdeps/x86/libc-start.h: Likewise.
10679 * sysdeps/x86/link_map.h: Likewise.
10680 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
10681 _CET_ENDBR.
10682 (_dl_runtime_profile): Likewise.
10683 (_dl_runtime_resolve_shstk): New.
10684 (_dl_runtime_profile_shstk): Likewise.
10685 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
10686 if CET is enabled.
10687 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
10688 (CFLAGS-.os): Likewise.
10689 (CFLAGS-.op): Likewise.
10690 (CFLAGS-.oS): Likewise.
10691 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
10692 is enabled.
10693 (tests-special): Add $(objpfx)check-cet.out.
10694 (cet-built-dso): New.
10695 (+$(cet-built-dso:=.note)): Likewise.
10696 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
10697 ($(objpfx)check-cet.out): New.
10698 (generated): Add check-cet.out.
10699 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
10700 <cet-tunables.h>.
10701 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
10702 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
10703 (init_cpu_features): Call get_cet_status to check CET status
10704 and update dl_x86_feature_1 with CET status. Call
10705 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
10706 (set_x86_shstk). Disable and lock CET in libc.a.
10707 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
10708 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
10709 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
10710 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
10711 (_CET_ENDBR): Define if not defined.
10712 (ENTRY): Add _CET_ENDBR.
10713 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
10714 x86_shstk.
10715 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
10716 _CET_ENDBR.
10717 (_dl_runtime_profile): Likewise.
10718
10719 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
10720
10721 [BZ #21895]
10722 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
10723 restore r2 on longjmp.
10724 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
10725 test list.
10726 Added rules to build test tst-setjmp-bug21895-static.
10727 Added module setjmp-bug21895 and rules to build a shared object from it.
10728 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
10729 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
10730
10731 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
10732
10733 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
10734 * benchtests/bench-strstr.c: Likewise.
10735 * string/memmem.c (FASTSEARCH): Define.
10736 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
10737 Add support for FASTSEARCH.
10738 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
10739 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
10740 (FASTSEARCH): Define.
10741 * string/test-strcasestr.c: Rename __strnlen to strnlen.
10742 * string/test-strstr.c: Likewise.
10743
10744 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
10745
10746 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10747 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10748
10749 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10750 H.J. Lu <hongjiu.lu@intel.com>
10751
10752 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10753 (__longjmp): Restore shadow stack pointer if shadow stack is
10754 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10755 isn't defined for __longjmp_cancel.
10756 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10757 (_setjmp): Save shadow stack pointer if shadow stack is enabled
10758 and SHADOW_STACK_POINTER_OFFSET is defined.
10759 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10760 (setjmp): Save shadow stack pointer if shadow stack is enabled
10761 and SHADOW_STACK_POINTER_OFFSET is defined.
10762 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10763 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10764 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10765 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10766 <jmp_buf-ssp.h>.
10767 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10768 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10769 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10770 Remove jmp_buf-ssp.sym.
10771 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10772 <jmp_buf-ssp.h>.
10773 (____longjmp_chk): Restore shadow stack pointer if shadow stack
10774 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10775 * sysdeps/x86/Makefile (gen-as-const-headers): Add
10776 jmp_buf-ssp.sym.
10777 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10778 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10779 (__longjmp): Restore shadow stack pointer if shadow stack is
10780 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10781 isn't defined for __longjmp_cancel.
10782 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10783 (__sigsetjmp): Save shadow stack pointer if shadow stack is
10784 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10785
10786 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
10787
10788 [BZ #22563]
10789 * nptl/pthread_create.c: Include <tls-setup.h>.
10790 (__pthread_create_2_1): Call tls_setup_tcbhead.
10791 * sysdeps/generic/tls-setup.h: New file.
10792 * sysdeps/x86/nptl/tls-setup.h: Likewise.
10793 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10794 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10795 Likewise.
10796 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10797 to feature_1.
10798 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10799 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10800 (X86_FEATURE_1_SHSTK): Likewise.
10801 (CET_ENABLED): Likewise.
10802 (IBT_ENABLED): Likewise.
10803 (SHSTK_ENABLED): Likewise.
10804
10805 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
10806
10807 [BZ #23208]
10808 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10809 (LOCALES): Likewise.
10810 * localedata/dsb_DE.UTF-8.in: New file.
10811 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10812
10813 2018-07-12 Florian Weimer <fweimer@redhat.com>
10814
10815 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10816 __mprotect, not mprotect.
10817
10818 2018-07-11 Florian Weimer <fweimer@redhat.com>
10819
10820 * io/Makefile (headers): Add bits/statx.h.
10821
10822 2018-07-10 Mike FABIAN <mfabian@redhat.com>
10823
10824 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10825 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10826 and headers.
10827 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10828 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10829 for utf8_gen.py
10830
10831 2018-07-10 Florian Weimer <fweimer@redhat.com>
10832
10833 * io/Makefile (routines): Add statx.
10834 (tests-internal): Add tst-statx.
10835 * io/Versions (GLIBC_2.28): Export statx.
10836 * io/bits/statx.h: New file.
10837 * io/sys/stat.h [__USE_GNU]: Include it.
10838 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10839 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10840 Define.
10841 * io/statx.c: New file.
10842 * io/statx_generic.: Likewise.
10843 * io/tst-statx.: Likewise.
10844 * include/bits/statx.h: Likewise.
10845 * sysdeps/unix/sysv/linux/kernel-features.h
10846 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10847 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10848 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10849 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10850 Undefine.
10851 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10852 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10853 * sysdeps/unix/sysv/linux/statx.c: New file.
10854 * manual/filesys.texi: Note that statx is undocumented.
10855 * sysdeps/**/libc*.abilist: Update.
10856
10857 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10858
10859 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10860 a kernel issue which lead to test failure in some cases.
10861
10862 2018-07-10 Florian Weimer <fweimer@redhat.com>
10863
10864 [BZ #23036]
10865 * posix/regexec.c (check_node_accept_bytes): When comparing
10866 weights, do not compare an extra byte after the end of the
10867 weights.
10868
10869 2018-07-10 Florian Weimer <fweimer@redhat.com>
10870
10871 * libio/readline.c: Fix copyright year.
10872 * libio/tst-readline.c Likewise.
10873 * nss/tst-nss-files-hosts-getent.c: Likewise.
10874
10875 2018-07-06 Florian Weimer <fweimer@redhat.com>
10876
10877 [BZ #18991]
10878 * nss/nss_files/files-XXX.c (internal_getent): Use
10879 __libc_readline_unlocked. Seek back to the start of the line if
10880 parsing failes with ERANGE.
10881 (get_contents_ret, get_contents): Remove.
10882 * nss/tst-nss-files-hosts-getent.c: New file.
10883 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10884 (tst-nss-files-hosts-getent): Link with -ldl.
10885
10886 2018-07-06 Florian Weimer <fweimer@redhat.com>
10887
10888 * include/stdio.h (__libc_readline_unlocked): Declare.
10889 (__ftello64, __fseeko64): Declare aliases.
10890 * libio/readline.c: New file.
10891 * libio/tst-readline.c: Likewise.
10892 (routines): Add readline.
10893 (tests-internal): Add tst-readlime.
10894 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10895 __libc_readline_unlocked.
10896 * libio/fseeko.c (__fseeko): Rename from fseeko.
10897 (fseeko): Add alias.
10898 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10899 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10900 (fseeko64): Add alias.
10901 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10902 * libio/ftello64.c (__ftello64): Rename from ftello64.
10903 (ftello64): Add alias.
10904
10905 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10906
10907 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10908 HWCAP_ATOMICS.
10909
10910 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10911
10912 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10913 Use dl_hwcap without masking.
10914 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10915 Remove HWCAP_CPUID.
10916
10917 2018-07-06 Florian Weimer <fweimer@redhat.com>
10918
10919 * conform/conformtest.pl (checknamespace): Escape literal braces
10920 in regular expressions.
10921
10922 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10923
10924 * sysdeps/x86/cpu-features.c (get_common_indeces):
10925 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10926 * sysdeps/x86/cpu-features.c (init_cpu_features):
10927 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10928
10929 2018-07-05 Florian Weimer <fweimer@redhat.com>
10930
10931 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10932 protector.
10933 (CFLAGS-elf-init.oS): Likewise.
10934
10935 2018-07-05 Florian Weimer <fweimer@redhat.com>
10936 Carlos O'Donell <carlos@redhat.com>
10937
10938 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10939 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10940 with stack protector enabled because there is no risk of infinite
10941 recursion.
10942
10943 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10944
10945 [BZ #19818]
10946 [BZ #23307]
10947 * libc-abis (ABSOLUTE): New ABI.
10948 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10949 * NEWS: Mention the new ABI.
10950
10951 2018-07-05 Florian Weimer <fweimer@redhat.com>
10952
10953 [BZ # 17662]
10954 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10955 (RENAME_WHITEOUT): Define.
10956 [__USE_GNU] (renameat2): Declare.
10957 * stdio-common/Makefile (routines): Add renameat2.
10958 (tests): Add tst-renameat2.
10959 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10960 * stdio-common/renameat2.c: New file.
10961 * stdio-common/tst-renameat2.c: Likewise.
10962 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10963 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10964 undocumented.
10965 * sysdeps/unix/sysv/linux/kernel-features.h
10966 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10967 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10968 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10969 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10970 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10971 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10972 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10973 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10974 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10975 * include/stdio.h (__renameat): Add alias for renameat.
10976 * stdio-common/renameat.c (__renameat): Rename from renameat.
10977 Add hidden definition and alias.
10978 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10979 * sysdeps/mach/hurd/renameat.c: Likewise.
10980 * sysdeps/**/libc*.abilist: Add renameat2.
10981
10982 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10983
10984 * posix/bug-regex33.c: Fix build after regex sync.
10985
10986 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10987
10988 [BZ #23164]
10989 * localedata/tst-langinfo-setlocale.c: New file.
10990 * localedata/tst-langinfo-setlocale-static.c: New file.
10991 * localedata/tst-langinfo-newlocale.c: New file.
10992 * localedata/tst-langinfo-newlocale-static.c: New file.
10993 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10994 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10995 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10996 (tests-static): Remove tst-langinfo-static. Add
10997 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10998 (tests-special): Remove $(objpfx)tst-langinfo.out,
10999 $(objpfx)tst-langinfo-static.out. Add
11000 $(objpfx)tst-langinfo-setlocale.out,
11001 $(objpfx)tst-langinfo-newlocale.out,
11002 $(objpfx)tst-langinfo-setlocale-static.out,
11003 $(objpfx)tst-langinfo-newlocale-static.out.
11004 ($(objpfx)tst-langinfo.out): Remove.
11005 ($(objpfx)tst-langinfo-static.out): Remove.
11006 ($(objpfx)tst-langinfo-newlocale.out): New target.
11007 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11008 (test-xfail-tst-langinfo-newlocale-static): Add.
11009 ($(objpfx)tst-langinfo-setlocale.out): New target.
11010 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11011 * localedata/tst-langinfo.c: Call test_locale.
11012 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11013 data.
11014
11015 2018-07-04 Florian Weimer <fweimer@redhat.com>
11016
11017 testrun.sh: Implement --tool=strace, --tool=valgrind
11018 * Makefile (testrun-script): Define variable.
11019 (testrun.sh): Use variable.
11020 * manual/install.texi (Tools for Compilation): make 4.0 or later
11021 is required.
11022 * configure.ac: Check for make 4.0 or later.
11023 * INSTALL: Regenerate.
11024 * configure: Likewise.
11025
11026 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11027
11028 [BZ #23233]
11029 [BZ #21163]
11030 [BZ #18986]
11031 [BZ #13762]
11032 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11033 * posix/PCRE.tests: Remove invalid test.
11034 * posix/bug-regex28.c: Fix expected values for used syntax.
11035 * posix/bug-regex37.c: New file.
11036 * posix/bug-regex38.c: Likewise.
11037 * posix/regcomp.c: Sync with gnulib.
11038 * posix/regex.c: Likewise.
11039 * posix/regex.h: Likewise.
11040 * posix/regex_internal.c: Likewise.
11041 * posix/regex_internal.h: Likewise.
11042 * posix/regexec.c: Likewise.
11043
11044 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11045
11046 [BZ #23308]
11047 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11048 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11049 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11050 * localedata/unicode-gen/PropList.txt: likewise.
11051 * localedata/unicode-gen/UnicodeData.txt: likewise.
11052 * localedata/charmaps/UTF-8: Regenerate.
11053 * localedata/locales/i18n_ctype: likewise.
11054 * localedata/locales/tr_TR: likewise.
11055 * localedata/locales/translit_circle: likewise.
11056 * localedata/locales/translit_cjk_compat: likewise.
11057 * localedata/locales/translit_combining: likewise.
11058 * localedata/locales/translit_compat: likewise.
11059 * localedata/locales/translit_font: likewise.
11060 * localedata/locales/translit_fraction: likewise.
11061
11062 2018-07-03 Florian Weimer <fweimer@redhat.com>
11063
11064 [BZ #23363]
11065 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11066 * stdio-common/tst-printf.sh: Adjust expected output.
11067 * LICENSES: Update.
11068
11069 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11070
11071 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11072 symbol.
11073
11074 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11075
11076 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11077 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11078 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11079 * stdio-common/tst-printfsz-islongdouble.c: New file.
11080 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11081 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11082 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11083 [subdir == stdio-common] (tests-internal): Add
11084 test-printf-size-ieee128, and test-printf-size-ibm128.
11085 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11086 (CFLAGS-test-printf-size-ibm128.c): New variables.
11087 [subdir == stdio-common] (tests-special): Add
11088 $(objpfx)test-printf-size-ieee128.out and
11089 $(objpfx)test-printf-size-ibm128.out.
11090 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11091 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11092 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11093 __printf_sizeieee128.
11094 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11095 New file.
11096 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11097 Likewise.
11098 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11099 Likewise.
11100
11101 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11102
11103 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11104 (exp2f_inline): Likewise.
11105 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11106 (__math_uflowf): Likewise.
11107 (__math_may_uflowf): Likewise.
11108 (__math_divzerof): Likewise.
11109 (__math_invalidf): Likewise.
11110 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11111 (__math_oflowf): Likewise.
11112 (__math_uflowf): Likewise.
11113 (__math_may_uflowf): Likewise.
11114 (__math_divzerof): Likewise.
11115 (__math_invalidf): Likewise.
11116
11117 2018-06-29 DJ Delorie <dj@redhat.com>
11118 Carlos O'Donell <carlos@redhat.com>
11119
11120 [BZ #23329]
11121 * include/libc-symbols.h: Comment the freeres framework.
11122 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11123 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11124 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11125 * dlfcn/dlerror.c: Include libc-symbols.h
11126 (__dlerror_main_freeres): New function.
11127 * dlfcn/dlfreeres.c: New file.
11128 * dlfcn/sdlfreeres.c: New file.
11129 * include/dlfcn.h: Declare __dlerror_main_freeres.
11130 * malloc/set-freeres.c: Declare __libdl_freeres, and
11131 __libpthread_freeres.
11132 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11133 the releavant libraries are loaded.
11134 * malloc/thread-freeres.c: Add comments.
11135 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11136 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11137 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11138 (__free_stacks): Rename to...
11139 (free_stacks): ...this. Mark static.
11140 (queue_stack): Call free_stacks.
11141 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11142 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11143 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11144 ptr_freeres element from struct.
11145 (pthread_functions): Remove .ptr_freeres from struct initializer.
11146 [SHARED] (nptl_freeres): Remove.
11147 * nptl/nptlfreeres.c: New file.
11148 * nptl/pthreadP.h
11149 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11150 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11151 attribute_hidden.
11152 (__free_stacks): Rename to...
11153 (__nptl_stacks_freeres): ...this.
11154 (__shm_directory_freeres): Declare.
11155 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11156 (__nptl_unwind_freeres): ...this.
11157 * resolv/res-close.c: Add comment.
11158 * resolv/resolv_conf.c: Include libc-symbols.h.
11159 * string/strerror_l.c: Include libc-symbols.h.
11160 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11161 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11162 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11163 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11164
11165 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11166
11167 * stdlib/tst-strfmon_l.c: Add tests for long double.
11168
11169 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11170
11171 [BZ #23208]
11172 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11173 * localedata/locales/dsb_DE: New file.
11174
11175 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11176
11177 [BZ #23140]
11178 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11179 genitive case).
11180 (alt_mon): New entry, import from CLDR (nominative case).
11181
11182 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11183
11184 [BZ #22996]
11185 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11186
11187 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11188
11189 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11190 Use vector registers.
11191
11192 * sysdeps/aarch64/multiarch/memmove_falkor.S
11193 (__memcpy_falkor): Use vector registers.
11194
11195 2018-06-29 Martin Sebor <msebor@redhat.com>
11196
11197 * manual/stdio.texi (Customizing Printf): Mention interaction
11198 with GCC built-ins.
11199
11200 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11201
11202 [BZ #23307]
11203 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11204 `st_value' is 0 if `st_shndx' is SHN_ABS.
11205 * elf/tst-absolute-zero.c: New file.
11206 * elf/tst-absolute-zero-lib.c: New file.
11207 * elf/tst-absolute-zero-lib.lds: New file.
11208 * elf/Makefile (tests): Add `tst-absolute-zero'.
11209 (modules-names): Add `tst-absolute-zero-lib'.
11210 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11211 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11212 ($(objpfx)tst-absolute-zero: New dependency.
11213
11214 2018-06-29 Zack Weinberg <zackw@panix.com>
11215
11216 * configure.ac: New command-line option --disable-crypt.
11217 Force --disable-nss-crypt when --disable-crypt is given, with a
11218 warning if it was explicitly enabled.
11219 * configure: Regenerate.
11220 * config.make.in: New boolean substitution variable $(build-crypt).
11221 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11222 when $(build-crypt).
11223 * manual/install.texi: Document --disable-crypt.
11224 * INSTALL: Regenerate.
11225
11226 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11227 which is never set.
11228 * conform/Makefile: Only include libcrypt.a in
11229 linknamespace-libs-xsi and linknamespace-libs-XPG4
11230 when $(build-crypt).
11231 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11232 USE_CRYPT to 1 when $(build-crypt).
11233 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11234 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11235 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11236
11237 2018-06-29 Zack Weinberg <zackw@panix.com>
11238
11239 * crypt/crypt.h, posix/unistd.h: Update comments and
11240 prototypes for crypt and crypt_r.
11241
11242 * manual/crypt.texi (Cryptographic Functions): New initial
11243 exposition.
11244 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11245 (Unpredictable Bytes): Improve initial exposition. Clarify error
11246 behavior of getentropy and getrandom.
11247 * manual/examples/genpass.c: Generate a salt using getentropy
11248 instead of the current time. Use hash $5$ (SHA-2-256).
11249 * manual/examples/testpass.c: Demonstrate validation against
11250 hashes generated with three different one-way functions.
11251
11252 * manual/intro.texi: crypt.texi does not need an overview
11253 anymore.
11254
11255 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11256 * manual/terminal.texi: Consistently refer to "passphrases"
11257 * instead of "passwords", and to the "user database" instead
11258 * of the "password database".
11259 * manual/users.texi: Similarly. Add notes about how actual
11260 passphrase hashes are now stored in the shadow database.
11261 Remove 20-year-old junk todo note.
11262
11263 2018-06-29 Zack Weinberg <zackw@panix.com>
11264
11265 * manual/crypt.texi: Use a normal top-level @node declaration.
11266 Move most of the introductory text to the 'crypt' section.
11267 Move the example programs below the @deftypefun for 'crypt_r'.
11268 Move the 'getpass' section...
11269 * manual/terminal.texi: ...here.
11270
11271 2018-06-29 Zack Weinberg <zackw@panix.com>
11272 Florian Weimer <fweimer@redhat.com>
11273
11274 * posix/unistd.h: Do not declare encrypt.
11275 (_XOPEN_CRYPT): Remove macro definition.
11276 (crypt): Declare only for _USE_MISC.
11277 * stdlib/stdlib.h: Do not declare setkey.
11278 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11279 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11280
11281 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11282 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11283 into compat symbols. Don't define initial_perm if it's not
11284 going to be used.
11285 * crypt/cert.c: Link explicitly with the expected versions for
11286 setkey and encrypt. If they are not available at all, mark
11287 the test as unsupported.
11288
11289 * sunrpc/des_crypt.c: Unconditionally block linkage with
11290 cbc_crypt and ecb_crypt for new binaries.
11291 * sunrpc/des_soft.c: Unconditionally block linkage with
11292 des_setparity for new binaries.
11293
11294 * manual/crypt.texi: Remove the entire "DES Encryption"
11295 section. Also remove the paragraph talking about FIPS 140-2
11296 from the introduction.
11297 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11298 of libgcrypt for "real" encryption, not DES.
11299 * manual/conf.texi (Constants for Sysconf): Mention that
11300 _XOPEN_CRYPT is no longer impelemented.
11301
11302 * conform/data/unistd.h-data: Remove crypt function declaration.
11303
11304 2018-06-29 Florian Weimer <fweimer@redhat.com>
11305
11306 [BZ #23351]
11307 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11308 (disallow_malloc_check): Remove variable.
11309 (__malloc_check_init): Adjust.
11310 (malloc_set_state): Update comment.
11311 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11312 declarations.
11313
11314 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11315
11316 [BZ #23140]
11317 * localedata/locales/ast_ES (mon): Rename to...
11318 (alt_mon): This.
11319 (mon): Import from CLDR (genitive case).
11320
11321 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11322 Jakub Sitnicki <jkbs@redhat.com>
11323
11324 [BZ #21812]
11325 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11326 on NLM_F_DUMP_INTR.
11327
11328 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11329
11330 * manual/llio.texi: Remove spurious space.
11331
11332 2018-06-28 Florian Weimer <fweimer@redhat.com>
11333
11334 [BZ #23349]
11335 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11336 _STRUCT_TIMESPEC.
11337
11338 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11339
11340 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11341 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11342 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11343 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11344 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11345 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11346 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11347
11348 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11349
11350 [BZ #23266]
11351 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11352 Copy and null-terminate entries that are not terminated, in
11353 addition to empty ones.
11354
11355 2018-06-27 Florian Weimer <fweimer@redhat.com>
11356
11357 [BZ #18023]
11358 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11359 (extend_alloca_account): Remove.
11360 * manual/stdio.texi (Variable Arguments Output): Update comment.
11361
11362 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11363
11364 * nptl/sockperf.c: Remove file.
11365
11366 2018-06-27 Florian Weimer <fweimer@redhat.com>
11367
11368 [BZ #18023]
11369 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11370 scratch_buffer instead of extend_alloca.
11371
11372 2018-06-27 Florian Weimer <fweimer@redhat.com>
11373
11374 [BZ #18023]
11375 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11376 scratch_buffer instead of extend_alloca. Update comments.
11377
11378 2018-06-27 Florian Weimer <fweimer@redhat.com>
11379
11380 [BZ #18023]
11381 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11382 instead of extend_alloca.
11383
11384 2018-06-26 Joseph Myers <joseph@codesourcery.com>
11385
11386 [BZ #13888]
11387 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11388 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11389 /tmp.
11390 * scripts/test-installation.pl: Put temporary files in build
11391 directory, not /tmp.
11392 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11393 (CFLAGS-bug4.c): Likewise.
11394 (CFLAGS-bug5.c): Likewise.
11395 (CFLAGS-test-fseek.c): Likewise.
11396 (CFLAGS-test-popen.c): Likewise.
11397 (CFLAGS-test_rdwr.c): Likewise.
11398 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11399 /tmp.
11400 * stdio-common/bug4.c (main): Likewise.
11401 * stdio-common/bug5.c (main): Likewise.
11402 * stdio-common/test-fseek.c (TESTFILE): Likewise.
11403 * stdio-common/test-popen.c (do_test): Likewise.
11404 * stdio-common/test_rdwr.c (main): Likewise.
11405
11406 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
11407
11408 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
11409 (sem_open): Set sem.newsem.pad to zero for valgrind.
11410
11411 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11412
11413 [BZ #20251]
11414 * NEWS: Mention fcntl64 addition.
11415 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
11416 * login/utmp_file.c: Likewise.
11417 * sysdeps/posix/fdopendir.c: Likewise.
11418 * sysdeps/posix/opendir.c: Likewise.
11419 * sysdeps/unix/pt-fcntl.c: Likewise.
11420 * include/fcntl.h (__libc_fcntl64, __fcntl64,
11421 __fcntl64_nocancel_adjusted): New prototype.
11422 (__fcntl_nocancel_adjusted): Remove prototype.
11423 * io/Makefile (routines): Add fcntl64.
11424 (CFLAGS-fcntl64.c): New rule.
11425 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
11426 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
11427 * io/fcntl.h (fcntl64): Add prototype and redirect if
11428 __USE_FILE_OFFSET64 is defined.
11429 * io/fcntl64.c: New file.
11430 * manual/llio.text: Add a note for which commands fcntl acts a
11431 cancellation point.
11432 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
11433 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
11434 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
11435 New symbols.
11436 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
11437 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
11438 non-LFS case.
11439 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
11440 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
11441 to __fcntl64_nocancel.
11442 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
11443 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
11444 to __fcntl64_nocancel.
11445 * sysdeps/generic/not-cancel.h: Likewise.
11446 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
11447 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
11448 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11449 (fcntl64): New symbol.
11450 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11457 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11458 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11459 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11460 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
11461 fcntl64): Likewise.
11462 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
11464 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11472 Likewise.
11473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11474 Likewise.
11475 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11478
11479 2018-06-26 Florian Weimer <fweimer@redhat.com>
11480
11481 Run thread shutdown functions in an explicit order.
11482 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
11483 definition.
11484 (__libc_thread_freeres): Call thread shutdown functions
11485 explicitly.
11486 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
11487 * include/string.h (__strerror_thread_freeres): Declare.
11488 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
11489 arena_thread_freeres. No longer static. Remove thread shutdown
11490 hook registration.
11491 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
11492 Declare.
11493 * resolv/res-close.c (__res_thread_freeres): Renamed from
11494 res_thread_freeres. No longer static. Remove thread shutdown
11495 hook registration.
11496 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
11497 * resolv/resolv_conf.c (freeres): Remove incorrect section
11498 attribute and use libc_freeres_fn.
11499 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
11500 strerror_thread_freeres. No longer static. Remove thread
11501 shutdown hook registration.
11502 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
11503 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
11504 shutdown hook registration.
11505 * Makerules (shlib.lds): Do not provide section boundary symbols
11506 for __libc_thread_subfreeres.
11507 * manual/memory.texi (Basic Allocation): Update comment.
11508
11509 2018-06-26 Florian Weimer <fweimer@redhat.com>
11510
11511 Remove always-defined _RPC_THREAD_SAFE_ macro.
11512 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
11513 Do not define _RPC_THREAD_SAFE_.
11514 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
11515 conditional.
11516 * sunrpc/clnt_perr.c: Likewise.
11517 * sunrpc/clnt_raw.c: Likewise.
11518 * sunrpc/clnt_simp.c: Likewise.
11519 * sunrpc/key_call.c: Likewise.
11520 * sunrpc/rpc_common.c: Likewise.
11521 * sunrpc/rpc_main.c: Likewise.
11522 * sunrpc/rpc_thread.c: Likewise.
11523 * sunrpc/svc.c: Likewise.
11524 * sunrpc/svc_raw.c: Likewise.
11525 * sunrpc/svc_simple.c: Likewise.
11526 * sumrpc/svcauth_des.c: Likewise.
11527
11528 2018-06-26 Florian Weimer <fweimer@redhat.com>
11529
11530 * libio/Makefile (tests-internal): Add tst-vtables,
11531 tst-vtables-interposed.
11532 * libio/tst-vtables.c: New file.
11533 * libio/tst-vtables-common.c: Likewise.
11534 * libio/tst-vtables-interposed.c: Likewise.
11535
11536 2018-06-26 Florian Weimer <fweimer@redhat.com>
11537
11538 * support/support_test_main.c (support_test_main): Only call
11539 setvbuf if not disables.
11540 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
11541 * support/test-driver.h (struct test_config): Add no_setvbuf member.
11542
11543 2018-06-26 Florian Weimer <fweimer@redhat.com>
11544
11545 [BZ #23313]
11546 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
11547
11548 2018-06-25 Florian Weimer <fweimer@redhat.com>
11549
11550 [BZ #18023]
11551 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11552 Use struct scratch_buffer instead of extend_alloca.
11553
11554 2018-06-25 Florian Weimer <fweimer@redhat.com>
11555
11556 [BZ #18023]
11557 * nss/getent.c (initgroups_keys): Use dynarray instead of
11558 extend_alloca.
11559
11560 2018-06-25 Florian Weimer <fweimer@redhat.com>
11561
11562 [BZ #18023]
11563 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
11564 Use struct scratch_buffer instead of extend_alloca.
11565
11566 2018-06-25 Florian Weimer <fweimer@redhat.com>
11567
11568 [BZ #18023]
11569 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
11570 back to malloc directly, without stack allocations.
11571
11572 2018-06-25 Florian Weimer <fweimer@redhat.com>
11573
11574 [BZ #18023]
11575 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
11576 of extend_alloca.
11577
11578 2018-06-25 Florian Weimer <fweimer@redhat.com>
11579
11580 [BZ #18023]
11581 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
11582 of extend_alloca.
11583 * nscd/hstcache.c (addhstbyX): Likewise.
11584 * nscd/pwdcache.c (addpwbyX): Likewise.
11585 * nscd/servicescache.c (addservbyX): Likewise.
11586
11587 2018-06-25 Florian Weimer <fweimer@redhat.com>
11588
11589 [BZ #18023]
11590 * nscd/connections.c (read_cmdline): New function.
11591 (restart): Use it. Update comment.
11592
11593 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11594
11595 [BZ #23140]
11596 * localedata/locales/csb_PL (mon): Rename to...
11597 (alt_mon): This.
11598 (abmon): Rename to...
11599 (ab_alt_mon): This.
11600 (mon): Add with proper genitive forms, copy from Wikipedia.
11601 (abmon): Likewise.
11602
11603 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11604
11605 [BZ #19485]
11606 * localedata/locales/csb_PL (mon): Fix typos:
11607 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
11608 (yesstr): Add, value is "jo".
11609 (nostr): Add, value is "nié".
11610
11611 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11612
11613 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
11614 all log1p and significand functions on m680x0.
11615 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
11616 of s_significand.c..
11617 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
11618 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
11619 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
11620 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
11621 s_log1p.c and include it..
11622
11623 2018-06-21 Vincent Chen <vincentc@andestech.com>
11624
11625 * elf/elf.h (R_NDS32_NONE): New define.
11626 (R_NDS32_32_RELA): Likewise.
11627 (R_NDS32_COPY): Likewise.
11628 (R_NDS32_GLOB_DAT): Likewise.
11629 (R_NDS32_JUMP_SLOT): Likewise.
11630 (R_NDS32_RELATIVE): Likewise.
11631 (R_NDS32_TLS_TPOFF): Likewise.
11632 (R_NDS32_TLS_DESC): Likewise.
11633
11634 2018-06-21 Mark Wielaard <mark@klomp.org>
11635
11636 * elf/elf.h (R_BPF_MAP_FD): Removed.
11637 (R_BPF_64_64, R_BPF_64_32): New.
11638
11639 2018-06-21 Florian Weimer <fweimer@redhat.com>
11640
11641 [BZ #23253]
11642 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
11643 Renamed from libc_feholdsetround_ctx.
11644 (default_libc_feresetround_ctx): Renamed from
11645 libc_feresetround_ctx.
11646 (default_libc_feholdsetround_noex_ctx): Renamed from
11647 libc_feholdsetround_noex_ctx.
11648 (default_libc_feresetround_noex_ctx): Renamed from
11649 libc_feresetround_noex_ctx.
11650 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
11651 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
11652 forwardning to the old implementations under the new names.
11653 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
11654 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
11655 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
11656 (libc_feresetround_ctx): Forward to default implements for i386
11657 and MATH_SET_BOTH_ROUNDING_MODES.
11658 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
11659 Add -DMATH_SET_BOTH_ROUNDING_MODES.
11660
11661 2018-06-20 Joseph Myers <joseph@codesourcery.com>
11662
11663 * string/tst-cmp.c: Include <libc-diag.h>.
11664 (strncmp_max): Disable -Wstringop-overflow= around call to
11665 strncmp.
11666 (strncasecmp_max): Disable -Wstringop-overflow= around call to
11667 strncasecmp.
11668
11669 * string/bug-strpbrk1.c: Include <libc-diag.h>.
11670 (main): Disable -Wunused-value around call to strpbrk.
11671 * string/bug-strspn1.c: Include <libc-diag.h>.
11672 (main): Disable -Wunused-value around call to strspn.
11673
11674 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11675 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11676
11677 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
11678 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
11679
11680 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11681
11682 * math/Makefile (libm-calls): Move s_significandF to...
11683 (gen-libm-calls): ... here.
11684 * math/s_significand_template.c: New file.
11685 * math/s_significand.c: Removed.
11686 * math/s_significandf.c: Removed.
11687 * math/s_significandl.c: Removed.
11688 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
11689 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
11690
11691 * math/e_exp2_template.c (declare_mgen_finite_alias,
11692 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
11693 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
11694 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
11695
11696 2018-06-20 Florian Weimer <fweimer@redhat.com>
11697
11698 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
11699
11700 2018-06-19 Joseph Myers <joseph@codesourcery.com>
11701
11702 [BZ #23280]
11703 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
11704 floating-point number to strtod functions rather than possibly
11705 negating result of those functions.
11706 * stdio-common/tst-scanf-round.c: New file.
11707 * stdio-common/Makefile (tests): Add tst-scanf-round.
11708 ($(objpfx)tst-scanf-round): Depend on $(libm).
11709
11710 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11711
11712 * sysdeps/mach/hurd/localplt.data: Move to...
11713 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
11714 R_386_GLOB_DAT like on Linux i386.
11715
11716 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11717
11718 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
11719 (SHM_STAT_ANY): New macro.
11720 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
11721 (SHM_STAT_ANY): Likewise.
11722 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
11723 (SHM_STAT_ANY): Likewise.
11724 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
11725 (SHM_STAT_ANY): Likewise.
11726 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
11727 (SHM_STAT_ANY): Likewise.
11728 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
11729 (SHM_STAT_ANY): Likewise.
11730 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
11731 (SHM_STAT_ANY): Likewise.
11732 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
11733 (SHM_STAT_ANY): Likewise.
11734 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
11735 (SHM_STAT_ANY): Likewise.
11736 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
11737 (SHM_STAT_ANY): Likewise.
11738 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
11739 (SHM_STAT_ANY): Likewise.
11740 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
11741 (SHM_STAT_ANY): Likewise.
11742
11743 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
11744 (SEM_STAT_ANY): New macro.
11745 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11746 (SEM_STAT_ANY): Likewise.
11747 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11748 (SEM_STAT_ANY): Likewise.
11749 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11750 (SEM_STAT_ANY): Likewise.
11751 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11752 (SEM_STAT_ANY): Likewise.
11753 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11754 (SEM_STAT_ANY): Likewise.
11755 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11756 (SEM_STAT_ANY): Likewise.
11757 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11758 (SEM_STAT_ANY): Likewise.
11759 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11760 (SEM_STAT_ANY): Likewise.
11761 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11762 (SEM_STAT_ANY): Likewise.
11763
11764 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11765 (MSG_STAT_ANY): New macro.
11766 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11767 (MSG_STAT_ANY): Likewise.
11768 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11769 (MSG_STAT_ANY): Likewise.
11770 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11771 (MSG_STAT_ANY): Likewise.
11772 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11773 (MSG_STAT_ANY): Likewise.
11774 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11775 (MSG_STAT_ANY): Likewise.
11776 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11777 (MSG_STAT_ANY): Likewise.
11778 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11779 (MSG_STAT_ANY): Likewise.
11780 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11781 (MSG_STAT_ANY): Likewise.
11782 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11783 (MSG_STAT_ANY): Likewise.
11784
11785 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11786 (MAP_TYPE): Change value to 0x2b.
11787
11788 2018-06-18 Florian Weimer <fweimer@redhat.com>
11789
11790 [BZ #15722]
11791 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11792 socket with SOCK_CLOEXEC.
11793
11794 2018-06-18 Joseph Myers <joseph@codesourcery.com>
11795
11796 [BZ #23303]
11797 * sysdeps/powerpc/powerpc64/le/Makefile
11798 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11799 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11800 (gnulib-tests): Also add $(f128-loader-link) for
11801 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11802
11803 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11804
11805 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11806 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11807 of sendfile.
11808 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11809 (sendfile64): New strong alias.
11810 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11811 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11812 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11813 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11814 attribute.
11815 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11816 ___pthread_get_cleanup_stack.
11817 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11818 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11819 * mach/shortcut.awk: Make syscall stubs include
11820 <mach-shortcuts-hidden.h> and add hidden definition.
11821 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11822 (__mach_msg): Add hidden prototype.
11823 * mach/msg.c: Include <mach.h>.
11824 (__mach_msg): Add hidden definition.
11825 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11826 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11827 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11828 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11829 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11830 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11831 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11832 prototype and definition.
11833 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11834 hidden target for _hurd_self_sigstate.
11835
11836 2018-06-15 Joseph Myers <joseph@codesourcery.com>
11837
11838 [BZ #23007]
11839 * stdlib/tst-strtod-nan-sign-main.c: New file.
11840 * stdlib/tst-strtod-nan-sign.c: Likewise.
11841 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11842 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11843 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11844 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11845 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11846
11847 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
11848
11849 [BZ #23007]
11850 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11851 appropriate sign.
11852
11853 2018-06-14 Florian Weimer <fweimer@redhat.com>
11854
11855 [BZ #23290]
11856 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11857 that the result stays within the ISO-8859-1 range.
11858 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11859 characters are defined in IBM273.
11860
11861 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11862
11863 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11864 __mach_task_self): Remove attribute_hidden.
11865
11866 2018-06-14 Joseph Myers <joseph@codesourcery.com>
11867
11868 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11869 ignore -Wrestrict for one test.
11870
11871 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
11872 Szabolcs Nagy <szabolcs.nagy@arm.com>
11873
11874 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11875
11876 2018-06-14 Florian Weimer <fweimer@redhat.com>
11877
11878 * scripts/update-abilist.sh: Accept empty list of files to patch.
11879
11880 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
11881
11882 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11883 test-xfail-check-abi-libmachuser): Add.
11884 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11885 __libc_read and __libc_write to __read and __write.
11886 * sysdeps/hurd/include/hurd/port.h: New file.
11887 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11888 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11889 __thread_switch, __evc_wait): Move declarations to...
11890 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11891 attribute_hidden.
11892 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11893 use PLT to call _hurd_self_sigstate.
11894
11895 2018-06-13 Joseph Myers <joseph@codesourcery.com>
11896
11897 [BZ #23279]
11898 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11899 MAX_EXP as overflowing.
11900 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11901 overflow flag.
11902 (round_str): Output also whether result overflows in each rounding
11903 mode.
11904 * stdlib/tst-strtod-round-data: Add more tests.
11905 * stdlib/tst-strtod-round-data.h: Regenerated.
11906 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11907 (TEST): Handle extra arguments for overflow flags.
11908 (struct test_overflow): New type.
11909 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11910 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11911 (test_in_one_mode): Take argument with overflow information.
11912 (do_test): Update calls to test_in_one_mode.
11913
11914 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11915
11916 * elf/dl-load (_dl_dst_substitute): Correct comment.
11917 (_dl_dst_count): Likewise.
11918
11919 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11920 lll_futex_timed_wait.
11921
11922 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11923
11924 [BZ #23277]
11925 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11926 attribute.
11927 * math/test-nan-const.c: New file.
11928 * math/Makefile (tests): Add test-nan-const.
11929 (CFLAGS-test-nan-const.c): New variable.
11930
11931 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11932
11933 * benchtests/scripts/compare_strings.py (process_results): Add
11934 funcs argument. Compare only functions which are selected.
11935 (main): Check if base function is among selected functions.
11936 Pass selected functions to process_results.
11937 (__main__): Add -f/--functions argument.
11938
11939 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11940 Hongbo Zhang <hongbo.zhang@linaro.org>
11941
11942 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11943 __memcpy_falkor for phecda core.
11944 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11945 __memmove_falkor for phecda core.
11946 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11947 __memset_falkor for phecda core.
11948 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11949 for phecda core.
11950 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11951 macro to identify phecda core.
11952
11953 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11954 Andreas Schwab <schwab@suse.de>
11955 Dmitry V. Levin <ldv@altlinux.org>
11956 Florian Weimer <fweimer@redhat.com>
11957
11958 [BZ #23102]
11959 [BZ #21942]
11960 [BZ #18018]
11961 [BZ #23259]
11962 CVE-2011-0536
11963 * elf/dl-dst.h: Remove DL_DST_COUNT.
11964 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11965 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11966 (is_dst): Comment. Support ELF gABI.
11967 (_dl_dst_count): Comment. Simplify and count DSTs.
11968 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11969 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11970 locals.
11971
11972 2018-06-12 Zack Weinberg <zackw@panix.com>
11973
11974 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11975 * sysdeps/unix/sysv/linux/dl-sysdep.c
11976 Include not-cancel.h. Use __close_nocancel instead of __close,
11977 __open64_nocancel instead of __open, __read_nocancel instead of
11978 __libc_read, and __write_nocancel instead of __libc_write.
11979
11980 * csu/check_fds.c (check_one_fd)
11981 * sysdeps/posix/fdopendir.c (__fdopendir)
11982 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11983 instead of __fcntl and/or __libc_fcntl.
11984
11985 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11986 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11987 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11988 Use __open64_nocancel instead of __open_nocancel.
11989
11990 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11991 hidden_proto declarations to the end and issue them if either
11992 IS_IN(libc) or IS_IN(rtld).
11993 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11994 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11995 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11996 read_nocancel, waitpid_nocancel, write_nocancel.
11997
11998 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11999 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12000 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12001
12002 * nptl/pt-fcntl.c: New file.
12003 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12004 (libpthread-routines): Add pt-fcntl.
12005 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12006 (__libc_fcntl): Remove attribute_hidden.
12007 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12008 __fcntl_nocancel_adjusted, not fcntl_common.
12009 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12010 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12011 to fcntl_nocancel.c.
12012 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12015 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12016
12017 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12018 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12019 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12020 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12021 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12022 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12023 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12024 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12025 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12026 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12027 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12028 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12029 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12030 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12031 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12032 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12033 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12034 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12035 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12036 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12037
12038 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12039 libpthread-routines.
12040 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12041 defines nothing.
12042
12043 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12044 __libc_read, and __write instead of __libc_write. Define
12045 __open64 in addition to __open.
12046
12047 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12048
12049 [BZ #23250]
12050 [BZ #10686]
12051 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12052 to _private_tm[3] and add __glibc_reserved2.
12053 Add _Static_assert of offset of __private_ss == 0x30.
12054 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12055 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12056
12057 2018-06-12 Florian Weimer <fweimer@redhat.com>
12058
12059 x86: Make strncmp usable from rtld.
12060 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12061 __strncmp_ia32 if in libc (and not in rtld).
12062 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12063 strncmp if not in libc (and not to __strncmp_sse2).
12064
12065 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12066
12067 [BZ #23140]
12068 * localedata/locales/gd_GB (mon): Rename to...
12069 (alt_mon): This.
12070 (mon): Import from CLDR (genitive case).
12071 * localedata/locales/hsb_DE (mon): Rename to...
12072 (alt_mon): This.
12073 (mon): Import from CLDR (genitive case).
12074 * localedata/locales/wa_BE (mon): Rename to...
12075 (alt_mon): This.
12076 (mon): Add, fill with the proper genitive forms, but CLDR data
12077 is incomplete; completed according to the comments in this file.
12078 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12079
12080 * localedata/locales/wa_BE (country_name): Reword
12081 "Beljike" -> "Beldjike".
12082
12083 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12084
12085 [BZ #23272]
12086 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12087 cases of non-finite arguments.
12088 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12089
12090 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12091
12092 [BZ #23174]
12093 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12094
12095 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12096
12097 [BZ #23264]
12098 * include/unistd.h (__execvpex): New prototype.
12099 * posix/Makefile (tests): Add tst-spawn4.
12100 (tests-internal): Add tst-spawn4-compat.
12101 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12102 * posix/tst-spawn4-compat.c: New file.
12103 * posix/tst-spawn4.c: Likewise.
12104 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12105 binaries as shell scripts.
12106 * sysdeps/posix/spawni.c (__spawni): Likewise.
12107
12108 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12109
12110 [BZ #23145]
12111 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12112 ($(all-built-dso:=.dynsym): New target.
12113 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12114 ($(objpfx)check-initfini.out): New target.
12115 (generated): Add check-initfini.out.
12116 * scripts/check-initfini.awk: New file.
12117 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12118 (_fini): Likewise.
12119 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12120 (_fini): Likewise.
12121 * sysdeps/arm/crti.S (_init): Mark as hidden.
12122 (_fini): Likewise.
12123 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12124 (_fini): Likewise.
12125 * sysdeps/i386/crti.S (_init): Mark as hidden.
12126 (_fini): Likewise.
12127 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12128 (_fini): Likewise.
12129 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12130 (_fini): Likewise.
12131 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12132 (_fini): Likewise.
12133 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12134 (_fini): Likewise.
12135 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12136 (_fini): Likewise.
12137 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12138 (_fini): Likewise.
12139 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12140 (_fini): Likewise.
12141 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12142 (_fini): Likewise.
12143 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12144 (_fini): Likewise.
12145 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12146 (_fini): Likewise.
12147 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12148 (_fini): Likewise.
12149 * sysdeps/sh/crti.S (_init): Mark as hidden.
12150 (_fini): Likewise.
12151 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12152 (_fini): Likewise.
12153 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12154 (_fini): Likewise.
12155
12156 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12157
12158 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12159 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12160 and TF redirection to KFtype and KF only when the default
12161 long double type is not the IEEE 128-bit floating point type.
12162
12163 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12164
12165 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12166 macro.
12167 (HWCAP_USCAT): Likewise.
12168 (HWCAP_ILRCPC): Likewise.
12169 (HWCAP_FLAGM): Likewise.
12170 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12171 Increase to 28.
12172 (_dl_aarch64_cap_flags): Add new flag names.
12173
12174 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12175 (MAP_FIXED_NOREPLACE): New macro.
12176 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12177 (MAP_FIXED_NOREPLACE): Likewise.
12178 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12179 (MAP_FIXED_NOREPLACE): Likewise.
12180 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12181 (MAP_FIXED_NOREPLACE): Likewise.
12182 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12183 (MAP_FIXED_NOREPLACE): Likewise.
12184 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12185 (MAP_FIXED_NOREPLACE): Likewise.
12186 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12187 (MAP_FIXED_NOREPLACE): Likewise.
12188 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12189 (MAP_FIXED_NOREPLACE): Likewise.
12190 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12191 (MAP_FIXED_NOREPLACE): Likewise.
12192 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12193 (MAP_FIXED_NOREPLACE): Likewise.
12194 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12195 (MAP_FIXED_NOREPLACE): Likewise.
12196 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12197 (MAP_FIXED_NOREPLACE): Likewise.
12198 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12199 (MAP_FIXED_NOREPLACE): Likewise.
12200 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12201 (MAP_FIXED_NOREPLACE): Likewise.
12202 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12203 (MAP_FIXED_NOREPLACE): Likewise.
12204
12205 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12206 version to 4.17.
12207
12208 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12209
12210 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12211 version to 4.17
12212
12213 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12214
12215 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12216 int.
12217 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12218
12219 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12220
12221 * benchtests/scripts/compare_string.py: (process_results) Catch
12222 exception in non-existent base_func and catch exception in
12223 non-existent attribute.
12224 (parse_file) Catch exception if input file does not exist.
12225
12226 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12227
12228 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12229 options to avoid diff calculation and omit header, respectively.
12230 (main): process --no-diff and --no-header
12231
12232 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12233 H.J. Lu <hongjiu.lu@intel.com>
12234
12235 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12236 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12237 wcsncmp-sse2.
12238 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12239 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12240 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12241 and __wcsncmp_sse2.
12242 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12243 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12244 AVX unaligned load is fast and vzeroupper is preferred.
12245 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12246 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12247 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12248 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12249 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12250 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12251 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12252 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12253 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12254 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12255 is undefined.
12256
12257 2018-06-01 Florian Weimer <fweimer@redhat.com>
12258
12259 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12260 configuring with --disable-multi-arch, building with
12261 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12262 Haswell-era CPU.
12263
12264 2018-06-01 Florian Weimer <fweimer@redhat.com>
12265
12266 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12267 results from building with “-march=x86-64 -mtune=generic
12268 -mfpmath=sse” and running on a Haswell-era CPU.
12269
12270 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12271
12272 [BZ #18473]
12273 * soft-fp/sqrttf2.c: Remove file.
12274 * soft-fp/sqrtdf2.c: Move to ....
12275 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12276 <shlib-compat.h>.
12277 (__sqrtdf2): Make conditional on
12278 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12279 symbol.
12280 * soft-fp/sqrtsf2.c: Move to ....
12281 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12282 <shlib-compat.h>.
12283 (__sqrtsf2): Make conditional on
12284 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12285 symbol.
12286 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12287 (gcc-double-routines): Remove sqrtdf2.
12288 (gcc-quad-routines): Remove sqrttf2.
12289 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12290 Do not filter out sqrtsf2 and sqrtdf2.
12291 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12292 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12293
12294 2018-06-01 Florian Weimer <fweimer@redhat.com>
12295
12296 * sysdeps/generic/libcidn.abilist: Remove file.
12297
12298 2018-06-01 Florian Weimer <fweimer@redhat.com>
12299
12300 [BZ #23236]
12301 * libio/strfile.h (struct _IO_str_fields): Rename members to
12302 discourage their use and add comment.
12303 (_IO_STR_DYNAMIC): Remove unused macro.
12304 * libio/strops.c (_IO_str_init_static_internal): Do not use
12305 callback pointers. Call malloc and free.
12306 (_IO_str_overflow): Do not use callback pointers. Call malloc
12307 and free.
12308 (enlarge_userbuf): Likewise.
12309 (_IO_str_finish): Call free.
12310 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12311 _allocate_buffer_unused.
12312 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12313 and free.
12314 (enlarge_userbuf): Likewise.
12315 (_IO_wstr_finish): Call free.
12316 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12317 _allocate_buffer_unused, _free_buffer_unused.
12318 * libio/memstream.c (__open_memstream): Likewise.
12319 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12320 * libio/wmemstream.c (open_wmemstream): Likewise.
12321
12322 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12323
12324 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12325 AMD Ryzen 7 1800X.
12326
12327 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12328
12329 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12330 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12331 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12332 New file.
12333 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12334 Likewise.
12335 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12336
12337 2018-05-29 Florian Weimer <fweimer@redhat.com>
12338
12339 * support/Makefile (libsupport-routines): Add
12340 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12341 xpthread_barrierattr_setpshared.
12342 * support/xpthread_barrierattr_destroy.c: New file.
12343 * support/xpthread_barrierattr_init.c: Likewise.
12344 * support/xpthread_barrierattr_setpshared.c: Likewise.
12345
12346 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12347
12348 [BZ #23206]
12349 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12350 _r_debug and update DT_DEBUG for debugger.
12351
12352 2018-05-29 Florian Weimer <fweimer@redhat.com>
12353
12354 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12355 (tst-strtod5i.out): Likewise.
12356
12357 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12358
12359 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12360 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12361 (sparc64-quad-routines): New variable. Moved from ....
12362 [$(subdir) = soft-fp] (sysdep_routines): Add
12363 $(sparc64-quad-routines). Moved from ....
12364 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12365 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12366 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12367 moved from ....
12368 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12369 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12370 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12371 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12372 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12373 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12374 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12375 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12376 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12377 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12378 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12379 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12380 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12381 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12382 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12383 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12384 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12385 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12386 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12387 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12388 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12389 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12390 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12391 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12392 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12393 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12394 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12395 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12396 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12397 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12398 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12399 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
12400 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
12401 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
12402 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
12403 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
12404 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
12405 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
12406 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
12407 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
12408 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
12409 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
12410 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
12411 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
12412 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
12413 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
12414 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
12415 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
12416 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
12417 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
12418 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
12419 * sysdeps/sparc/sparc64/qp_util.c: ... here.
12420 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
12421 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
12422 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
12423 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
12424 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
12425 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
12426
12427 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
12428 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
12429 (sparc32-quad-routines): New variable. Moved from ....
12430 [$(subdir) = soft-fp] (sysdep_routines): Add
12431 $(sparc32-quad-routines). Moved from ....
12432 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
12433 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
12434 moved from ....
12435 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
12436 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
12437 * sysdeps/sparc/sparc32/q_add.c: ... here.
12438 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
12439 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
12440 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
12441 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
12442 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
12443 * sysdeps/sparc/sparc32/q_div.c: ... here.
12444 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
12445 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
12446 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
12447 * sysdeps/sparc/sparc32/q_feq.c: ... here.
12448 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
12449 * sysdeps/sparc/sparc32/q_fge.c: ... here.
12450 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
12451 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
12452 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
12453 * sysdeps/sparc/sparc32/q_fle.c: ... here.
12454 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
12455 * sysdeps/sparc/sparc32/q_flt.c: ... here.
12456 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
12457 * sysdeps/sparc/sparc32/q_fne.c: ... here.
12458 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
12459 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
12460 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
12461 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
12462 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
12463 * sysdeps/sparc/sparc32/q_mul.c: ... here.
12464 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
12465 * sysdeps/sparc/sparc32/q_neg.c: ... here.
12466 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
12467 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
12468 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
12469 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
12470 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
12471 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
12472 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
12473 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
12474 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
12475 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
12476 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
12477 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
12478 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
12479 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
12480 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
12481 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
12482 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
12483 * sysdeps/sparc/sparc32/q_sub.c: ... here.
12484 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
12485 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
12486 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
12487 * sysdeps/sparc/sparc32/q_util.c: ... here.
12488 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
12489 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
12490 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
12491 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
12492
12493 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12494 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12495
12496 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
12497 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
12498 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
12499 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
12500
12501 2018-05-24 Joseph Myers <joseph@codesourcery.com>
12502
12503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
12504 powerpc/soft-fp.
12505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12506 Likewise.
12507 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
12508 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
12509
12510 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12511
12512 [BZ #23171]
12513 * math/math.h [C++] (iseqsig): Fix parameter type for the long
12514 double version.
12515
12516 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12517
12518 * sysdeps/sh/Implies: Remove sh/soft-fp.
12519 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
12520 * sysdeps/sh/sfp-machine.h: ... here.
12521
12522 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12523
12524 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12525 (__mempcpy_erms): Skip zero length.
12526 (__memmove_erms): Likewise.
12527 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12528 (__memset_erms): Likewise.
12529
12530 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12531
12532 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
12533 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12534 Add functions moved from ....
12535 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
12536 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
12537 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
12538 from ....
12539 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
12540 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
12541 * sysdeps/alpha/e_sqrtl.c: ... here.
12542 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
12543 * sysdeps/alpha/local-soft-fp.h: ... here.
12544 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
12545 * sysdeps/alpha/ots_add.c: ... here.
12546 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
12547 * sysdeps/alpha/ots_cmp.c: ... here.
12548 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
12549 * sysdeps/alpha/ots_cmpe.c: ... here.
12550 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
12551 * sysdeps/alpha/ots_cvtqux.c: ... here.
12552 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
12553 * sysdeps/alpha/ots_cvtqx.c: ... here.
12554 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
12555 * sysdeps/alpha/ots_cvttx.c: ... here.
12556 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
12557 * sysdeps/alpha/ots_cvtxq.c: ... here.
12558 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
12559 * sysdeps/alpha/ots_cvtxt.c: ... here.
12560 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
12561 * sysdeps/alpha/ots_div.c: ... here.
12562 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
12563 * sysdeps/alpha/ots_mul.c: ... here.
12564 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
12565 * sysdeps/alpha/ots_nintxq.c: ... here.
12566 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
12567 * sysdeps/alpha/ots_sub.c: ... here.
12568 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
12569 * sysdeps/alpha/sfp-machine.h: ... here.
12570
12571 2018-05-23 Florian Weimer <fweimer@redhat.com>
12572
12573 [BZ #19728]
12574 [BZ #19729]
12575 [BZ #22247]
12576 CVE-2016-6261
12577 CVE-2016-6263
12578 CVE-2017-14062
12579 Switch to extern IDNA implementation (libidn2).
12580 * libidn: Remove subdirectory.
12581 * LICENSES: Do not mention licensing conditions for the removed
12582 libidn code.
12583 * config.h.in (HAVE_LIBIDN): Remove.
12584 * include/dlfcn.h (__libc_dlopen): Update comment.
12585 * include/idna.h: Remove file.
12586 * inet/Makefile (routines): Add idna.
12587 (tests-static, tests-internal): Add tst-idna_name_classify.
12588 (LOCALES): Generate locales for tests.
12589 (tst-idna_name_classify.out): Depend on generated locales.
12590 * inet/idna_name_classify.c: New file.
12591 * inet/tst-idna_name_classify.c: Likewise.
12592 * inet/net-internal.h (__idna_to_dns_encoding)
12593 (__idna_from_dns_encoding): Declare.
12594 * inet/net-internal.h (enum idna_name_classification): Define.
12595 (__idna_name_classify): Declare.
12596 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
12597 __idna_from_dns_encoding.
12598 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
12599 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
12600 name as a fallback in case of encoding errors.
12601 (getnameinfo): Use DEPRECATED_NI_IDN.
12602 * inet/idna.c: New file.
12603 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
12604 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
12605 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
12606 (modules-names): Add tst-no-libidn2.
12607 (extra-test-objs): Add tst-no-libidn2.os.
12608 (LDFLAGS-tst-no-libidn2.so): Set soname.
12609 (LOCALES): Set, and generate locales.
12610 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
12611 (tst-resolv-ai_idn-latin1): Likewise.
12612 (tst-resolv-ai_idn-nolibidn2): Likewise.
12613 (tst-resolv-ai_idn.out): Depend on locales.
12614 (tst-resolv-ai_idn-latin1.out): Depend on locales.
12615 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
12616 tst-no-libidn2.so.
12617 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
12618 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
12619 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
12620 * resolv/tst-resolv-ai_idn.c: New file.
12621 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
12622 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
12623 * resolv/tst-no-libidn2.c: Likewise.
12624 * support/support_format_addrinfo.c (format_ai_flags): Do not
12625 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
12626 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
12627 (gaih_inet): Call __idna_to_dns_encoding and
12628 __idna_from_dns_encoding, and use the original (punycode) name if
12629 __idna_from_dns_encoding fails due to an encoding error.
12630 (getaddrinfo): Use DEPRECATED_AI_IDN.
12631 * sysdeps/unix/inet/Subdirs (libidn): Remove.
12632 * sysdeps/unix/inet/configure: Remove file.
12633 * sysdeps/unix/inet/configure.ac: Likewise.
12634
12635 2018-05-23 Florian Weimer <fweimer@redhat.com>
12636
12637 Implement allocate_once.
12638 * include/allocate_once.h: New file.
12639 * misc/allocate_once.c: Likewise.
12640 * misc/tst-allocate_once.c: Likewise.
12641 * misc/Makefile (routines): Add allocate_once.
12642 (tests-internal): Add tst-allocate_once.
12643 (generated): Add tst-allocate_once.mtrace,
12644 tst-allocate_once-mem.out.
12645 (tests-special): Add tst-allocate_once-mem.out.
12646 (tst-allocate_once-ENV): Set MALLOC_TRACE.
12647 (tst-allocate_once-mem.out): Call mtrace.
12648 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
12649
12650 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12651
12652 [BZ #23196]
12653 * string/test-memcpy.c (do_test1): New function.
12654 (test_main): Call it.
12655
12656 2018-05-23 Andreas Schwab <schwab@suse.de>
12657
12658 [BZ #23196]
12659 CVE-2018-11237
12660 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
12661 (L(preloop_large)): Save initial destination pointer in %r11 and
12662 use it instead of %rax after the loop.
12663 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
12664
12665 2018-05-22 Joseph Myers <joseph@codesourcery.com>
12666
12667 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
12668 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
12669 -I../soft-fp. Moved from ....
12670 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
12671 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
12672 * sysdeps/aarch64/e_sqrtl.c: ... here.
12673 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
12674 * sysdeps/aarch64/sfp-machine.h: ... here.
12675
12676 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
12677 -Wmaybe-uninitialized around access to fq[0].
12678 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12679 Likewise.
12680
12681 [BZ #18471]
12682 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
12683 aliases for non-libc case of versioned symbols.
12684 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
12685 (llseek): Define as compat symbol if
12686 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
12687 with link warning.
12688 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
12689 Make into a compat symbol, disabled for minimum symbol version
12690 GLIBC_2.28 and later.
12691 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
12692
12693 2018-05-22 Florian Weimer <fweimer@redhat.com>
12694
12695 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
12696 not add -mpreferred-stack-boundary=4.
12697 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
12698 (stack-align-test-flags): Likewise.
12699 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
12700 Likewise.
12701 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
12702 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
12703 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
12704 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
12705 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
12706 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
12707 (CFLAGS-tst-align2.c): Likewise.
12708
12709 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
12710
12711 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
12712 (index_arch_Prefer_FSRM): Likewise.
12713 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
12714 Also check Prefer_FSRM.
12715 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
12716 Also return OPTIMIZE (erms) for Prefer_FSRM.
12717
12718 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
12719
12720 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
12721 (index_cpu_FSRM): Likewise.
12722 (reg_FSRM): Likewise.
12723
12724 2018-05-18 Joseph Myers <joseph@codesourcery.com>
12725
12726 * math/gen-tgmath-tests.py: Import sys.
12727 (Tests.__init__): Initialize macros_seen.
12728 (Tests.add_tests): Add macro to macros_seen. Only generate tests
12729 if requested to do so for this macro.
12730 (Tests.add_all_tests): Take argument for macro for which to
12731 generate tests.
12732 (Tests.check_macro_list): New function.
12733 (main): Handle check-list argument and argument specifying macro
12734 for which to generate tests.
12735 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
12736 [PYTHON] (tgmath3-macro-tests): Likewise.
12737 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
12738 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
12739 not test-tgmath3.c.
12740 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
12741 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
12742 to CFLAGS.
12743 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
12744 [PYTHON] ($(foreach
12745 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
12746 rule.
12747 [PYTHON] (tests-special): Add
12748 $(objpfx)test-tgmath3-macro-list.out.
12749 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12750
12751 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12752 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12753 later.
12754
12755 [BZ #22639]
12756 * time/tzset.c (SECSPERDAY): Cast to time_t.
12757 * time/tst-y2039.c: New file.
12758 * time/Makefile (tests): Add tst-y2039.
12759
12760 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12761
12762 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12763 (PREFETCH_ONE_SET): Remove duplicate line.
12764
12765 2018-05-17 Florian Weimer <fweimer@redhat.com>
12766
12767 * sysdeps/generic/math-type-macros-double.h: Include
12768 <math-nan-payload-double.h> after <libm-alias-double.h>.
12769 * sysdeps/generic/math-type-macros-float.h: Include
12770 <math-nan-payload-float.h> after <libm-alias-float.h>.
12771 * sysdeps/generic/math-type-macros-float128.h: Include
12772 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12773 * sysdeps/generic/math-type-macros-ldouble.h: Include
12774 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12775
12776 2018-05-17 Andreas Schwab <schwab@suse.de>
12777
12778 * resolv/res_send.c (__res_context_send): Don't set errno when
12779 returing error after malloc failure.
12780
12781 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
12782
12783 * nptl/allocatestack.c (allocate_stack): Remove the
12784 !__ASSUME_PRIVATE_FUTEX paths.
12785 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12786 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12787 Likewise.
12788 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12789 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12790 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12791 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12792 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12793 !__ASSUME_PRIVATE_FUTEX path.
12794 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12795 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12796 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12797 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12798 !__ASSUME_PRIVATE_FUTEX macros.
12799 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12800 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12801 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12802 * sysdeps/unix/sysv/linux/kernel-features.h
12803 (__ASSUME_PRIVATE_FUTEX): Removed.
12804
12805 2018-05-17 Joseph Myers <joseph@codesourcery.com>
12806
12807 * math/Makefile (libm-narrow-fns): Add div.
12808 (libm-test-funcs-narrow): Likewise.
12809 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12810 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12811 * math/gen-auto-libm-tests.c (test_functions): Add div.
12812 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12813 (NARROW_DIV_ROUND_TO_ODD): Likewise.
12814 (NARROW_DIV_TRIVIAL): Likewise.
12815 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12816 macro.
12817 (__ddivl): Likewise.
12818 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12819 ddiv.
12820 (CFLAGS-nldbl-ddiv.c): New variable.
12821 (CFLAGS-nldbl-fdiv.c): Likewise.
12822 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12823 __nldbl_ddivl.
12824 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12825 prototype.
12826 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12827 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12828 * math/auto-libm-test-in: Add tests of div.
12829 * math/auto-libm-test-out-narrow-div: New generated file.
12830 * math/libm-test-narrow-div.inc: New file.
12831 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12832 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12833 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12834 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12835 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12836 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12837 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12838 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12839 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12840 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12841 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12842 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12843 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12844 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12845 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12846 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12847 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12848 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12849 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12850 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12867 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12872 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12874 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12875
12876 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12877
12878 [BZ #23178]
12879 * nscd/nscd-client.h (sendfileall): Remove prototype.
12880 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12881 (handle_request): Use writeall instead of sendfileall.
12882 * nscd/aicache.c (addhstaiX): Likewise.
12883 * nscd/grpcache.c (cache_addgr): Likewise.
12884 * nscd/hstcache.c (cache_addhst): Likewise.
12885 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12886 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12887 * nscd/pwdcache.c (cache_addpw): Likewise.
12888 * nscd/servicescache.c (cache_addserv): Likewise.
12889 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12890 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12891 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12892 Remove define.
12893
12894 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
12895
12896 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12897 Include <string/strncat.c>.
12898 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12899 alias.
12900 (__GI___strncat): New hidden alias.
12901
12902 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12903
12904 * sysdeps/mips/mips32/libm-test-ulps: Update.
12905 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12906
12907 2018-05-16 Florian Weimer <fweimer@redhat.com>
12908
12909 * support/Makefile (libsupport-routines): Add support_quote_blob,
12910 support_test_compare_blob.
12911 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12912 * support/check.h (TEST_COMPARE_BLOB): Define.
12913 (support_test_compare_blob): Declare.
12914 * support/support.h (support_quote_blob): Declare.
12915 * support/support_quote_blob.c: New file.
12916 * support/support_test_compare_blob.c: Likewise.
12917 * support/tst-support_quote_blob.c: Likewise.
12918 * support/tst-test_compare_blob.c: Likewise.
12919
12920 2018-05-16 Florian Weimer <fweimer@redhat.com>
12921
12922 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12923 of <strtod_nan_double.h>.
12924 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12925 instead of SET_MANTISSA.
12926 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12927 of include <strtod_nan_float.h>.
12928 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12929 instead of <strtod_nan_ldouble.h>.
12930 * stdlib/strtod_nan_double.h: Move to ...
12931 * sysdeps/generic/math-nan-payload-double.h: ... here.
12932 (FLOAT): Remove definition.
12933 (SET_MANTISSA): Rename to ...
12934 (SET_NAN_PAYLOAD): ... this.
12935 * stdlib/strtod_nan_float.h: Move to ...
12936 * sysdeps/generic/math-nan-payload-float.h: ... here.
12937 (FLOAT): Remove definition.
12938 (SET_MANTISSA): Rename to ...
12939 (SET_NAN_PAYLOAD): ... this.
12940 * sysdeps/generic/math-type-macros-double.h: Include
12941 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12942 instead of <math-svid-compat.h>.
12943 * sysdeps/generic/math-type-macros-float.h: Include
12944 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12945 instead of <math-svid-compat.h>.
12946 * sysdeps/generic/math-type-macros-float128.h: Include
12947 <math-nan-payload-float128.h>.
12948 * sysdeps/generic/math-type-macros-ldouble.h: Include
12949 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12950 instead of <math-svid-compat.h>.
12951 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12952 check for definition.
12953 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12954 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12955 Include <ieee754_float128.h>.
12956 (FLOAT): Remove definition.
12957 (SET_MANTISSA): Rename to ...
12958 (SET_NAN_PAYLOAD): ... this.
12959 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12960 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12961 Do not include <float128_private.h>.
12962 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12963 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12964 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12965 (FLOAT): Remove definition.
12966 (SET_MANTISSA): Rename to ...
12967 (SET_NAN_PAYLOAD): ... this.
12968 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12969 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12970 (FLOAT): Remove definition.
12971 (SET_MANTISSA): Rename to ...
12972 (SET_NAN_PAYLOAD): ... this.
12973 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12974 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12975 (FLOAT): Remove definition.
12976 (SET_MANTISSA): Rename to ...
12977 (SET_NAN_PAYLOAD): ... this.
12978 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12979 of "../stdlib/strtod_nan_double.h".
12980 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12981 of "../stdlib/strtod_nan_float.h".
12982 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12983 instead of "../stdlib/strtod_nan_ldouble.h".
12984 * manual/arith.texi (Parsing of Floats): Adjust comment.
12985
12986 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12987
12988 * math/Makefile (libm-narrow-fns): Add mul.
12989 (libm-test-funcs-narrow): Likewise.
12990 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12991 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12992 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12993 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12994 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12995 (NARROW_MUL_TRIVIAL): Likewise.
12996 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12997 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12998 macro.
12999 (__dmull): Likewise.
13000 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13001 dmul.
13002 (CFLAGS-nldbl-dmul.c): New variable.
13003 (CFLAGS-nldbl-fmul.c): Likewise.
13004 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13005 __nldbl_dmull.
13006 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13007 prototype.
13008 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13009 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13010 * math/auto-libm-test-in: Add tests of mul.
13011 * math/auto-libm-test-out-narrow-mul: New generated file.
13012 * math/libm-test-narrow-mul.inc: New file.
13013 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13014 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13015 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13016 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13017 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13018 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13019 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13020 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13021 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13022 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13023 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13024 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13025 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13026 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13027 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13028 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13029 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13030 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13031 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13032 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13033 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13034 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13035 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13036 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13037 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13038 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13039 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13040 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13041 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13042 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13043 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13044 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13049 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13050 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13051 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13052 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13053 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13054 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13055 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13056 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13057
13058 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13059
13060 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13061 with *%eax in call.
13062
13063 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13064
13065 * sysdeps/i386/ldsodefs.h: Removed.
13066 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13067 * sysdeps/x86/ldsodefs.h: This.
13068 (La_i86_regs): New.
13069 (La_i86_retval): Likewise.
13070 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13071 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13072
13073 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13074
13075 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13076 unnecessary testl.
13077
13078 2018-05-13 Alan Modra <amodra@gmail.com>
13079
13080 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13081 R_PARISC_TLS_DTPOFF32 reloc addend.
13082
13083 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13084
13085 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13086 * math/math.h: Restrict the prototype definition for the functions
13087 issignaling(_Float128) and iszero(_Float128); and template
13088 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13089 __HAVE_FLOAT128_UNLIKE_LDBL.
13090 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13091 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13092 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13093 __f128() constants; define the type _Float128 as long double;
13094 and reuse long double in __CFLOAT128.
13095
13096 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13097
13098 * sysdeps/generic/math_private.h: Do not include
13099 <math-barriers.h>.
13100 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13101 <math_private.h>.
13102 * math/fromfp.h: Include <math-barriers.h>.
13103 * math/math-narrow.h: Likewise.
13104 * math/s_nextafter.c: Likewise.
13105 * math/s_nexttowardf.c: Likewise.
13106 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13107 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13108 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13109 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13110 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13111 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13112 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13113 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13114 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13115 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13116 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13117 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13118 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13119 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13120 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13121 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13122 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13123 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13124 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13125 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13126 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13127 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13128 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13129 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13130 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13131 * sysdeps/ieee754/k_standardl.c: Likewise.
13132 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13133 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13134 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13135 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13136 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13138 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13139 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13140 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13141 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13142 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13143 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13144 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13145 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13146 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13147 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13148 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13149 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13150 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13151 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13152 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13153 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13154
13155 2018-05-11 Florian Weimer <fweimer@redhat.com>
13156
13157 Use 64-bit epoch values in the time zone file parser.
13158 * include/time.h (internal_time_t): Define.
13159 (__tzfile_compute): Use it.
13160 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13161 member.
13162 (transitions): Switch to internal_time_t.
13163 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13164 types.
13165 (__tzfile_compute): Use internal_time_t for timer argument. Check
13166 for truncation before calling __offtime.
13167
13168 2018-05-11 Florian Weimer <fweimer@redhat.com>
13169
13170 [BZ #23166]
13171 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13172 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13173 Likewise.
13174 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13175 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13176 export without --enable-obsolete-rpc.
13177 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13178 symbol. This should not have been exported, ever.
13179
13180 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13181
13182 [BZ #23152]
13183 * localedata/locales/gd_GB (abmon): Fix typo in May:
13184 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13185
13186 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13187
13188 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13189 Use multiple registers to copy data in loop tail.
13190
13191 * sysdeps/aarch64/multiarch/memmove_falkor.S
13192 (__memmove_falkor): Use multiple registers to move data in
13193 loop tail.
13194
13195 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13196
13197 * math/math-underflow.h: New file.
13198 * sysdeps/generic/math_private.h: Do not include <float.h>.
13199 (fabs_tg): Remove macro. Moved to math-underflow.h.
13200 (min_of_type_f): Likewise.
13201 (min_of_type_): Likewise.
13202 (min_of_type_l): Likewise.
13203 (min_of_type_f128): Likewise.
13204 (min_of_type): Likewise.
13205 (math_check_force_underflow): Likewise.
13206 (math_check_force_underflow_nonneg): Likewise.
13207 (math_check_force_underflow_complex): Likewise.
13208 * math/e_exp2_template.c: Include <math-underflow.h>.
13209 * math/k_casinh_template.c: Likewise.
13210 * math/s_catan_template.c: Likewise.
13211 * math/s_catanh_template.c: Likewise.
13212 * math/s_ccosh_template.c: Likewise.
13213 * math/s_cexp_template.c: Likewise.
13214 * math/s_clog10_template.c: Likewise.
13215 * math/s_clog_template.c: Likewise.
13216 * math/s_csin_template.c: Likewise.
13217 * math/s_csinh_template.c: Likewise.
13218 * math/s_csqrt_template.c: Likewise.
13219 * math/s_ctan_template.c: Likewise.
13220 * math/s_ctanh_template.c: Likewise.
13221 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13222 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13223 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13224 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13225 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13226 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13227 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13228 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13229 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13230 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13231 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13232 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13233 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13234 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13235 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13236 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13237 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13238 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13239 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13240 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13241 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13242 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13243 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13244 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13245 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13246 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13247 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13248 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13249 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13250 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13251 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13252 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13253 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13254 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13255 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13256 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13257 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13258 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13259 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13260 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13261 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13262 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13263 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13264 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13265 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13266 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13267 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13268 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13269 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13270 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13271 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13272 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13273 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13274 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13275 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13276 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13277 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13278 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13279 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13280 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13281 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13282 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13283 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13284 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13285 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13286 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13287 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13288 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13289 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13290 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13291 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13292 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13293 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13294 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13295 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13296 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13297 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13298 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13299 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13300 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13301 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13302 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13303 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13304 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13305
13306 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13307
13308 * sysdeps/generic/math-barriers.h: New file.
13309 * sysdeps/generic/math_private.h [!math_opt_barrier]
13310 (math_opt_barrier): Move to math-barriers.h.
13311 [!math_opt_barrier] (math_force_eval): Likewise.
13312 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13313 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13314 math-barriers.h.
13315 (math_force_eval): Likewise.
13316 * sysdeps/alpha/fpu/math-barriers.h: New file.
13317 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13318 math-barriers.h.
13319 (math_force_eval): Likewise.
13320 * sysdeps/x86/fpu/math-barriers.h: New file.
13321 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13322 math-barriers.h.
13323 (math_force_eval): Likewise.
13324 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13325 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13326 multiple-include guard for rename.
13327 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13328 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13329 math-barriers.h.
13330 (math_force_eval): Likewise.
13331
13332 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13333
13334 [BZ #22786]
13335 CVE-2018-11236
13336 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13337 computation.
13338 * stdlib/Makefile (test-bz22786): New test.
13339 * stdlib/test-bz22786.c: New test.
13340
13341 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13342
13343 * include/math-narrow-eval.h: New file. Contents moved from ....
13344 * sysdeps/generic/math_private.h: ... here.
13345 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13346 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13347 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13348 * stdlib/strtod_l.c: Likewise.
13349 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13350 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13351 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13352 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13353 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13354 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13355 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13356 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13357 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13358 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13359 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13360 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13361 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13362 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13363 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13364 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13365 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13366 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13367 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13368 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13369 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13370 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13371 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13372 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13373 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13374 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13375 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13376 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13377 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13378
13379 2018-05-08 Andreas Schwab <schwab@suse.de>
13380
13381 * sysdeps/nptl/internaltypes.h: Fix comment.
13382
13383 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13384
13385 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13386 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13387 hidden.
13388
13389 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13390
13391 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13392 of I into loop header.
13393 * benchtests/bench-memmove-walk.c
13394 (test_main): Likewise.
13395
13396 2018-05-07 Alexandre Oliva <oliva@gnu.org>
13397
13398 Revert:
13399 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13400 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13401
13402 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
13403
13404 [BZ #20419]
13405 * elf/dl-load.c (open_verify): Fix stack overflow.
13406 * elf/Makefile (tst-big-note): New test.
13407 * elf/tst-big-note-lib.S: New.
13408 * elf/tst-big-note.c: New.
13409
13410 2018-05-04 Joseph Myers <joseph@codesourcery.com>
13411
13412 * scripts/abilist.awk: Ignore absolute symbols.
13413 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
13414 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
13415 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
13416 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
13417 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
13418 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
13419 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13420 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
13421 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
13422 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
13423 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
13424 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
13425 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
13426 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
13427 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
13428 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13429 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
13430 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
13431 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13432 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
13433 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13434 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
13435 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
13436 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
13437 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
13438 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
13439 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
13440 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
13441 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13442 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
13443 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
13444 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13445 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
13446 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13447 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
13448 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
13449 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
13450 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
13451 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
13452 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
13453 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
13454 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13455 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
13456 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
13457 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13458 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
13459 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13460 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
13461 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
13462 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
13463 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
13464 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
13465 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
13466 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
13467 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13468 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
13469 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
13470 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13471 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
13472 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13473 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
13474 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
13475 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
13476 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
13477 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
13478 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
13479 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
13480 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13481 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
13482 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
13483 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13484 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
13485 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13486 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
13487 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
13488 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
13489 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
13490 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
13491 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
13492 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
13493 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13494 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
13495 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
13496 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13497 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
13498 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13499 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
13500 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
13501 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
13502 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
13503 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
13504 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
13505 Likewise.
13506 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
13507 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13508 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
13509 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
13510 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13511 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
13512 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13513 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
13514 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
13515 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
13516 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
13517 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
13518 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
13519 Likewise.
13520 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
13521 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13522 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
13523 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
13524 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13525 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
13526 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13527 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
13528 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
13529 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
13530 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
13531 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
13532 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
13533 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
13534 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13535 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
13536 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
13537 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13538 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
13539 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13540 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
13541 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
13542 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
13543 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
13544 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13545 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
13546 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
13547 Likewise.
13548 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
13549 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
13550 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
13551 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
13552 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13553 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
13554 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
13555 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
13556 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
13557 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
13558 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
13559 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
13560 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
13561 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13562 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
13563 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
13564 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
13565 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
13566 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13567 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
13568 Likewise.
13569 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
13570 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
13571 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
13572 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13573 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
13574 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
13575 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
13576 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
13577 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
13578 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
13579 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13580 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
13581 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
13582 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13583 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
13584 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
13585 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
13586 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
13587 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13588 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
13589 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
13590 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13591 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
13592 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
13593 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
13594 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
13595 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
13596 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
13601 Likewise.
13602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
13607 Likewise.
13608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
13609 Likewise.
13610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
13611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
13612 Likewise.
13613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
13614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13615 Likewise.
13616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13617 Likewise.
13618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
13619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
13620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
13621 Likewise.
13622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
13623 Likewise.
13624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
13625 Likewise.
13626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
13627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
13630 Likewise.
13631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
13632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
13633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
13634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
13637 Likewise.
13638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
13639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
13640 Likewise.
13641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
13642 Likewise.
13643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
13644 Likewise.
13645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
13646 Likewise.
13647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
13648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
13649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
13650 Likewise.
13651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
13652 Likewise.
13653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
13654 Likewise.
13655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
13656 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13657 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
13658 Likewise.
13659 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13660 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13661 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
13662 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13663 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13664 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13665 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
13666 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
13667 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13668 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
13669 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13670 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
13671 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
13672 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
13673 Likewise.
13674 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13675 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
13676 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
13677 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13678 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
13679 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
13680 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
13681 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
13682 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
13683 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
13684 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
13685 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
13686 Likewise.
13687 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13688 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
13689 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
13690 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13691 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
13692 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
13693 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
13694 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
13695 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
13696 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
13697 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
13698 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
13699 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
13700 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13701 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
13702 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
13703 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13704 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
13705 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
13706 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
13707 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
13708 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
13709 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
13710 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
13711 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
13712 Likewise.
13713 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
13714 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13715 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
13716 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
13717 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13718 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
13719 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
13720 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
13721 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
13722 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
13723 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
13724 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
13725 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
13726 Likewise.
13727 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
13728 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13729 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
13730 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
13731 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13732 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
13733 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13734 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
13735 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
13736 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
13737 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
13738 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
13739 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
13740 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
13741 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13742 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
13743 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
13744 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13745 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13746 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13747 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13748 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13752 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13765
13766 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
13767
13768 [BZ #23137]
13769 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13770 Use atomic_load_acquire to load __tid.
13771
13772 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13773
13774 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13775 Restore the pointer into %rdx, after syscall and use %rdx,
13776 instead of %rsi, to restore context.
13777
13778 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13779
13780 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13781 Pop the pointer into %rdx after syscall and use %rdx, instead
13782 of %rsi, to restore context.
13783
13784 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
13785
13786 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13787 handlers after setjmp.
13788 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13789 defined.
13790 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13791 <libc-pointer-arith.h>.
13792 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13793 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13794 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13795 _JUMP_BUF_SIGSET_BITS_PER_WORD.
13796 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13797 * sysdeps/x86/__longjmp_cancel.S: New file.
13798 * sysdeps/x86/longjmp.c: Likewise.
13799 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13800
13801 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13802
13803 * NEWS: Add ustat.h deprecation entry.
13804 * bits/ustat.h: Remove file.
13805 * misc/sys/ustat.h: Likewise.
13806 * misc/ustat.h: Likewise.
13807 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13808 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13809 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13810 compatibility mode.
13811 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13812 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13813 generic Linux implementation.
13814
13815 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13816
13817 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13818 * math/w_expl_compat.c: Likewise.
13819 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
13820
13821 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13822
13823 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13824
13825 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13826
13827 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13828 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13829 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13830 Remove.
13831 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13833 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13834 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13835 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13836 and SYSCALL_LL64.
13837
13838 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13839
13840 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13841
13842 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13843 * math/w_asin_template.c: Likewise.
13844 * math/w_atanh_template.c: Likewise.
13845
13846 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13847
13848 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13849 to powerpc/powerpc64/be for big-endian.
13850 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13851 little-endian.
13852
13853 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13854 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13855 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13856 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13857 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13858 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13859 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13860 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13861 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13862 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13863 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13864 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13865 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13866 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13867 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13868 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13869 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13870 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13871 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13872 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13873 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13874 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13875 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13876 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13877 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13878 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13879 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13880 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13881 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13882 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13883 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13884 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13885
13886 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13887 adjusted to imply powerpc64 and older processors on powerpc64/be.
13888 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13889 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13890 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13891 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13892 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13893 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13894 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13895 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13896 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13897 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13898 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13899 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13900 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13901 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13902 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13903 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13904 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13905 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13906 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13907 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13908 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13909 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13910 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13911 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13912 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13913 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13914 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13915 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13916 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13917 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13918 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13919
13920 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13921 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13922 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13923 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13924
13925 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13926 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13927 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13928 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13929
13930 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13931 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13932 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13933 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13934 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13935 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13936 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13937 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13938 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13939 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13940 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13941
13942 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13943 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13944 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13945 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13946 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13947 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13948 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13949 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13950 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13951 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13952 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13953
13954 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13955 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13956 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13957 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13958 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13959 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13960 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13961 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13962 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13963 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13964 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13965 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13966
13967 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13968 and adjusted to imply olders processors.
13969 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13970 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13971 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13972 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13973 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13974 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13975 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13976 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13977 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13978 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13979 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13980
13981 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13982 powerpc64/le.
13983 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13984 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13985
13986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13987 powerpc64le.
13988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13990
13991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13992 powerpc64/be.
13993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13996
13997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13998 powerpc64 and adjusted.
13999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14002 Likewise.
14003
14004 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14005
14006 * sysdeps/tile: Remove.
14007 * sysdeps/unix/sysv/linux/tile: Likewise.
14008 * README (tilegx-*-linux-gnu): Remove from list of supported
14009 configurations.
14010 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14011 contribution of support for generic Linux kernel syscall
14012 interface.
14013 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14014 tilegx configurations.
14015 (Config.install_linux_headers): Do not handle tile.
14016 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14017 in comment.
14018 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14019 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14020 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14021 conditional undefine and redefine.
14022 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14023 in comment.
14024 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14025 conditional undefine and redefine.
14026
14027 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14028
14029 * signal/tst-sigaction.c: New file to test BZ #23069.
14030 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14031
14032 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14033
14034 [BZ #22766]
14035 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14036 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14037 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14038 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14039
14040 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14041
14042 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14043 _DIRENT_MATCHES_DIRENT64 is not defined.
14044 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14045 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14046 is defined.
14047 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14048 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14049
14050 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14051
14052 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14053 version to GCC 8 branch.
14054
14055 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14056
14057 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14058 (check_no_hidden): Use type of original function when declaring
14059 alias.
14060
14061 * sysdeps/unix/sysv/linux/sys/ptrace.h
14062 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14063 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14064 (struct __ptrace_seccomp_metadata): New type.
14065 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14066 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14067 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14068 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14069 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14070 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14071 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14072 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14073 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14074 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14075 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14076 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14077 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14078 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14079 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14080 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14081
14082 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14083
14084 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14085 defined.
14086 * dirent/versionsort.c (versionsort): Likewise.
14087 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14088 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14089 * dirent/versionsort64.c (versionsort64): Likewise.
14090 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14091 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14092 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14093 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14094 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14095 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14096 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14097 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14098 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14099 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14102 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14103 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14104
14105 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14106
14107 * elf/elf.h (NT_PPC_PKEY): New macro.
14108
14109 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14110
14111 [BZ #23094]
14112 * localedata/locales/hr_HR: fix thousands_sep and
14113 mon_thousands_sep
14114
14115 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14116
14117 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14118 (XTABS): Define to TAB3.
14119
14120 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14121
14122 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14123
14124 * dirent/scandir-tail-common.c: New file.
14125 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14126 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14127 * dirent/scandir.c: Use scandir-tail-common.c.
14128 * dirent/scandirat.c: Likewise.
14129 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14130 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14131 if _DIRENT_MATCHES_DIRENT64 is defined.
14132 * dirent/scandirat64.c (scandirat64): Likewise.
14133 * include/dirent.h (__scandir_tail): Only define iff
14134 _DIRENT_MATCHES_DIRENT64 is not defined.
14135 (__scandir64_tail): Define regardless.
14136 (__scandirat, scandirat64): Remove libc_hidden_proto.
14137 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14138 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14140 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14141 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14142 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14143 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14144
14145 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14146
14147 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14148 New macro.
14149 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14150 Increase to 24.
14151 (_dl_aarch64_cap_flags): Add asimdfhm.
14152
14153 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14154
14155 * sysdeps/nios2/libm-test-ulps: Update.
14156
14157 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14158
14159 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14160 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14161
14162 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14163 requirements.
14164 (_DIRENT_MATCHES_DIRENT64): Undef
14165 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14166 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14167 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14168 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14169 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14170 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14171 use getdents64 syscalls as base.
14172 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14173 symbol if required.
14174 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14175 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14176 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14177 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14178 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14179 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14180 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14181 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14182 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14183 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14184 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14185
14186 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14187
14188 * scripts/test_printers_common.py (init_test): Disable lock elision.
14189
14190 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14191
14192 * math/test-tgmath.c (count_double, count_float,
14193 count_ldouble, count_cdouble, count_cfloat,
14194 count_cldouble): Use volatile int.
14195
14196 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14197
14198 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14199 (conformtest-xfail-conds): Add i386-gnu.
14200 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14201 i386-gnu.
14202 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14203 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14204 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14205 msqid_ds.msg_lrpid): Likewise.
14206 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14207 Likewise.
14208 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14209 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14210 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14211 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14212 unsigned int.
14213 (struct statvfs64): Likewise.
14214 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14215 Likewise.
14216 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14217 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14218 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14219 instead of wait_queue.
14220 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14221 instead of vm_area_struct.
14222 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14223 struct sched_param definition to it.
14224 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14225 * bits/types/struct_sched_param.h: New file.
14226 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14227 <bits/types/struct_sched_param.h> instead of <sched.h>.
14228 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14229 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14230 generic version but include <bits/pthreadtypes.h> to make struct
14231 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14232 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14233 non-compliant.
14234 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14235 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14236 [__USE_XOPEN] (OFDEL): New macro.
14237 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14238 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14239 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14240 prototypes.
14241 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14242 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14243 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14244 non-compliant.
14245 * sysdeps/i386/sys/ucontext.h: Likewise.
14246 * sysdeps/m68k/sys/ucontext.h: Likewise.
14247 * sysdeps/mips/sys/ucontext.h: Likewise.
14248 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14249 * sysdeps/mach/hurd/i386/Makefile
14250 (test-xfail-POSIX/fcntl.h/conform): Add.
14251 (test-xfail-POSIX/signal.h/conform): Add.
14252 (test-xfail-POSIX/semaphore.h/conform): Add.
14253 (test-xfail-POSIX/regex.h/conform): Add.
14254 (test-xfail-POSIX/aio.h/conform): Add.
14255 (test-xfail-POSIX/mqueue.h/conform): Add.
14256 (test-xfail-POSIX/sys/types.h/conform): Add.
14257 (test-xfail-UNIX98/fcntl.h/conform): Add.
14258 (test-xfail-UNIX98/netdb.h/conform): Add.
14259 (test-xfail-UNIX98/signal.h/conform): Add.
14260 (test-xfail-UNIX98/semaphore.h/conform): Add.
14261 (test-xfail-UNIX98/regex.h/conform): Add.
14262 (test-xfail-UNIX98/aio.h/conform): Add.
14263 (test-xfail-UNIX98/ftw.h/conform): Add.
14264 (test-xfail-UNIX98/mqueue.h/conform): Add.
14265 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14266 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14267 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14268 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14269 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14270 (test-xfail-UNIX98/sys/types.h/conform): Add.
14271 (test-xfail-UNIX98/stdlib.h/conform): Add.
14272 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14273 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14274 (test-xfail-POSIX2008/netdb.h/conform): Add.
14275 (test-xfail-POSIX2008/signal.h/conform): Add.
14276 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14277 (test-xfail-POSIX2008/regex.h/conform): Add.
14278 (test-xfail-POSIX2008/aio.h/conform): Add.
14279 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14280 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14281 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14282 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14283 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14284 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14285 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14286 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14287 (test-xfail-XOPEN2K/signal.h/conform): Add.
14288 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14289 (test-xfail-XOPEN2K/regex.h/conform): Add.
14290 (test-xfail-XOPEN2K/aio.h/conform): Add.
14291 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14292 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14293 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14294 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14295 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14296 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14297 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14298 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14299 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14300 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14301 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14302 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14303 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14304 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14305 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14306 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14307 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14308 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14309 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14310 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14311 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14312 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14313 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14314 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14315 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14316 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14317 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14318 i386-gnu.
14319 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14320 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14321
14322 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14323
14324 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14325 --enable-obsolete for powerpc-linux-gnuspe.
14326
14327 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14328
14329 * conform/data/sys/un.h-data: Allow sun_ prefix.
14330 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14331 prototypes.
14332 * sysdeps/mach/include/mach.h: Likewise.
14333 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14334 * sysdeps/mach/include/mach_error.h: Likewise.
14335
14336 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14337
14338 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14339 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14340 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14341 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14342
14343 2018-04-16 Andreas Schwab <schwab@suse.de>
14344
14345 [BZ #19527]
14346 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14347
14348 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14349
14350 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14351 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14352
14353 2018-04-12 DJ Delorie <dj@redhat.com>
14354
14355 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14356 version to 4.16.
14357
14358 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14359
14360 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14361 (struct kernel_sigaction): Use the same definition on 31bit as is used
14362 on 64bit.
14363
14364 2018-04-09 Florian Weimer <fweimer@redhat.com>
14365
14366 [BZ #23037]
14367 * resolv/res_send.c (send_dg): Use designated initializers instead
14368 of assignment to zero-initialize other fields of struct mmsghdr.
14369
14370 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14371
14372 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14373 __READDIR_ALIAS): Undefine after usage.
14374 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14375 __READDIR_R_ALIAS): Likewise.
14376 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14377 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14378 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14379 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14380 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14381 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14382 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14383 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14384 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14385 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14386 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14387 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14388 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14389 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14390 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14391 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14392 * sysdeps/unix/sysv/linux/readdir.c: New file.
14393 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14394 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14395 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14396
14397 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14398
14399 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
14400
14401 * manual/charset.texi (Converting a Character): Fix typo.
14402
14403 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14404
14405 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14406
14407 * sysdeps/arm/libm-test-ulps: Update.
14408
14409 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
14410 as base implementation.
14411 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
14412 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14413 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14414 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14415 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
14416 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
14417 remove unrequired definitions and update comments.
14418 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
14419 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
14420 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
14421 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
14422 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
14423 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
14424 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
14425 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
14426 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
14427 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
14428 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
14429 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
14430 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
14431 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
14432 and RESET_SA_RESTORER hooks.
14433
14434 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
14435
14436 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14437
14438 2018-04-05 Florian Weimer <fweimer@redhat.com>
14439
14440 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
14441 integer overflow, memory leak on error, and indeterminate errno
14442 value. Add a null wide character to terminate the result string.
14443 * manual/charset.texi (Converting a Character): Mention embedded
14444 null bytes in the mbrtowc input string. Explain what happens in
14445 the -2 result case. Do not claim that mbrtowc is simple or
14446 obvious to use. Adjust the description of the code example. Use
14447 @code, not @var, for concrete variables.
14448
14449 2018-04-05 Florian Weimer <fweimer@redhat.com>
14450
14451 * manual/examples/mbstouwcs.c: New file.
14452 * manual/charset.texi (Converting a Character): Include it.
14453
14454 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14455
14456 * include/dirent.h (dirfd): Add hidden proto.
14457 * dirent/dirfd.c (dirfd): Add hidden def.
14458 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
14459 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
14460
14461 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14462
14463 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
14464 sin, cos and sincos to 1 ULP.
14465
14466 2018-04-04 Maciej W. Rozycki <macro@mips.com>
14467
14468 [BZ #19818]
14469 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
14470 symbols.
14471 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
14472 * elf/tst-absolute-sym.c: New file.
14473 * elf/tst-absolute-sym-lib.c: New file.
14474 * elf/tst-absolute-sym-lib.lds: New file.
14475 * elf/Makefile (tests): Add `tst-absolute-sym'.
14476 (modules-names): Add `tst-absolute-sym-lib'.
14477 (LDLIBS-tst-absolute-sym-lib.so): New variable.
14478 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
14479 ($(objpfx)tst-absolute-sym): New dependency.
14480
14481 [BZ #19818]
14482 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
14483 parameter.
14484 (SYMBOL_ADDRESS): New macro.
14485 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
14486 SYMBOL_ADDRESS for symbol address calculation.
14487 * elf/dl-runtime.c (_dl_fixup): Likewise.
14488 (_dl_profile_fixup): Likewise.
14489 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
14490 * elf/rtld.c (dl_main): Likewise.
14491 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
14492 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
14493 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
14494 (elf_machine_rela): Likewise.
14495 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
14496 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
14497 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14498 (elf_machine_rela): Likewise.
14499 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14500 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
14501 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
14502 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
14503 Likewise.
14504 (elf_machine_reloc): Likewise.
14505 (elf_machine_got_rel): Likewise.
14506 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
14507 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
14508 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14509 Likewise.
14510 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14511 Likewise.
14512 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
14513 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14514 Likewise.
14515 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14516 Likewise.
14517 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14518 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14519 Likewise.
14520 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14521 Likewise.
14522 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
14523 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14524
14525 2018-04-04 Zack Weinberg <zackw@panix.com>
14526
14527 * sysdeps/generic/internal-signals.h: Include signal.h,
14528 sigsetops.h, and stdbool.h.
14529 (__libc_signal_block_all): Actually block all signals.
14530 (__libc_signal_block_app): Likewise.
14531 (__libc_signal_restore_set): Actually restore the signal mask.
14532
14533 2018-04-04 Florian Weimer <fweimer@redhat.com>
14534
14535 inet: Actually build and run tst-deadline.
14536 * inet/Makefile (tests-internal): Add tst-deadline and do not
14537 overwrite the variable.
14538 (tests-static-internal): Remove variable.
14539
14540 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
14541
14542 [BZ #22947]
14543 * bits/uio-ext.h (RWF_APPEND): New.
14544 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
14545 * manual/llio.texi: Document RWF_APPEND.
14546 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
14547 (RWF_SUPPORTED): Add RWF_APPEND.
14548
14549 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14550
14551 [BZ #22391]
14552 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
14553 check for internal nptl signals.
14554 * nptl/sigaction.c (__sigaction): Likewise.
14555 * signal/sigaddset.c (sigaddset): Likewise.
14556 * signal/sigdelset.c (sigdelset): Likewise.
14557 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14558 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
14559 value.
14560 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
14561 to filter out internal nptl signals.
14562 * signal/tst-sigset.c (do_test): Check ech signal indidually and
14563 also check realtime signals using standard macros.
14564 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
14565 __is_internal_signal, __libc_signal_block_all,
14566 __libc_signal_block_app, __libc_signal_restore_set): New functions.
14567 * sysdeps/nptl/sigfillset.c: Remove file.
14568 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
14569 Change return to bool.
14570 (__clear_internal_signals): Remove SIGTIMER clean since it is
14571 equal to SIGCANEL on Linux.
14572 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
14573 signal set was constructed using standard functions.
14574
14575 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14576
14577 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
14578 ifname is too long.
14579 * hurd/hurdsig.c (interrupted_reply_port_location): Use
14580 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
14581 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
14582 hidden def.
14583 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
14584 * signal/sigaddset.c: Include <sigsetopts.h>.
14585 * signal/sigdelset.c: Likewise.
14586
14587 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14588
14589 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
14590 (__cos): Likewise.
14591 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
14592 logic as sin and cos.
14593
14594 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14595
14596 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
14597 inputs. Return correct sign.
14598 (do_sincos): Remove small input check before do_sin, let do_sin set
14599 the sign.
14600 (__sin): Likewise.
14601 (__cos): Likewise.
14602
14603 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14604
14605 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
14606 (do_cos_slow): Likewise.
14607 (do_sin_slow): Likewise.
14608 (reduce_and_compute): Likewise.
14609 (slow): Likewise.
14610 (slow1): Likewise.
14611 (slow2): Likewise.
14612 (sloww): Likewise.
14613 (sloww1): Likewise.
14614 (sloww2): Likewise.
14615 (bslow): Likewise.
14616 (bslow1): Likewise.
14617 (bslow2): Likewise.
14618 (cslow2): Likewise.
14619
14620 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14621
14622 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
14623 (do_cos): Remove corp parameter and calculations.
14624 (do_sin): Likewise.
14625 (do_sincos): Remove cor variable.
14626 (__sin): Use do_sincos for huge inputs.
14627 (__cos): Likewise.
14628 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14629 (reduce_and_compute_sincos): Remove unused function.
14630
14631 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14632
14633 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
14634 reduce_sincos, improve accuracy to 136 bits.
14635 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
14636 (__sin): Use improved reduction and simplified do_sincos calculation.
14637 (__cos): Likewise.
14638 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14639
14640 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14641
14642 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
14643 (do_sincos_2): Likewise.
14644 (__sin): Remove middle range reduction case.
14645 (__cos): Likewise.
14646 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
14647 reduction case.
14648
14649 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14650
14651 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
14652 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
14653 inputs.
14654 (__cos): Likewise.
14655 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
14656
14657 2018-04-03 Joseph Myers <joseph@codesourcery.com>
14658
14659 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14660 version to 4.16
14661
14662 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14663
14664 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
14665 Remove definitions.
14666 (opendir_oflags): Use O_DIRECTORY regardless.
14667 (__opendir, __opendirat): Remove need_isdir_precheck usage.
14668 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
14669
14670 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14671
14672 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
14673 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
14674 macros.
14675 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
14676 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
14677 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
14678 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
14679 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
14680 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
14681
14682 * htl/Makefile: Bump licence to LGPL 2.1+.
14683 * htl/alloca_cutoff.c: Likewise.
14684 * htl/cthreads-compat.c: Likewise.
14685 * htl/lockfile.c: Likewise.
14686 * htl/pt-alloc.c: Likewise.
14687 * htl/pt-cancel.c: Likewise.
14688 * htl/pt-cleanup.c: Likewise.
14689 * htl/pt-create.c: Likewise.
14690 * htl/pt-dealloc.c: Likewise.
14691 * htl/pt-detach.c: Likewise.
14692 * htl/pt-exit.c: Likewise.
14693 * htl/pt-getattr.c: Likewise.
14694 * htl/pt-initialize.c: Likewise.
14695 * htl/pt-internal.h: Likewise.
14696 * htl/pt-join.c: Likewise.
14697 * htl/pt-self.c: Likewise.
14698 * htl/pt-setcancelstate.c: Likewise.
14699 * htl/pt-setcanceltype.c: Likewise.
14700 * htl/pt-sigmask.c: Likewise.
14701 * htl/pt-spin-inlines.c: Likewise.
14702 * htl/pt-testcancel.c: Likewise.
14703 * htl/pt-yield.c: Likewise.
14704 * htl/tests/test-1.c: Likewise.
14705 * htl/tests/test-10.c: Likewise.
14706 * htl/tests/test-11.c: Likewise.
14707 * htl/tests/test-12.c: Likewise.
14708 * htl/tests/test-13.c: Likewise.
14709 * htl/tests/test-14.c: Likewise.
14710 * htl/tests/test-15.c: Likewise.
14711 * htl/tests/test-16.c: Likewise.
14712 * htl/tests/test-17.c: Likewise.
14713 * htl/tests/test-2.c: Likewise.
14714 * htl/tests/test-3.c: Likewise.
14715 * htl/tests/test-4.c: Likewise.
14716 * htl/tests/test-5.c: Likewise.
14717 * htl/tests/test-6.c: Likewise.
14718 * htl/tests/test-7.c: Likewise.
14719 * htl/tests/test-8.c: Likewise.
14720 * htl/tests/test-9.c: Likewise.
14721 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
14722 * sysdeps/htl/bits/cancelation.h: Likewise.
14723 * sysdeps/htl/bits/pthread-np.h: Likewise.
14724 * sysdeps/htl/bits/pthread.h: Likewise.
14725 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
14726 * sysdeps/htl/bits/semaphore.h: Likewise.
14727 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
14728 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
14729 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
14730 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
14731 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
14732 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
14733 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
14734 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
14735 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
14736 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
14737 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
14738 * sysdeps/htl/old_pt-atfork.c: Likewise.
14739 * sysdeps/htl/pt-atfork.c: Likewise.
14740 * sysdeps/htl/pt-attr-destroy.c: Likewise.
14741 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
14742 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
14743 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
14744 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
14745 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14746 * sysdeps/htl/pt-attr-getscope.c: Likewise.
14747 * sysdeps/htl/pt-attr-getstack.c: Likewise.
14748 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14749 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14750 * sysdeps/htl/pt-attr-init.c: Likewise.
14751 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14752 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14753 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14754 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14755 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14756 * sysdeps/htl/pt-attr-setscope.c: Likewise.
14757 * sysdeps/htl/pt-attr-setstack.c: Likewise.
14758 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14759 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14760 * sysdeps/htl/pt-attr.c: Likewise.
14761 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14762 * sysdeps/htl/pt-barrier-init.c: Likewise.
14763 * sysdeps/htl/pt-barrier-wait.c: Likewise.
14764 * sysdeps/htl/pt-barrier.c: Likewise.
14765 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14766 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14767 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14768 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14769 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14770 * sysdeps/htl/pt-cond-destroy.c: Likewise.
14771 * sysdeps/htl/pt-cond-init.c: Likewise.
14772 * sysdeps/htl/pt-cond-signal.c: Likewise.
14773 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14774 * sysdeps/htl/pt-cond-wait.c: Likewise.
14775 * sysdeps/htl/pt-cond.c: Likewise.
14776 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14777 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14778 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14779 * sysdeps/htl/pt-condattr-init.c: Likewise.
14780 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14781 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14782 * sysdeps/htl/pt-destroy-specific.c: Likewise.
14783 * sysdeps/htl/pt-equal.c: Likewise.
14784 * sysdeps/htl/pt-getconcurrency.c: Likewise.
14785 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14786 * sysdeps/htl/pt-getschedparam.c: Likewise.
14787 * sysdeps/htl/pt-getspecific.c: Likewise.
14788 * sysdeps/htl/pt-init-specific.c: Likewise.
14789 * sysdeps/htl/pt-key-create.c: Likewise.
14790 * sysdeps/htl/pt-key-delete.c: Likewise.
14791 * sysdeps/htl/pt-key.h: Likewise.
14792 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14793 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14794 * sysdeps/htl/pt-mutex-init.c: Likewise.
14795 * sysdeps/htl/pt-mutex-lock.c: Likewise.
14796 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14797 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14798 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14799 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14800 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14801 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14802 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14803 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14804 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14805 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14806 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14807 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14808 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14809 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14810 * sysdeps/htl/pt-mutexattr.c: Likewise.
14811 * sysdeps/htl/pt-once.c: Likewise.
14812 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14813 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14814 * sysdeps/htl/pt-rwlock-init.c: Likewise.
14815 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14816 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14817 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14818 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14819 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14820 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14821 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14822 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14823 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14824 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14825 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14826 * sysdeps/htl/pt-setconcurrency.c: Likewise.
14827 * sysdeps/htl/pt-setschedparam.c: Likewise.
14828 * sysdeps/htl/pt-setschedprio.c: Likewise.
14829 * sysdeps/htl/pt-setspecific.c: Likewise.
14830 * sysdeps/htl/pt-spin.c: Likewise.
14831 * sysdeps/htl/pt-startup.c: Likewise.
14832 * sysdeps/htl/pthread.h: Likewise.
14833 * sysdeps/htl/sem-close.c: Likewise.
14834 * sysdeps/htl/sem-destroy.c: Likewise.
14835 * sysdeps/htl/sem-getvalue.c: Likewise.
14836 * sysdeps/htl/sem-init.c: Likewise.
14837 * sysdeps/htl/sem-open.c: Likewise.
14838 * sysdeps/htl/sem-post.c: Likewise.
14839 * sysdeps/htl/sem-timedwait.c: Likewise.
14840 * sysdeps/htl/sem-trywait.c: Likewise.
14841 * sysdeps/htl/sem-unlink.c: Likewise.
14842 * sysdeps/htl/sem-wait.c: Likewise.
14843 * sysdeps/hurd/htl/pt-kill.c: Likewise.
14844 * sysdeps/i386/htl/pt-machdep.h: Likewise.
14845 * sysdeps/mach/htl/pt-block.c: Likewise.
14846 * sysdeps/mach/htl/pt-spin.c: Likewise.
14847 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14848 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14849 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14850 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14851 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14852 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14853 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14854 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14855 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14856 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14857 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14858 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14859 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14860 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14861 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14862 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14863 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14864 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14865 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14866 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14867 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14868 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14869 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14870 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14871 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14872 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14873 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14874 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14875 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14876 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14877 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14878 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14879 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14880 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14881 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14882 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14883 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14884 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14885 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14886 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14887 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14888 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14889 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14890
14891 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14892 * README: Remove the mention of out-of-tree patches needed for
14893 GNU/Hurd.
14894
14895 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14896 (UTIME_NOW, UTIME_OMIT): Define macros.
14897
14898 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14899 instead of pthread_detach.
14900 (__cthread_fork): Call __pthread_create instead of pthread_create.
14901 (__cthread_keycreate): Call __pthread_key_create instead of
14902 pthread_key_create.
14903 (__cthread_getspecific): Call __pthread_getspecific instead of
14904 pthread_getspecific.
14905 (__cthread_setspecific): Call __pthread_setspecific instead of
14906 pthread_setspecific.
14907 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14908 __pthread_mutex_unlock instead of pthread_mutex_lock and
14909 pthread_mutex_unlock.
14910 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14911 ___pthread_get_cleanup_stack.
14912 (__pthread_get_cleanup_stack): New strong alias.
14913 * htl/pt-create.c: Include <pthreadP.h>.
14914 (entry_point): Call __pthread_exit instead of pthread_exit.
14915 (pthread_create): Rename to __pthread_create.
14916 (pthread_create): New strong alias.
14917 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14918 (pthread_detach): New strong alias.
14919 (__pthread_detach): Call __pthread_cond_broadcast instead of
14920 pthread_cond_broadcast.
14921 * htl/pt-exit.c: Include <pthreadP.h>.
14922 (__pthread_exit): Call __pthread_setcancelstate and
14923 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14924 __pthread_get_cleanup_stack.
14925 * htl/pt-testcancel.c: Include <pthreadP.h>.
14926 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14927 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14928 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14929 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14930 pthread_attr_getstacksize.
14931 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14932 Rename to __pthread_attr_getstackaddr.
14933 (pthread_attr_getstackaddr): New strong alias.
14934 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14935 Rename to __pthread_attr_getstacksize.
14936 (pthread_attr_getstacksize): New strong alias.
14937 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14938 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14939 (pthread_attr_setstack): New strong alias.
14940 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14941 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14942 pthread_attr_getstacksize, pthread_attr_setstacksize and
14943 pthread_attr_setstackaddr.
14944 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14945 Rename to __pthread_attr_setstackaddr.
14946 (pthread_attr_setstackaddr): New strong alias.
14947 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14948 Rename to __pthread_attr_setstacksize.
14949 (pthread_attr_setstacksize): New strong alias.
14950 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14951 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14952 pthread_exit.
14953 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14954 (__pthread_key_create): New hidden def.
14955 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14956 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14957 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14958 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14959 __pthread_setspecific, __pthread_setcancelstate,
14960 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14961 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14962 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14963 declarations.
14964 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14965 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14966 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14967 (pthread_attr_setstackaddr): New strong alias.
14968 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14969 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14970 (pthread_attr_setstacksize): New strong alias.
14971 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14972 (call_exit): Call __pthread_exit instead of pthread_exit.
14973 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14974 (_pthread_mutex_init): New hidden definition.
14975 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14976 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14977 instead of pthread_attr_init and pthread_attr_setstack.
14978
14979 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14980 __vm_deallocate instead of vm_allocate and vm_deallocate.
14981 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14982 setenv.
14983 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14984 of geteuid.
14985 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14986 strdup.
14987 * hurd/siginfo.c: Include <libioP.h>.
14988 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14989 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14990 munmap.
14991 * mach/devstream.c: Include <libioP.h>.
14992 (dealloc_ref): Call __mach_port_deallocate instead of
14993 mach_port_deallocate.
14994 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14995 Call __mach_port_deallocate instead of mach_port_deallocate.
14996 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14997 pathconf.
14998 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14999 munmap.
15000 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15001 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15002 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15003 of munmap.
15004 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15005 of close.
15006 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15007 instead of sysconf.
15008 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15009 __clock_gettime instead of clock_gettime.
15010 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15011 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15012 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15013 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15014 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15015 tcgetattr.
15016 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15017 __clock_gettime and __nanosleep instead of clock_gettime and
15018 nanosleep.
15019 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15020 __hurd_catch_signal.
15021 (hurd_catch_signal): New strong alias.
15022 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15023 __hurd_catch_signal instead of hurd_catch_signal.
15024 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15025 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15026 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15027 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15028 (_hurd_thread_sigstate): Add hidden def.
15029 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15030 mutex_unlock.
15031 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15032 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15033 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15034 __hurd_file_name_path_lookup.
15035 (hurd_file_name_path_lookup): New strong alias.
15036 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15037 hurd_file_name_path_lookup.
15038 * mach/errstring.c (mach_error_type): Add hidden def.
15039 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15040 * mach/mutex-init.c (__mutex_init): Add hidden def.
15041 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15042 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15043 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15044 * sysdeps/mach/hurd/getcwd.c
15045 (_hurd_canonicalize_directory_name_internal): Rename to
15046 __hurd_canonicalize_directory_name_internal.
15047 (_hurd_canonicalize_directory_name_internal): New strong alias.
15048 (__canonicalize_directory_name_internal, __getcwd): Call
15049 __hurd_canonicalize_directory_name_internal instead of
15050 _hurd_canonicalize_directory_name_internal.
15051 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15052 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15053 hidden defs.
15054 * sysdeps/hurd/include/hurd.h: New file.
15055 * sysdeps/hurd/include/hurd/fd.h: New file.
15056 * sysdeps/hurd/include/hurd/signal.h: New file.
15057 * sysdeps/mach/include/lock-intern.h: New file.
15058 * sysdeps/mach/include/mach.h: New file.
15059 * sysdeps/mach/include/mach/mig_support.h: New file.
15060 * sysdeps/mach/include/mach_error.h: New file.
15061 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15062 prototype.
15063 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15064 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15065 _HEADER_H_HIDDEN_DEF macro.
15066 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15067 _hurd_fd_error_signal): Add hidden prototype.
15068 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15069 hidden def.
15070 * libio/iolibio.h (_IO_puts): New hidden prototype.
15071 * libio/ioputs.c (_IO_puts): New hidden def.
15072 * sysdeps/mach/hurd/localplt.data: New file.
15073
15074 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15075 Amos Jeffries <squid3@treenet.co.nz>
15076 David Michael <fedora.dm0@gmail.com>
15077 Marco Gerards <marco@gnu.org>
15078 Marcus Brinkmann <marcus@gnu.org>
15079 Neal H. Walfield <neal@gnu.org>
15080 Pino Toscano <toscano.pino@tiscali.it>
15081 Richard Braun <rbraun@sceen.net>
15082 Roland McGrath <roland@gnu.org>
15083 Samuel Thibault <samuel.thibault@ens-lyon.org>
15084 Thomas DiModica <ricinwich@yahoo.com>
15085 Thomas Schwinge <tschwinge@gnu.org>
15086
15087 * htl: New directory.
15088 * sysdeps/htl: New directory.
15089 * sysdeps/hurd/htl: New directory.
15090 * sysdeps/i386/htl: New directory.
15091 * sysdeps/mach/htl: New directory.
15092 * sysdeps/mach/hurd/htl: New directory.
15093 * sysdeps/mach/hurd/i386/htl: New directory.
15094 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15095 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15096 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15097
15098 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15099
15100 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15101 signals in thread created for runing timers.
15102
15103 2018-04-01 Florian Weimer <fweimer@redhat.com>
15104
15105 * support/support_format_addrinfo.c (support_format_addrinfo):
15106 Include unknown error number in formatted result.
15107
15108 2018-03-29 Florian Weimer <fweimer@redhat.com>
15109
15110 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15111 capture SIGBUS.
15112
15113 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15114
15115 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15116 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15117 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15118 (__ASSUME_CLONE_BACKWARDS): Define.
15119
15120 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15121
15122 [BZ #23024]
15123 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15124 early when linux sentinel value is set.
15125
15126 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15127
15128 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15129
15130 2018-03-27 Andreas Schwab <schwab@suse.de>
15131
15132 [BZ #23005]
15133 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15134 allocation of private copy of nsaddr_list fails.
15135
15136 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15137
15138 [BZ #16552]
15139 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15140 * sysdeps/unix/sysv/linux/umount.c: ... here.
15141 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15142 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15143 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15144 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15146 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15147 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15148
15149 2018-03-26 Andreas Schwab <schwab@suse.de>
15150
15151 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15152 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15153 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15154 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15155 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15156 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15157 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15158 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15159 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15160 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15161 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15162 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15163 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15164 (R_RISCV_NUM): Define.
15165
15166 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15167
15168 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15169 TLS declaration of errno.
15170 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15171 __libc_setup_tls.
15172 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15173 (ARCH_SETUP_TLS): Likewise.
15174 * sysdeps/mach/hurd/libc-start.h: New file copied from
15175 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15176 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15177 instead of __libc_setup_tls.
15178 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15179 __libc_setup_tls before initializing libpthread and running _hurd_init
15180 which starts the signal thread.
15181 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15182 Declare function.
15183 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15184
15185 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15186
15187 [BZ #22998]
15188 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15189 after it is defined.
15190
15191 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15192 Max Horn <max@quendi.de>
15193
15194 [BZ #22644]
15195 CVE-2017-18269
15196 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15197 branch conditions.
15198 * string/test-memmove.c (do_test2): New testcase.
15199
15200 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15201
15202 * sysdeps/generic/frame.h: Remove file.
15203 * sysdeps/arm/frame.h: Likewise.
15204 * sysdeps/hppa/frame.h: Likewise.
15205 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15206 macro.
15207 (GET_FRAME): Likewise.
15208 (GET_STACK): Likewise.
15209 (CALL_SIGHANDLER): Likewise.
15210 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15211 Likewise.
15212 (GET_FRAME): Likewise.
15213 (GET_STACK): Likewise.
15214 (CALL_SIGHANDLER): Likewise.
15215 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15216 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15217 (GET_FRAME): Likewise.
15218 (GET_STACK): Likewise.
15219 (CALL_SIGHANDLER): Likewise.
15220 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15221 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15222 (GET_FRAME): Likewise.
15223 (GET_STACK): Likewise.
15224 (ADVANCE_STACK_FRAME): Likewise.
15225 (CALL_SIGHANDLER): Likewise.
15226 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15227 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15228 (GET_FRAME): Likewise.
15229 (GET_STACK): Likewise.
15230 (CALL_SIGHANDLER): Likewise.
15231 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15232 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15233 (GET_FRAME): Likewise.
15234 (GET_STACK): Likewise.
15235 (CALL_SIGHANDLER): Likewise.
15236 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15237 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15238 (GET_FRAME): Likewise.
15239 (GET_STACK): Likewise.
15240 (CALL_SIGHANDLER): Likewise.
15241 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15242 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15243 (GET_FRAME): Likewise.
15244 (GET_STACK): Likewise.
15245 (CALL_SIGHANDLER): Likewise.
15246 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15247 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15248 (GET_FRAME): Likewise.
15249 (GET_STACK): Likewise.
15250 (CALL_SIGHANDLER): Likewise.
15251 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15252 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15253 (GET_FRAME): Likewise.
15254 (GET_STACK): Likewise.
15255 (CALL_SIGHANDLER): Likewise.
15256 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15257 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15258 (GET_FRAME): Likewise.
15259 (GET_STACK): Likewise.
15260 (CALL_SIGHANDLER): Likewise.
15261 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15262 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15263 (GET_FRAME): Likewise.
15264 (GET_STACK): Likewise.
15265 (CALL_SIGHANDLER): Likewise.
15266 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15267 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15268 (GET_FRAME): Likewise.
15269 (GET_STACK): Likewise.
15270 (CALL_SIGHANDLER): Likewise.
15271 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15272 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15273 (FIRST_FRAME_POINTER): Likewise.
15274 (ADVANCE_STACK_FRAME): Likewise.
15275 (GET_STACK): Likewise.
15276 (GET_FRAME): Likewise.
15277 (CALL_SIGHANDLER): Likewise.
15278 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15279 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15280 (ADVANCE_STACK_FRAME): Likewise.
15281 (GET_STACK): Likewise.
15282 (GET_FRAME): Likewise.
15283 (CALL_SIGHANDLER): Likewise.
15284 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15285 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15286 (GET_FRAME): Likewise.
15287 (GET_STACK): Likewise.
15288 (CALL_SIGHANDLER): Likewise.
15289 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15290 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15291 (GET_FRAME): Likewise.
15292 (GET_STACK): Likewise.
15293 (CALL_SIGHANDLER): Likewise.
15294
15295 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15296
15297 * sysdeps/x86_64/backtrace.c: Move to ....
15298 * debug/backtrace.c: ... here.
15299 * sysdeps/aarch64/backtrace.c: Remove file.
15300 * sysdeps/alpha/backtrace.c: Likewise.
15301 * sysdeps/hppa/backtrace.c: Likewise.
15302 * sysdeps/ia64/backtrace.c: Likewise.
15303 * sysdeps/mips/backtrace.c: Likewise.
15304 * sysdeps/nios2/backtrace.c: Likewise.
15305 * sysdeps/riscv/backtrace.c: Likewise.
15306 * sysdeps/sh/backtrace.c: Likewise.
15307 * sysdeps/tile/backtrace.c: Likewise.
15308
15309 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15310
15311 [BZ #22987]
15312 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15313 function.
15314 (fdimf): Likewise.
15315 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15316
15317 [BZ #17343]
15318 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15319 possibly overflowing computations.
15320
15321 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15322
15323 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15324 values from Linux-specific section now that it is in the GNU section.
15325 * sysdeps/gnu/errlist.c: Regenerate.
15326
15327 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15328
15329 * math/Makefile (libm-narrow-fns): Add sub.
15330 (libm-test-funcs-narrow): Likewise.
15331 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15332 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15333 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15334 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15335 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15336 (NARROW_SUB_TRIVIAL): Likewise.
15337 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15338 macro.
15339 (__dsubl): Likewise.
15340 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15341 dsub.
15342 (CFLAGS-nldbl-dsub.c): New variable.
15343 (CFLAGS-nldbl-fsub.c): Likewise.
15344 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15345 __nldbl_dsubl.
15346 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15347 prototype.
15348 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15349 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15350 * math/auto-libm-test-in: Add tests of sub.
15351 * math/auto-libm-test-out-narrow-sub: New generated file.
15352 * math/libm-test-narrow-sub.inc: New file.
15353 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15354 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15355 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15356 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15357 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15358 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15359 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15360 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15361 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15362 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15363 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15364 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15365 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15366 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15367 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15368 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15369 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15370 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15371 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15372 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15373 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15374 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15375 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15376 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15377 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15378 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15379 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15380 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15381 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15382 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15383 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15384 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15389 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15390 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15391 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15392 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15393 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15394 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15395 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15396 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15397 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15398 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15399
15400 2018-03-19 Joseph Myers <joseph@codesourcery.com>
15401
15402 [BZ #20079]
15403 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
15404
15405 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
15406
15407 * benchtests/bench-timing.h (attribute_hidden): Undefine.
15408
15409 2018-03-18 Richard Braun <rbraun@sceen.net>
15410
15411 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
15412 thread reference.
15413
15414 2018-03-18 Agustina Arzille <avarzille@riseup.net>
15415
15416 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
15417 (__libc_cleanup_fct): Define function.
15418 (__libc_cleanup_region_start, __libc_cleanup_region_end,
15419 __libc_cleanup_end): Rewrite implementation using
15420 __attribute__ ((__cleanup__)).
15421 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
15422 * hurd/Makefile (routines): Add hurdlock.
15423 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
15424 interface.
15425 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
15426 * hurd/hurdpid.c: Include <lowlevellock.h>
15427 (_S_msg_proc_newids): Use lll_wait to synchronize.
15428 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
15429 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
15430 * mach/Makefile (lock-headers): Remove machine-lock.h.
15431 * mach/lock-intern.h: Include <lowlevellock.h> instead of
15432 <machine-lock.h>.
15433 (__spin_lock_t): New type.
15434 (__SPIN_LOCK_INITIALIZER): New macro.
15435 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
15436 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
15437 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
15438 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
15439 (__mutex_init): Initialize with lll.
15440 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
15441 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
15442 needing lll.
15443 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15444 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
15445 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
15446 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
15447 (__setpgid): Use lll for synchronization.
15448 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
15449 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
15450 instead of <cthreads.h>.
15451 (_IO_lock_inexpensive): New macro
15452 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
15453 (__libc_lock_self0): New declaration.
15454 (__libc_lock_owner_self): New macro.
15455 (__libc_key_t): Remove type.
15456 (_LIBC_LOCK_INITIALIZER): New macro.
15457 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
15458 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
15459 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
15460 __libc_lock_define_initialized_recursive,
15461 __rtld_lock_define_initialized_recursive,
15462 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
15463 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
15464 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
15465 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
15466 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
15467 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
15468 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
15469 New macros.
15470 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
15471 * hurd/hurdlock.c: New file.
15472 * hurd/hurdlock.h: New file.
15473 * mach/lowlevellock.h: New file
15474
15475 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15476
15477 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
15478 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
15479 when opening a symlink with O_NOFOLLOW.
15480 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
15481 path when flags contains O_NOFOLLOW.
15482 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
15483 if flags contains O_DIRECTORY and the result is a directory.
15484 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
15485 oneself when the pointer given in D is nul (as set by ext2fs).
15486 * sysdeps/mach/hurd/mlockall.c: New file.
15487 * sysdeps/mach/hurd/munlockall.c: New file.
15488
15489 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15490
15491 * hurd/hurdsig.c: Include <pthread.h>.
15492 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
15493 get the signal thread stack layout.
15494 * hurd/Makefile (headers): Remove threadvar.h.
15495 (inline-headers): Remove threadvar.h.
15496 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
15497 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
15498 __hurd_threadvar_max, __hurd_errno_location.
15499 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
15500 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
15501 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
15502 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
15503 unless TLS is not initialized yet, in which case we do not need a
15504 critical section yet anyway.
15505 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
15506 <machine-sp.h>.
15507 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
15508 declarations.
15509 (__hurd_threadvar_index): Remove enum.
15510 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
15511 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
15512 inlines.
15513 (__hurd_reply_port0): New variable declaration.
15514 (__hurd_local_reply_port): New macro.
15515 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
15516 (interrupted_reply_port_location): Add thread_t parameter. Use it
15517 with THREAD_TCB to access thread-local variables.
15518 (_hurdsig_abort_rpcs): Pass ss->thread to
15519 interrupted_reply_port_location.
15520 (_hurd_internal_post_signal): Likewise.
15521 (_hurdsig_init): Use presence of cthread_fork instead of
15522 __hurd_threadvar_stack_mask to start signal thread by hand.
15523 Remove signal thread threadvar initialization.
15524 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
15525 * hurd/sigunwind.c: Include <hurd/threadvar.h>
15526 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
15527 of threadvar.
15528 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
15529 __libc_lock_self0.
15530 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
15531 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
15532 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
15533 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
15534 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
15535 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
15536 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
15537 define variables.
15538 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
15539 <hurd/threadvar.h>.
15540 [IS_IN(rtld)] (rtld_errno): New variable.
15541 [IS_IN(rtld)] (__errno_location): New weak function.
15542 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
15543 * sysdeps/mach/hurd/errno.c: Remove file.
15544 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
15545 (__fork): Remove THREADVAR_SPACE macro and its use.
15546 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
15547 variable.
15548 (init): Do not initialize threadvar.
15549 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
15550 symbol.
15551 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
15552 __hurd_local_reply_port instead of threadvar.
15553 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
15554 _hurd_sigstate fields.
15555 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
15556 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
15557 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
15558 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
15559 instead of threadvar.
15560 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
15561 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
15562 (use_threadvar, global_reply_port): Remove variables.
15563 (__hurd_reply_port0): New variable.
15564 (__mig_get_reply_port): Use __hurd_local_reply_port and
15565 __hurd_reply_port0 instead of threadvar.
15566 (__mig_dealloc_reply_port): Likewise.
15567 (__mig_init): Do not initialize threadvar.
15568 * sysdeps/mach/hurd/profil.c: Fix comment.
15569 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
15570 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
15571 cthread_keycreate, cthread_getspecific, cthread_setspecific to
15572 __cthread_fork, __cthread_detach, __pthread_getattr_np,
15573 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
15574 __cthread_setspecific.
15575 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
15576 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
15577 __cthread_t instead of cthread_fork, cthread_detach,
15578 pthread_getattr_np, pthread_attr_getstack.
15579 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
15580 __cthread_keycreate.
15581 (cthread_getspecific): Rename to __cthread_getspecific.
15582 (cthread_setspecific): Rename to __cthread_setspecific.
15583 (__libc_getspecific): Use __cthread_getspecific instead of
15584 cthread_getspecific.
15585 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
15586 __cthread_keycreate instead of cthread_keycreate.
15587 (__libc_setspecific): Use __cthread_setspecific instead of
15588 cthread_setspecific.
15589 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
15590 Likewise.
15591 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
15592 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
15593 testing whether it is defined.
15594
15595 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
15596
15597 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
15598 Define macro.
15599 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
15600 * sysdeps/mach/i386/thread_state.h
15601 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
15602 i386_THREAD_STATE.
15603 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
15604 i386_THREAD_STATE.
15605 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
15606
15607 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
15608 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
15609
15610 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
15611 macros.
15612 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
15613 descriptor instead of creating a new one.
15614 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
15615
15616 * mach/setup-thread.c: Include <ldsodefs.h>.
15617 (__mach_setup_thread): Call _dl_allocate_tls, pass
15618 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
15619 MACHINE_THREAD_STATE_FLAVOR, before getting
15620 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
15621 MACHINE_THREAD_STATE_FLAVOR with the result.
15622 * hurd/hurdfault.c (_hurdsig_fault_init): Call
15623 MACHINE_THREAD_STATE_FIX_NEW.
15624 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
15625 too. Add original thread parameter.
15626
15627 2018-03-16 Joseph Myers <joseph@codesourcery.com>
15628
15629 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
15630 Remove inline function.
15631
15632 * sysdeps/i386/fpu/libm-test-ulps: Update.
15633 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15634
15635 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
15636
15637 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
15638 commit.
15639
15640 2018-03-15 Joseph Myers <joseph@codesourcery.com>
15641
15642 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
15643 (__sincos_code): Remove define and undefine.
15644 [__FAST_MATH__] (__sincos): Remove inline function.
15645 [__FAST_MATH__] (__sincosf): Remove inline function.
15646 [__FAST_MATH__] (__sincosl): Remove inline function.
15647 (__atan2l): Remove inline functions.
15648 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
15649 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
15650 function.
15651 (floor): Remove inline function.
15652 (ceil): Likewise.
15653 [__FAST_MATH__] (__ldexp_code): Remove macro.
15654 [__FAST_MATH__] (ldexp): Remove inline function.
15655 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
15656 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
15657 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
15658 [__USE_ISOC99] (__lrint_code): Remove macro.
15659 [__USE_ISOC99] (__llrint_code): Likewise.
15660 [__USE_ISOC99] (lrintf): Remove inline function.
15661 [__USE_ISOC99] (lrint): Likewise.
15662 [__USE_ISOC99] (lrintl): Likewise.
15663 [__USE_ISOC99] (llrint): Likewise.
15664 [__USE_ISOC99] (llrintf): Likewise.
15665 [__USE_ISOC99] (llrintl): Likewise.
15666
15667 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15668
15669 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
15670 (__ieee754_sqrtf): Remove.
15671 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
15672 (__ieee754_sqrtf): Remove.
15673 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
15674 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15675 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
15676 (__ieee754_sqrtf): Remove.
15677 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
15678 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
15679 (sqrtf): Remove.
15680 (sqrtl): Remove.
15681 (__ieee754_sqrt): Remove.
15682 (__ieee754_sqrtf): Remove.
15683 (__ieee754_sqrtl): Remove.
15684 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15685 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
15686 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
15687 (__ieee754_sqrtf): Remove.
15688 (__ieee754_sqrtl): Remove.
15689
15690 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15691
15692 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
15693 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
15694 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
15695 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
15696 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
15697 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15698 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
15699 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
15700 Likewise.
15701 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
15702 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
15703 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
15704 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
15705 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
15706 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
15707 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
15708 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
15709 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
15710 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15711 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
15712 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
15713 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
15714 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
15715 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
15716 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15717 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15718 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
15719 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
15720 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
15721 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
15722 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15723 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
15724 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
15725 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
15726 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
15727 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15728 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15729 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
15730 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15731 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
15732 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
15733 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
15734 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
15735 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15736 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15737 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
15738 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
15739 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
15740 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
15741
15742 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15743
15744 * include/math.h (sqrt): Declare with asm redirect.
15745 (sqrtf): Likewise.
15746 (sqrtl): Likewise.
15747 (sqrtf128): Likewise.
15748 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15749 nonlib and libnldbl with -fmath-errno.
15750 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15751 * math/w_sqrt_template.c: Likewise.
15752 * math/w_sqrtf_compat.c: Likewise.
15753 * math/w_sqrtl_compat.c: Likewise.
15754 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15755 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15756 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15757 complex.h.
15758
15759 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15760
15761 * benchtests/Makefile: Define _ISOMAC.
15762 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15763 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15764 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15765 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15766 * benchtests/bench-timing.h: Define attribute_hidden.
15767
15768 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
15769
15770 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15771 mov + lsr.
15772
15773 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15774
15775 [BZ #22963]
15776 * localedata/locales/cs_CZ (mon): Rename to...
15777 (alt_mon): This.
15778 (mon): Import from CLDR (genitive case).
15779
15780 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15781
15782 [BZ #22937]
15783 * localedata/locales/el_CY (abmon): Rename to...
15784 (ab_alt_mon): This.
15785 (abmon): Import from CLDR (abbreviated genitive case).
15786 * localedata/locales/el_GR (abmon): Rename to...
15787 (ab_alt_mon): This.
15788 (abmon): Import from CLDR (abbreviated genitive case).
15789
15790 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
15791
15792 [BZ #22932]
15793 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15794
15795 2018-03-15 Robert Buj <robert.buj@gmail.com>
15796
15797 [BZ #22848]
15798 * localedata/locales/ca_ES (abmon): Rename to...
15799 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15800 (mon): Rename to...
15801 (alt_mon): This.
15802 (abmon): Import from CLDR (genitive case, month names preceded by
15803 "de" or "d’").
15804 (mon): Likewise.
15805 (abday): Synchronize with CLDR.
15806 (d_t_fmt): Likewise.
15807 (d_fmt): Likewise.
15808 (am_pm): Likewise.
15809
15810 (LC_TIME): Improve indentation.
15811 (LC_TELEPHONE): Likewise.
15812 (LC_NAME): Likewise.
15813 (LC_ADDRESS): Likewise.
15814
15815 2018-03-14 Joseph Myers <joseph@codesourcery.com>
15816
15817 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15818 (lrintf): Remove definitions used only with old GCC.
15819 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15820 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15821 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15822 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15823 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15824 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15825 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15826 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15827 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15828 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15829 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15830 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15831 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15832 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15833 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15834 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15835 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15836 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15837 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15838 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15839 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15840 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15841 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15842 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15843 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15844 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15845 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15846 [__FAST_MATH__] (__M_SQRT2): Remove macro.
15847
15848 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15849
15850 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15851 instruction to unbreak builds with binutils 2.26 and older.
15852
15853 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15854
15855 * sysdeps/aarch64/strncmp.S (count): New macro.
15856 (strncmp): Store misaligned length in SRC1 in COUNT.
15857 (mutual_align): Adjust.
15858 (misaligned8): Load dword at a time when it is safe.
15859
15860 2018-03-12 Zack Weinberg <zackw@panix.com>
15861
15862 [BZ #1190]
15863 [BZ #19476]
15864 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15865 if the _IO_EOF_SEEN bit is already set; update commentary.
15866 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15867 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15868
15869 * support/support_openpty.c, support/tty.h: New files.
15870 * support/Makefile (libsupport-routines): Add support_openpty.
15871
15872 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15873 New test cases.
15874 * libio/Makefile (tests): Add tst-fgetc-after-eof.
15875 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15876
15877 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
15878
15879 * po/pt_BR.po: Update translations.
15880
15881 2018-03-12 David Michael <fedora.dm0@gmail.com>
15882
15883 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15884 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15885 get a port to the startup server.
15886
15887 2018-03-11 Zack Weinberg <zackw@panix.com>
15888
15889 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15890 before nldbl-compat.h.
15891
15892 2018-03-10 Zack Weinberg <zackw@panix.com>
15893
15894 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15895 math.h or math_private.h.
15896
15897 * sysdeps/alpha/fpu/s_isnan.c
15898 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15899 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15900 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15901 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15902 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15903 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15904 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15905 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15906 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15909 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15910 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15911 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15912 Include math_private.h.
15913
15914 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15915 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15916 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15917 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15918 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15919 * sysdeps/powerpc/power7/fpu/s_logb.c:
15920 Include math.h and math_private.h.
15921
15922 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15923 uses of $at in .set noat / .set at.
15924
15925 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15928 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15929 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15930 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15931 Likewise.
15932
15933 2018-03-09 Florian Weimer <fweimer@redhat.com>
15934
15935 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15936 in comment.
15937
15938 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15939
15940 [BZ #22919]
15941 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15942 Add nop before __startcontext, add explaining comments.
15943
15944 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15945
15946 [BZ #22926]
15947 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15948 empty for __SPE__.
15949 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15950 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15951 Do not build hardware transactional code for __SPE__.
15952 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15953 (__lll_trylock_elision): Likewise.
15954 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15955 (__lll_unlock_elision): Likewise.
15956
15957 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15958 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15959 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15960 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15961 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15962 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15963 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15964 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15965 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15966 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15967 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15968 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15969 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15970 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15971 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15972 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15973 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15974 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15975 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15976 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15977 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15978 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15979 (__ASSUME_CLONE_BACKWARDS): Define.
15980 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15981 __clone2 if __NR_clone2 is defined.
15982 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15983 (__ASSUME_CLONE_BACKWARDS): Likewise.
15984 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15985 (__ASSUME_CLONE_BACKWARDS): Likewise.
15986 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15987 (__ASSUME_CLONE2): Likewise.
15988 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15989 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15990 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15991 variants and the define architecture can use.
15992 (__ASSUME_CLONE_DEFAULT): Define as default.
15993 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15994 (__ASSUME_CLONE_BACKWARDS): Likewise.
15995 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15996 (__ASSUME_CLONE_BACKWARDS): Likewise.
15997 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15998 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15999
16000 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16001
16002 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16003
16004 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16005 time.
16006
16007 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16008 (do_test_limit): Likewise.
16009
16010 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16011 for every implementation.
16012 (do_test): Likewise.
16013
16014 * benchtests/bench-strncmp.c: Convert output to json.
16015
16016 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16017
16018 * io/futimens.c: Add missing start-of-file descriptive comment.
16019 * io/utime.c: Likewise.
16020 * misc/futimesat.c: Likewise.
16021 * misc/utimes.c: Likewise.
16022 * sysdeps/mach/hurd/futimesat.c: Likewise.
16023 * sysdeps/mach/hurd/utimes.c: Likewise.
16024 * sysdeps/posix/utime.c: Likewise.
16025 * sysdeps/posix/utimes.c: Likewise.
16026 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16027 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16028 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16029 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16030
16031 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16032
16033 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16034 hurd_futimes.
16035 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16036 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16037 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16038 (__futimens): Move implementation to...
16039 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16040 utime_tvalue_from_tspec): ... new helper functions.
16041 (hurd_futimens): New function.
16042 * sysdeps/mach/hurd/futimesat.c: New file.
16043 * sysdeps/mach/hurd/utimensat.c: New file.
16044
16045 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16046
16047 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16048 UTIME_OMIT): New macros.
16049 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16050 before reverting to converting time spec to time value and calling
16051 __file_utimes.
16052 * sysdeps/mach/hurd/utime-helper.c: New file.
16053 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16054 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16055 reverting to utime_tvalue_from_tval and __file_utimes.
16056 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16057 (__lutimes): Just call hurd_futimens after lookup.
16058 * sysdeps/mach/hurd/utimes.c: Likewise.
16059
16060 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16061
16062 * bits/sigaction.h: Add include guard.
16063 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16064 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16065 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16066 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16067 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16068 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16069 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16070 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16071 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16072
16073 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16074
16075 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16076 -Wmaybe-uninitialized for -Os.
16077 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16078 this disabling.
16079
16080 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16081
16082 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16083 __INO_T_MATCHES_INO64_T is defined.
16084 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16085 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16086 of definition.
16087 * dirent/alphasort64.c: Likewise.
16088 * dirent/scandir.c: Likewise.
16089 * dirent/scandir64-tail.c: Likewise.
16090 * dirent/scandir64.c: Likewise.
16091 * dirent/scandirat.c: Likewise.
16092 * dirent/scandirat64.c: Likewise.
16093 * dirent/versionsort.c: Likewise.
16094 * dirent/versionsort64.c: Likewise.
16095 * include/dirent.h: Likewise.
16096
16097 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16098 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16099 for socketpair endpoint.
16100 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16101 WRITE_BUFFER_SIZE as buffer size for sending socket.
16102 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16103 issue on system where send is implemented with sendto syscall.
16104 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16105 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16106 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16107 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16108
16109 [BZ #21269]
16110 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16111 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16112 sa_restorer for vDSO case.
16113 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16114
16115 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16116
16117 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16118 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16119 * hurd/hurd/ioctl.h: Include <mach/port.h>
16120 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16121 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16122 <mach/mach_types.h> and <mach/message.h>.
16123 (headers): Move mach/param.h to bits/mach/param.h.
16124 * sysdeps/mach/i386/mach/param.h: Move file to ...
16125 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16126 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16127 of <mach/param.h>.
16128 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16129 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16130 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16131 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16132 trivial, for C++ conformity.
16133 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16134 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16135 Process mig output through $(migheadersed).
16136 * hurd/Makefile (migheadersed): Define variable.
16137 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16138 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16139 headers.
16140 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16141 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16142 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16143 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16144 <bits/types/sigset_t.h>.
16145 [!defined __USE_GNU]: Do not #error out.
16146 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16147 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16148 Include <stddef.h> and <bits/types/sigset_t.h>
16149 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16150 instead of sighandler_t.
16151 * stdlib/errno.h (error_t): Move definition to...
16152 * bits/types/error_t.h: ... new header.
16153 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16154 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16155 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16156 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16157 * hurd/hurd.h: Include <bits/types/error_t.h>
16158 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16159 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16160 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16161 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16162 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16163 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16164 * sysdeps/mach/hurd/futimens.c: New file.
16165
16166 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16167
16168 [BZ #22918]
16169 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16170 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16171 * nscd/gai.c (__nss_hosts_database): Readd definition.
16172 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16173 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16174 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16175
16176 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16177
16178 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16179 (ifunc_one): Likewise.
16180
16181 2018-03-01 DJ Delorie <dj@delorie.com>
16182
16183 [BZ #22342]
16184 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16185 key value.
16186
16187 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16188
16189 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16190 `match_pid' parameter.
16191 (td_ta_thr_iter): Update accordingly.
16192
16193 2018-03-01 Florian Weimer <fweimer@redhat.com>
16194
16195 * nptl/Makefile (install-lib-ldscripts): Remove.
16196 (install): Remove rule.
16197 ($(inst_libdir)/libpthread.so): Likewise.
16198
16199 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16200
16201 [BZ #22896]
16202 * localedata/locales/an_ES: update month and day names,
16203 improve d_fmt, improve postal_fmt, add country_post,
16204 add country_isbn
16205
16206 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16207
16208 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16209 Ukrainian instead of Bulgarian.
16210
16211 2018-03-01 Florian Weimer <fweimer@redhat.com>
16212
16213 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16214 reference.
16215
16216 2018-03-01 Florian Weimer <fweimer@redhat.com>
16217
16218 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16219 * nptl/Makefile (routines): Add pthread_atfork.
16220 (static-only-routines): Set to pthread_atfork.
16221 (libpthread-routines): Remove pthread_atfork.
16222 (libpthread-static-only-routines): Remove.
16223 (install): Update comment.
16224 (libpthread.so): Do not install libpthread_nonshared.a.
16225 (tests): Do not link with libpthread_nonshared.a.
16226 (generated): Remove libpthread_nonshared.a.
16227 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16228 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16229 with libpthread_nonshared.a.
16230
16231 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16232
16233 [BZ #22902]
16234 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16235 (libc_feholdexcept_setroundf128): New macro.
16236 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16237
16238 [BZ #15105]
16239 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16240 libc_hidden_def.
16241 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16242 * include/inttypes.h: New file.
16243
16244 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16245
16246 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16247 -Os in two more places.
16248
16249 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16250
16251 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16252 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16253 be sorted correctly at the moment because of a bug.
16254
16255 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16256
16257 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16258 treat ñ as a primary different character, sync the collation
16259 for Spanish with CLDR.
16260 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16261 * localedata/Makefile: Add new test files.
16262 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16263 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16264 collation order.
16265 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16266 * localedata/am_ET.UTF-8.in: New test file.
16267 * localedata/az_AZ.UTF-8.in: Likewise.
16268 * localedata/be_BY.UTF-8.in: Likewise.
16269 * localedata/ber_DZ.UTF-8.in: Likewise.
16270 * localedata/ber_MA.UTF-8.in: Likewise.
16271 * localedata/bg_BG.UTF-8.in: Likewise.
16272 * localedata/br_FR.UTF-8.in: Likewise.
16273 * localedata/cmn_TW.UTF-8.in: Likewise.
16274 * localedata/crh_UA.UTF-8.in: Likewise.
16275 * localedata/csb_PL.UTF-8.in: Likewise.
16276 * localedata/cv_RU.UTF-8.in: Likewise.
16277 * localedata/cy_GB.UTF-8.in: Likewise.
16278 * localedata/dz_BT.UTF-8.in: Likewise.
16279 * localedata/eo.UTF-8.in: Likewise.
16280 * localedata/es_ES.UTF-8.in: Likewise.
16281 * localedata/fa_IR.UTF-8.in: Likewise.
16282 * localedata/fi_FI.UTF-8.in: Likewise.
16283 * localedata/fil_PH.UTF-8.in: Likewise.
16284 * localedata/fur_IT.UTF-8.in: Likewise.
16285 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16286 * localedata/ha_NG.UTF-8.in: Likewise.
16287 * localedata/ig_NG.UTF-8.in: Likewise.
16288 * localedata/ik_CA.UTF-8.in: Likewise.
16289 * localedata/kk_KZ.UTF-8.in: Likewise.
16290 * localedata/ku_TR.UTF-8.in: Likewise.
16291 * localedata/ky_KG.UTF-8.in: Likewise.
16292 * localedata/ln_CD.UTF-8.in: Likewise.
16293 * localedata/mi_NZ.UTF-8.in: Likewise.
16294 * localedata/ml_IN.UTF-8.in: Likewise.
16295 * localedata/mn_MN.UTF-8.in: Likewise.
16296 * localedata/mr_IN.UTF-8.in: Likewise.
16297 * localedata/mt_MT.UTF-8.in: Likewise.
16298 * localedata/nb_NO.UTF-8.in: Likewise.
16299 * localedata/om_KE.UTF-8.in: Likewise.
16300 * localedata/os_RU.UTF-8.in: Likewise.
16301 * localedata/ps_AF.UTF-8.in: Likewise.
16302 * localedata/ro_RO.UTF-8.in: Likewise.
16303 * localedata/ru_RU.UTF-8.in: Likewise.
16304 * localedata/sc_IT.UTF-8.in: Likewise.
16305 * localedata/se_NO.UTF-8.in: Likewise.
16306 * localedata/sq_AL.UTF-8.in: Likewise.
16307 * localedata/sv_SE.UTF-8.in: Likewise.
16308 * localedata/szl_PL.UTF-8.in: Likewise.
16309 * localedata/tg_TJ.UTF-8.in: Likewise.
16310 * localedata/tk_TM.UTF-8.in: Likewise.
16311 * localedata/tt_RU.UTF-8.in: Likewise.
16312 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16313 * localedata/ug_CN.UTF-8.in: Likewise.
16314 * localedata/uz_UZ.UTF-8.in: Likewise.
16315 * localedata/vi_VN.UTF-8.in: Likewise.
16316 * localedata/yi_US.UTF-8.in: Likewise.
16317 * localedata/yo_NG.UTF-8.in: Likewise.
16318 * localedata/zh_CN.UTF-8.in: Likewise.
16319 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16320 file and fix bugs in the collation.
16321 * localedata/locales/az_AZ: Likewise.
16322 * localedata/locales/be_BY: Likewise.
16323 * localedata/locales/ber_DZ: Likewise.
16324 * localedata/locales/ber_MA: Likewise.
16325 * localedata/locales/bg_BG: Likewise.
16326 * localedata/locales/br_FR: Likewise.
16327 * localedata/locales/br_FR@euro: Likewise.
16328 * localedata/locales/ca_ES: Likewise.
16329 * localedata/locales/cns11643_stroke: Likewise.
16330 * localedata/locales/crh_UA: Likewise.
16331 * localedata/locales/cs_CZ: Likewise.
16332 * localedata/locales/csb_PL: Likewise.
16333 * localedata/locales/cv_RU: Likewise.
16334 * localedata/locales/cy_GB: Likewise.
16335 * localedata/locales/da_DK: Likewise.
16336 * localedata/locales/dz_BT: Likewise.
16337 * localedata/locales/en_CA: Likewise.
16338 * localedata/locales/eo: Likewise.
16339 * localedata/locales/es_CU: Likewise.
16340 * localedata/locales/es_EC: Likewise.
16341 * localedata/locales/es_ES: Likewise.
16342 * localedata/locales/es_US: Likewise.
16343 * localedata/locales/et_EE: Likewise.
16344 * localedata/locales/fa_IR: Likewise.
16345 * localedata/locales/fi_FI: Likewise.
16346 * localedata/locales/fil_PH: Likewise.
16347 * localedata/locales/fur_IT: Likewise.
16348 * localedata/locales/gez_ER@abegede: Likewise.
16349 * localedata/locales/ha_NG: Likewise.
16350 * localedata/locales/hr_HR: Likewise.
16351 * localedata/locales/hsb_DE: Likewise.
16352 * localedata/locales/hu_HU: Likewise.
16353 * localedata/locales/ig_NG: Likewise.
16354 * localedata/locales/ik_CA: Likewise.
16355 * localedata/locales/is_IS: Likewise.
16356 * localedata/locales/iso14651_t1_pinyin: Likewise.
16357 * localedata/locales/kk_KZ: Likewise.
16358 * localedata/locales/ku_TR: Likewise.
16359 * localedata/locales/ky_KG: Likewise.
16360 * localedata/locales/ln_CD: Likewise.
16361 * localedata/locales/lt_LT: Likewise.
16362 * localedata/locales/lv_LV: Likewise.
16363 * localedata/locales/mi_NZ: Likewise.
16364 * localedata/locales/ml_IN: Likewise.
16365 * localedata/locales/mn_MN: Likewise.
16366 * localedata/locales/mr_IN: Likewise.
16367 * localedata/locales/mt_MT: Likewise.
16368 * localedata/locales/nb_NO: Likewise.
16369 * localedata/locales/om_KE: Likewise.
16370 * localedata/locales/os_RU: Likewise.
16371 * localedata/locales/pl_PL: Likewise.
16372 * localedata/locales/ps_AF: Likewise.
16373 * localedata/locales/ro_RO: Likewise.
16374 * localedata/locales/ru_RU: Likewise.
16375 * localedata/locales/ru_UA: Likewise.
16376 * localedata/locales/sc_IT: Likewise.
16377 * localedata/locales/se_NO: Likewise.
16378 * localedata/locales/si_LK: Likewise.
16379 * localedata/locales/sq_AL: Likewise.
16380 * localedata/locales/sv_FI: Likewise.
16381 * localedata/locales/sv_FI@euro: Likewise.
16382 * localedata/locales/sv_SE: Likewise.
16383 * localedata/locales/szl_PL: Likewise.
16384 * localedata/locales/tg_TJ: Likewise.
16385 * localedata/locales/ti_ER: Likewise.
16386 * localedata/locales/tk_TM: Likewise.
16387 * localedata/locales/tl_PH: Likewise.
16388 * localedata/locales/tr_TR: Likewise.
16389 * localedata/locales/tt_RU: Likewise.
16390 * localedata/locales/tt_RU@iqtelif: Likewise.
16391 * localedata/locales/ug_CN: Likewise.
16392 * localedata/locales/uk_UA: Likewise.
16393 * localedata/locales/uz_UZ: Likewise.
16394 * localedata/locales/uz_UZ@cyrillic: Likewise.
16395 * localedata/locales/vi_VN: Likewise.
16396 * localedata/locales/yi_US: Likewise.
16397 * localedata/locales/yo_NG: Likewise.
16398
16399 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16400
16401 * gen-locales.mk: Make test files which contain @ modifiers in their
16402 name work.
16403 * localedata/gen-locale.sh: Likewise.
16404
16405 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16406
16407 * posix/tst-fnmatch.input: Fix results for range expressions
16408 for non C locales.
16409 * posix/tst-regexloc.c: Do not use a range expression for
16410 de_DE.ISO-8859-1 locale.
16411
16412 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16413
16414 * posix/bug-regex5.c: Fix test case because with the new
16415 iso14651_t1_common file, the da_DK locale now has 6 collating elements
16416 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
16417 file.
16418
16419 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16420
16421 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
16422 downloaded from ISO, the collation order of @-. and space has changed.
16423 Therefore, this test file needed to be adapted.
16424 * localedata/fr_CA.UTF-8.in: Likewise.
16425 * localedata/fr_FR.UTF-8.in: Likewise.
16426 * localedata/uk_UA.UTF-8.in: Likewise.
16427
16428 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16429
16430 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
16431 order of ȥ in the new iso14651_t1_common file.
16432 * localedata/pl_PL.UTF-8.in: Likewise.
16433
16434 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16435
16436 * localedata/locales/iso14651_t1_common: Add sections for various
16437 scripts to the iso14651_t1_common file.
16438
16439 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16440
16441 * localedata/locales/iso14651_t1_common: Use the code point of a
16442 character in the fourth collation level instead of IGNORE for all
16443 entries which have IGNORE on all 4 levels.
16444
16445 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16446
16447 * localedata/locales/iso14651_t1_common: Add some convenient collation
16448 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
16449 rules similar to those in CLDR.
16450
16451 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16452
16453 * localedata/locales/iso14651_t1_common: The new version of this
16454 file downloaded from ISO contained several syntax errors which
16455 are fixed by this patch.
16456
16457 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16458
16459 * localedata/locales/iso14651_t1_common: replace all <U.....>
16460 with <U000.....> because glibc understands only 4 digit or 8 digit
16461
16462 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16463
16464 * localedata/locales/iso14651_t1_common: Necessary changes
16465 to make the file downloaded from ISO usable by glibc.
16466
16467 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16468
16469 [BZ #14095]
16470 * localedata/locales/iso14651_t1_common: Update file to
16471 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
16472
16473 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16474
16475 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
16476 of <nptl/pthreadP.h>
16477 (thread_attr_compare): Move function to...
16478 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
16479 * sysdeps/nptl/timer_routines.h: ... new header.
16480 * sysdeps/mach/hurd/gai_misc.h: New file.
16481
16482 2018-02-26 Joseph Myers <joseph@codesourcery.com>
16483
16484 * string/strcoll_l.c: Include <libc-diag.h>.
16485 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
16486 declarations of seq1 and seq2.
16487
16488 [BZ #15105]
16489 * stdlib/atoi.c (atoi): Use libc_hidden_def.
16490 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
16491
16492 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
16493
16494 [BZ #22433]
16495 [BZ #22807]
16496 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
16497 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
16498 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
16499 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
16500 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
16501 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
16502
16503 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16504
16505 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
16506 macros used in __ptrace_request.
16507
16508 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
16509
16510 [BZ #22792]
16511 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
16512 to $(CC).
16513 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
16514 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
16515 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
16516 <tcb-offsets.h>.
16517
16518 2018-02-23 Joseph Myers <joseph@codesourcery.com>
16519
16520 [BZ #15105]
16521 * ctype/ctype.c (tolower): Use libc_hidden_def.
16522 (toupper): Likewise.
16523 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
16524 [!_ISOMAC] (toupper): Likewise.
16525
16526 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16527
16528 * localedata/Makefile: Remove --quiet argument when
16529 installing locales
16530
16531 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16532
16533 [BZ #17438]
16534 * localedata/locales/pt_BR (LC_TIME): use / instead of -
16535 in d_fmt.
16536 * localedata/locales/pt_PT (LC_TIME): likewise
16537
16538 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16539
16540 [BZ #22646]
16541 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
16542 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
16543 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
16544
16545 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16546
16547 * sysdeps/sparc/fpu/libm-test-ulps: Update.
16548
16549 * nptl/Makefile (routines): Remove unregister-atfork.
16550 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
16551 (fork_handler_alloc): Remove function.
16552 (fork_handlers, fork_handler_init): New variables.
16553 (__fork_lock): Rename to atfork_lock.
16554 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
16555 to use a dynamic array to add/remove atfork handlers.
16556 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
16557 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
16558 Remove declaration.
16559 (fork_handler): Remove next, refcntr, and need_signal member.
16560 (__run_fork_handler_type): New enum.
16561 (__run_fork_handlers): New prototype.
16562 * nptl/register-atfork.c: Remove file.
16563 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
16564
16565 * sysdeps/nptl/nptl-signals.h: Move to ...
16566 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
16567 comments.
16568 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
16569 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
16570 unnecessary check for SIGTIMER.
16571 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
16572 remove unnecessary removal of SIGTIMER.
16573 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
16574 include-signals.h rename.
16575 * nptl/pthreadP.h: Likewise.
16576 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
16577 __is_internal_signal instead of __nptl_is_internal_signal.
16578
16579 2018-02-22 Andrew Waterman <andrew@sifive.com>
16580
16581 [BZ # 22884]
16582 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
16583 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
16584 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
16585 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
16586
16587 2018-02-22 DJ Delorie <dj@delorie.com>
16588
16589 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
16590
16591 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
16592
16593 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
16594 do_misaligned, not misaligned8.
16595
16596 2018-02-22 Steve Ellcey <sellcey@cavium.com>
16597
16598 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
16599 Add memcpy_thunderx2.
16600 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
16601 Increment to 4.
16602 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
16603 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
16604 and IS_THUNDERX2PA checks.
16605 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
16606 Use macro to set name appropriately.
16607 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
16608 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
16609 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
16610 New macro.
16611 (IS_THUNDERX2): New macro.
16612
16613 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
16614
16615 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16616
16617 2018-02-21 Zack Weinberg <zackw@panix.com>
16618
16619 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
16620 Define here, unconditionally.
16621 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
16622 * libio/libioP.h: Remove #if 0 blocks.
16623 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
16624 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
16625 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
16626
16627 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
16628 Assume weak_alias is always defined.
16629
16630 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
16631 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
16632 Remove #if 0 and #ifdef TODO blocks.
16633 Assume text_set_element is always defined.
16634
16635 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
16636 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
16637 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
16638
16639 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
16640 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
16641 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
16642 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
16643 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
16644 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
16645 Reformat bit flags for _flags field to make occupancy clearer.
16646 Update commentary.
16647 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
16648 Keep definitions consistent with those in libio/libio.h.
16649
16650 * libio/libio.h (_IO_file_flags): Remove macro.
16651 All uses changed to _flags.
16652
16653 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
16654 (__HAVE_COLUMN, _IO_BE): Don't define.
16655 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
16656 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
16657 * libio/libioP.h (EOF): Don't define.
16658 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
16659 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
16660 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
16661 testing _IO_UNIFIED_JUMPTABLES.
16662
16663 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
16664 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
16665 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
16666 (_IO_size_t): Delete; all uses changed to size_t.
16667 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
16668 (_IO_off_t): Delete; all uses changed to off_t.
16669 (_IO_off64_t): Delete; all uses changed to off64_t.
16670 (_IO_pid_t): Delete; all uses changed to pid_t.
16671 (_IO_uid_t): Delete; all uses changed to uid_t.
16672 (_IO_wint_t): Delete; all uses changed to wint_t.
16673 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
16674 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
16675 (_IO_cookie_io_functions_t): Delete; all uses changed to
16676 cookie_io_functions_t.
16677 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
16678 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
16679 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
16680 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
16681
16682 * libio/iofopncook.c: Remove unnecessary forward declarations.
16683 * libio/iolibio.h: Correct outdated commentary.
16684 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
16685 * stdio-common/fxprintf.c (__fxprintf_nocancel):
16686 Remove unnecessary casts.
16687 * stdio-common/getline.c: Use _IO_getdelim directly.
16688 Don't redefine ssize_t.
16689 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
16690 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
16691 Remove outdated comments.
16692 * stdio-common/vfscanf.c: Don't redefine va_list.
16693
16694 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
16695 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
16696 Remove preprocessor conditionals on _LIBC and __USE_GNU,
16697 which are always true, and __cplusplus, which is always false.
16698
16699 2018-02-21 Joseph Myers <joseph@codesourcery.com>
16700
16701 [BZ #15105]
16702 [BZ #19463]
16703 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
16704 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
16705 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
16706 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
16707 libc_hidden_proto.
16708 [!_ISOMAC] (putc_unlocked): Likewise.
16709 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
16710 define inline if [__USE_EXTERN_INLINES].
16711 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
16712 putc_unlocked.
16713
16714 [BZ #15105]
16715 [BZ #19463]
16716 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
16717 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
16718 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
16719 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
16720 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
16721 getc_unlocked.
16722 * time/tzfile.c (__tzfile_read): Likewise.
16723
16724 2018-02-21 Mike FABIAN <mfabian@redhat.com>
16725
16726 [BZ #22517]
16727 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
16728
16729 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16730
16731 * io/fcntl.h: Fix a typo in a comment.
16732
16733 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
16734
16735 [BZ #22862]
16736 * include/features.h: Add _ISOC11_SOURCE to test for whether to
16737 define _DEFAULT_SOURCE.
16738 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
16739
16740 2018-02-21 Florian Weimer <fweimer@redhat.com>
16741
16742 [BZ #20890]
16743 * elf/cache.c (save_cache): Call fsync on temporary file before
16744 renaming it.
16745 (save_aux_cache): Call fdatasync on temporary file before renaming
16746 it.
16747
16748 2018-02-21 Florian Weimer <fweimer@redhat.com>
16749
16750 [BZ #22787]
16751 * include/caller.h: Remove file.
16752 * elf/dl-caller.c: Likewise.
16753 * elf/Makefile (dl-routines): Remove dl-caller.
16754 (shared-only-routines): Do not add dl-caller.
16755 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16756 __check_caller.
16757 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16758 member.
16759 (dl_open_worker): Do not call __check_caller.
16760 (_dl_open): Do not set caller_dl_open member.
16761 * elf/rtld.c (_rtld_global_ro): Do not initialize
16762 _dl_check_caller member.
16763 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16764 _dl_check_caller member.
16765 (_dl_check_caller): Remove declaration.
16766 * sysdeps/unix/sysv/linux/dl-execstack.c
16767 (_dl_make_stack_executable): Do not call __check_caller.
16768
16769 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16770
16771 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16772 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16773
16774 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16775
16776 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16777 description.
16778
16779 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
16780
16781 [BZ #16335]
16782 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16783 of 199606L, 200112L, and 200809L.
16784 (_XOPEN_SOURCE): Document special values of 600 and 700.
16785 (_ISOC11_SOURCE): Document macro.
16786 (_ATFILE_SOURCE): Likewise.
16787 (_FORTIFY_SOURCE): Likewise.
16788
16789 2018-02-19 Joseph Myers <joseph@codesourcery.com>
16790
16791 [BZ #15105]
16792 [BZ #19463]
16793 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16794 and define as weak alias of __ferror_unlocked. Use
16795 libc_hidden_weak.
16796 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16797 libc_hidden_proto.
16798 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16799 function if [__USE_EXTERN_INLINES].
16800 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16801 ferror_unlocked.
16802
16803 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
16804
16805 [BZ #6889]
16806 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16807
16808 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16809
16810 [BZ #22818]
16811 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16812 the GLIBC_2.1 version.
16813
16814 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
16815
16816 [BZ #21508]
16817 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16818 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16819 intl/tst-gettext-de.po from po/de.po by removing the
16820 POT-Creation-Date line.
16821 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16822 ../po/de.po.
16823 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16824 ../po/de.po.
16825
16826 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16827
16828 * mach/Makefile (headers): Add mach/param.h.
16829 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16830 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16831 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16832 (__ptsname_r): Move implementation to...
16833 (__ptsname_internal): ... new function. Add filling the STP
16834 structure.
16835
16836 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
16837
16838 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16839 idouble to 1 ULP.
16840
16841 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
16842
16843 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16844 syntax.
16845
16846 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
16847
16848 * nptl/Makefile (tst-mutex8-ENV): Delete.
16849 * nptl/tst-mutex8.c (check_type):
16850 Add runtime check if mutex will be elided.
16851
16852 2018-02-15 Joseph Myers <joseph@codesourcery.com>
16853
16854 [BZ #20980]
16855 [BZ #21234]
16856 * manual/install.texi (Configuring and compiling): Describe
16857 passing CC and CFLAGS on configure command line, not as
16858 environment variables. Use @code markup on those variables.
16859 Specify what options go in CC and what go in CFLAGS. Note the
16860 requirement to compile with optimization.
16861 * INSTALL: Regenerated.
16862
16863 [BZ #18124]
16864 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16865 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16866 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16867 __sigprocmask instead of sigprocmask.
16868 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16869 Likewise.
16870 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16871 __sigsetjmp and sigprocmask.
16872
16873 [BZ #15105]
16874 * include/argz.h (argz_next): Use libc_hidden_proto.
16875 (__argz_next): Likewise.
16876 * string-argz-next.c (__argz_next): Use libc_hidden_def.
16877 (argz_next): Use libc_hidden_weak.
16878
16879 [BZ #15105]
16880 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16881 libc_hidden_proto.
16882 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16883 libc_hidden_def.
16884
16885 [BZ #15105]
16886 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16887 libc_hidden_proto.
16888 * libio/iofputs.c (fputs): Use libc_hidden_weak.
16889
16890 [BZ #15105]
16891 [BZ #19463]
16892 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16893 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
16894 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16895 (__feof_unlocked): New declaration, and inline function if
16896 [__USE_EXTERN_INLINES].
16897 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16898 instead of feof_unlocked.
16899 * intl/localealias.c [_LIBC] (FEOF): Likewise.
16900 * nss/nsswitch.c (nss_parse_file): Likewise.
16901 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16902 Likewise.
16903 * time/getdate.c (__getdate_r): Likewise.
16904 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16905 Define as macro to call __feof_unlocked.
16906
16907 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16908
16909 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16910
16911 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16912
16913 * math/Makefile: Remove mpexp.c and mplog.c
16914 * sysdeps/i386/fpu/mpexp.c: Delete file.
16915 * sysdeps/i386/fpu/mplog.c: Likewise.
16916 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16917 * sysdeps/ia64/fpu/mplog.c: Likewise.
16918 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16919 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16920 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16921 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16922 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16923 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16924 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16925 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16926 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16927 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16928 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16929 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16930 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16931 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16932 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16933 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16934
16935 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16936
16937 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16938
16939 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16940
16941 * sysdeps/sh/libm-test-ulps: Update.
16942
16943 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16944
16945 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16946 idouble to 1 ULP.
16947
16948 2018-02-12 Zack Weinberg <zackw@panix.com>
16949
16950 [BZ #19239]
16951 * posix/sys/types.h: Don't include sys/sysmacros.h.
16952 * misc/sys/sysmacros.h: Remove the conditional deprecation
16953 warnings for the macros defined by this header.
16954
16955 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16956
16957 * manual/probes.texi: Remove slowexp probes.
16958 * math/Makefile: Remove slowexp.
16959 * sysdeps/generic/math_private.h (__slowexp): Remove.
16960 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16961 document error bounds.
16962 * sysdeps/i386/fpu/slowexp.c: Remove.
16963 * sysdeps/ia64/fpu/slowexp.c: Remove.
16964 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16965 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16966 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16967 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16968 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16969 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16970 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16971 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16972 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16973 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16974 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16975
16976 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16977
16978 [BZ #13932]
16979 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16980 * benchtests/pow-inputs: Update comment for slow path cases.
16981 * manual/probes.texi (slowpow_p10): Delete removed probe.
16982 (slowpow_p10): Likewise.
16983 * math/Makefile: Remove halfulp.c and slowpow.c.
16984 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16985 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16986 (__halfulp): Remove.
16987 (__slowpow): Remove.
16988 * sysdeps/i386/fpu/halfulp.c: Delete file.
16989 * sysdeps/i386/fpu/slowpow.c: Likewise.
16990 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16991 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16992 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16993 improve comments and add error analysis.
16994 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16995 (power1): Remove function:
16996 (log1): Remove error argument, add error analysis.
16997 (my_log2): Remove function.
16998 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16999 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17000 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17001 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17002 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17003 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17004 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17005 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17006 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17007 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17008 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17009 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17010 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17011 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17012
17013 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17014
17015 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17016 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17017
17018 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17019
17020 [BZ #22433]
17021 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17022 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17023 and PTRACE_SETHBPREGS.
17024
17025 2018-02-10 Zack Weinberg <zackw@panix.com>
17026
17027 [BZ #22830]
17028 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17029 correctly.
17030 * malloc/tst-malloc-stats-cancellation.c: New test case.
17031 * malloc/Makefile: Add new test case.
17032
17033 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17034
17035 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17036
17037 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17038
17039 * math/Makefile (libm-narrow-fns): Add add.
17040 (libm-test-funcs-narrow): Likewise.
17041 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17042 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17043 * math/gen-auto-libm-tests.c (test_functions): Add add.
17044 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17045 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17046 (NARROW_ADD_TRIVIAL): Likewise.
17047 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17048 macro.
17049 (__daddl): Likewise.
17050 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17051 dadd.
17052 (CFLAGS-nldbl-dadd.c): New variable.
17053 (CFLAGS-nldbl-fadd.c): Likewise.
17054 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17055 __nldbl_daddl.
17056 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17057 prototype.
17058 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17059 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17060 * math/auto-libm-test-in: Add tests of add.
17061 * math/auto-libm-test-out-narrow-add: New generated file.
17062 * math/libm-test-narrow-add.inc: New file.
17063 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17064 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17065 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17066 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17067 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17068 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17069 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17070 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17071 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17072 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17073 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17074 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17075 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17076 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17077 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17078 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17079 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17080 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17081 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17082 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17083 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17084 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17085 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17086 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17087 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17088 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17089 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17090 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17091 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17092 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17093 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17094 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17099 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17100 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17101 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17102 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17103 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17104 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17105 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17106 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17107 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17108 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17109
17110 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17111 (f128-pairs): New variable.
17112 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17113 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17114 to CFLAGS.
17115 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17116 Also make tests add $(f128-loader-link) to gnulib-tests.
17117
17118 2018-02-09 DJ Delorie <dj@redhat.com>
17119
17120 [BZ #22827]
17121 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17122 64-bit ELF type for 64-bit ELF objects.
17123
17124 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17125
17126 * math/libm-test-driver.c (snan_tests_arg): New variable.
17127 * math/libm-test-support.h (snan_tests_arg): New declaration.
17128 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17129
17130 * math/Makefile (test-type-pairs): New variable.
17131 (test-type-pairs-f64xf128-yes): Likewise.
17132 (tests): Add test-narrow-macros.
17133 (libm-test-funcs-narrow): New variable.
17134 (libm-test-c-narrow): Likewise.
17135 (generated): Add $(libm-test-c-narrow).
17136 (libm-tests-base-narrow): New variable.
17137 (libm-tests-narrow): Likewise.
17138 (libm-tests): Add $(libm-tests-narrow).
17139 (libm-tests-for-type): Handle $(libm-tests-narrow).
17140 (libm-test-c-narrow-obj): New variable.
17141 ($(libm-test-c-narrow-obj)): New rule.
17142 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17143 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17144 $(o-iterator) to set dependencies and CFLAGS.
17145 * math/gen-auto-libm-tests.c: Document use for narrowing
17146 functions.
17147 (output_for_one_input_case): Take argument NARROW.
17148 (generate_output): Likewise. Update call to
17149 output_for_one_input_case.
17150 (main): Take --narrow option. Update call to generate_output.
17151 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17152 (apply_lit): Update call to _apply_lit.
17153 (apply_arglit): New function.
17154 (parse_args): Handle "a" arguments.
17155 (parse_auto_input): Handle format names using ":".
17156 * math/README.libm-test: Document "a" parameter type.
17157 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17158 (ARG_TYPE_TRUE_MIN): Likewise.
17159 (ARG_TYPE_MAX): Likwise.
17160 (ARG_MIN_EXP): Likewise.
17161 (ARG_MAX_EXP): Likewise.
17162 (ARG_MANT_DIG): Likewise.
17163 (TEST_COND_arg_ibm128): Likewise.
17164 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17165 (TEST_COND_arg_fmt): New macro.
17166 (init_max_error): Update prototype.
17167 * math/libm-test-support.c (test_ibm128): New variable.
17168 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17169 instead of using [TEST_COND_ibm128] conditional.
17170 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17171 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17172 [TEST_NARROW] (TEST_MSG): New definition.
17173 (arg_plus_zero): New macro.
17174 (arg_minus_zero): Likewise.
17175 (arg_plus_infty): Likewise.
17176 (arg_minus_infty): Likewise.
17177 (arg_qnan_value_pl): Likewise.
17178 (arg_qnan_value): Likewise.
17179 (arg_snan_value_pl): Likewise.
17180 (arg_snan_value): Likewise.
17181 (arg_max_value): Likewise.
17182 (arg_min_value): Likewise.
17183 (arg_min_subnorm_value): Likewise.
17184 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17185 (RUN_TEST_LOOP_aa_f): New macro.
17186 (TEST_SUFF): New macro.
17187 (TEST_SUFF_STR): Likewise.
17188 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17189 (TEST_COND_any_ibm128): New macro.
17190 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17191 this_func. Update call to init_max_error.
17192 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17193 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17194 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17195 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17196 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17197 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17198 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17199 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17200 * math/test-math-vector.h (TEST_NARROW): Likewise.
17201 * math/test-arg-double.h: New file.
17202 * math/test-arg-float128.h: Likewise.
17203 * math/test-arg-float32x.h: Likewise.
17204 * math/test-arg-float64.h: Likewise.
17205 * math/test-arg-float64x.h: Likewise.
17206 * math/test-arg-ldouble.h: Likewise.
17207 * math/test-math-narrow.h: Likewise.
17208 * math/test-narrow-macros.c: Likewise.
17209 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17210 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17211 test-narrow-macros-ldbl-64.
17212 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17213
17214 * math/bits/mathcalls-narrow.h: New file.
17215 * include/bits/mathcalls-narrow.h: Likewise.
17216 * math/math-narrow.h: Likewise.
17217 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17218 (__MATHCALL_NARROW_ARGS_2): Likewise.
17219 (__MATHCALL_NARROW_ARGS_3): Likewise.
17220 (__MATHCALL_NARROW_NORMAL): Likewise.
17221 (__MATHCALL_NARROW_REDIR): Likewise.
17222 (__MATHCALL_NARROW): Likewise.
17223 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17224 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17225 defined.
17226 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17227 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17228 (libm-narrow-fns): New variable.
17229 (libm-narrow-types-basic): Likewise.
17230 (libm-narrow-types-ldouble-yes): Likewise.
17231 (libm-narrow-types-float128-yes): Likewise.
17232 (libm-narrow-types-float128-alias-yes): Likewise.
17233 (libm-narrow-types): Likewise.
17234 (libm-routines): Add narrowing functions.
17235 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17236 (libc_feholdexcept_setroundf128): New macro.
17237 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17238 * sysdeps/ieee754/float128/float128_private.h: Include
17239 <math/math-narrow.h>.
17240 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17241 Undefine and redefine.
17242 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17243 (libm_alias_float_ldouble): Undefine and redefine.
17244 (libm_alias_double_ldouble): Likewise.
17245
17246 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17247
17248 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17249
17250 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17251 FPCR/FPSR.
17252
17253 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17254
17255 * manual/creature.texi: Convert references to gcc.info to gcc.
17256 * manual/stdio.texi: Likewise.
17257 * manual/string.texi: Likewise.
17258
17259 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17260
17261 [BZ #17979]
17262 * posix/bits/types.h (__int_least8_t): New typedef.
17263 (__uint_least8_t): Likewise.
17264 (__int_least16_t): Likewise.
17265 (__uint_least16_t): Likewise.
17266 (__int_least32_t): Likewise.
17267 (__uint_least32_t): Likewise.
17268 (__int_least64_t): Likewise.
17269 (__uint_least64_t): Likewise.
17270 * sysdeps/generic/stdint.h (int_least8_t): Define using
17271 __int_least8_t.
17272 (int_least16_t): Define using __int_least16_t.
17273 (int_least32_t): Define using __int_least32_t.
17274 (int_least64_t): Define using __int_least64_t.
17275 (uint_least8_t): Define using __uint_least8_t.
17276 (uint_least16_t): Define using __uint_least16_t.
17277 (uint_least32_t): Define using __uint_least32_t.
17278 (uint_least64_t): Define using __uint_least64_t.
17279 * wcsmbs/uchar.h: Include <bits/types.h>.
17280 (char16_t): Define using __uint_least16_t conditional only on
17281 [!__USE_ISOCXX11].
17282 (char32_t): Define using __uint_least32_t conditional only on
17283 [!__USE_ISOCXX11].
17284 * wcsmbs/test-char-types.c: New file.
17285 * wcsmbs/Makefile (tests): Add test-char-types.
17286
17287 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17288 version to 4.0.1.
17289
17290 2018-02-07 Zack Weinberg <zackw@panix.com>
17291
17292 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17293 Delete all contents except for definitions of _G_HAVE_MMAP and
17294 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17295 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17296 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17297 change as above.
17298
17299 * libio/libio.h: Don't include bits/_G_config.h here.
17300 Include stddef.h with __need_wchar_t defined. Include
17301 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17302 Define _IO_iconv_t here, directly.
17303 Don't define _IO_HAVE_ST_BLKSIZE.
17304 * libio/libioP.h: Include _G_config.h here. Move include of
17305 shlib-compat.h up with rest of includes. Simplify conditionals
17306 controlling definition of _IO_JUMPS_OFFSET.
17307
17308 * csu/init.c: Remove always-true #if around entire file.
17309 Don't include stdio.h. Set _IO_stdin_used to hardwired
17310 constant 0x20001, and update commentary.
17311 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17312 Replace all uses of _G_va_list with __gnuc_va_list.
17313 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17314 instead of #if _IO_HAVE_ST_BLKSIZE.
17315 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17316 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17317 not #ifdef.
17318
17319 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17320 multiple-include guard to match.
17321 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17322 into this file.
17323 Remove preprocessor conditionals that are always true and/or
17324 redundant to other preprocessor conditionals in the same nest.
17325 Include shlib-compat.h unconditionally.
17326 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17327 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17328 defined after including stdio.h.
17329 Use __BEGIN_DECLS/__END_DECLS.
17330
17331 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17332 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17333 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17334
17335 2018-02-07 Zack Weinberg <zackw@panix.com>
17336
17337 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17338 New single-type headers split from _G_config.h.
17339 * libio/bits/types/cookie_io_functions_t.h
17340 * libio/bits/types/struct_FILE.h
17341 New single-type headers split from libio.h.
17342
17343 * libio/Makefile: Install the above new headers. Don't install
17344 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17345 bits/libio-ldbl.h.
17346 * libio/_G_config.h, libio/libio.h: Delete file.
17347
17348 * libio/bits/libio.h: Remove improper-inclusion guard.
17349 Include stdio.h and don't repeat anything that it does.
17350 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17351 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17352 __io_read_fn as cookie_read_function_t,
17353 __io_write_fn as cookie_write_function_t,
17354 __io_seek_fn as cookie_seek_function_t,
17355 __io_close_fn as cookie_close_function_t,
17356 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17357 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17358 here, in the "compatibility defines" section. Remove an #if 0
17359 block. Use the "body" macros from bits/types/struct_FILE.h to
17360 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17361 and _IO_ferror_unlocked.
17362 Move prototypes of __uflow and __overflow...
17363
17364 * libio/stdio.h: ...here. Don't include bits/libio.h.
17365 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17366 directly from stdarg.h. Include bits/types/__fpos_t.h,
17367 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17368 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17369 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17370 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17371 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17372 __ssize_t, not _IO_ssize_t. Unconditionally define
17373 BUFSIZ as 8192 and EOF as (-1).
17374
17375 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17376 macros from bits/types/struct_FILE.h instead of _IO_* macros
17377 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17378 instead of _IO_ssize_t.
17379 * libio/bits/stdio2.h: Similarly.
17380
17381 * libio/iolibio.h: Add multiple-include guard.
17382 Include bits/libio.h after stdio.h.
17383 * libio/libioP.h: Add multiple-include guard.
17384 Include stdio.h and bits/libio.h before iolibio.h.
17385
17386 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
17387 * include/bits/types/cookie_io_functions_t.h
17388 * include/bits/types/struct_FILE.h: New wrappers.
17389
17390 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
17391 Get definitions of _G_fpos_t and _G_fpos64_t from
17392 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17393 respectively. Remove improper-inclusion guards.
17394
17395 * conform/data/stdio.h-data: Update expectations of va_list.
17396 * scripts/check-installed-headers.sh: Remove special case for
17397 libio.h and _G_config.h.
17398
17399 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17400
17401 [BZ #15105]
17402 [BZ #19463]
17403 * include/sys/sysmacros.h [!_ISOMAC]
17404 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
17405 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
17406 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
17407 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
17408 libc_hidden_proto.
17409 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
17410 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
17411 Likewise.
17412 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
17413 Undefine and redefine to add use __gnu_dev_ prefix.
17414 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
17415 Likewise.
17416 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
17417 and define as hidden inline function.
17418 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
17419 Likewise.
17420 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
17421 Likewise.
17422 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
17423 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
17424 (gnu_dev_minor): Likewise.
17425 (gnu_dev_makedev): Likewise.
17426 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
17427 makedev.
17428 * posix/wordexp.c (exec_comm_child): Likewise.
17429 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
17430 instead of minor and __gnu_dev_major instead of major.
17431 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
17432 __gnu_dev_major instead of major.
17433 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
17434 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
17435 instead of gnu_dev_minor.
17436 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
17437 (SLAVE_P): Likewise.
17438 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
17439 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
17440 instead of major.
17441
17442 [BZ #21313]
17443 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
17444 in another place.
17445 * locale/weightwc.h (findidx): Likewise.
17446
17447 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
17448
17449 * manual/probes.texi (slowlog): Delete documentation of removed probe.
17450 (slowlog_inexact): Likewise
17451 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
17452 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
17453
17454 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
17455
17456 [BZ #22797]
17457 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
17458 missing second underscore to parameter name.
17459
17460 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17461
17462 [BZ #14508]
17463 [BZ #15512]
17464 [BZ #17082]
17465 [BZ #20530]
17466 * bits/byteswap.h: Update file comment. Do not include
17467 <bits/byteswap-16.h>.
17468 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
17469 constant.
17470 (__bswap_16): Define as inline function.
17471 (__bswap_constant_32): Reformat definition.
17472 (__bswap_32): Always define as inline function, not macro, using
17473 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
17474 otherwise __bswap_constant_32.
17475 (__bswap_constant_64): Reformat definition. Do not use
17476 __extension__ here.
17477 (__bswap_64): Always define as inline function, not macro. Use
17478 __extension__ on function definition. Use __builtin_bswap64 if
17479 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
17480 * string/test-endian-file-scope.c: New file.
17481 * string/test-endian-sign-conversion.c: Likewise.
17482 * string/Makefile (headers): Remove bits/byteswap-16.h.
17483 (tests): Add test-endian-file-scope and
17484 test-endian-sign-conversion.
17485 (CFLAGS-test-endian-sign-conversion.c): New variable.
17486 * bits/byteswap-16.h: Remove file.
17487 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
17488 * sysdeps/ia64/bits/byteswap.h: Likewise.
17489 * sysdeps/m68k/bits/byteswap.h: Likewise.
17490 * sysdeps/s390/bits/byteswap-16.h: Likewise.
17491 * sysdeps/s390/bits/byteswap.h: Likewise.
17492 * sysdeps/tile/bits/byteswap.h: Likewise.
17493 * sysdeps/x86/bits/byteswap-16.h: Likewise.
17494 * sysdeps/x86/bits/byteswap.h: Likewise.
17495
17496 [BZ #17721]
17497 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
17498 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
17499 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
17500 199901L] (__restrict): Define to restrict.
17501
17502 [BZ #19667]
17503 * string/testcopy.c: Include <support/support.h>. Do not include
17504 <malloc.h>. Use <support/test-driver.c>.
17505 (main): Rename to do_test. Make static. Use xmalloc instead of
17506 malloc.
17507
17508 [BZ #13575]
17509 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
17510 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
17511 (SSIZE_MAX): Define to INT_MAX.
17512 * posix/test-ssize-max.c: New file.
17513 * posix/Makefile (tests): Add test-ssize-max.
17514
17515 [BZ #19668]
17516 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
17517 <support/support.h>. Do not include <malloc.h>.
17518 (query_auxv): Use xmalloc instead of malloc.
17519
17520 [BZ #14553]
17521 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
17522 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
17523 instead of loff_t.
17524
17525 2018-02-06 Florian Weimer <fweimer@redhat.com>
17526
17527 [BZ #18023]
17528 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17529 Use scratch_buffer instead of extend_alloca.
17530
17531 2018-02-06 Zack Weinberg <zackw@panix.com>
17532
17533 * libio/stdio.h: Don't define getc or putc as macros.
17534 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
17535 not _IO_getc and _IO_putc.
17536
17537 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
17538 * stdio-common/tstgetln.c: Don't redefine ssize_t.
17539
17540 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17541
17542 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
17543 (TCP_FASTOPEN_NO_COOKIE): Likewise.
17544
17545 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
17546
17547 [BZ #14890]
17548 * elf/elf.h (NT_PRFPREG): New macro.
17549 (NT_S390_VXRS_LOW): Likewise.
17550 (NT_S390_VXRS_HIGH): Likewise.
17551 (NT_S390_GS_CB): Likewise.
17552 (NT_S390_GS_BC): Likewise.
17553 (NT_S390_RI_CB): Likewise.
17554
17555 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17556 (MAP_SYNC): New macro.
17557 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
17558 Likewise.
17559 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17560 (MAP_SYNC): Likewise.
17561 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17562 (MAP_SYNC): Likewise.
17563 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17564 (MAP_SYNC): Likewise.
17565 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17566 (MAP_SYNC): Likewise.
17567 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17568 (MAP_SYNC): Likewise.
17569 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17570 (MAP_SYNC): Likewise.
17571 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
17572 Likewise.
17573 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
17574 Likewise.
17575
17576 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
17577 (MAP_SHARED_VALIDATE): New macro.
17578 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17579 (MAP_SHARED_VALIDATE): Likewise.
17580
17581 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17582
17583 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
17584 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
17585 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17586
17587 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17588
17589 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
17590 (DT_NUM): Updated to 35.
17591
17592 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17593
17594 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
17595 __builtin_expect with __glibc_likely and __glibc_unlikely.
17596 (elf_machine_rela): Likewise.
17597 (elf_machine_lazy_rel): Likewise.
17598
17599 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17600
17601 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
17602 __builtin_expect with __glibc_likely and __glibc_unlikely.
17603 (elf_machine_lazy_rel): Likewise.
17604
17605 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17606
17607 [BZ #22638]
17608 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
17609 SHARED.
17610 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
17611
17612 2018-02-05 Andreas Schwab <schwab@suse.de>
17613
17614 [BZ #22761]
17615 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
17616 string.
17617
17618 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
17619
17620 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
17621 not check against PTHREAD_STACK_MIN.
17622
17623 2018-02-02 Sean McKean <smckean83@gmail.com>
17624
17625 [BZ #22735]
17626 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
17627
17628 2018-02-02 Florian Weimer <fweimer@redhat.com>
17629
17630 [BZ #22753]
17631 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
17632 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
17633 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
17634 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
17635 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
17636 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
17637 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
17638 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
17639 * manual/llio.texi (Scatter-Gather): Mention offset -1.
17640 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
17641 * misc/tst-preadvwritev2.c (do_test): Call it.
17642 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
17643
17644 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
17645
17646 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
17647
17648 * benchtests/bench-memcmp.c: Print json instead of plain text.
17649
17650 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
17651 every test run.
17652
17653 2018-02-01 Joseph Myers <joseph@codesourcery.com>
17654
17655 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17656 version to 4.15.
17657 (s390_sthyi): New syscall.
17658
17659 * sysdeps/generic/ldbl-classify-compat.h: New file.
17660 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
17661 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
17662 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
17663 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
17664 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
17665 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
17666 * sysdeps/ieee754/dbl-64/s_finite.c: Include
17667 <ldbl-classify-compat.h>.
17668 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17669 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
17670 <ldbl-classify-compat.h>.
17671 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17672 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
17673 <ldbl-classify-compat.h>.
17674 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17675 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
17676 <ldbl-classify-compat.h>.
17677 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17678 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
17679 <ldbl-classify-compat.h>.
17680 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17681 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
17682 <ldbl-classify-compat.h>.
17683 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17684 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
17685 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
17686 * sysdeps/m68k/coldfire/math_private.h: Remove file.
17687 * sysdeps/microblaze/math_private.h: Likewise.
17688 * sysdeps/nios2/math_private.h: Likewise.
17689 * sysdeps/sh/math_private.h: Likewise.
17690
17691 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
17692 * sysdeps/m68k/coldfire/math_private.h: ... here.
17693 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
17694 * sysdeps/tile/math_private.h: Likewise.
17695 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
17696 Remove macro.
17697 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
17698 Likewise.
17699
17700 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
17701 Remove macro.
17702 (libc_fetestexcept): Likewise.
17703 (libc_feupdateenv_test): Likewise.
17704 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
17705 (libc_fetestexcept): Likewise.
17706 (libc_feupdateenv_test): Likewise.
17707 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
17708 (libc_fetestexcept): Likewise.
17709 (libc_feupdateenv_test): Likewise.
17710 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
17711 (libc_fetestexcept): Likewise.
17712 (libc_feupdateenv_test): Likewise.
17713
17714 * sysdeps/generic/math_private.h
17715 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
17716 New inline function.
17717 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
17718 Likewise.
17719
17720 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
17721 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
17722 * sysdeps/generic/math_private.h
17723 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
17724 inline function.
17725 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
17726 Likewise.
17727 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
17728 Likewise.
17729 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
17730 Likewise.
17731 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
17732 Likewise.
17733 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
17734 Likewise.
17735 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
17736 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
17737 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
17738 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
17739 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
17740 (__fegetenv): Likewise.
17741 (fesetenv): Likewise.
17742 (__fesetenv): Likewise.
17743 (feupdateenv): Likewise.
17744 (__feupdateenv): Likewise.
17745 (fegetround): Likewise.
17746 (__fegetround): Likewise.
17747 (fesetround): Likewise.
17748 (__fesetround): Likewise.
17749
17750 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17751 (feraiseexcept): New macro.
17752 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17753 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17754 Remove macro.
17755 (__feraiseexcept): Likewise.
17756 (feclearexcept): Likewise.
17757 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17758 (__feraiseexcept): Likewise.
17759 (feclearexcept): Likewise.
17760 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17761 (__feraiseexcept): Likewise.
17762 (feclearexcept): Likewise.
17763 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17764 (__feraiseexcept): Likewise.
17765 (feclearexcept): Likewise.
17766 (fetestexcept): Likewise.
17767
17768 * sysdeps/m68k/coldfire/math-tests.h: New file.
17769
17770 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17771 * sysdeps/m68k/bits/fenv.h: ... here.
17772 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17773 not define.
17774 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17775 Likewise.
17776 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17777 Likewise.
17778 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17779 Likewise.
17780 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17781 Likewise.
17782 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17783 Define to 0.
17784 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17785 (__FE_UNDEFINED): New enum constant.
17786 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17787 Do not define.
17788 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17789 Likewise.
17790 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17791 Likewise.
17792 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17793 to match generic bits/fenv.h.
17794 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17795 Do not define.
17796
17797 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17798 packed on bits.
17799 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17800 * soft-fp/half.h (union _FP_UNION_H): Likewise.
17801 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17802 * soft-fp/single.h (union _FP_UNION_S): Likewise.
17803
17804 2018-02-01 Carlos O'Donell <carlos@redhat.com>
17805 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
17806 Joseph Myers <joseph@codesourcery.com>
17807
17808 [BZ #21314]
17809 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17810 (__log1p): Disable -Wmaybe-uninitialized for -Os around
17811 computation using c.
17812 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17813 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17814 computation using c.
17815
17816 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17817
17818 * version.h (RELEASE): Set to "development".
17819 (VERSION): Set to "2.27.9000".
17820 * NEWS (2.28): New section.
17821
17822 * version.h (RELEASE): Set to "stable".
17823 (VERSION): Set to "2.27".
17824 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17825
17826 * NEWS: Add the list of bugs fixed in 2.27.
17827
17828 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17829
17830 * stdlib/test-atexit-race-common.c (do_test): Check stack size
17831 against PTHREAD_STACK_MIN.
17832
17833 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
17834
17835 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17836 New entries.
17837 (Rafal Luzynski, Andreas Schwab): Update.
17838
17839 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
17840
17841 [BZ #10871]
17842 * NEWS: List the languages which actually use the alternative
17843 months feature in this release. Also explain that "alt_mon" and
17844 "ab_alt_mon" are optional.
17845
17846 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
17847
17848 [BZ #22765]
17849 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17850
17851 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
17852
17853 * manual/install.texi (Tools for Compilation): Update the newest
17854 versions of gcc, binutils, texinfo, gawk, bison, and sed.
17855 * INSTALL: Regenerated.
17856
17857 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17858
17859 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17860 instead of __builtin_expect.
17861
17862 2018-01-30 Florian Weimer <fweimer@redhat.com>
17863
17864 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17865 data.
17866 * nss/tst-nss-getpwent.c (do_test): Likewise.
17867
17868 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
17869
17870 [BZ #10871]
17871 * localedata/locales/hr_HR (mon): Rename to...
17872 (alt_mon): This.
17873 (mon): Import from CLDR (genitive case).
17874 (d_t_fmt): Update the comment.
17875
17876 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
17877
17878 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17879 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17880 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17881
17882 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17883
17884 * mach/Versions: Fix version when __mach_host_self_ was added.
17885 * hurd/Versions: Fix version when _hurd_exec_paths was added.
17886 * sysdeps/mach/hurd/i386/ld.abilist: New file.
17887 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17888 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17889 * sysdeps/mach/hurd/i386/libc.abilist: New file.
17890 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17891 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17892 * sysdeps/mach/hurd/i386/libm.abilist: New file.
17893 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17894 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17895 * sysdeps/mach/hurd/i386/librt.abilist: New file.
17896 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17897 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17898 || to respect codestyle.
17899 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17900 (do_test_bz20181): Rename accordingly.
17901 * malloc/malloc.c: Include <assert.h>.
17902 (assert): Do not define.
17903 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17904 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17905 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17906 * sysdeps/mach/hurd/hp-timing.h: New file.
17907 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17908
17909 2018-01-29 Darius Rad <darius@bluespec.com>
17910
17911 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17912
17913 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17914
17915 * sysdeps/init_array/crti.S (.section .init_array): Add
17916 PREINIT_FUNCTION when defined.
17917 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17918 * config.h.in: Regenerate.
17919 * manual/platform.texi: Add RISC-V documenation for
17920 __riscv_flush_icache.
17921 * sysdeps/riscv/__longjmp.S: New file.
17922 * sysdeps/riscv/backtrace.c: Likewise.
17923 * sysdeps/riscv/bits/endian.h: Likewise.
17924 * sysdeps/riscv/bits/setjmp.h: Likewise.
17925 * sysdeps/riscv/bits/wordsize.h: Likewise.
17926 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17927 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17928 * sysdeps/riscv/dl-trampoline.S: Likewise.
17929 * sysdeps/riscv/gccframe.h: Likewise.
17930 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17931 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17932 * sysdeps/riscv/machine-gmon.h: Likewise.
17933 * sysdeps/riscv/memusage.h: Likewise.
17934 * sysdeps/riscv/setjmp.S: Likewise.
17935 * sysdeps/riscv/sys/asm.h: Likewise.
17936 * sysdeps/riscv/tls-macros.h: Likewise.
17937 * sysdeps/riscv/dl-tls.h: New file.
17938 * sysdeps/riscv/libc-tls.c: Likewise.
17939 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17940 * sysdeps/riscv/nptl/tls.h: Likewise.
17941 * sysdeps/riscv/stackinfo.h: Likewise.
17942 * sysdeps/riscv/bits/fenv.h: New file.
17943 * sysdeps/riscv/e_sqrtl.c: Likewise.
17944 * sysdeps/riscv/fpu_control.h: Likewise.
17945 * sysdeps/riscv/math-tests.h: Likewise.
17946 * sysdeps/riscv/nofpu/Implies: Likewise.
17947 * sysdeps/riscv/sfp-machine.h: Likewise.
17948 * sysdeps/riscv/tininess.h: Likewise.
17949 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17950 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17951 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17952 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17953 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17954 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17955 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17956 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17957 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17958 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17959 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17960 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17961 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17962 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17963 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17964 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17965 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17966 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17967 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17968 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17969 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17970 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17971 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17972 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17973 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17974 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17975 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17976 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17977 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17978 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17979 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17980 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17981 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17982 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17983 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17984 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17985 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17986 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17987 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17988 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17989 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17990 * sysdeps/riscv/rvf/math_private.h: Likewise.
17991 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17992 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17993 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17994 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17995 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17996 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17997 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17998 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17999 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18000 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18001 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18002 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18003 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18004 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18005 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18006 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18007 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18008 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18009 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18010 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18011 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18012 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18013 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18014 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18015 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18016 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18017 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18018 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18019 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18020 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18021 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18022 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18023 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18024 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18025 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18026 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18027 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18028 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18029 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18030 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18031 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18032 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18033 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18034 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18035 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18036 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18037 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18038 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18039 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18040 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18041 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18042 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18043 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18044 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18045 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18046 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18047 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18048 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18049 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18050 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18051 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18054 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18055 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18059 * sysdeps/riscv/Implies: New file.
18060 * sysdeps/riscv/Makefile: Likewise.
18061 * sysdeps/riscv/configure: Likewise.
18062 * sysdeps/riscv/configure.ac: Likewise.
18063 * sysdeps/riscv/nptl/Makefile: Likewise.
18064 * sysdeps/riscv/preconfigure: Likewise.
18065 * sysdeps/riscv/rv64/Implies-after: Likewise.
18066 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18067 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18068 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18069 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18070 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18071 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18072 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18073 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18074 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18075 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18076 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18077 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18078 (Config): Likewise.
18079
18080 2018-01-29 Florian Weimer <fweimer@redhat.com>
18081
18082 [BZ #22701]
18083 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18084 libnsl_hidden_proto.
18085 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18086 libnsl_hidden_proto.
18087 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18088 * nis/Makefile (libnsl-routines): Add nss-default only for
18089 build-obsolete-nsl.
18090 * nis/nis_defaults.c (__nis_default_ttl): Add
18091 libnsl_hidden_nolink_def.
18092 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18093 declaration.
18094 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18095 * nis/ypclnt.c (yp_maplist): Likewise.
18096
18097 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18098
18099 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18100 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18101
18102 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18103
18104 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18105 clean -dxfq for git updates when replacing sources.
18106
18107 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18108 --disable-libcilkrts unconditionally, not just for the final GCC
18109 build for Hurd.
18110
18111 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18112 version to 4.15.
18113
18114 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18115
18116 [BZ #10871]
18117 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18118 case).
18119
18120 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18121
18122 [BZ #10871]
18123 * localedata/locales/be_BY (mon): Rename to...
18124 (alt_mon): This, then synchronize with CLDR (nominative case).
18125 (abmon): Rename to...
18126 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18127 (mon): Import from CLDR (genitive case).
18128 (abmon): Likewise.
18129 * localedata/locales/be_BY@latin (mon): Rename to...
18130 (alt_mon): This.
18131 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18132
18133 * localedata/locales/be_BY@latin (lang_name): Reworded to
18134 "biełaruskaja mova".
18135
18136 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18137
18138 [BZ #10871]
18139 * localedata/locales/el_CY (mon): Renamed to...
18140 (alt_mon): This.
18141 (mon): Import from CLDR (genitive case).
18142 * localedata/locales/el_GR: Likewise.
18143
18144 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18145
18146 [BZ #10871]
18147 * localedata/locales/ru_RU (mon): Rename to...
18148 (alt_mon): This.
18149 (abmon): Rename to...
18150 (ab_alt_mon): This.
18151 (mon): Import from CLDR (genitive case).
18152 (abmon): Copy from the old content except the 5th month which is
18153 now in the genitive case, even when abbreviated.
18154 * localedata/locales/ru_UA: Likewise.
18155 * time/tst-strptime.c (day_tests): Add an actual example of
18156 a difference between %b and %Ob in Russian.
18157
18158 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18159
18160 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18161 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18162 a `c' variable.
18163 * resolv/res-close.c: Include <stdlib.h>.
18164 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18165 <sys/wait.h>, <time.h>, <sys/uio.h>.
18166 (NOT_CANCEL_H): Add inclusion guard.
18167 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18168 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18169 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18170 return 0.
18171 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18172 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18173 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18174 instead of void *.
18175 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18176 timer_ptr2id to cast struct timer_node * to void *.
18177 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18178 --disable-libcilkrts to gcc configure.
18179 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18180 and make them the default for now.
18181 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18182 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18183 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18184 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18185 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18186 MACH_IPC_COMPAT.
18187 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18188 __task_terminate would ever return successfully.
18189 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18190 to global scope.
18191 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18192 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18193 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18194 critical section to make code simpler and avoid warning.
18195 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18196 critical section to make code simpler and avoid warning.
18197 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18198 const char * instead of char *.
18199 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18200 __hurd_file_name_split, hurd_file_name_split,
18201 __hurd_directory_name_split, hurd_directory_name_split,
18202 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18203 hurd_file_name_path_lookup): Make lookup function parameter take a
18204 const char *name instead of char *name.
18205 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18206 __hurd_directory_name_split): Likewise.
18207 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18208 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18209 * sysdeps/mach/hurd/check_native.c: New file.
18210 * sysdeps/mach/hurd/check_pf.c: New file.
18211 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18212 (__freeifaddrs): Define macro to freeifaddrs.
18213 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18214 * sysdeps/mach/libmachuser.abilist: New file.
18215 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18216 (do_test_bz20181): Rename accordingly.
18217 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18218 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18219 <sys/mount.h>.
18220 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18221 version only if __USE_EXTERN_INLINES is defined.
18222 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18223 __hurd_sockfail): Likewise.
18224 (_hurd_fd_get): Always declare functions, and provide inline versions
18225 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18226 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18227 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18228 _hurd_port_set): Always declare functions, and provide inline versions
18229 only if __USE_EXTERN_INLINES and _LIBC are defined and
18230 IS_IN(libc).
18231 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18232 _hurd_critical_section_unlock): Likewise.
18233 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18234 * __hurd_threadvar_location): Likewise.
18235 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18236 _hurd_userlink_clear): Likewise.
18237 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18238 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18239 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18240 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18241 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18242 __spin_lock_locked): Likewise.
18243 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18244 __spin_lock_locked): Likewise.
18245 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18246 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18247 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18248 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18249 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18250 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18251 _POSIX_NO_TRUNC): Define to 0.
18252 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18253 check size against PTHREAD_STACK_MIN.
18254 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18255 IS_IN(libpthread)]: Include <sigsetops.h>.
18256 * mach/Makefile (user-interfaces): Add mach/gnumach.
18257 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18258 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18259 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18260 instead of invalid -1.
18261 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18262 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18263 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18264 <net/ppp_defs.h>.
18265
18266 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18267
18268 * hurd/fcntl-internal.h: New file.
18269
18270 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18271
18272 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18273
18274 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18275
18276 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18277
18278 [BZ #22701]
18279 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18280 Build only shared objects.
18281
18282 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18283
18284 * README: Update for hppa.
18285
18286 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18287
18288 * sysdeps/sparc/fpu/libm-test-ulps: Update
18289 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18290
18291 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18292
18293 Revert:
18294
18295 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18296
18297 [BZ #22563]
18298 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18299 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18300 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18301 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18302 to feature_1.
18303
18304 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18305
18306 [BZ #22563]
18307 * bits/types/__cancel_jmp_buf_tag.h: New file.
18308 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18309 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18310 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18311 * nptl/Makefile (headers): Add
18312 bits/types/__cancel_jmp_buf_tag.h.
18313 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18314 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18315 * sysdeps/nptl/pthread.h: Include
18316 <bits/types/__cancel_jmp_buf_tag.h>.
18317 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18318 __cancel_jmp_buf.
18319 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18320
18321 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18322
18323 [BZ #10871]
18324 * localedata/locales/uk_UA (mon): Renamed to...
18325 (alt_mon): This.
18326 (alt_digits): "0" removed and then renamed to...
18327 (mon): This.
18328 (date_fmt): Definition changed not to use the alternative
18329 digits hack.
18330
18331 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18332
18333 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18334 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18335 * elf/elf.h (EF_RISCV_RVC): New define.
18336 (EF_RISCV_FLOAT_ABI): Likewise.
18337 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18338 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18339 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18340 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18341 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18342 define.
18343 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18344
18345 2018-01-25 Andreas Schwab <schwab@suse.de>
18346
18347 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18348 single quotes.
18349 * sysdeps/gnu/configure: Regenerate.
18350 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18351 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18353 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18354 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18355 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18356 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18357 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18358
18359 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18360
18361 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18362 URL, and run autoconf, make it the default for now.
18363
18364 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18365
18366 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18367 soft-float ColdFire configuration.
18368
18369 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18370 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18371 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18372
18373 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18374 MicroBlaze file.
18375
18376 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18377 ....
18378 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18379 ... here.
18380 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18381 New file.
18382
18383 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18384 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18385 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18386 file.
18387
18388 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18389
18390 [BZ #22742]
18391 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18392 Rename to __reserved and add comment.
18393 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18394 Rename to __reserved.
18395
18396 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18397
18398 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18399 i686-gnu configurations.
18400 (Context.run_builds): Include mig, gnumach and hurd in components
18401 considered.
18402 (Context.checkout): Add mig, gnumach and hurd to components.
18403 (Context.checkout_tar): Add URL mappings for mig, gnumach and
18404 hurd.
18405 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
18406 (Config.build): Install gnumach headers, build mig and install
18407 hurd headers for 'gnu' OS.
18408 (Config.install_gnumach_headers): New function.
18409 (Config.install_hurd_headers): Likewise.
18410 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
18411 when building for 'gnu' OS.
18412
18413 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
18414
18415 * manual/tunables.texi (Hardware Capability Tunables): Fix
18416 spelling.
18417
18418 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
18419
18420 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
18421 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
18422 (ALTMON_11, ALTMON_12): Improve documentation.
18423 * manual/time.texi (strftime): Likewise.
18424
18425 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18426
18427 [BZ #10871]
18428 * localedata/locales/pl_PL: Alternative month names added,
18429 primary month names are genitive now.
18430 * time/tst-strptime.c (day_tests): Actually use a genitive case
18431 of a month name in Polish language.
18432
18433 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18434
18435 [BZ #10871]
18436 * manual/locale.texi: Document ALTMON_1..12 constants for
18437 nl_langinfo. Specify when to use ALTMON instead of MON.
18438 * manual/time.texi (strftime, strptime): Document GNU extension
18439 permitting O modifier with %B and %b. Specify when to use
18440 %OB instead of %B.
18441
18442 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18443
18444 [BZ #10871]
18445 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
18446 names, define them as the same as abbreviated month names explicitly.
18447 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
18448 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
18449 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
18450 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
18451 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
18452 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
18453 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
18454 _NL_WABALTMON_12): New enum constants.
18455 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
18456 wab_alt_mon, and ab_alt_mon_defined members.
18457 (time_output): Output ab_alt_mon and wab_alt_mon members.
18458 (time_read): Read them, initialize them as copies of abmon and wabmon
18459 respectively if they are missing, initialize ab_alt_mon_defined.
18460 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
18461 * locale/programs/locfile-kw.h: Regenerate.
18462 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
18463 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
18464 and ru_RU.UTF-8.
18465 * time/strftime_l.c (a_altmonth, aam_len): New macros.
18466 [!COMPILE_WIDE] (ABALTMON_1): New macro.
18467 (__strftime_internal): Handle %Ob and %Oh formats.
18468 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
18469 (__strptime_internal): Handle %Ob and %Oh formats.
18470 * time/tst-strptime.c (day_tests): Add more tests to parse different
18471 forms of month names including the new %Ob format specifier.
18472
18473 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18474
18475 [BZ #10871]
18476 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
18477 define them as the same as primary full month names explicitly.
18478 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
18479 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
18480 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
18481 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
18482 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
18483 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
18484 _NL_WALTMON_12): New enum constants.
18485 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
18486 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
18487 macros.
18488 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
18489 walt_mon, and alt_mon_defined members.
18490 (time_output): Output alt_mon and walt_mon members.
18491 (time_read): Read them, initialize them as copies of mon and wmon
18492 respectively if they are missing, initialize alt_mon_defined.
18493 * locale/programs/locfile-kw.gperf (alt_mon): Define.
18494 * locale/programs/locfile-kw.h: Regenerate.
18495 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
18496 * localedata/tst-langinfo.c (map): Add tests for the new constants
18497 ALTMON_1 .. ALTMON_12.
18498 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
18499 and pl_PL.UTF-8.
18500 * time/strftime_l.c (f_altmonth): New macro.
18501 (__strftime_internal): Handle %OB format.
18502 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
18503 (__strptime_internal): Handle %OB format.
18504 * time/tst-strptime.c (day_tests): Add tests to parse different forms
18505 of month names including the new %OB format specifier.
18506
18507 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18508
18509 [BZ #22685]
18510 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
18511 from ABORT_TRANSACTION.
18512 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
18513 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
18514 ABORT_TRANSACTION_IMPL): Likewise.
18515 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
18516 Linux code, but remove the code that aborts transactions.
18517
18518 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18519
18520 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
18521
18522 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
18523
18524 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
18525 in date: "2004-14-09" should be "2004-09-14".
18526 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
18527 "2003-15-09" should be "2003-09-15".
18528
18529 2018-01-18 Arjun Shankar <arjun@redhat.com>
18530
18531 [BZ #22343]
18532 [BZ #22774]
18533 CVE-2018-6485
18534 CVE-2018-6551
18535 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
18536 after padding.
18537 (_int_memalign): check for integer overflow before calling
18538 _int_malloc.
18539 * malloc/tst-malloc-too-large.c: New test.
18540 * malloc/Makefile: Add tst-malloc-too-large.
18541
18542 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
18543
18544 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
18545 in date: "2017-24-07" should be "2017-07-24".
18546 * localedata/locales/mai_IN: Likewise.
18547 * localedata/locales/mai_NP: Likewise.
18548
18549 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
18550
18551 * po/ru.po: Update translations.
18552
18553 2018-01-17 Joseph Myers <joseph@codesourcery.com>
18554
18555 [BZ #22719]
18556 * sysdeps/hppa/backtrace.c: New file.
18557
18558 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
18559
18560 [BZ #22715]
18561 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
18562 align La_x86_64_retval to VEC_SIZE.
18563
18564 2018-01-16 Joseph Myers <joseph@codesourcery.com>
18565
18566 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
18567 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
18568
18569 2018-01-16 Florian Weimer <fweimer@redhat.com>
18570
18571 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
18572 Move tst-thread-exit-clobber ...
18573 [$(CXX)] (tests-unsupported): ... to here.
18574
18575 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18576
18577 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
18578 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
18579 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18580 (_dl_aarch64_cap_flags): Update.
18581 (_DL_HWCAP_COUNT): Update.
18582
18583 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18584
18585 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
18586 (_DL_HWCAP_LAST): Remove.
18587 (_DL_HWCAP_COUNT): Move to ...
18588 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18589 (_DL_HWCAP_COUNT): ... here.
18590
18591 2018-01-16 Florian Weimer <fweimer@redhat.com>
18592
18593 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
18594 mode with GNU extensions.
18595
18596 2018-01-15 Alan Hayward <alan.hayward@arm.com>
18597
18598 * elf/elf.h (NT_ARM_SVE): Define.
18599
18600 2018-01-15 Florian Weimer <fweimer@redhat.com>
18601
18602 [BZ #22636]
18603 * nptl/tst-minstack-throw.cc: New file.
18604 * nptl/Makefile (tests): Add tst-minstack-throw.
18605 (LDLIBS-tst-minstack-throw): Link with libstdc++.
18606 [!CXX] (tests-unsupported): Add tst-minstack-throw.
18607
18608 2018-01-15 Joseph Myers <joseph@codesourcery.com>
18609
18610 * scripts/build-many-glibcs.py (Context.checkout): Default
18611 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
18612 version to 1.1.0.
18613
18614 2018-01-13 Carlos O'Donell <carlos@redhat.com>
18615
18616 [BZ #22707]
18617 * elf/elf.h (DF_1_STUB): Define.
18618 (DF_1_PIE): Define.
18619
18620 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18621
18622 [BZ #22697]
18623 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
18624 Do not add 0.5 to integer or out-of-range arguments.
18625
18626 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18627
18628 * po/bg.po: Update translations.
18629 * po/cs.po: Likewise.
18630 * po/de.po: Likewise.
18631 * po/ko.po: Likewise.
18632 * po/pl.po: Likewise.
18633 * po/sv.po: Likewise.
18634 * po/uk.po: Likewise.
18635 * po/vi.po: Likewise.
18636
18637 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18638
18639 * aarch64/start.S (_start): Use __wrap_main.
18640 (__wrap_main): New local symbol.
18641
18642 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18643
18644 [BZ #22679]
18645 CVE-2018-1000001
18646 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
18647 generic_getcwd if the path returned by getcwd syscall is not absolute.
18648 * io/tst-getcwd-abspath.c: New test.
18649 * io/Makefile (tests): Add tst-getcwd-abspath.
18650
18651 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
18652
18653 * malloc/malloc.c (malloc_consolidate): Add size check.
18654
18655 2018-01-12 Florian Weimer <fweimer@redhat.com>
18656
18657 * support/write_message.c (write_message): Preserve errno.
18658 * support/check.c (print_failure): Likewise.
18659 * support/support_test_verify_impl.c (support_test_verify_impl):
18660 Likewise.
18661 * support/support_test_compare_failure.c
18662 (support_test_compare_failure): Likewise.
18663
18664 2018-01-12 Florian Weimer <fweimer@redhat.com>
18665
18666 [BZ #22701]
18667 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
18668 Prevent installation of libnsl.so.
18669 (libnsl-inhibit-o): Do not build (or install) static libraries.
18670
18671 2018-01-12 Egmont Koblinger <egmont@gmail.com>
18672
18673 [BZ #22657]
18674 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
18675 before the day number which may produce a double space.
18676 (date_fmt): Likewise.
18677
18678 2018-01-12 Joseph Myers <joseph@codesourcery.com>
18679
18680 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
18681 instead of fegetenv.
18682
18683 2018-01-11 Joseph Myers <joseph@codesourcery.com>
18684
18685 [BZ #22702]
18686 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
18687 comment to say exceptions are discarded.
18688 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
18689 __fegetenv.
18690 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
18691 be enabled.
18692
18693 2018-01-11 Florian Weimer <fweimer@redhat.com>
18694
18695 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
18696 and error message.
18697
18698 2018-01-11 Florian Weimer <fweimer@redhat.com>
18699
18700 [BZ #22636]
18701 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
18702 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
18703
18704 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18705
18706 [BZ #22693]
18707 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
18708 negative arguments in test for NaN or infinity argument.
18709
18710 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
18711
18712 * po/libc.pot: Regenerate.
18713
18714 2018-01-10 Florian Weimer <fweimer@redhat.com>
18715
18716 [BZ #22636]
18717 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
18718 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
18719
18720 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
18721
18722 * hurd/hurd/fd.h: Include <fcntl.h>
18723 (__hurd_at_flags): New function.
18724 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
18725 with call to __hurd_at_flags.
18726 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
18727 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
18728 __faccessat
18729 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
18730 (__access_noerrno): Use __faccessat_common instead of access_common.
18731 (__access): Likewise.
18732 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
18733 with a call to __faccessat.
18734 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
18735 (__faccessat_common): ... this. Move implementation of __access into it when
18736 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
18737 reauthenticate_cwdir_at helper to implement AT mechanism.
18738 (__faccessat_noerrno): New function, just calls __faccessat_common.
18739 (__faccessat): New function, just calls __faccessat_common.
18740 (faccessat): Define weak alias.
18741
18742 2018-01-10 Joseph Myers <joseph@codesourcery.com>
18743
18744 [BZ #22691]
18745 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18746 (CFLAGS-s_fmaxmagl.c): New variable.
18747 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18748
18749 [BZ #22690]
18750 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18751 long int for arguments of possibly overflowing addition or
18752 subtraction.
18753 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18754
18755 2018-01-09 Joseph Myers <joseph@codesourcery.com>
18756
18757 [BZ #22688]
18758 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18759 (CFLAGS-e_remainderl.c): New variable.
18760
18761 [BZ #22687]
18762 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18763 variable.
18764 (CFLAGS-s_cacoshl.c): Likewise.
18765 (CFLAGS-s_casinhl.c): Likewise.
18766 (CFLAGS-s_catanl.c): Likewise.
18767 (CFLAGS-s_catanhl.c): Likewise.
18768 (CFLAGS-s_cexpl.c): Likewise.
18769 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18770 (CFLAGS-s_csinhl.c): Likewise.
18771 (CFLAGS-s_clogl.c): Likewise.
18772 (CFLAGS-s_clog10l.c): Likewise.
18773 (CFLAGS-s_csinl.c): Likewise.
18774 (CFLAGS-s_csqrtl.c): Likewise.
18775
18776 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
18777 2017-01-09 Svante Signell <svante.signell@gmail.com>
18778
18779 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18780 (_hurd_exec_paths): New function.
18781 * hurd/hurd.h (_hurd_exec): Deprecate function.
18782 (_hurd_exec_paths): Declare function.
18783 * hurd/Versions: Export _hurd_exec_paths.
18784 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18785 (__execve): Use __getcwd to build absolute path, and use
18786 _hurd_exec_paths instead of _hurd_exec.
18787 * sysdeps/mach/hurd/spawni.c: Likewise.
18788 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18789 _hurd_exec.
18790
18791 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
18792
18793 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18794 test instead of failing in case of ENOENT returned by posix_openpt.
18795
18796 2018-01-08 Florian Weimer <fweimer@redhat.com>
18797
18798 resolv: Support binary labels in test framework.
18799 * support/resolv_test.c (struct to_be_freed): Remove.
18800 (struct compressed_name): New.
18801 (allocate_compressed_name, ascii_tolower)
18802 (compare_compressed_name): New functions.
18803 (struct resolv_response_builder): Update type of
18804 compression_offsets for use with tsearch. Rempve to_be_freed.
18805 (response_push_pointer_to_free): Remove function.
18806 (resolv_response_add_name): Rewrite using struct compressed_name
18807 and tsearch instead of hsearch_r.
18808 (response_builder_allocate): Remove initialization of
18809 compression_offsets.
18810 (response_builder_free): Update for removal of to_be_freed. Use
18811 tdestroy instead of hdestroy_r.
18812 * resolv/Makefile (tests): Add tst-resolv-binary.
18813 (tst-resolv-binary): Link with -lresolv -lpthread.
18814
18815 2018-01-08 Florian Weimer <fweimer@redhat.com>
18816
18817 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18818 time. Pass positive flag instead of negative flag to
18819 support_test_compare_failure.
18820 (support_test_compare_failure): Change negative parameter to
18821 positive.
18822 * support/support_test_compare_failure.c (report)
18823 (support_test_compare_failure): Likewise.
18824 * support/tst-test_compare.c (return_ssize_t, return_int): New.
18825 (do_test): Check int/size_t, ssize_t/size_t comparisons.
18826
18827 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18828
18829 [BZ #22637]
18830 * nptl/descr.h (stackblock, stackblock_size): Update comments.
18831 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18832 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18833 stacksize.
18834 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18835
18836 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
18837
18838 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18839 Add s_sincosf-sse2 and s_sincosf-fma.
18840 (CFLAGS-s_sincosf-fma.c): New.
18841 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18842 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18843 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18844 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18845 __sincosf is defined.
18846
18847 2018-01-08 Florian Weimer <fweimer@redhat.com>
18848
18849 * nptl/tst-thread-exit-clobber.cc: New file.
18850 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18851 C++11 mode.
18852 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18853 (tests): Add tst-thread-exit-clobber.
18854 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18855
18856 2018-01-08 Florian Weimer <fweimer@redhat.com>
18857
18858 * support/check.h (support_static_assert): Define.
18859 (TEST_COMPARE): Use it.
18860
18861 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
18862
18863 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18864 [!__RLIM_T_MATCHES_RLIM64_T]
18865 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18866 __getrlimit64. Add libc_hidden_weak.
18867
18868 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
18869
18870 * elf/elf.h (R_RISCV_NONE): New define.
18871 (R_RISCV_32): Likewise.
18872 (R_RISCV_64): Likewise.
18873 (R_RISCV_RELATIVE): Likewise.
18874 (R_RISCV_COPY): Likewise.
18875 (R_RISCV_JUMP_SLOT): Likewise.
18876 (R_RISCV_TLS_DTPMOD32): Likewise.
18877 (R_RISCV_TLS_DTPMOD64): Likewise.
18878 (R_RISCV_TLS_DTPREL32): Likewise.
18879 (R_RISCV_TLS_DTPREL64): Likewise.
18880 (R_RISCV_TLS_TPREL32): Likewise.
18881 (R_RISCV_TLS_TPREL64): Likewise.
18882 * Makerules (make-link-multidir): Make directories before linking into
18883 them.
18884 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18885 define.
18886 (VDSO_HASH_LINUX_4_15): Likewise.
18887 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18888 in subdirectories of lib.
18889 * nptl/Makefile (/librt.so): Always depend on
18890 "$(shared-thread-library)".
18891
18892 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18893
18894 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18895 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18896 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18897 (___tls_get_addr).
18898 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18899 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18900 "-O2 -march=i686".
18901 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18902 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18903 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18904 * sysdeps/gnu/glob-lstat-compat.c: New file.
18905 * sysdeps/gnu/glob64-lstat-compat.c: New file.
18906 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18907
18908 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18909
18910 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18911 Reserve 16 chars to reloc_addr before calling _itoa_word.
18912
18913 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18914
18915 [BZ #22678]
18916 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18917 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18918
18919 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18920 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18921
18922 * resource/tst-getrlimit.c: Add copyright header.
18923
18924 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18925 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18926
18927 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18928 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18929 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18930 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18931 instead.
18932 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18933 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18934 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18935 RLIM64_INFINITY): Fix values to match the kernel ones.
18936 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18937 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18938 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18939 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18940 getrlimit64@@GLIBC_2_27.
18941 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18942 and setrlimit64.
18943 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18944 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18945 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18946 setrlimit, getrlimit64 and setrlimit64.
18947
18948 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18949
18950 [BZ #22648]
18951 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18952 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18953
18954 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18955
18956 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18957 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18958 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18959
18960 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18961
18962 [BZ #15479]
18963 [BZ #22666]
18964 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18965 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18966
18967 [BZ #15479]
18968 [BZ #22665]
18969 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18970 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18971 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18972 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18973
18974 2018-01-04 Florian Weimer <fweimer@redhat.com>
18975
18976 [BZ #22667]
18977 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18978 Align the stack before calling exit.
18979 * stdlib/tst-makecontext-align.c: New file.
18980 * stdlib/Makefile (tests): Add tst-makecontext-align.
18981
18982 2018-01-04 Florian Weimer <fweimer@redhat.com>
18983
18984 Add support for calling dlvsym from libc.so.
18985 * include/dlfcn.h (__libc_dlvsym): Declare.
18986 * elf/Makefile (tests-static-internal): Add
18987 tst-libc_dlvsym-static.
18988 (tests-internal): Add tst-libc_dlvsym.
18989 (modules-names): Add tst-libc_dlvsym-dso.
18990 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18991 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18992 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18993 object tst-libc_dlvsym-dso.so needs to be built before running
18994 these tests.
18995 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18996 * elf/Versions: Export __libc_dlvsym.
18997 * elf/dl-libc.c (struct do_dlvsym_args): New.
18998 (do_dlvsym, __libc_dlvsym): New functions.
18999 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19000 (_dl_open_hook2): New variable.
19001 (__libc_register_dl_open_hook): Set it.
19002 * elf/tst-libc_dlvsym-dso.c: New file.
19003 * elf/tst-libc_dlvsym-static.c: Likewise.
19004 * elf/tst-libc_dlvsym.c: Likewise.
19005 * elf/tst-libc_dlvsym.h: Likewise.
19006
19007 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19008
19009 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19010 include <sys/mount.h>.
19011
19012 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19013
19014 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19015 Add __NO_MATH_ERRNO__ check.
19016
19017 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19018
19019 * sysdeps/mips/mips32/libm-test-ulps: Update.
19020 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19021
19022 2018-01-02 Florian Weimer <fweimer@redhat.com>
19023
19024 * misc/tst-pselect.c: Add copyright header.
19025
19026 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19027
19028 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19029 comment.
19030 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19031 comment.
19032 (settrlimit): Rename into setrlimit.
19033 (__sttrlimit): Rename into __setrlimit.
19034
19035 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19036 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19037 never defined in that case.
19038
19039 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19040
19041 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19042
19043 * sysdeps/arm/libm-test-ulps: Update.
19044
19045 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19046 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19047
19048 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19049
19050 * NEWS: Add cosf and sincosf to list of optimized functions.
19051
19052 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19053
19054 [BZ #22660]
19055 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19056 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19057 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19058 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19059
19060 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19061
19062 [BZ #22433]
19063 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19064
19065 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19066 making a copy of it.
19067
19068 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19069
19070 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19071 trailing whitespace removed.
19072 * scripts/config.guess: Update to version 2018-01-01.
19073 * scripts/config.sub: Update to version 2018-01-01.
19074 * scripts/move-if-change: Update from gnulib.
19075
19076 * NEWS: Update copyright dates.
19077 * catgets/gencat.c (print_version): Likewise.
19078 * csu/version.c (banner): Likewise.
19079 * debug/catchsegv.sh: Likewise.
19080 * debug/pcprofiledump.c (print_version): Likewise.
19081 * debug/xtrace.sh (do_version): Likewise.
19082 * elf/ldconfig.c (print_version): Likewise.
19083 * elf/ldd.bash.in: Likewise.
19084 * elf/pldd.c (print_version): Likewise.
19085 * elf/sotruss.sh: Likewise.
19086 * elf/sprof.c (print_version): Likewise.
19087 * iconv/iconv_prog.c (print_version): Likewise.
19088 * iconv/iconvconfig.c (print_version): Likewise.
19089 * locale/programs/locale.c (print_version): Likewise.
19090 * locale/programs/localedef.c (print_version): Likewise.
19091 * login/programs/pt_chown.c (print_version): Likewise.
19092 * malloc/memusage.sh (do_version): Likewise.
19093 * malloc/memusagestat.c (print_version): Likewise.
19094 * malloc/mtrace.pl: Likewise.
19095 * manual/libc.texinfo: Likewise.
19096 * nptl/version.c (banner): Likewise.
19097 * nscd/nscd.c (print_version): Likewise.
19098 * nss/getent.c (print_version): Likewise.
19099 * nss/makedb.c (print_version): Likewise.
19100 * posix/getconf.c (main): Likewise.
19101 * scripts/test-installation.pl: Likewise.
19102 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19103
19104 * All files with FSF copyright notices: Update copyright dates
19105 using scripts/update-copyrights.
19106 * locale/programs/charmap-kw.h: Regenerated.
19107 * locale/programs/locfile-kw.h: Likewise.
19108
19109 2017-12-31 Zack Weinberg <zackw@panix.com>
19110
19111 * libio/bits/libio-ldbl.h: Correct check for improper
19112 inclusion. Add own multiple include guard.
19113
19114 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19115 Dmitry V. Levin <ldv@altlinux.org>
19116
19117 [BZ #22625]
19118 CVE-2017-16997
19119 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19120 string token expansion. Check for NULL pointer or empty string possibly
19121 returned by expand_dynamic_string_token.
19122 (decompose_rpath): Check for empty path after dynamic string
19123 token expansion.
19124
19125 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19126
19127 [BZ #22433]
19128 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19129
19130 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19131 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19132 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19133 and PTRACE_SYSCALL.
19134 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19135 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19136 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19137 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19138 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19139 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19140
19141 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19142 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19143 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19144 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19145 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19146 bits/ptrace-shared.h.
19147 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19148 <bits/ptrace-shared.h>.
19149 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19150 __ptrace_peeksiginfo_flags, ptrace): Remove.
19151 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19152 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19153 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19154 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19155 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19156
19157 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19158
19159 [BZ #17804]
19160 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19161 end of the loop. Improve comments.
19162
19163 2017-12-29 Zack Weinberg <zackw@panix.com>
19164
19165 [BZ #22615]
19166 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19167 might be set on success.
19168
19169 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19170
19171 [BZ #22611]
19172 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19173 is unchanged on success.
19174
19175 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19176
19177 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19178 updated.
19179 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19180 expand_dynamic_string_token): Likewise.
19181 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19182 is_path argument.
19183
19184 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19185 contains ':'.
19186
19187 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19188 is set and name contains ':', and all code depending on these checks.
19189
19190 2017-12-24 Zack Weinberg <zackw@panix.com>
19191
19192 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19193 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19194 respectively.
19195 * libio/libio.h: Rename the original version of this file to
19196 libio/bits/libio.h. Error out if not included by stdio.h or the
19197 stub libio.h.
19198 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19199 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19200 if not included by bits/libio.h or the stub _G_config.h.
19201 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19202 sysdeps/unix/sysv/linux/bits. Error out if not included by
19203 bits/libio.h or the stub _G_config.h.
19204 * libio/stdio.h: Include bits/libio.h, not libio.h.
19205 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19206 well as libio.h and _G_config.h.
19207
19208 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19209 * libio/strfile.h, stdio-common/vfscanf.c
19210 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19211 Include stdio.h, not _G_config.h nor libio.h.
19212 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19213 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19214
19215 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19216
19217 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19218
19219 [BZ #22347]
19220 * stdlib/getrandom.c (getrandom): Fix comment.
19221 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19222
19223 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19224
19225 [BZ #21161]
19226 * manual/arith.texi (strtoul): Fix a typo.
19227
19228 [BZ #22596]
19229 * manual/arith.texi (finite): Fix the description of the return
19230 value.
19231
19232 2017-12-22 Eric Blake <ebb9@byu.net>
19233
19234 Avoid gcc warnings on cygwin
19235 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19236 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19237 Avoid unused variable.
19238
19239 2017-12-22 Florian Weimer <fweimer@redhat.com>
19240
19241 * io/Makefile (routines): Add copy_file_range.
19242 (tests): Add tst-copy_file_range.
19243 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19244 * io/Versions (GLIBC_2.27): Export copy_file_range.
19245 * io/copy_file_range-compat.c: New file.
19246 * io/copy_file_range.c: Likewise.
19247 * io/tst-copy_file_range-compat.c: Likewise.
19248 * io/tst-copy_file_range.c: Likewise.
19249 * manual/llio.texi (Copying File Data): New section.
19250 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19251 * support/Makefile (libsupport-routines): Add support-xfstat,
19252 xftruncate, xlseek.
19253 * support/support-xfstat.c: New file.
19254 * support/xftruncate.c: Likewise.
19255 * support/xlseek.c: Likewise.
19256 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19257 * sysdeps/unix/sysv/linux/**.abilist: Update.
19258 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19259
19260 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19261
19262 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19263 disable-multi-arch variant to aarch64-linux-gnu.
19264
19265 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19266
19267 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19268 trailing whitespace removed.
19269 * scripts/config.guess: Update to version 2017-12-17.
19270 * scripts/config.sub: Update to version 2017-11-23.
19271 * scripts/install-sh: Update to version 2017-09-23.17.
19272 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19273
19274 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19275
19276 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19277 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19278 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19279 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19280 * sysdeps/tile/crtn.S: Likewise.
19281 * sysdeps/tile/dl-start.S (_start): Likewise.
19282 * sysdeps/tile/dl-trampoline.S: Likewise.
19283 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19284 * sysdeps/tile/start.S (_start): Likewise.
19285 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19286 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19287 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19288 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19289 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19290 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19291 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19292
19293 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19294 comment.
19295 * sysdeps/tile/preconfigure: Remove tilegx folder.
19296 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19297 * sysdeps/tile/Implies: ... here.
19298 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19299 * sysdeps/tile/Makefile: ... here.
19300 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19301 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19302 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19303 * sysdeps/tile/bits/wordsize.h: ... here.
19304 * sysdeps/tile/tilegx/*: Move to ...
19305 * sysdeps/tile/*: ... here.
19306 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19307 * sysdeps/tile/tilegx32/Implies: ... here.
19308 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19309 * sysdeps/tile/tilegx64/Implies: ... here.
19310 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19311 to ...
19312 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19313 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19314 * sysdeps/unix/sysv/linux/tile/*: ... here.
19315 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19316 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19317 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19318 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19319
19320 * README: Remove tilepro-*-linux-gnu from supported architecture.
19321 * scripts/build-many-glibcs.py: Likewise.
19322 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19323 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19324 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19325 elf_machine_matches_host, elf_machine_dynamic,
19326 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19327 howto, elf_machine_rela): Likewise.
19328 * sysdeps/tile/dl-start.S (_start): Likewise.
19329 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19330 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19331 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19332 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19333 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19334 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19335 Likewise.
19336 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19337 * sysdeps/tile/preconfigure: Likewise.
19338 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19339 POINTER_CHK_GUARD): Likewise.
19340 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19341 * sysdeps/tile/start.S (_start): Likewise.
19342 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19343 Likewise.
19344 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19345 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19346 CMOVNEZ): Remove.
19347 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19348 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19349 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19350 Likewise.
19351 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19352 * sysdeps/tile/tilepro/Implies: Remove file.
19353 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19354 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19355 * sysdeps/tile/tilepro/memchr.c: Likewise.
19356 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19357 * sysdeps/tile/tilepro/memset.c: Likewise.
19358 * sysdeps/tile/tilepro/memusage.h: Likewise.
19359 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19360 * sysdeps/tile/tilepro/strchr.c: Likewise.
19361 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19362 * sysdeps/tile/tilepro/strlen.c: Likewise.
19363 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19364 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19365 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19366 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19367 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19368 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19369 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19370 Likewise.
19371 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19372 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19373 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19374 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19375 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19376 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19377 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19378 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19379 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19380 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19381 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19382 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19383 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19384 tilepro mention in comment.
19385
19386 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19387 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19388 * nptl/pthread_join_common.c: New file: common function used on
19389 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19390 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19391 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19392 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19393 (cleanup): Move definition to pthread_join_common.c.
19394 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19395 Remove superflous checks.
19396 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19397 Likewise.
19398
19399 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
19400
19401 * sysdeps/aarch64/libm-test-ulps: Update.
19402
19403 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19404
19405 * sysdeps/aarch64/memset.S (MEMSET): Define.
19406
19407 2017-12-20 Florian Weimer <fweimer@redhat.com>
19408
19409 [BZ #22635]
19410 nptl: Provide full implementation of pthread_self in libc.so.
19411 * nptl/Makefile (routines): Add pthread_self.
19412 (libpthread-routines): Replace pthread_self with
19413 compat-pthread_self.
19414 * nptl/forward.c (pthread_self): Remove.
19415 * nptl/nptl-init.c (pthread_functions): Do not initialize
19416 ptr_pthread_self.
19417 * nptl/pthread_self.c (pthread_self): Remove weak alias.
19418 * nptl/compat-pthread_self.c: New file.
19419 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
19420 Remove ptr_pthread_self.
19421
19422 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
19423
19424 * posix/regcomp.c: Fix spelling in comments.
19425 * posix/regex.h: Likewise.
19426 * posix/regex_internal.c: Likewise.
19427 * posix/regexec.c: Likewise.
19428
19429 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
19430
19431 [BZ #22377]
19432 * math/Makefile [C++] (tests): Add test for iseqsig.
19433 * math/math.h [C++] (iseqsig): New implementation, which does
19434 not rely on __MATH_TG/__builtin_types_compatible_p.
19435 * math/test-math-iseqsig.cc: New file.
19436 * sysdeps/powerpc/powerpc64le/Makefile
19437 (CFLAGS-test-math-iseqsig.cc): New variable.
19438
19439 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
19440
19441 * elf/dl-load.c (is_trusted_path): Remove.
19442 (fillin_rpath): Remove check_trusted argument and its use,
19443 all callers changed.
19444
19445 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19446
19447 [BZ #22630]
19448 * Makeconfig (link-pie-before-libc): Replace -pie with
19449 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
19450 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
19451 (tst-dlopen-aout-no-pie): New.
19452 (LDFLAGS-tst-prelink): Removed.
19453 (tst-prelink-no-pie): New.
19454 (LDFLAGS-tst-main1): Removed.
19455 (tst-main1-no-pie): New.
19456 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
19457 (tst-gmon-no-pie): New.
19458
19459 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19460
19461 * manual/install.texi: Document that --enable-static-pie
19462 implies PIE.
19463 * INSTALL: Regenerated.
19464
19465 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19466
19467 [BZ #21309]
19468 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
19469 unsigned.
19470
19471 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19472
19473 Revert:
19474
19475 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19476
19477 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19478
19479 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19480
19481 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19482 <errno.h>. Include "eexp.tbl".
19483 (half): New constant.
19484 (one): Likewise.
19485 (__ieee754_exp): Rewrite.
19486 (__slowexp): Remove prototype.
19487 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19488 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19489 * sysdeps/i386/fpu/slowexp.c: Likewise.
19490 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19491 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19492 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19493 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19494 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19495 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19496 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19497 comment.
19498 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19499 (CPPFLAGS-slowexp.c): Remove variable.
19500 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19501 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19502 (CFLAGS-slowexp-fma.c): Remove variable.
19503 (CFLAGS-slowexp-fma4.c): Likewise.
19504 (CFLAGS-slowexp-avx.c): Likewise.
19505 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19506 define as macro.
19507 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19508 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19509 * math/Makefile (type-double-routines): Remove slowexp.
19510 * manual/probes.texi (slowexp_p6): Remove.
19511 (slowexp_p32): Likewise.
19512
19513 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19514
19515 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19516 arithmetic.
19517
19518 * lib/glob.c (glob): Do not pass NULL to mempcpy.
19519
19520 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19521
19522 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19523
19524 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19525
19526 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19527 <errno.h>. Include "eexp.tbl".
19528 (half): New constant.
19529 (one): Likewise.
19530 (__ieee754_exp): Rewrite.
19531 (__slowexp): Remove prototype.
19532 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19533 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19534 * sysdeps/i386/fpu/slowexp.c: Likewise.
19535 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19536 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19537 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19538 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19539 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19540 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19541 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19542 comment.
19543 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19544 (CPPFLAGS-slowexp.c): Remove variable.
19545 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19546 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19547 (CFLAGS-slowexp-fma.c): Remove variable.
19548 (CFLAGS-slowexp-fma4.c): Likewise.
19549 (CFLAGS-slowexp-avx.c): Likewise.
19550 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19551 define as macro.
19552 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19553 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19554 * math/Makefile (type-double-routines): Remove slowexp.
19555 * manual/probes.texi (slowexp_p6): Remove.
19556 (slowexp_p32): Likewise.
19557
19558 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19559 James Clarke <jrtc27@jrtc27.com>
19560
19561 [BZ #22603]
19562 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
19563 addition.
19564
19565 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19566
19567 [BZ #22605]
19568 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
19569 code.
19570
19571 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19572
19573 [BZ #22563]
19574 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19575 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19576 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19577 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19578 to feature_1.
19579
19580 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19581
19582 [BZ #22563]
19583 * bits/types/__cancel_jmp_buf_tag.h: New file.
19584 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19585 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19586 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19587 * nptl/Makefile (headers): Add
19588 bits/types/__cancel_jmp_buf_tag.h.
19589 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19590 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19591 * sysdeps/nptl/pthread.h: Include
19592 <bits/types/__cancel_jmp_buf_tag.h>.
19593 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19594 __cancel_jmp_buf.
19595 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19596
19597 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19598
19599 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19600 --enable-static-pie variants to x86_64, x32 and i686.
19601
19602 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19603
19604 [BZ #22631]
19605 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
19606 argument for attrubutes. All callers changed.
19607 (__inline_mathop1): Likewise. All callers changed.
19608 (__inline_mathop): Likewise. All callers changed.
19609 [__USE_MISC] (scalbn): Use __inline_forward instead of
19610 __inline_forward_c.
19611 [__USE_ISOC99] (scalbln): Likewise.
19612 [__USE_ISOC99] (nearbyint): Likewise.
19613 [__USE_ISOC99] (lrint): Likewise.
19614 [__USE_MISC] (scalbnf): Likewise.
19615 [__USE_ISOC99] (scalblnf): Likewise.
19616 [__USE_ISOC99] (nearbyintf): Likewise.
19617 [__USE_ISOC99] (lrintf): Likewise.
19618 [__USE_MISC] (scalbnl): Likewise.
19619 [__USE_ISOC99] (scalblnl): Likewise.
19620 [__USE_ISOC99] (nearbyintl): Likewise.
19621 [__USE_ISOC99] (lrintl): Likewise.
19622 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
19623 __inline_mathop and __m81_defun changed.
19624
19625 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
19626 CPU or FPU for ARM hard-float configurations.
19627
19628 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19629
19630 * nptl/tst-attr3.c: Include <libc-diag.h>.
19631 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
19632
19633 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
19634
19635 * string/tester.c (test_strncat): Also disable -Warray-bounds
19636 warnings for two tests.
19637
19638 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19639
19640 [BZ #22614]
19641 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
19642 $(cc-pie-default) == yes.
19643 * config.make.in (cc-pie-default): New.
19644 * configure.ac (libc_cv_pie_default): Renamed to ...
19645 (libc_cv_cc_pie_default): This.
19646 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
19647 * configure: Regenerated.
19648
19649 2017-12-18 Florian Weimer <fweimer@redhat.com>
19650
19651 [BZ #20204]
19652 ld.so: Harden dl-libc/libdl hooks.
19653 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
19654 (rtld_active): New function.
19655 * dlfcn/dladdr.c (__dladdr): Call it.
19656 * dlfcn/dladdr1.c (__dladdr1): Likewise.
19657 * dlfcn/dlclose.c (__dlcose): Likewise.
19658 * dlfcn/dlerror.c (__dlerror): Likewise.
19659 * dlfcn/dlinfo.c (__dlinfo): Likewise.
19660 * dlfcn/dlmopen.c (__dlmopen): Likewise.
19661 * dlfcn/dlopen.c (__dlopen): Likewise.
19662 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
19663 * dlfcn/dlsym.c (__dlsym): Likewise.
19664 * dlfcn/dlvsym.c (__dlvsym): Likewise.
19665 * libio/vtables.c (_IO_vtable_check): Likewise.
19666 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
19667 (__libc_dlclose): Likewise.
19668 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
19669 assignment.
19670
19671 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19672
19673 [BZ #22446]
19674 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
19675 buffers for readlink input and output.
19676
19677 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
19678
19679 [BZ #22624]
19680 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
19681 inhibit_stack_protector.
19682
19683 [BZ #22624]
19684 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
19685 inhibit_stack_protector.
19686
19687 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
19688
19689 [BZ #22627]
19690 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
19691 code and invocation.
19692
19693 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
19694
19695 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
19696
19697 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
19698
19699 [BZ #22505]
19700 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
19701
19702 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19703
19704 * sysdeps/s390/fpu/libm-test-ulps: Update.
19705
19706 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19707
19708 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19709
19710 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19711
19712 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
19713 constants to s_sincosf.h file.
19714 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19715 * sysdeps/ieee754/flt-32/s_sincosf.c: New
19716 implementation.
19717 * sysdeps/ieee754/flt-32/s_sincosf.h:
19718 New file.
19719
19720 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19721
19722 [BZ #14681]
19723 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
19724 before mtrace.
19725
19726 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
19727
19728 [BZ #19574]
19729 * INSTALL: Regenerated.
19730 * Makeconfig (real-static-start-installed-name): New.
19731 (pic-default): Updated for --enable-static-pie.
19732 (pie-default): New for --enable-static-pie.
19733 (default-pie-ldflag): Likewise.
19734 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
19735 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
19736 Replace $(static-start-installed-name) with
19737 $(real-static-start-installed-name).
19738 (+prectorT): Updated for --enable-static-pie.
19739 (+postctorT): Likewise.
19740 (CFLAGS-.o): Add $(pie-default).
19741 (CFLAGS-.op): Likewise.
19742 * NEWS: Mention --enable-static-pie.
19743 * config.h.in (ENABLE_STATIC_PIE): New.
19744 * configure.ac (--enable-static-pie): New configure option.
19745 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19746 (have-static-pie): Likewise.
19747 Enable static PIE if linker supports --no-dynamic-linker.
19748 (ENABLE_STATIC_PIE): New AC_DEFINE.
19749 (enable-static-pie): New LIBC_CONFIG_VAR.
19750 * configure: Regenerated.
19751 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19752 gr$(start-installed-name) for --enable-static-pie.
19753 (extra-objs): Likewise.
19754 (install-lib): Likewise.
19755 (extra-objs): Add static-reloc.o and static-reloc.os
19756 ($(objpfx)$(start-installed-name)): Also depend on
19757 $(objpfx)static-reloc.o.
19758 ($(objpfx)r$(start-installed-name)): New.
19759 ($(objpfx)g$(start-installed-name)): Also depend on
19760 $(objpfx)static-reloc.os.
19761 ($(objpfx)gr$(start-installed-name)): New.
19762 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19763 in libc.a.
19764 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19765 initimage.
19766 * csu/static-reloc.c: New file.
19767 * elf/Makefile (routines): Add dl-reloc-static-pie.
19768 (elide-routines.os): Likewise.
19769 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19770 (tst-tls1-static-non-pie-no-pie): New.
19771 * elf/dl-reloc-static-pie.c: New file.
19772 * elf/dl-support.c (_dl_get_dl_main_map): New function.
19773 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19774 STATIC_PIE_BOOTSTRAP.
19775 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19776 * gmon/Makefile (tests): Add tst-gmon-static-pie.
19777 (tests-static): Likewise.
19778 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19779 (tst-gmon-static-no-pie): New.
19780 (CFLAGS-tst-gmon-static-pie.c): Likewise.
19781 (CRT-tst-gmon-static-pie): Likewise.
19782 (tst-gmon-static-pie-ENV): Likewise.
19783 (tests-special): Likewise.
19784 ($(objpfx)tst-gmon-static-pie.out): Likewise.
19785 (clean-tst-gmon-static-pie-data): Likewise.
19786 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19787 * gmon/tst-gmon-static-pie.c: New file.
19788 * manual/install.texi: Document --enable-static-pie.
19789 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19790 (_dl_get_dl_main_map): Likewise.
19791 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19792 * sysdeps/x86_64/configure.ac: Likewise.
19793 * sysdeps/i386/configure: Regenerated.
19794 * sysdeps/x86_64/configure: Likewise.
19795 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19796 (ASFLAGS-.op): Likewise.
19797
19798 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19799
19800 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19801 * posix/tst-mmap-offset.c (fname): Use /tmp.
19802 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19803
19804 2017-12-15 Steve Ellcey <sellcey@cavium.com>
19805
19806 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19807
19808 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
19809
19810 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19811 errno.
19812
19813 2017-12-15 Joseph Myers <joseph@codesourcery.com>
19814
19815 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19816 --with-float=hard for arm-linux-gnueabihf configurations.
19817
19818 [BZ #14121]
19819 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19820 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
19821 ($(mo-installed)): Use $(objpfx)%.mo.
19822 (realclean): Remove rule.
19823
19824 * po/Makefile (linguas): Remove rule and dependencies.
19825 (linguas.mo): Likewise.
19826 (.PHONY): Do not depend on linguas and linguas.mo.
19827 (podir): Remove variable.
19828 (pofiles): Likewise.
19829 [$(pofiles)] (%.po): Remove rule.
19830
19831 * sysdeps/sparc/sparc32/Makefile
19832 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19833 start-of-line whitespace in argument of echo.
19834 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19835 with whitespace. Generate __wrap_.udiv alias.
19836 * sysdeps/sparc/sparc32/rem.S: Regenerated.
19837 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19838 * sysdeps/sparc/sparc32/udiv.S: Likewise.
19839 * sysdeps/sparc/sparc32/urem.S: Likewise.
19840
19841 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19842
19843 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19844 for aligned inputs.
19845
19846 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19847
19848 * benchtests/bench-strcmp.c: Print output in JSON format.
19849
19850 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19851
19852 2017-12-14 Florian Weimer <fweimer@redhat.com>
19853
19854 [BZ #22607]
19855 CVE-2017-1000409
19856 * elf/dl-load.c (_dl_init_paths): Compute number of components in
19857 the expanded path string.
19858
19859 2017-12-14 Florian Weimer <fweimer@redhat.com>
19860
19861 [BZ #22606]
19862 CVE-2017-1000408
19863 * elf/dl-load.c (system_dirs): Update comment.
19864 (nsystem_dirs_len): Use array_length.
19865 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19866
19867 2017-12-14 Florian Weimer <fweimer@redhat.com>
19868
19869 Simplify compiling most of support/ outside of glibc.
19870 * support/check_addrinfo.c: Include <string.h>.
19871 * support/check_dns_packet.c: Likewise.
19872 * support/check_hostent.c: Likewise.
19873 * support/support_can_chroot.c: Include <support/xunistd.h>.
19874 * support/support_format_addrinfo.c: Include <stdlib.h>
19875 * support/support_format_dns_packet.c: Include <stdbool.h>.
19876 * support/support_format_hostent.c: Include <stdlib.h>.
19877 * support/support_format_netent.c: Likewise.
19878 * support/support_write_string.c: Include <support/xunistd.h>.
19879 * support/xdlfcn.c: Include <stddef.h>.
19880
19881 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
19882
19883 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19884
19885 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19886 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19887
19888 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19889 (sysdeps_routines): Add memset-niagara7.
19890 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19891 Likewise.
19892 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19893 file.
19894 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19895 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19896 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19897 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19898 Add niagara7 option.
19899 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19900 memset.
19901
19902 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19903 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19904 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19905 Likewise.
19906 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19907 New file.
19908 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19909 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19910 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19911 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19912 and __memmove_niagara7.
19913 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19914 Add niagara7 option.
19915 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19916 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19917 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19918 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19919 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19920
19921 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19922
19923 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19924 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19925 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19926 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19927
19928 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19929 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19930 _dl_sparc_cap_flags array.
19931 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19932
19933 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19934
19935 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19936 time whenever possible.
19937
19938 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19939
19940 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19941 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19942
19943 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19944
19945 * soft-fp/fmadf4.c: Move to ....
19946 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19947 * soft-fp/fmasf4.c: Move to ....
19948 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19949 * soft-fp/fmatf4.c: Move to ....
19950 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19951 * sysdeps/ieee754/soft-fp/Makefile: New file.
19952 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19953 * sysdeps/arm/preconfigure: Regenerated.
19954 * sysdeps/arm/nofpu/Implies: New file.
19955 * sysdeps/arm/s_fma.c: Remove file.
19956 * sysdeps/arm/s_fmaf.c: Likewise.
19957 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19958 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19959 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19960 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19961 * sysdeps/microblaze/s_fma.c: Remove file.
19962 * sysdeps/microblaze/s_fmaf.c: Likewise.
19963 * sysdeps/mips/mips32/nofpu/Implies: New file.
19964 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19965 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19966 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19967 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19968 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19969 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19970 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19971 implementation.
19972 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19973 * sysdeps/nios2/s_fma.c: Remove file.
19974 * sysdeps/nios2/s_fmaf.c: Likewise.
19975 * sysdeps/sh/nofpu/Implies: New file.
19976 * sysdeps/sh/s_fma.c: Remove file.
19977 * sysdeps/sh/s_fmaf.c: Likewise.
19978 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19979 * sysdeps/tile/s_fma.c: Remove file.
19980 * sysdeps/tile/s_fmaf.c: Likewise.
19981
19982 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19983
19984 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19985 Add s_cosf-sse2 and s_cosf-fma.
19986 (CFLAGS-s_cosf-fma.c): New.
19987 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19988 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19989 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19990
19991 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19992
19993 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19994
19995 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19996
19997 * libio/Makefile (tests): Add tst-bz22415.
19998 (tst-bz22415-ENV): New rule.
19999 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20000 (tests-special): Add tst-bz22415-mem.out.
20001 ($(objpfx)tst-bz22415-mem.out): New rule.
20002 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20003 in case of a successful seek operation.
20004 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20005 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20006 buffer is required.
20007 * libio/tst-bz22415.c: New test.
20008
20009 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20010
20011 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20012
20013 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20014 __IPC_64 to 0 to avoid IPC_64 being set.
20015
20016 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20017
20018 [BZ #22593]
20019 * math/bits/mathcalls.h (nextafter): Remove const.
20020 (nexttoward): Likewise.
20021
20022 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20023
20024 * configure.ac (--with-fp): Remove configure option.
20025 (with_fp_cond): New variable.
20026 (libc_cv_with_fp): New configure test. Use this variable instead
20027 of with_fp.
20028 * configure: Regenerated.
20029 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20030 * manual/install.texi (Configuring and compiling): Remove
20031 --without-fp.
20032 * INSTALL: Regenerated.
20033 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20034 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20035 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20036 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20037 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20038 use --without-fp to configure glibc.
20039
20040 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20041
20042 * manual/locale.texi (nl_langinfo): Fix a typo.
20043
20044 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20045
20046 [BZ #22588]
20047 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20048
20049 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20050
20051 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20052 (CFLAGS-argp-parse.c): Likewise.
20053 (CFLAGS-argp-fmtstream.c): Likewise.
20054 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20055 (CPPFLAGS-sha512-crypt.c): Likewise.
20056 (CPPFLAGS-md5-crypt.c): Likewise.
20057 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20058 (CFLAGS-stack_chk_fail_local.c): Likewise.
20059 (CFLAGS-backtrace.c): Likewise.
20060 (CFLAGS-sprintf_chk.c): Likewise.
20061 (CFLAGS-snprintf_chk.c): Likewise.
20062 (CFLAGS-vsprintf_chk.c): Likewise.
20063 (CFLAGS-vsnprintf_chk.c): Likewise.
20064 (CFLAGS-asprintf_chk.c): Likewise.
20065 (CFLAGS-vasprintf_chk.c): Likewise.
20066 (CFLAGS-obprintf_chk.c): Likewise.
20067 (CFLAGS-dprintf_chk.c): Likewise.
20068 (CFLAGS-vdprintf_chk.c): Likewise.
20069 (CFLAGS-printf_chk.c): Likewise.
20070 (CFLAGS-fprintf_chk.c): Likewise.
20071 (CFLAGS-vprintf_chk.c): Likewise.
20072 (CFLAGS-vfprintf_chk.c): Likewise.
20073 (CFLAGS-gets_chk.c): Likewise.
20074 (CFLAGS-fgets_chk.c): Likewise.
20075 (CFLAGS-fgets_u_chk.c): Likewise.
20076 (CFLAGS-fread_chk.c): Likewise.
20077 (CFLAGS-fread_u_chk.c): Likewise.
20078 (CFLAGS-swprintf_chk.c): Likewise.
20079 (CFLAGS-vswprintf_chk.c): Likewise.
20080 (CFLAGS-wprintf_chk.c): Likewise.
20081 (CFLAGS-fwprintf_chk.c): Likewise.
20082 (CFLAGS-vwprintf_chk.c): Likewise.
20083 (CFLAGS-vfwprintf_chk.c): Likewise.
20084 (CFLAGS-fgetws_chk.c): Likewise.
20085 (CFLAGS-fgetws_u_chk.c): Likewise.
20086 (CFLAGS-read_chk.c): Likewise.
20087 (CFLAGS-pread_chk.c): Likewise.
20088 (CFLAGS-pread64_chk.c): Likewise.
20089 (CFLAGS-recv_chk.c): Likewise.
20090 (CFLAGS-recvfrom_chk.c): Likewise.
20091 (CFLAGS-tst-longjmp_chk.c): Likewise.
20092 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20093 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20094 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20095 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20096 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20097 (CFLAGS-tst-chk1.c): Likewise.
20098 (CFLAGS-tst-chk2.c): Likewise.
20099 (CFLAGS-tst-chk3.c): Likewise.
20100 (CFLAGS-tst-chk4.cc): Likewise.
20101 (CFLAGS-tst-chk5.cc): Likewise.
20102 (CFLAGS-tst-chk6.cc): Likewise.
20103 (CFLAGS-tst-lfschk1.c): Likewise.
20104 (CFLAGS-tst-lfschk2.c): Likewise.
20105 (CFLAGS-tst-lfschk3.c): Likewise.
20106 (CFLAGS-tst-lfschk4.cc): Likewise.
20107 (CFLAGS-tst-lfschk5.cc): Likewise.
20108 (CFLAGS-tst-lfschk6.cc): Likewise.
20109 (CFLAGS-tst-ssp-1.c): Likewise.
20110 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20111 (CFLAGS-scandir64.c): Likewise.
20112 (CFLAGS-scandir-tail.c): Likewise.
20113 (CFLAGS-scandir64-tail.c): Likewise.
20114 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20115 (CFLAGS-dl-tunables.c): Likewise.
20116 (CFLAGS-dl-runtime.c): Likewise.
20117 (CFLAGS-dl-lookup.c): Likewise.
20118 (CFLAGS-dl-iterate-phdr.c): Likewise.
20119 (CFLAGS-vismain.c): Likewise.
20120 (CFLAGS-tst-linkall-static.c): Likewise.
20121 (CFLAGS-tst-linkall-static.c): Likewise.
20122 (CPPFLAGS-dl-load.c): Likewise.
20123 (CFLAGS-ldconfig.c): Likewise.
20124 (CFLAGS-dl-cache.c): Likewise.
20125 (CFLAGS-cache.c): Likewise.
20126 (CFLAGS-rtld.c): Likewise.
20127 (CFLAGS-multiload.c): Likewise.
20128 (CFLAGS-filtmod1.c): Likewise.
20129 (CFLAGS-tst-align.c): Likewise.
20130 (CFLAGS-tst-align2.c): Likewise.
20131 (CFLAGS-tst-alignmod.c): Likewise.
20132 (CFLAGS-tst-alignmod2.c): Likewise.
20133 (CPPFLAGS-tst-execstack.c): Likewise.
20134 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20135 (CFLAGS-tst-latepthreadmod.c): Likewise.
20136 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20137 (CFLAGS-getgrnam_r.c): Likewise.
20138 (CFLAGS-getgrent_r.c): Likewise.
20139 (CFLAGS-getgrent.c): Likewise.
20140 (CFLAGS-fgetgrent.c): Likewise.
20141 (CFLAGS-fgetgrent_r.c): Likewise.
20142 (CFLAGS-putgrent.c): Likewise.
20143 (CFLAGS-initgroups.c): Likewise.
20144 (CFLAGS-getgrgid.c): Likewise.
20145 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20146 (CFLAGS-getsgent.c): Likewise.
20147 (CFLAGS-fgetsgent.c): Likewise.
20148 (CFLAGS-fgetsgent_r.c): Likewise.
20149 (CFLAGS-putsgent.c): Likewise.
20150 (CFLAGS-getsgnam.c): Likewise.
20151 (CFLAGS-getsgnam_r.c): Likewise.
20152 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20153 (CFLAGS-iconv_charmap.c): Likewise.
20154 (CFLAGS-dummy-repertoire.c): Likewise.
20155 (CFLAGS-charmap.c): Likewise.
20156 (CFLAGS-linereader.c): Likewise.
20157 (CFLAGS-simple-hash.c): Likewise.
20158 (CFLAGS-gconv_conf.c): Likewise.
20159 (CFLAGS-iconvconfig.c): Likewise.
20160 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20161 (CFLAGS-gethstbyad.c): Likewise.
20162 (CFLAGS-gethstbynm_r.c): Likewise.
20163 (CFLAGS-gethstbynm.c): Likewise.
20164 (CFLAGS-gethstbynm2_r.c): Likewise.
20165 (CFLAGS-gethstbynm2.c): Likewise.
20166 (CFLAGS-gethstent_r.c): Likewise.
20167 (CFLAGS-gethstent.c): Likewise.
20168 (CFLAGS-rcmd.c): Likewise.
20169 (CFLAGS-getnetbynm_r.c): Likewise.
20170 (CFLAGS-getnetbynm.c): Likewise.
20171 (CFLAGS-getnetbyad_r.c): Likewise.
20172 (CFLAGS-getnetbyad.c): Likewise.
20173 (CFLAGS-getnetent_r.c): Likewise.
20174 (CFLAGS-getnetent.c): Likewise.
20175 (CFLAGS-getaliasent_r.c): Likewise.
20176 (CFLAGS-getaliasent.c): Likewise.
20177 (CFLAGS-getrpcent_r.c): Likewise.
20178 (CFLAGS-getrpcent.c): Likewise.
20179 (CFLAGS-getservent_r.c): Likewise.
20180 (CFLAGS-getservent.c): Likewise.
20181 (CFLAGS-getprtent_r.c): Likewise.
20182 (CFLAGS-getprtent.c): Likewise.
20183 (CFLAGS-either_ntoh.c): Likewise.
20184 (CFLAGS-either_hton.c): Likewise.
20185 (CFLAGS-getnetgrent.c): Likewise.
20186 (CFLAGS-getnetgrent_r.c): Likewise.
20187 (CFLAGS-tst-checks-posix.c): Likewise.
20188 (CFLAGS-tst-sockaddr.c): Likewise.
20189 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20190 (CFLAGS-tst-translit.c): Likewise.
20191 (CFLAGS-tst-gettext2.c): Likewise.
20192 (CFLAGS-tst-codeset.c): Likewise.
20193 (CFLAGS-tst-gettext3.c): Likewise.
20194 (CFLAGS-tst-gettext4.c): Likewise.
20195 (CFLAGS-tst-gettext5.c): Likewise.
20196 (CFLAGS-tst-gettext6.c): Likewise.
20197 * io/Makefile (CFLAGS-open.c): Likewise.
20198 (CFLAGS-open64.c): Likewise.
20199 (CFLAGS-creat.c): Likewise.
20200 (CFLAGS-creat64.c): Likewise.
20201 (CFLAGS-fcntl.c): Likewise.
20202 (CFLAGS-poll.c): Likewise.
20203 (CFLAGS-ppoll.c): Likewise.
20204 (CFLAGS-lockf.c): Likewise.
20205 (CFLAGS-statfs.c): Likewise.
20206 (CFLAGS-fstatfs.c): Likewise.
20207 (CFLAGS-statvfs.c): Likewise.
20208 (CFLAGS-fstatvfs.c): Likewise.
20209 (CFLAGS-fts.c): Likewise.
20210 (CFLAGS-fts64.c): Likewise.
20211 (CFLAGS-ftw.c): Likewise.
20212 (CFLAGS-ftw64.c): Likewise.
20213 (CFLAGS-lockf.c): Likewise.
20214 (CFLAGS-posix_fallocate.c): Likewise.
20215 (CFLAGS-posix_fallocate64.c): Likewise.
20216 (CFLAGS-fallocate.c): Likewise.
20217 (CFLAGS-fallocate64.c): Likewise.
20218 (CFLAGS-read.c): Likewise.
20219 (CFLAGS-write.c): Likewise.
20220 (CFLAGS-test-stat.c): Likewise.
20221 (CFLAGS-test-lfs.c): Likewise.
20222 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20223 (CFLAGS-fputc.c): Likewise.
20224 (CFLAGS-fputwc.c): Likewise.
20225 (CFLAGS-freopen64.c): Likewise.
20226 (CFLAGS-freopen.c): Likewise.
20227 (CFLAGS-fseek.c): Likewise.
20228 (CFLAGS-fseeko64.c): Likewise.
20229 (CFLAGS-fseeko.c): Likewise.
20230 (CFLAGS-ftello64.c): Likewise.
20231 (CFLAGS-ftello.c): Likewise.
20232 (CFLAGS-fwide.c): Likewise.
20233 (CFLAGS-genops.c): Likewise.
20234 (CFLAGS-getc.c): Likewise.
20235 (CFLAGS-getchar.c): Likewise.
20236 (CFLAGS-getwc.c): Likewise.
20237 (CFLAGS-getwchar.c): Likewise.
20238 (CFLAGS-iofclose.c): Likewise.
20239 (CFLAGS-iofflush.c): Likewise.
20240 (CFLAGS-iofgetpos64.c): Likewise.
20241 (CFLAGS-iofgetpos.c): Likewise.
20242 (CFLAGS-iofgets.c): Likewise.
20243 (CFLAGS-iofgetws.c): Likewise.
20244 (CFLAGS-iofputs.c): Likewise.
20245 (CFLAGS-iofputws.c): Likewise.
20246 (CFLAGS-iofread.c): Likewise.
20247 (CFLAGS-iofsetpos64.c): Likewise.
20248 (CFLAGS-iofsetpos.c): Likewise.
20249 (CFLAGS-ioftell.c): Likewise.
20250 (CFLAGS-iofwrite.c): Likewise.
20251 (CFLAGS-iogetdelim.c): Likewise.
20252 (CFLAGS-iogetline.c): Likewise.
20253 (CFLAGS-iogets.c): Likewise.
20254 (CFLAGS-iogetwline.c): Likewise.
20255 (CFLAGS-ioputs.c): Likewise.
20256 (CFLAGS-ioseekoff.c): Likewise.
20257 (CFLAGS-ioseekpos.c): Likewise.
20258 (CFLAGS-iosetbuffer.c): Likewise.
20259 (CFLAGS-iosetvbuf.c): Likewise.
20260 (CFLAGS-ioungetc.c): Likewise.
20261 (CFLAGS-ioungetwc.c): Likewise.
20262 (CFLAGS-oldfileops.c): Likewise.
20263 (CFLAGS-oldiofclose.c): Likewise.
20264 (CFLAGS-oldiofgetpos64.c): Likewise.
20265 (CFLAGS-oldiofgetpos.c): Likewise.
20266 (CFLAGS-oldiofsetpos64.c): Likewise.
20267 (CFLAGS-oldiofsetpos.c): Likewise.
20268 (CFLAGS-peekc.c): Likewise.
20269 (CFLAGS-putc.c): Likewise.
20270 (CFLAGS-putchar.c): Likewise.
20271 (CFLAGS-putwc.c): Likewise.
20272 (CFLAGS-putwchar.c): Likewise.
20273 (CFLAGS-rewind.c): Likewise.
20274 (CFLAGS-wfileops.c): Likewise.
20275 (CFLAGS-wgenops.c): Likewise.
20276 (CFLAGS-oldiofopen.c): Likewise.
20277 (CFLAGS-iofopen.c): Likewise.
20278 (CFLAGS-iofopen64.c): Likewise.
20279 (CFLAGS-oldtmpfile.c): Likewise.
20280 (CFLAGS-tst_putwc.c): Likewise.
20281 * locale/Makefile (CFLAGS-md5.c): Likewise.
20282 (CFLAGS-charmap.c): Likewise.
20283 (CFLAGS-locfile.c): Likewise.
20284 (CFLAGS-charmap-dir.c): Likewise.
20285 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20286 (CFLAGS-getpt.c): Likewise.
20287 (CFLAGS-pt_chown.c): Likewise.
20288 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20289 (CFLAGS-obstack.c): Likewise.
20290 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20291 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20292 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20293 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20294 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20295 (CFLAGS-test-tgmath.c): Likewise.
20296 (CFLAGS-test-tgmath2.c): Likewise.
20297 (CFLAGS-test-tgmath-ret.c): Likewise.
20298 (CFLAGS-test-powl.c): Likewise.
20299 (CFLAGS-test-snan.c): Likewise.
20300 (CFLAGS-test-signgam-finite.c): Likewise.
20301 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20302 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20303 (CFLAGS-test-signgam-uchar.c): Likewise.
20304 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20305 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20306 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20307 (CFLAGS-test-signgam-uint.c): Likewise.
20308 (CFLAGS-test-signgam-uint-init.c): Likewise.
20309 (CFLAGS-test-signgam-uint-static.c): Likewise.
20310 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20311 (CFLAGS-test-signgam-ullong.c): Likewise.
20312 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20313 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20314 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20315 (CFLAGS-test-math-cxx11.cc): Likewise.
20316 (CFLAGS-test-math-isinff.cc): Likewise.
20317 (CFLAGS-test-math-iszero.cc): Likewise.
20318 (CFLAGS-test-math-issignaling.cc): Likewise.
20319 (CFLAGS-test-math-iscanonical.cc): Likewise.
20320 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20321 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20322 (CFLAGS-test-flt-eval-method.c): Likewise.
20323 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20324 (CFLAGS-test-finite-macros.c): Likewise.
20325 * misc/Makefile (CFLAGS-select.c): Likewise.
20326 (CFLAGS-tsearch.c): Likewise.
20327 (CFLAGS-lsearch.c): Likewise.
20328 (CFLAGS-pselect.c): Likewise.
20329 (CFLAGS-readv.c): Likewise.
20330 (CFLAGS-writev.c): Likewise.
20331 (CFLAGS-preadv.c): Likewise.
20332 (CFLAGS-preadv64.c): Likewise.
20333 (CFLAGS-pwritev.c): Likewise.
20334 (CFLAGS-pwritev64.c): Likewise.
20335 (CFLAGS-preadv2.c): Likewise.
20336 (CFLAGS-preadv64v2.c): Likewise.
20337 (CFLAGS-pwritev2.c): Likewise.
20338 (CFLAGS-pwritev64v2.c): Likewise.
20339 (CFLAGS-usleep.c): Likewise.
20340 (CFLAGS-syslog.c): Likewise.
20341 (CFLAGS-error.c): Likewise.
20342 (CFLAGS-getpass.c): Likewise.
20343 (CFLAGS-mkstemp.c): Likewise.
20344 (CFLAGS-mkstemp64.c): Likewise.
20345 (CFLAGS-getsysstats.c): Likewise.
20346 (CFLAGS-getusershell.c): Likewise.
20347 (CFLAGS-err.c): Likewise.
20348 (CFLAGS-tst-tsearch.c): Likewise.
20349 (CFLAGS-msync.c): Likewise.
20350 (CFLAGS-fdatasync.c): Likewise.
20351 (CFLAGS-fsync.c): Likewise.
20352 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20353 (CFLAGS-unwind.c): Likewise.
20354 (CFLAGS-unwind-forcedunwind.c): Likewise.
20355 (CFLAGS-pthread_cancel.c): Likewise.
20356 (CFLAGS-pthread_setcancelstate.c): Likewise.
20357 (CFLAGS-pthread_setcanceltype.c): Likewise.
20358 (CFLAGS-cancellation.c): Likewise.
20359 (CFLAGS-libc-cancellation.c): Likewise.
20360 (CFLAGS-pthread_exit.c): Likewise.
20361 (CFLAGS-forward.c): Likewise.
20362 (CFLAGS-pthread_testcancel.c): Likewise.
20363 (CFLAGS-pthread_join.c): Likewise.
20364 (CFLAGS-pthread_timedjoin.c): Likewise.
20365 (CFLAGS-pthread_once.c): Likewise.
20366 (CFLAGS-pthread_cond_wait.c): Likewise.
20367 (CFLAGS-sem_wait.c): Likewise.
20368 (CFLAGS-sem_timedwait.c): Likewise.
20369 (CFLAGS-fcntl.c): Likewise.
20370 (CFLAGS-lockf.c): Likewise.
20371 (CFLAGS-pread.c): Likewise.
20372 (CFLAGS-pread64.c): Likewise.
20373 (CFLAGS-pwrite.c): Likewise.
20374 (CFLAGS-pwrite64.c): Likewise.
20375 (CFLAGS-wait.c): Likewise.
20376 (CFLAGS-waitpid.c): Likewise.
20377 (CFLAGS-sigwait.c): Likewise.
20378 (CFLAGS-msgrcv.c): Likewise.
20379 (CFLAGS-msgsnd.c): Likewise.
20380 (CFLAGS-tcdrain.c): Likewise.
20381 (CFLAGS-open.c): Likewise.
20382 (CFLAGS-open64.c): Likewise.
20383 (CFLAGS-pause.c): Likewise.
20384 (CFLAGS-recv.c): Likewise.
20385 (CFLAGS-send.c): Likewise.
20386 (CFLAGS-accept.c): Likewise.
20387 (CFLAGS-sendto.c): Likewise.
20388 (CFLAGS-connect.c): Likewise.
20389 (CFLAGS-recvfrom.c): Likewise.
20390 (CFLAGS-recvmsg.c): Likewise.
20391 (CFLAGS-sendmsg.c): Likewise.
20392 (CFLAGS-close.c): Likewise.
20393 (CFLAGS-read.c): Likewise.
20394 (CFLAGS-write.c): Likewise.
20395 (CFLAGS-nanosleep.c): Likewise.
20396 (CFLAGS-sigsuspend.c): Likewise.
20397 (CFLAGS-msync.c): Likewise.
20398 (CFLAGS-fdatasync.c): Likewise.
20399 (CFLAGS-fsync.c): Likewise.
20400 (CFLAGS-pt-system.c): Likewise.
20401 (CFLAGS-tst-cleanup2.c): Likewise.
20402 (CFLAGS-tst-cleanupx2.c): Likewise.
20403 (CFLAGS-flockfile.c): Likewise.
20404 (CFLAGS-ftrylockfile.c): Likewise.
20405 (CFLAGS-funlockfile.c): Likewise.
20406 (CFLAGS-tst-initializers1.c): Likewise.
20407 (CFLAGS-tst-initializers1-c89.c): Likewise.
20408 (CFLAGS-tst-initializers1-c99.c): Likewise.
20409 (CFLAGS-tst-initializers1-c11.c): Likewise.
20410 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
20411 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
20412 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20413 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
20414 (CFLAGS-nscd_getgr_r.c): Likewise.
20415 (CFLAGS-nscd_gethst_r.c): Likewise.
20416 (CFLAGS-nscd_getai.c): Likewise.
20417 (CFLAGS-nscd_initgroups.c): Likewise.
20418 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
20419 (CFLAGS-pause.c): Likewise.
20420 (CFLAGS-pread.c): Likewise.
20421 (CFLAGS-pread64.c): Likewise.
20422 (CFLAGS-pwrite.c): Likewise.
20423 (CFLAGS-pwrite64.c): Likewise.
20424 (CFLAGS-sleep.c): Likewise.
20425 (CFLAGS-wait.c): Likewise.
20426 (CFLAGS-waitid.c): Likewise.
20427 (CFLAGS-waitpid.c): Likewise.
20428 (CFLAGS-getopt.c): Likewise.
20429 (CFLAGS-wordexp.c): Likewise.
20430 (CFLAGS-sysconf.c): Likewise.
20431 (CFLAGS-pathconf.c): Likewise.
20432 (CFLAGS-fpathconf.c): Likewise.
20433 (CFLAGS-spawn.c): Likewise.
20434 (CFLAGS-spawnp.c): Likewise.
20435 (CFLAGS-spawni.c): Likewise.
20436 (CFLAGS-glob.c): Likewise.
20437 (CFLAGS-glob64.c): Likewise.
20438 (CFLAGS-getconf.c): Likewise.
20439 (CFLAGS-nanosleep.c): Likewise.
20440 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
20441 (CFLAGS-getpwent.c): Likewise.
20442 (CFLAGS-getpw.c): Likewise.
20443 (CFLAGS-fgetpwent_r.c): Likewise.
20444 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
20445 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
20446 (CFLAGS-mq_timedreceive.c): Likewise.
20447 (CFLAGS-mq_timedsend.c): Likewise.
20448 (CFLAGS-clock_nanosleep.c): Likewise.
20449 (CFLAGS-librt-cancellation.c): Likewise.
20450 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
20451 (CFLAGS-getspent.c): Likewise.
20452 (CFLAGS-fgetspent.c): Likewise.
20453 (CFLAGS-fgetspent_r.c): Likewise.
20454 (CFLAGS-putspent.c): Likewise.
20455 (CFLAGS-getspnam.c): Likewise.
20456 (CFLAGS-getspnam_r.c): Likewise.
20457 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
20458 (CFLAGS-sigsuspend.c): Likewise.
20459 (CFLAGS-sigtimedwait.c): Likewise.
20460 (CFLAGS-sigwait.c): Likewise.
20461 (CFLAGS-sigwaitinfo.c): Likewise.
20462 (CFLAGS-sigreturn.c): Likewise.
20463 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
20464 (CFLAGS-vfwprintf.c): Likewise.
20465 (CFLAGS-tmpfile.c): Likewise.
20466 (CFLAGS-tmpfile64.c): Likewise.
20467 (CFLAGS-tempname.c): Likewise.
20468 (CFLAGS-psignal.c): Likewise.
20469 (CFLAGS-vprintf.c): Likewise.
20470 (CFLAGS-cuserid.c): Likewise.
20471 (CFLAGS-errlist.c): Likewise.
20472 (CFLAGS-siglist.c): Likewise.
20473 (CFLAGS-scanf15.c): Likewise.
20474 (CFLAGS-scanf17.c): Likewise.
20475 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
20476 (CFLAGS-msort.c): Likewise.
20477 (CFLAGS-qsort.c): Likewise.
20478 (CFLAGS-system.c): Likewise.
20479 (CFLAGS-fmtmsg.c): Likewise.
20480 (CFLAGS-strfmon.c): Likewise.
20481 (CFLAGS-strfmon_l.c): Likewise.
20482 (CFLAGS-strfromd.c): Likewise.
20483 (CFLAGS-strfromf.c): Likewise.
20484 (CFLAGS-strfroml.c): Likewise.
20485 (CFLAGS-tst-bsearch.c): Likewise.
20486 (CFLAGS-tst-qsort.c): Likewise.
20487 (CFLAGS-tst-makecontext2.c): Likewise.
20488 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
20489 (CFLAGS-xnlm_prot.c): Likewise.
20490 (CFLAGS-xrstat.c): Likewise.
20491 (CFLAGS-xyppasswd.c): Likewise.
20492 (CFLAGS-xklm_prot.c): Likewise.
20493 (CFLAGS-xrex.c): Likewise.
20494 (CFLAGS-xsm_inter.c): Likewise.
20495 (CFLAGS-xmount.c): Likewise.
20496 (CFLAGS-xrusers.c): Likewise.
20497 (CFLAGS-xspray.c): Likewise.
20498 (CFLAGS-xnfs_prot.c): Likewise.
20499 (CFLAGS-xrquota.c): Likewise.
20500 (CFLAGS-xkey_prot.c): Likewise.
20501 (CFLAGS-auth_unix.c): Likewise.
20502 (CFLAGS-key_call.c): Likewise.
20503 (CFLAGS-pmap_rmt.c): Likewise.
20504 (CFLAGS-clnt_perr.c): Likewise.
20505 (CFLAGS-openchild.c): Likewise.
20506 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
20507 (CFLAGS-msgsnd.c): Likewise.
20508 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
20509 * time/Makefile (CFLAGS-tzfile.c): Likewise.
20510 (CFLAGS-tzset.c): Likewise.
20511 (CFLAGS-getdate.c): Likewise.
20512 (CFLAGS-test_time.c): Likewise.
20513 (CPPFLAGS-tst-tzname.c): Likewise.
20514 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
20515 (CFLAGS-zic.c): Likewise.
20516 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
20517 (CFLAGS-wcswidth.c): Likewise.
20518 (CFLAGS-wcstol.c): Likewise.
20519 (CFLAGS-wcstoul.c): Likewise.
20520 (CFLAGS-wcstoll.c): Likewise.
20521 (CFLAGS-wcstoull.c): Likewise.
20522 (CFLAGS-wcstod.c): Likewise.
20523 (CFLAGS-wcstold.c): Likewise.
20524 (CFLAGS-wcstof128.c): Likewise.
20525 (CFLAGS-wcstof.c): Likewise.
20526 (CFLAGS-wcstol_l.c): Likewise.
20527 (CFLAGS-wcstoul_l.c): Likewise.
20528 (CFLAGS-wcstoll_l.c): Likewise.
20529 (CFLAGS-wcstoull_l.c): Likewise.
20530 (CFLAGS-wcstod_l.c): Likewise.
20531 (CFLAGS-wcstold_l.c): Likewise.
20532 (CFLAGS-wcstof128_l.c): Likewise.
20533 (CFLAGS-wcstof_l.c): Likewise.
20534 (CPPFLAGS-tst-wchar-h.c): Likewise.
20535 (CPPFLAGS-wcstold_l.c): Likewise.
20536
20537 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
20538
20539 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
20540
20541 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20542 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20543
20544 * manual/tunables.texi (Hardware Capability Tunables): Document
20545 glibc.tune.cached_memopt.
20546 * sysdeps/powerpc/cpu-features.c: New file.
20547 * sysdeps/powerpc/cpu-features.h: New file.
20548 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
20549 _dl_powerpc_cpu_features.
20550 * sysdeps/powerpc/dl-tunables.list: New file.
20551 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
20552 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
20553 (INIT_ARCH): Initialize use_aligned_memopt.
20554 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
20555 IS_IN(rtld))]: Restrict dl_platform_init availability and
20556 initialize CPU features used by tunables.
20557 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
20558 Add memcpy-power8-cached.
20559 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
20560 __memcpy_power8_cached.
20561 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
20562 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
20563 New file.
20564
20565 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20566
20567 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
20568 (CFLAGS-noinl-tester.c): Likewise.
20569 (CFLAGS-tst-strlen.c): Likewise.
20570 (CFLAGS-stratcliff.c): Likewise.
20571 (CFLAGS-test-ffs.c): Likewise.
20572 (CFLAGS-tst-inlcall.c): Likewise.
20573 (CFLAGS-tst-xbzero-opt.c): Likewise.
20574 (CFLAGS-memcpy.c): Likewise.
20575 (CFLAGS-wordcopy.c): Likewise.
20576
20577 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
20578
20579 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
20580 Store r15 on stack and add cfi rule.
20581 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
20582 Likewise.
20583
20584 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
20585
20586 [BZ #22577]
20587 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
20588 call.
20589
20590 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20591
20592 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20593 Add s_sinf-sse2 and s_sinf-fma.
20594 (CFLAGS-s_sinf-fma.c): New.
20595 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
20596 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
20597 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
20598
20599 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20600
20601 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
20602
20603 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20604
20605 [BZ #22568]
20606 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
20607 part of result to imaginary part of argument if it is zero and the
20608 real part of the argument is not finite.
20609 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
20610 of result to real part of argument if it is zero and the imaginary
20611 part of the argument is not finite.
20612
20613 2017-12-07 Mike FABIAN <mfabian@redhat.com>
20614
20615 [BZ #22524]
20616 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
20617 and to the list of locales to be built for testing.
20618 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
20619 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
20620 and build the collation rules upon that.
20621
20622 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20623
20624 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
20625 * manual/math.texi (Mathematics): Document support for _Float32.
20626 * math/Makefile (test-types): Add float32.
20627 * math/Versions (GLIBC_2.27): Add _Float32 functions.
20628 * stdlib/Versions (GLIBC_2.27): Likewise.
20629 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20630 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20631 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20632 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20633 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20634 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20635 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20636 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20637 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20638 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20639 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20640 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20641 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20642 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20643 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20644 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20645 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20646 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20647 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20648 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20649 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20650 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20651 Likewise.
20652 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20653 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20654 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20655 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20656 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20658 Likewise.
20659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20660 Likewise.
20661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20662 Likewise.
20663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20664 Likewise.
20665
20666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20667 Likewise.
20668 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20669 Likewise.
20670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20671 Likewise.
20672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20673 Likewise.
20674 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20675 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20676 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20677 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20678 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20679 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20680 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20681 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20682 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20683 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20684 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20685 Likewise.
20686 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20687 Likewise.
20688 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20689 Likewise.
20690 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20691 Likewise.
20692 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20693 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20694 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20695 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20696 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20697 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20698 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20699 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20700
20701 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20702
20703 * stdlib/strtof.c: Include <bits/floatn.h>
20704 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
20705 and later undefine as macro. Define as weak alias if
20706 [!USE_WIDE_CHAR].
20707 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
20708 and later undefine as macro. Define as weak alias if
20709 [USE_WIDE_CHAR].
20710 * stdlib/strtof_l.c: Include <bits/floatn.h>
20711 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
20712 and later undefine as macro. Define as weak alias if
20713 [!USE_WIDE_CHAR].
20714 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
20715 and later undefine as macro. Define as weak alias if
20716 [USE_WIDE_CHAR].
20717
20718 * stdlib/strfromf.c: Include <bits/floatn.h>.
20719 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
20720 and later undefine as macro and define as weak alias.
20721
20722 * math/test-float32.h: New file.
20723
20724 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
20725 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
20726 (libm_alias_float_other_r): Create f32 alias.
20727 (libm_alias_float_r): Use semicolon before call to
20728 libm_alias_float_other_r.
20729
20730 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
20731 second argument to libm_alias_float_other.
20732 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
20733 second argument to libm_alias_float_other.
20734 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
20735 argument to libm_alias_float_other.
20736
20737 [BZ #22561]
20738 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
20739 real part of result for argument 0 + i * NaN.
20740 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
20741 results for tests of 0 + i * NaN.
20742
20743 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20744
20745 * sysdeps/alpha/fpu/libm-test-ulps: Update.
20746
20747 2017-12-06 David S. Miller <davem@davemloft.net>
20748
20749 * sysdeps/sparc/fpu/libm-test-ulps: Update
20750 exp_{downward,towardzero,upward} ulps.
20751
20752 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20753
20754 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20755 variables static.
20756
20757 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20758 (Y0_2D): Likewise.
20759 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20760 (Y0_2D): Likewise.
20761 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20762 (Y0_2D): Likewise.
20763 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20764 (Y0_2D): Likewise.
20765
20766 2017-12-06 Mike FABIAN <mfabian@redhat.com>
20767
20768 [BZ #22515]
20769 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20770 and to the list of locales to be built for testing.
20771 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20772 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20773 and build the collation rules upon that.
20774
20775 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20776
20777 * NEWS: Add sinf to list of optimized functions.
20778
20779 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20780
20781 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20782 (__HAVE_FLOAT32X): Likewise.
20783 * manual/math.texi (Mathematics): Document support for _Float64
20784 and _Float32x.
20785 * math/Makefile (test-types): Add float64 and float32x.
20786 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20787 functions.
20788 * stdlib/Versions (GLIBC_2.27): Likewise.
20789 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20790 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20791 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20792 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20793 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20794 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20795 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20796 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20797 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20798 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20799 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20800 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20801 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20802 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20803 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20804 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20805 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20806 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20807 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20808 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20809 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20810 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20811 Likewise.
20812 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20813 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20814 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20815 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20816 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20818 Likewise.
20819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20820 Likewise.
20821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20822 Likewise.
20823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20824 Likewise.
20825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20826 Likewise.
20827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20828 Likewise.
20829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20830 Likewise.
20831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20832 Likewise.
20833 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20834 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20835 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20836 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20837 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20838 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20839 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20840 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20841 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20842 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20843 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20844 Likewise.
20845 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20846 Likewise.
20847 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20848 Likewise.
20849 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20850 Likewise.
20851 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20852 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20853 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20854 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20855 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20856 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20857 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20858 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20859
20860 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20861
20862 * bits/floatn-common.h: Include <bits/long-double.h>.
20863 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20864 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20865 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20866 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20867 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20868 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20869 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20870 (__builtin_huge_valf64): Use __builtin_huge_vall.
20871 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20872 (__builtin_inff64): Use __builtin_infl.
20873 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20874 (__builtin_nanf64): Use __builtin_nanl.
20875 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20876 (__builtin_nansf64): Use __builtin_nansl.
20877
20878 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
20879 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
20880 Carlos O'Donnell <carlos@redhat.com>
20881
20882 * elf/dl-tunables.list: Add elision parameters.
20883 * manual/tunables.texi: Add entries about elision tunable.
20884 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20885 Add callback functions to dynamically enable/disable elision.
20886 Add multiple callbacks functions to set elision parameters.
20887 Deleted __libc_enable_secure check.
20888 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20889 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20890 * configure: Regenerated.
20891 * configure.ac: Option enable_lock_elision was deleted.
20892 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20893 * config.make.in: Remove references to enable_lock_elision.
20894 * manual/install.texi: Elision configure option was removed.
20895 * INSTALL: Regenerated to remove enable_lock_elision.
20896 * nptl/Makefile:
20897 Disable elision so it can verify error case for destroying a mutex.
20898 * sysdeps/powerpc/nptl/elide.h:
20899 Cleanup ENABLE_LOCK_ELISION check.
20900 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20901 * sysdeps/s390/configure: Regenerated.
20902 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20903 * nptl/tst-mutex8.c:
20904 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20905 * sysdeps/powerpc/powerpc32/sysdep.h:
20906 Deleted all ENABLE_LOCK_ELISION checks.
20907 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20908 * sysdeps/powerpc/sysdep.h: Likewise.
20909 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20910 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20911 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20912 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20913 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20914 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20915 enable-lock-elision.
20916
20917 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20918
20919 * stdlib/strtod.c: Include <bits/floatn.h>.
20920 (BUILD_DOUBLE): New macro.
20921 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20922 (strtof64): Define and later undefine as macro. Define as weak
20923 alias if [!USE_WIDE_CHAR].
20924 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20925 (wcstof64): Define and later undefine as macro. Define as weak
20926 alias if [USE_WIDE_CHAR].
20927 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20928 (strtof32x): Define and later undefine as macro. Define as weak
20929 alias if [!USE_WIDE_CHAR].
20930 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20931 (wcstof32x): Define and later undefine as macro. Define as weak
20932 alias if [USE_WIDE_CHAR].
20933 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20934 (BUILD_DOUBLE): New macro.
20935 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20936 (strtof64_l): Define and later undefine as macro. Define as weak
20937 alias if [!USE_WIDE_CHAR].
20938 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20939 (wcstof64_l): Define and later undefine as macro. Define as weak
20940 alias if [USE_WIDE_CHAR].
20941 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20942 (strtof32x_l): Define and later undefine as macro. Define as weak
20943 alias if [!USE_WIDE_CHAR].
20944 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20945 (wcstof32x_l): Define and later undefine as macro. Define as weak
20946 alias if [USE_WIDE_CHAR].
20947
20948 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20949
20950 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20951 (reduced): Use ones as double instead of integer.
20952
20953 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20954
20955 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20956
20957 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20958
20959 * stdlib/strfromd.c: Include <bits/floatn.h>.
20960 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20961 and later undefine as macro and define as weak alias.
20962 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20963 Likewise.
20964
20965 * math/test-float32x.h: New file.
20966 * math/test-float64.h: Likewise.
20967
20968 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20969 (libm_alias_double_other_r_f64): New macro.
20970 (libm_alias_double_other_r_f32x): Likewise.
20971 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20972 libm_alias_double_other_r_f32x.
20973 (libm_alias_double_r): Use semicolon before call to
20974 libm_alias_double_other_r.
20975 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20976 <bits/floatn.h>.
20977 (libm_alias_double_other_r_f64): New macro.
20978 (libm_alias_double_other_r_f32x): Likewise.
20979 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20980 libm_alias_double_other_r_f32x.
20981
20982 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20983
20984 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20985 int.
20986 (SINF_FUNC): Likewise. Replace floor with simple casts.
20987
20988 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20989
20990 [BZ #22517]
20991 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20992 and to the list of locales to be built for testing.
20993 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20994 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20995 and build the collation rules upon that.
20996
20997 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20998
20999 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21000 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21001 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21002 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21003 instead of __insn__xxx.
21004 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21005 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21006 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21007 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21008 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21009 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21010
21011 2017-12-05 Florian Weimer <fweimer@redhat.com>
21012
21013 Linux: Implement interfaces for memory protection keys
21014 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21015 xsignal, xsysconf.
21016 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21017 * support/xunistd.h (xsysconf): Declare.
21018 * support/xraise.c: New file.
21019 * support/xsigaction.c: Likewise.
21020 * support/xsignal.c: Likewise.
21021 * support/xsysconf.c: Likewise.
21022 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21023 pkey_set, pkey_get, pkey_mprotect.
21024 [misc] (tests): Add tst-pkey.
21025 (tst-pkey): Link with -lpthread.
21026 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21027 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21028 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21029 (PKEY_DISABLE_WRITE): Define.
21030 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21031 Declare.
21032 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21033 (SEGV_PKUERR): Add.
21034 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21035 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21036 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21037 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21038 Add.
21039 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21040 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21041 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21042 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21043 * sysdeps/unix/sysv/linux/**.abilist: Update.
21044
21045 2017-12-05 Florian Weimer <fweimer@redhat.com>
21046
21047 * support/tst-test_compare.c (subprocess): Use long long instead
21048 of long argument for consistent type width across 32-bit and
21049 64-bit architectures.
21050 (do_test): Adjust expected output.
21051
21052 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21053
21054 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21055 (cosf): Define using libm_alias_float.
21056 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21057 (fabsf): Define using libm_alias_float.
21058 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21059 (fmaf): Define using libm_alias_float.
21060 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21061 (rintf): Define using libm_alias_float.
21062 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21063 (sinf): Define using libm_alias_float.
21064 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21065 <libm-alias-float.h>.
21066 (modff): Define using libm_alias_float.
21067 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21068 <libm-alias-float.h>.
21069 (logbf): Define using libm_alias_float.
21070 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21071 <libm-alias-float.h>.
21072 (ceilf): Define using libm_alias_float.
21073 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21074 <libm-alias-float.h>.
21075 (copysignf): Define using libm_alias_float.
21076 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21077 <libm-alias-float.h>.
21078 (floorf): Define using libm_alias_float.
21079 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21080 <libm-alias-float.h>.
21081 (llrintf): Define using libm_alias_float.
21082 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21083 <libm-alias-float.h>.
21084 (llroundf): Define using libm_alias_float.
21085 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21086 <libm-alias-float.h>.
21087 (lrintf): Define using libm_alias_float.
21088 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21089 <libm-alias-float.h>.
21090 (lroundf): Define using libm_alias_float.
21091 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21092 <libm-alias-float.h>.
21093 (nearbyintf): Define using libm_alias_float.
21094 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21095 <libm-alias-float.h>.
21096 (rintf): Define using libm_alias_float.
21097 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21098 <libm-alias-float.h>.
21099 (roundf): Define using libm_alias_float.
21100 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21101 <libm-alias-float.h>.
21102 (truncf): Define using libm_alias_float.
21103 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21104 Include <libm-alias-float.h>.
21105 (ceilf): Define using libm_alias_float.
21106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21107 Include <libm-alias-float.h>.
21108 (copysignf): Define using libm_alias_float.
21109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21110 Include <libm-alias-float.h>.
21111 (floorf): Define using libm_alias_float.
21112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21113 Include <libm-alias-float.h>.
21114 (llrintf): Define using libm_alias_float.
21115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21116 Include <libm-alias-float.h>.
21117 (llroundf): Define using libm_alias_float.
21118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21119 Include <libm-alias-float.h>.
21120 (logbf): Define using libm_alias_float.
21121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21122 Include <libm-alias-float.h>.
21123 (lrintf): Define using libm_alias_float.
21124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21125 Include <libm-alias-float.h>.
21126 (lroundf): Define using libm_alias_float.
21127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21128 Include <libm-alias-float.h>.
21129 (modff): Define using libm_alias_float.
21130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21131 Include <libm-alias-float.h>.
21132 (roundf): Define using libm_alias_float.
21133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21134 Include <libm-alias-float.h>.
21135 (truncf): Define using libm_alias_float.
21136 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21137 <libm-alias-float.h>.
21138 (llrintf): Define using libm_alias_float.
21139 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21140 <libm-alias-float.h>.
21141 (llroundf): Define using libm_alias_float.
21142 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21143 <libm-alias-float.h>.
21144 (ceilf): Define using libm_alias_float.
21145 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21146 <libm-alias-float.h>.
21147 (floorf): Define using libm_alias_float.
21148 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21149 <libm-alias-float.h>.
21150 (llroundf): Define using libm_alias_float.
21151 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21152 <libm-alias-float.h>.
21153 (lroundf): Define using libm_alias_float.
21154 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21155 <libm-alias-float.h>.
21156 (roundf): Define using libm_alias_float.
21157 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21158 <libm-alias-float.h>.
21159 (truncf): Define using libm_alias_float.
21160 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21161 <libm-alias-float.h>.
21162 (copysignf): Define using libm_alias_float.
21163 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21164 <libm-alias-float.h>.
21165 (llrintf): Define using libm_alias_float.
21166 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21167 <libm-alias-float.h>.
21168 (llroundf): Define using libm_alias_float.
21169 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21170 <libm-alias-float.h>.
21171 (lrintf): Define using libm_alias_float.
21172 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21173 <libm-alias-float.h>.
21174 (lroundf): Define using libm_alias_float.
21175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21176 <libm-alias-float.h>.
21177 (ceilf): Define using libm_alias_float.
21178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21179 <libm-alias-float.h>.
21180 (copysignf): Define using libm_alias_float.
21181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21182 <libm-alias-float.h>.
21183 (cosf): Define using libm_alias_float.
21184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21185 <libm-alias-float.h>.
21186 (floorf): Define using libm_alias_float.
21187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21188 <libm-alias-float.h>.
21189 (llrintf): Define using libm_alias_float.
21190 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21191 <libm-alias-float.h>.
21192 (llroundf): Define using libm_alias_float.
21193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21194 <libm-alias-float.h>.
21195 (logbf): Define using libm_alias_float.
21196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21197 <libm-alias-float.h>.
21198 (modff): Define using libm_alias_float.
21199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21200 <libm-alias-float.h>.
21201 (roundf): Define using libm_alias_float.
21202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21203 <libm-alias-float.h>.
21204 (sinf): Define using libm_alias_float.
21205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21206 <libm-alias-float.h>.
21207 (truncf): Define using libm_alias_float.
21208 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21209 <libm-alias-float.h>.
21210 (ceilf): Define using libm_alias_float.
21211 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21212 <libm-alias-float.h>.
21213 (copysignf): Define using libm_alias_float.
21214 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21215 <libm-alias-float.h>.
21216 (floorf): Define using libm_alias_float.
21217 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21218 <libm-alias-float.h>.
21219 (llrintf): Define using libm_alias_float.
21220 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21221 <libm-alias-float.h>.
21222 (llroundf): Define using libm_alias_float.
21223 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21224 <libm-alias-float.h>.
21225 (nearbyintf): Define using libm_alias_float.
21226 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21227 <libm-alias-float.h>.
21228 (rintf): Define using libm_alias_float.
21229 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21230 <libm-alias-float.h>.
21231 (roundf): Define using libm_alias_float.
21232 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21233 <libm-alias-float.h>.
21234 (truncf): Define using libm_alias_float.
21235 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21236 <libm-alias-float.h>.
21237 (ceilf): Define using libm_alias_float.
21238 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21239 <libm-alias-float.h>.
21240 (floorf): Define using libm_alias_float.
21241 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21242 <libm-alias-float.h>.
21243 (llroundf): Define using libm_alias_float.
21244 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21245 <libm-alias-float.h>.
21246 (roundf): Define using libm_alias_float.
21247 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21248 <libm-alias-float.h>.
21249 (truncf): Define using libm_alias_float.
21250 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21251 <libm-alias-float.h>.
21252 (copysignf): Define using libm_alias_float.
21253 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21254 <libm-alias-float.h>.
21255 (llrintf): Define using libm_alias_float.
21256 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21257 <libm-alias-float.h>.
21258 (llroundf): Define using libm_alias_float.
21259 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21260 <libm-alias-float.h>.
21261 (cosf): Define using libm_alias_float.
21262 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21263 <libm-alias-float.h>.
21264 (llrintf): Define using libm_alias_float.
21265 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21266 <libm-alias-float.h>.
21267 (llroundf): Define using libm_alias_float.
21268 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21269 <libm-alias-float.h>.
21270 (sinf): Define using libm_alias_float.
21271
21272 2017-12-04 Florian Weimer <fweimer@redhat.com>
21273
21274 * support/check.h (TEST_COMPARE): Define.
21275 (support_test_compare_failure): Declare.
21276 * support/Makefile (libsupport-routines): Add
21277 support_test_compare_failure.
21278 (tests): Add tst-test_compare.
21279 * support /support_test_compare_failure.c: New file.
21280 * support/tst-test_compare.c: Likewise.
21281
21282 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21283
21284 [BZ #22527]
21285 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21286 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21287 available, this rewrite of the collation rules does reproduce
21288 the test file in the same order.
21289
21290 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21291
21292 [BZ #10580]
21293 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21294 digraphs in the month and day names. Using single code points for
21295 digraphs is deprecated. While there are dedicated Unicode
21296 codepoints, for the digraphs, these are included for backwards
21297 compatibility and modern texts use a sequence of Basic Latin
21298 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21299 This makes the month and day names agree exactly with CLDR now,
21300 CLDR does not use the single code points for the digraphs either.
21301
21302 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21303
21304 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21305
21306 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21307
21308 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21309 of floor.
21310
21311 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21312
21313 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21314 Define only for libc.so.
21315
21316 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21317
21318 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21319 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21320 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21321 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21322 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21323
21324 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21325
21326 [BZ #5997]
21327 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21328
21329 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21330
21331 [BZ libc/19170]
21332 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21333 PREINIT_FUNCTION_WEAK is nonzero.
21334 (gmon_initializer): New function. Put procedure label for it in
21335 .init_array section.
21336 (_init): Don't call PREINIT_FUNCTION.
21337 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21338 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21339 value when map argument is null.
21340
21341 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21342 depi instruction from PIC pc-relative sequence.
21343 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21344 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21345 (elf_machine_load_address): Likewise.
21346 (elf_machine_runtime_setup): Likewise.
21347
21348 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21349
21350 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21351 <libm-alias-double.h>.
21352 (logb): Define using libm_alias_double.
21353 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21354 <libm-alias-double.h>.
21355 (copysign): Define using libm_alias_double.
21356 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21357 <libm-alias-double.h>.
21358 (llrint): Define using libm_alias_double.
21359 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21360 <libm-alias-double.h>.
21361 (llround): Define using libm_alias_double.
21362 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21363 <libm-alias-double.h>.
21364 (lrint): Define using libm_alias_double.
21365 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21366 <libm-alias-double.h>.
21367 (lround): Define using libm_alias_double.
21368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21369 Include <libm-alias-double.h>.
21370 (copysign): Define using libm_alias_double.
21371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21372 Include <libm-alias-double.h>.
21373 (llrint): Define using libm_alias_double.
21374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21375 Include <libm-alias-double.h>.
21376 (llround): Define using libm_alias_double.
21377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21378 <libm-alias-double.h>.
21379 (logb): Define using libm_alias_double.
21380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21381 Include <libm-alias-double.h>.
21382 (lrint): Define using libm_alias_double.
21383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21384 Include <libm-alias-double.h>.
21385 (lround): Define using libm_alias_double.
21386 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21387 <libm-alias-double.h>.
21388 (llrint): Define using libm_alias_double.
21389 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21390 <libm-alias-double.h>.
21391 (llround): Define using libm_alias_double.
21392 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21393 <libm-alias-double.h>.
21394 (llround): Define using libm_alias_double.
21395 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21396 <libm-alias-double.h>.
21397 (lround): Define using libm_alias_double.
21398 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21399 <libm-alias-double.h>.
21400 (copysign): Define using libm_alias_double.
21401 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
21402 <libm-alias-double.h>.
21403 (llrint): Define using libm_alias_double.
21404 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21405 <libm-alias-double.h>.
21406 (llround): Define using libm_alias_double.
21407 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21408 <libm-alias-double.h>.
21409 (lrint): Define using libm_alias_double.
21410 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21411 <libm-alias-double.h>.
21412 (lround): Define using libm_alias_double.
21413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
21414 <libm-alias-double.h>.
21415 (copysign): Define using libm_alias_double.
21416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
21417 <libm-alias-double.h>.
21418 (llrint): Define using libm_alias_double.
21419 (lrint): Likewise.
21420 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
21421 <libm-alias-double.h>.
21422 (llround): Define using libm_alias_double.
21423 (lround): Likewise.
21424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
21425 <libm-alias-double.h>.
21426 (logb): Define using libm_alias_double.
21427 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21428 <libm-alias-double.h>.
21429 (copysign): Define using libm_alias_double.
21430 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21431 <libm-alias-double.h>.
21432 (llrint): Define using libm_alias_double.
21433 (lrint): Likewise.
21434 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
21435 <libm-alias-double.h>.
21436 (llround): Define using libm_alias_double.
21437 (lround): Likewise.
21438 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21439 <libm-alias-double.h>.
21440 (llround): Define using libm_alias_double.
21441 (lround): Likewise.
21442 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21443 <libm-alias-double.h>.
21444 (copysign): Define using libm_alias_double.
21445 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21446 <libm-alias-double.h>.
21447 (llrint): Define using libm_alias_double.
21448 (lrint): Likewise.
21449 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21450 <libm-alias-double.h>.
21451 (llround): Define using libm_alias_double.
21452 (lround): Likewise.
21453 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21454 <libm-alias-double.h>.
21455 (llrint): Define using libm_alias_double.
21456 (lrint): Likewise.
21457 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21458 <libm-alias-double.h>.
21459 (llround): Define using libm_alias_double.
21460 (lround): Likewise.
21461
21462 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21463
21464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
21465 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
21466 compat symbol based on llround.
21467
21468 * sysdeps/powerpc/power7/fpu/s_logb.c
21469 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
21470 symbol based on __logb, not on logb.
21471 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
21472 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
21474 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21475
21476 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
21477 (rint): Define using libm_alias_double.
21478 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
21479 <libm-alias-double.h>.
21480 (modf): Define using libm_alias_double.
21481 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
21482 <libm-alias-double.h>.
21483 (ceil): Define using libm_alias_double.
21484 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
21485 <libm-alias-double.h>.
21486 (floor): Define using libm_alias_double.
21487 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
21488 <libm-alias-double.h>.
21489 (nearbyint): Define using libm_alias_double.
21490 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
21491 <libm-alias-double.h>.
21492 (rint): Define using libm_alias_double.
21493 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
21494 <libm-alias-double.h>.
21495 (round): Define using libm_alias_double.
21496 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
21497 <libm-alias-double.h>.
21498 (trunc): Define using libm_alias_double.
21499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
21500 <libm-alias-double.h>.
21501 (ceil): Define using libm_alias_double.
21502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
21503 Include <libm-alias-double.h>.
21504 (floor): Define using libm_alias_double.
21505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
21506 <libm-alias-double.h>.
21507 (modf): Define using libm_alias_double.
21508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
21509 Include <libm-alias-double.h>.
21510 (round): Define using libm_alias_double.
21511 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
21512 Include <libm-alias-double.h>.
21513 (trunc): Define using libm_alias_double.
21514 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
21515 <libm-alias-double.h>.
21516 (ceil): Define using libm_alias_double.
21517 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
21518 <libm-alias-double.h>.
21519 (floor): Define using libm_alias_double.
21520 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
21521 <libm-alias-double.h>.
21522 (round): Define using libm_alias_double.
21523 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
21524 <libm-alias-double.h>.
21525 (trunc): Define using libm_alias_double.
21526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
21527 <libm-alias-double.h>.
21528 (ceil): Define using libm_alias_double.
21529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
21530 <libm-alias-double.h>.
21531 (floor): Define using libm_alias_double.
21532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
21533 <libm-alias-double.h>.
21534 (modf): Define using libm_alias_double.
21535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
21536 <libm-alias-double.h>.
21537 (round): Define using libm_alias_double.
21538 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
21539 <libm-alias-double.h>.
21540 (trunc): Define using libm_alias_double.
21541 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
21542 <libm-alias-double.h>.
21543 (ceil): Define using libm_alias_double.
21544 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
21545 <libm-alias-double.h>.
21546 (floor): Define using libm_alias_double.
21547 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
21548 <libm-alias-double.h>.
21549 (nearbyint): Define using libm_alias_double.
21550 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
21551 <libm-alias-double.h>.
21552 (rint): Define using libm_alias_double.
21553 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
21554 <libm-alias-double.h>.
21555 (round): Define using libm_alias_double.
21556 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
21557 <libm-alias-double.h>.
21558 (trunc): Define using libm_alias_double.
21559 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
21560 <libm-alias-double.h>.
21561 (ceil): Define using libm_alias_double.
21562 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
21563 <libm-alias-double.h>.
21564 (floor): Define using libm_alias_double.
21565 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
21566 <libm-alias-double.h>.
21567 (round): Define using libm_alias_double.
21568 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
21569 <libm-alias-double.h>.
21570 (trunc): Define using libm_alias_double.
21571
21572 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
21573 (fabs): Define using libm_alias_double.
21574 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
21575 (fma): Define using libm_alias_double.
21576 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
21577 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
21578 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
21579 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
21580
21581 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21582
21583 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
21584
21585 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
21586 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
21587 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21588
21589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
21590 due redirect macro.
21591
21592 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
21593
21594 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
21595
21596 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21597
21598 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
21599 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
21600 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
21601 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
21602
21603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21604 (libm-sysdep_routines): Add s_nearbyintf-generic and
21605 s_nearbyint-generic.
21606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
21607 New file.
21608 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
21609 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
21610 Likewise.
21611 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
21612 Likewise.
21613 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
21614 file.
21615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21616 Likewise.
21617
21618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21619 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
21620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
21621 file.
21622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
21623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
21624 Likewise.
21625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
21626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
21627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
21628
21629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21630 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
21631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
21632 file.
21633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
21634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
21635 Likewise.
21636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
21637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
21638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
21639
21640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21641 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
21642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
21643 file.
21644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
21645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
21646 Likewise.
21647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
21648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
21649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
21650
21651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21652 (sysdep_calls): New rule.
21653 (sysdep_routines): Use sysdep_calls as base.
21654 (libm-sysdep_routines): Add generic rule for symbols shared with
21655 libc. Add s_copysign-generic and s_copysign-generic objects.
21656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
21657 New file.
21658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
21659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
21660 Likewise.
21661 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
21662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
21663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
21664
21665 2017-12-01 Mike FABIAN <mfabian@redhat.com>
21666
21667 [BZ #22519]
21668 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
21669 the list of locales to be built for testing.
21670 * localedata/is_IS.UTF-8.in: New file.
21671 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
21672 on iso14651_t1.
21673
21674 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21675
21676 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
21677 <libm-alias-float.h>.
21678 (fabsf): Define using libm_alias_float.
21679
21680 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21681
21682 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
21683
21684 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21685
21686 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
21687 <libm-alias-float.h>.
21688 (fabsf): Define using libm_alias_float.
21689 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
21690 <libm-alias-float.h>.
21691 (lrintf): Define using libm_alias_float.
21692 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
21693 <libm-alias-float.h>.
21694 (rintf): Define using libm_alias_float.
21695
21696 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
21697 <libm-alias-double.h>.
21698 (fabs): Define using libm_alias_double.
21699 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
21700 <libm-alias-double.h>.
21701 (lrint): Define using libm_alias_double.
21702 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
21703 <libm-alias-double.h>.
21704 (rint): Define using libm_alias_double.
21705
21706 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
21707 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
21708 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
21709 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
21710 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
21711 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
21712 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
21713 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
21714 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
21715 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
21716 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
21717 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
21718 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
21719 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
21720 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
21721 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
21722 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
21723 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
21724 s_atan_template.c.
21725 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
21726 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
21727 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
21728 s_ceil_template.c.
21729 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
21730 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
21731 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
21732 s_cos_template.c.
21733 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
21734 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
21735 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
21736 s_expm1_template.c.
21737 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
21738 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
21739 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
21740 s_fabs_template.c.
21741 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
21742 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
21743 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
21744 s_floor_template.c.
21745 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21746 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21747 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21748 s_frexp_template.c.
21749 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21750 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21751 s_lrint_template.c.
21752 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21753 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21754 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21755 s_modf_template.c.
21756 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21757 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21758 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21759 s_nearbyint_template.c.
21760 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21761 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21762 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21763 s_remquo_template.c.
21764 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21765 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21766 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21767 s_rint_template.c.
21768 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21769 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21770 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21771 s_sin_template.c.
21772 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21773 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21774 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21775 s_sincos_template.c.
21776 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21777 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21778 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21779 s_tan_template.c.
21780 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21781 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21782 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21783 s_tanh_template.c.
21784 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21785 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21786 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21787 s_trunc_template.c.
21788 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21789 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21790 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21791 s_atan.c instead of including s_atan.c.
21792 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21793 s_atanf.c instead of including s_atanf.c.
21794 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21795 s_atanl.c instead of including s_atanl.c.
21796 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21797 instead of s_atan.c.
21798 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21799 instead of s_atanf.c.
21800 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21801 instead of s_atanl.c.
21802
21803 * scripts/update-copyrights: Do not handle intl/plural.c
21804 specially.
21805
21806 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
21807
21808 [BZ #22432]
21809 * configure.ac (BISON): Require to be present.
21810 * configure: Regenerated.
21811 * intl/Makefile (generated): Add plural.c.
21812 [$(BISON) != no]: Make code unconditional.
21813 (plural.c): Change rule to $(objpfx)plural.c.
21814 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21815 * intl/plural.c: Remove.
21816 * manual/install.texi (Tools for Compilation): Document bison as
21817 required.
21818 * INSTALL: Regenerated.
21819
21820 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21821
21822 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21823 <libm-alias-double.h>.
21824 (llrint): Define using libm_alias_double.
21825 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21826 <libm-alias-float.h>.
21827 (llrintf): Define using libm_alias_float.
21828 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21829 <libm-alias-ldouble.h>.
21830 (llrintl): Define using libm_alias_ldouble.
21831
21832 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21833 declare_mgen_alias instead of weak_alias.
21834 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21835 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21836 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21837
21838 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21839
21840 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21841 Add add_n-generic.
21842 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21843 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21844 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21845
21846 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21847 Add submul_1-generic.
21848 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21849 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21850 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21851
21852 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21853 Add addmul_1-generic.
21854 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21855 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21856 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21857
21858 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21859 Add sub_n-generic.
21860 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21861 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21862 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21863
21864 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21865 Add mul_1-generic.
21866 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21867 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21868 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21869
21870 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21871
21872 According to CLDR, collation rules for Serbian and Bosnian
21873 should be the same as for Croatian.
21874
21875 [BZ #22534]
21876 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21877 and to the list of locales to be built for testing.
21878 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21879 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21880 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21881 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21882
21883 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21884
21885 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21886 to make test case pass.
21887 * localedata/hr_HR.UTF-8.in: Add more test strings.
21888
21889 2017-11-30 Mike FABIAN <mfabian@redhat.com>
21890
21891 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21892
21893 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21894
21895 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21896 the list of locales to built for testing.
21897 * localedata/hr_HR.UTF-8.in: New file.
21898
21899 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
21900
21901 [BZ #10580]
21902 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21903 iso14651_t1.
21904 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21905 CLDR (except use ligatures for the digraphs, CLDR does not use
21906 the ligatures), add first_workday, some fixes in the date and time
21907 formats.
21908 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21909 for Đ and đ.
21910 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21911 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21912 Add int_p_cs_precedes and int_n_cs_precedes.
21913 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21914 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21915 LC_MONETARY now).
21916 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21917 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21918 name_miss.
21919 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21920 and lang_lib. Change postal_fmt.
21921
21922 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21923
21924 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21925 <setjmp.h>.
21926 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21927 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21928 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21929 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21930 * sysdeps/generic/setjmpP.h: New file.
21931 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21932 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21933 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21934 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21935 Add jmp_buf-ssp.sym.
21936 (tests): Add tst-saved_mask-1.
21937
21938 2017-11-30 Arjun Shankar <arjun@redhat.com>
21939
21940 [BZ #22375]
21941 CVE-2017-17426
21942 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21943 instead of request2size.
21944
21945 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21946
21947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21948 (__lllrint): Remove alias.
21949 (lllrint): Likewise.
21950 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21951 (__lllrintf): Likewise.
21952 (lllrintf): Likewise.
21953
21954 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21955 <libm-alias-float.h>.
21956 (copysignf): Define using libm_alias_float.
21957 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21958 <libm-alias-float.h>.
21959 (fabsf): Define using libm_alias_float.
21960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21961 Include <libm-alias-float.h>.
21962 (copysignf): Define using libm_alias_float.
21963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21964 <libm-alias-float.h>.
21965 (fabsf): Define using libm_alias_float.
21966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21967 <libm-alias-float.h>.
21968 (fdimf): Define using libm_alias_float.
21969 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21970 <libm-alias-float.h>.
21971 (fmaf): Define using libm_alias_float.
21972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21973 <libm-alias-float.h>.
21974 (llrintf): Define using libm_alias_float.
21975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21976 Include <libm-alias-float.h>.
21977 (nearbyintf): Define using libm_alias_float.
21978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21979 <libm-alias-float.h>.
21980 (rintf): Define using libm_alias_float.
21981 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21982 <libm-alias-float.h>.
21983 (llrintf): Define using libm_alias_float.
21984 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21985 <libm-alias-float.h>.
21986 (lrintf): Define using libm_alias_float.
21987 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21988 <libm-alias-float.h>.
21989 (nearbyintf): Define using libm_alias_float.
21990 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21991 <libm-alias-float.h>.
21992 (rintf): Define using libm_alias_float.
21993 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21994 <libm-alias-float.h>.
21995 (ceilf): Define using libm_alias_float.
21996 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21997 <libm-alias-float.h>.
21998 (floorf): Define using libm_alias_float.
21999 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22000 <libm-alias-float.h>.
22001 (fmaf): Define using libm_alias_float.
22002 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22003 <libm-alias-float.h>.
22004 (lrintf): Define using libm_alias_float.
22005 (llrintf): Likewise.
22006 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22007 <libm-alias-float.h>.
22008 (nearbyintf): Define using libm_alias_float.
22009 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22010 <libm-alias-float.h>.
22011 (rintf): Define using libm_alias_float.
22012 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22013 <libm-alias-float.h>.
22014 (truncf): Define using libm_alias_float.
22015 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22016 <libm-alias-float.h>.
22017 (copysignf): Define using libm_alias_float.
22018 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22019 <libm-alias-float.h>.
22020 (fabsf): Define using libm_alias_float.
22021 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22022 <libm-alias-float.h>.
22023 (lrintf): Define using libm_alias_float.
22024 (llrintf): Likewise.
22025 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22026 <libm-alias-float.h>.
22027 (nearbyintf): Define using libm_alias_float.
22028 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22029 <libm-alias-float.h>.
22030 (rintf): Define using libm_alias_float.
22031
22032 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22033
22034 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22035 <libm-alias-double.h>.
22036 (copysign): Define using libm_alias_double.
22037 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22038 <libm-alias-double.h>.
22039 (fabs): Define using libm_alias_double.
22040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22041 Include <libm-alias-double.h>.
22042 (copysign): Define using libm_alias_double.
22043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22044 <libm-alias-double.h>.
22045 (fabs): Define using libm_alias_double.
22046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22047 <libm-alias-double.h>.
22048 (fdim): Define using libm_alias_double.
22049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22050 <libm-alias-double.h>.
22051 (fma): Define using libm_alias_double.
22052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22053 <libm-alias-double.h>.
22054 (llrint): Define using libm_alias_double.
22055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22056 Include <libm-alias-double.h>.
22057 (nearbyint): Define using libm_alias_double.
22058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22059 <libm-alias-double.h>.
22060 (rint): Define using libm_alias_double.
22061 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22062 <libm-alias-double.h>.
22063 (fabs): Define using libm_alias_double.
22064 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22065 <libm-alias-double.h>.
22066 (llrint): Define using libm_alias_double.
22067 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22068 <libm-alias-double.h>.
22069 (nearbyint): Define using libm_alias_double.
22070 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22071 <libm-alias-double.h>.
22072 (rint): Define using libm_alias_double.
22073 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22074 <libm-alias-double.h>.
22075 (ceil): Define using libm_alias_double.
22076 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22077 <libm-alias-double.h>.
22078 (floor): Define using libm_alias_double.
22079 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22080 <libm-alias-double.h>.
22081 (fma): Define using libm_alias_double.
22082 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22083 <libm-alias-double.h>.
22084 (lrint): Define using libm_alias_double.
22085 (llrint): Likewise.
22086 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22087 <libm-alias-double.h>.
22088 (nearbyint): Define using libm_alias_double.
22089 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22090 <libm-alias-double.h>.
22091 (rint): Define using libm_alias_double.
22092 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22093 <libm-alias-double.h>.
22094 (trunc): Define using libm_alias_double.
22095 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22096 <libm-alias-double.h>.
22097 (copysign): Define using libm_alias_double.
22098 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22099 <libm-alias-double.h>.
22100 (fabs): Define using libm_alias_double.
22101 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22102 <libm-alias-double.h>.
22103 (lrint): Define using libm_alias_double.
22104 (llrint): Likewise.
22105 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22106 <libm-alias-double.h>.
22107 (nearbyint): Define using libm_alias_double.
22108 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22109 <libm-alias-double.h>.
22110 (rint): Define using libm_alias_double.
22111
22112 [BZ #22229]
22113 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22114 <math_ldbl_opt.h>.
22115 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22116
22117 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22118 SPARC --disable-multi-arch glibc variants.
22119
22120 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22121 <libm-alias-float.h>.
22122 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22123 if [SHARED].
22124 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22125 <libm-alias-float.h>.
22126 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22127 if [SHARED].
22128 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22129 <libm-alias-float.h>.
22130 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22131 if [SHARED].
22132 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22133 <libm-alias-float.h>.
22134 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22135 if [SHARED].
22136 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22137 <libm-alias-float.h>.
22138 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22139 if [SHARED].
22140 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22141 <libm-alias-float.h>.
22142 (ceilf): Define using libm_alias_float.
22143 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22144 <libm-alias-float.h>.
22145 (floorf): Define using libm_alias_float.
22146 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22147 <libm-alias-float.h>.
22148 (fmaf): Define using libm_alias_float.
22149 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22150 <libm-alias-float.h>.
22151 (nearbyintf): Define using libm_alias_float.
22152 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22153 <libm-alias-float.h>.
22154 (rintf): Define using libm_alias_float.
22155 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22156 <libm-alias-float.h>.
22157 (truncf): Define using libm_alias_float.
22158 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22159 (copysignf): Define using libm_alias_float.
22160 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22161 (cosf): Define using libm_alias_float.
22162 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22163 (fabsf): Define using libm_alias_float.
22164 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22165 (fmaxf): Define using libm_alias_float.
22166 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22167 (fminf): Define using libm_alias_float.
22168 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22169 (llrintf): Define using libm_alias_float.
22170 [!__ILP32__] (lrintf): Likewise.
22171 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22172 (sincosf): Define using libm_alias_float.
22173 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22174 (sinf): Define using libm_alias_float.
22175 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22176 (lrintf): Define using libm_alias_float.
22177
22178 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22179 <libm-alias-double.h>.
22180 (atan): Define using libm_alias_double.
22181 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22182 <libm-alias-double.h>.
22183 (ceil): Define using libm_alias_double.
22184 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22185 <libm-alias-double.h>.
22186 (floor): Define using libm_alias_double.
22187 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22188 <libm-alias-double.h>.
22189 (fma): Define using libm_alias_double.
22190 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22191 <libm-alias-double.h>.
22192 (nearbyint): Define using libm_alias_double.
22193 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22194 <libm-alias-double.h>.
22195 (rint): Define using libm_alias_double.
22196 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22197 <libm-alias-double.h>.
22198 (sin): Define using libm_alias_double.
22199 (cos): Likewise.
22200 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22201 <libm-alias-double.h>.
22202 (tan): Define using libm_alias_double.
22203 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22204 <libm-alias-double.h>.
22205 (trunc): Define using libm_alias_double.
22206 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22207 (copysign): Define using libm_alias_double.
22208 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22209 (fabs): Define using libm_alias_double.
22210 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22211 (fmax): Define using libm_alias_double.
22212 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22213 (fmin): Define using libm_alias_double.
22214 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22215 (llrint): Define using libm_alias_double.
22216 [!__ILP32__] (lrint): Likewise.
22217 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22218 (lrint): Define using libm_alias_double.
22219
22220 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22221
22222 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22223 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22224 objects.
22225 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22226 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22227 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22228 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22229 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22230 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22231
22232 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22233 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22234 objects.
22235 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22236 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22237 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22238 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22239 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22240 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22241
22242 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22243 (libm-sysdep_routines): Add s_nearbyint-generic and
22244 s_nearbyintf-generic objects.
22245 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22246 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22247 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22248 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22249 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22250 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22251
22252 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22253 Add s_finitef-generic and s_finite-generic objects.
22254 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22255 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22256 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22257 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22258 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22259 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22260
22261 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22262 Add s_isinff-generic and s_isinf-generic objects.
22263 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22264 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22265 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22266 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22267 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22268 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22269
22270 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22271 Add s_isnanf-generic and s_isnan-generic objects.
22272 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22273 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22274 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22275 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22276 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22277 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22278
22279 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22280 macro.
22281 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22282 rule.
22283 (sysdep_routines): Use sysdep_calls as base.
22284 (libm-sysdep_routines): Add generic rule for symbols shared with
22285 libc. Add s_signbit-generic and s_signbitf-generic objects.
22286 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22287 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22288 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22289 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22290 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22291 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22292
22293 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22294
22295 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22296 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22297 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22298 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22299 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22300 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22301 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22302 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22303 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22304 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22305 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22306 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22307 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22308 libm_alias_float_r.
22309 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22310 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22311 (logf): Likewise.
22312 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22313 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22314 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22315 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22316 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22317 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22318 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22319 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22320 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22321 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22322 libm_alias_float.
22323 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22324 (cosf): Likewise.
22325 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22326 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22327 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22328 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22329 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22330 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22331 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22332 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22333 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22334 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22335 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22336 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22337 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22338 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22339 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22340 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22341 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22342 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22343 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22344 libm_alias_float.
22345 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22346 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22347 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22348 * sysdeps/ia64/fpu/w_lgammaf_main.c
22349 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22350 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22351
22352 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22353 Alexandre Oliva <aoliva@redhat.com>
22354
22355 [BZ #17750]
22356 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22357 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22358 accents sorting.
22359 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22360 sorting.
22361 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22362 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22363 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22364 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22365 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22366 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22367 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22368 instead of “ifdef DIACRIT_BACKWARD”.
22369
22370 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22371
22372 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22373 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22374 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22375 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22376 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22377 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22378 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22379 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22380 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22381 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22382 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22383 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22384 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22385 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22386 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22387 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22388 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22389 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22390 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22391 ($(have-as-vis3) == yes): Remove conditional.
22392 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22393 Likewise.
22394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22395 file.
22396 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22397 file.
22398 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22399 file.
22400 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
22401 file.
22402 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
22403 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
22404 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
22405 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
22406 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
22407 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
22408 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
22409 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
22410
22411 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22412
22413 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
22414 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
22415 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
22416 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
22417 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
22418 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
22419 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
22420 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
22421 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
22422 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
22423 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
22424 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
22425 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
22426 libm_alias_double_r.
22427 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
22428 (log): Likewise.
22429 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
22430 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
22431 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
22432 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
22433 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
22434 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
22435 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
22436 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
22437 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
22438 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
22439 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
22440 libm_alias_double.
22441 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
22442 (cos): Likewise.
22443 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
22444 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
22445 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
22446 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
22447 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
22448 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
22449 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
22450 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
22451 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
22452 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
22453 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
22454 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
22455 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
22456 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
22457 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
22458 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
22459 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
22460 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
22461 libm_alias_double.
22462 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
22463 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
22464 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
22465 * sysdeps/ia64/fpu/w_lgamma_main.c
22466 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
22467 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
22468
22469 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
22470
22471 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
22472 address of $global$ into %dp register earlier. Use pc-relative
22473 instruction sequence for PIC case.
22474
22475 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22476
22477 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
22478 (asinhf): Define using libm_alias_float.
22479 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
22480 (atanf): Define using libm_alias_float.
22481 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
22482 (cbrtf): Define using libm_alias_float.
22483 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
22484 (ceilf): Define using libm_alias_float.
22485 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22486 (copysignf): Define using libm_alias_float.
22487 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
22488 (expm1f): Define using libm_alias_float.
22489 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
22490 (fabsf): Define using libm_alias_float.
22491 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
22492 (floorf): Define using libm_alias_float.
22493 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22494 (fmaxf): Define using libm_alias_float.
22495 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
22496 (fminf): Define using libm_alias_float.
22497 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
22498 (frexpf): Define using libm_alias_float.
22499 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22500 (llrintf): Define using libm_alias_float.
22501 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
22502 (logbf): Define using libm_alias_float.
22503 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22504 (lrintf): Define using libm_alias_float.
22505 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
22506 (nearbyintf): Define using libm_alias_float.
22507 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
22508 (remquof): Define using libm_alias_float.
22509 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
22510 (rintf): Define using libm_alias_float.
22511 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
22512 (truncf): Define using libm_alias_float.
22513 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
22514 <libm-alias-float.h>.
22515 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22516 if [SHARED].
22517 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
22518 <libm-alias-float.h>.
22519 (expf): Define using libm_alias_float, or libm_alias_float_other
22520 if [SHARED].
22521 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
22522 <libm-alias-float.h>.
22523 (log2f): Define using libm_alias_float, or libm_alias_float_other
22524 if [SHARED].
22525 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
22526 <libm-alias-float.h>.
22527 (logf): Define using libm_alias_float, or libm_alias_float_other
22528 if [SHARED].
22529 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
22530 <libm-alias-float.h>.
22531 (powf): Define using libm_alias_float, or libm_alias_float_other
22532 if [SHARED].
22533 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
22534 <libm-alias-float.h>.
22535 (cosf): Define using libm_alias_float.
22536 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
22537 <libm-alias-float.h>.
22538 (sincosf): Define using libm_alias_float.
22539 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
22540 <libm-alias-float.h>.
22541 (sinf): Define using libm_alias_float.
22542 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22543 (fmaxf): Define using libm_alias_float.
22544 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
22545 (fminf): Define using libm_alias_float.
22546 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22547 <libm-alias-float.h>.
22548 (fmaf): Define using libm_alias_float.
22549
22550 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
22551 (asinh): Define using libm_alias_double.
22552 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
22553 (atan): Define using libm_alias_double.
22554 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
22555 (cbrt): Define using libm_alias_double.
22556 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
22557 (ceil): Define using libm_alias_double.
22558 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
22559 (copysign): Define using libm_alias_double.
22560 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
22561 (expm1): Define using libm_alias_double.
22562 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
22563 (fabs): Define using libm_alias_double.
22564 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
22565 (fdim): Define using libm_alias_double.
22566 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
22567 (floor): Define using libm_alias_double.
22568 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
22569 (fmax): Define using libm_alias_double.
22570 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
22571 (fmin): Define using libm_alias_double.
22572 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
22573 (frexp): Define using libm_alias_double.
22574 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
22575 (llrint): Define using libm_alias_double.
22576 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
22577 (logb): Define using libm_alias_double.
22578 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
22579 (lrint): Define using libm_alias_double.
22580 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
22581 (nearbyint): Define using libm_alias_double.
22582 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
22583 (remquo): Define using libm_alias_double.
22584 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
22585 (rint): Define using libm_alias_double.
22586 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
22587 (trunc): Define using libm_alias_double.
22588 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
22589 (fmax): Define using libm_alias_double.
22590 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
22591 (fmin): Define using libm_alias_double.
22592 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
22593 (fma): Define using libm_alias_double.
22594
22595 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
22596
22597 [BZ #22370]
22598 * elf/dl-hwcaps.c (ROUND): Removed.
22599 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
22600 and ELF_NOTE_NEXT_OFFSET.
22601 * elf/dl-load.c (ROUND): Removed.
22602 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22603 * elf/readelflib.c (ROUND): Removed.
22604 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22605 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
22606 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
22607 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
22608
22609 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22610
22611 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22612 [!__fmaf] (fmaf): Define using libm_alias_float.
22613
22614 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
22615 [!__fma] (fma): Define using libm_alias_double.
22616 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
22617
22618 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22619
22620 [BZ #22336]
22621 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
22622 and implement the collation rules for cs from CLDR on top of that.
22623 * Makefile: Add cs_CZ.UTF-8 to test-input.
22624 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
22625
22626 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
22627
22628 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
22629
22630 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22631 Icarus Sparry <icarus.w.sparry@intel.com>
22632
22633 * benchtests/Makefile:Add BENCHSET to allow subsets of
22634 benchmarks to be run.
22635 * benchtests/README: Add documentation for: Running subsets of
22636 benchmarks.
22637
22638 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22639
22640 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
22641 range of tests names.
22642
22643 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
22644 result from property and remove "max", min" and "mean" from
22645 required properties based on benchtests/bench-skeleton.c.
22646
22647 2017-11-28 Florian Weimer <fweimer@redhat.com>
22648
22649 [BZ #20826]
22650 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
22651 due to Internet requirement.
22652 * posix/Makefile (tests): Remove tst-getaddrinfo4,
22653 tst-getaddrinfo5.
22654 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
22655
22656 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22657
22658 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22659 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
22660 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22661 (sysdep_routines): Add memset-ultra1.
22662 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
22663 file.
22664 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
22665 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
22666 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
22667 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
22668 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
22669 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
22670 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
22671 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22672
22673 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
22674 file.
22675 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
22676 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
22677 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
22678 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
22679 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
22680 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
22681 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
22682 macro.
22683 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22684 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
22685 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22686 (sysdep_routines): Add memcpy-ultra1.
22687 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
22688 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
22689
22690 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22691
22692 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
22693 (cfloat_versions): Take function argument without trailing 'f'.
22694 Call libm_alias_float_other.
22695 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
22696 * sysdeps/alpha/fpu/cargf.c: Likewise.
22697 * sysdeps/alpha/fpu/cimagf.c: Likewise.
22698 * sysdeps/alpha/fpu/conjf.c: Likewise.
22699 * sysdeps/alpha/fpu/crealf.c: Likewise.
22700 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
22701 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
22702 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
22703 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
22704 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
22705 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
22706 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
22707 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
22708 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
22709 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
22710 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
22711 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
22712 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
22713 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
22714 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
22715 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
22716 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
22717 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
22718 (clog10f): Use libm_alias_float_other.
22719 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22720 (ceilf): Define using libm_alias_float.
22721 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
22722 (copysignf): Define using libm_alias_float.
22723 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22724 (fabsf): Define using libm_alias_float.
22725 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
22726 (floorf): Define using libm_alias_float.
22727 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
22728 (fmaxf): Define using libm_alias_float.
22729 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
22730 (fminf): Define using libm_alias_float.
22731 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22732 (lrintf): Define using libm_alias_float.
22733 (llrintf): Likewise.
22734 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22735 (lroundf): Define using libm_alias_float.
22736 (llroundf): Likewise.
22737 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
22738 (rintf): Define using libm_alias_float.
22739 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
22740 (truncf): Define using libm_alias_float.
22741
22742 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22743 (ceilf): Define using libm_alias_float.
22744 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
22745 (floorf): Define using libm_alias_float.
22746 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22747 (fmaf): Define using libm_alias_float.
22748 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22749 (fmaxf): Define using libm_alias_float.
22750 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22751 (fminf): Define using libm_alias_float.
22752 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22753 (llrintf): Define using libm_alias_float.
22754 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22755 (llroundf): Define using libm_alias_float.
22756 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22757 (lrintf): Define using libm_alias_float.
22758 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22759 (lroundf): Define using libm_alias_float.
22760 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22761 <libm-alias-float.h>.
22762 (nearbyintf): Define using libm_alias_float.
22763 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22764 (rintf): Define using libm_alias_float.
22765 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22766 (roundf): Define using libm_alias_float.
22767 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22768 (truncf): Define using libm_alias_float.
22769
22770 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22771 (ceil): Define using libm_alias_double.
22772 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22773 (copysign): Define using libm_alias_double.
22774 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22775 (fabs): Define using libm_alias_double.
22776 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22777 (floor): Define using libm_alias_double.
22778 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22779 (fmax): Define using libm_alias_double.
22780 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22781 (fmin): Define using libm_alias_double.
22782 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22783 (lrint): Define using libm_alias_double.
22784 (llrint): Likewise.
22785 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22786 (lround): Define using libm_alias_double.
22787 (llround): Likewise.
22788 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22789 (rint): Define using libm_alias_double.
22790 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22791 (trunc): Define using libm_alias_double.
22792
22793 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22794 (libm_alias_double_r): Add semicolon after weak_alias call.
22795
22796 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22797
22798 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22799 (ceil): Define using libm_alias_double.
22800 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22801 (floor): Define using libm_alias_double.
22802 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22803 (fma): Define using libm_alias_double.
22804 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22805 (fmax): Define using libm_alias_double.
22806 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22807 (fmin): Define using libm_alias_double.
22808 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22809 (llrint): Define using libm_alias_double.
22810 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22811 (llround): Define using libm_alias_double.
22812 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22813 (lrint): Define using libm_alias_double.
22814 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22815 (lround): Define using libm_alias_double.
22816 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22817 (nearbyint): Define using libm_alias_double.
22818 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22819 (rint): Define using libm_alias_double.
22820 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22821 (round): Define using libm_alias_double.
22822 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22823 (trunc): Define using libm_alias_double.
22824
22825 2017-11-27 Florian Weimer <fweimer@redhat.com>
22826
22827 * sysdeps/unix/sysv/linux/mlock2.c: New file.
22828 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22829 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22830 (tests): Add tst-mlock2.
22831 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22832 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22833 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22834 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22835 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22836 for mlock. Document mlock2.
22837
22838 2017-11-27 Joseph Myers <joseph@codesourcery.com>
22839
22840 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22841 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22842 Likewise.
22843 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22844 Likewise.
22845 * sysdeps/x86/Makeconfig: New file.
22846 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22847 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22848 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22849 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22850 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22851 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22852 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22853 Likewise.
22854 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22855 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22856 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22857 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22858 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22859 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22860 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22861 * manual/math.texi (Mathematics): Document support for _Float64x.
22862 * math/Versions (GLIBC_2.27): Add _Float64x functions.
22863 * stdlib/Versions (GLIBC_2.27): Likewise.
22864 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22865 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22866 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22867 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22868 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22869 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22870 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22871 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22872 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22873 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22874 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22875 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22877 Likewise.
22878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22879 Likewise.
22880 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22881 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22882 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22883 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22884 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22885 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22886 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22887 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22888 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22889 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22890 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22891 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22892 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22893 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22894
22895 2017-11-27 Andreas Schwab <schwab@suse.de>
22896
22897 * elf/Makefile (dl-routines): Add dl-sort-maps.
22898 * elf/dl-sort-maps.c: New file.
22899 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22900 (_dl_sort_maps): Declare.
22901 * elf/dl-fini.c (_dl_sort_fini): Remove.
22902 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22903 * elf/dl-close.c (_dl_close_worker): Likewise.
22904 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22905 open-coding it.
22906 * elf/dl-open.c (dl_open_worker): Likewise.
22907
22908 2017-11-24 Joseph Myers <joseph@codesourcery.com>
22909
22910 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22911 using libm_alias_float128.
22912 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22913 Likewise.
22914 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22915 Likewise.
22916 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22917 (setpayloadsigf128): Likewise.
22918 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22919 Likewise.
22920 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22921 Likewise.
22922
22923 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22924 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22925 -mfloat128 to CFLAGS.
22926 ($(foreach
22927 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22928 Likewise.
22929 (CFLAGS-libm-test-support-float64x.c): New variable.
22930 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22931 $(f128-loader-link) to gnulib-tests.
22932
22933 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22934 (libm_alias_float128_other_r): If
22935 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22936 alias.
22937 (libm_alias_float128_r): Add semicolon after weak_alias call.
22938 * sysdeps/generic/libm-alias-ldouble.h
22939 (libm_alias_ldouble_other_r_f128): New macro.
22940 (libm_alias_ldouble_other_r_f64x): Likewise.
22941 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22942 and libm_alias_ldouble_other_r_f64x.
22943 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22944 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22945 (libm_alias_ldouble_other_r_f128): New macro.
22946 (libm_alias_ldouble_other_r_f64x): Likewise.
22947 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22948 and libm_alias_ldouble_other_r_f64x.
22949
22950 * stdlib/strfroml.c: Always include <stdlib.h>.
22951 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22952 undefine as macro and define as weak alias.
22953 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22954 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22955 <stdlib.h>.
22956 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22957 Define and later undefine as macro and define as weak alias.
22958
22959 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22960 Define and later undefine as macro. Define as weak alias if
22961 [!USE_WIDE_CHAR].
22962 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22963 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22964 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22965 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22966 Define and later undefine as macro. Define as weak alias if
22967 [!USE_WIDE_CHAR].
22968 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22969 Define and later undefine as macro. Define as weak alias if
22970 [USE_WIDE_CHAR].
22971 * sysdeps/ieee754/float128/strtof128_l.c
22972 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22973 Define and later undefine as macro. Define as weak alias if
22974 [!USE_WIDE_CHAR].
22975 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22976 Define and later undefine as macro. Define as weak alias if
22977 [USE_WIDE_CHAR].
22978 * sysdeps/ieee754/ldbl-128/strtold_l.c
22979 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22980 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22981 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22982 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22983 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22984 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22985 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22986 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22987 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22988 * sysdeps/ieee754/ldbl-96/strtold_l.c
22989 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22990 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22991 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22992 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22993
22994 * math/test-float64x.h: New file.
22995 * math/Makefile (type-float64x-yes): New variable.
22996 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22997
22998 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22999 function-like macro.
23000 (min_of_type_): Likewise.
23001 (min_of_type_l): Likewise.
23002 (min_of_type_f128): Likewise.
23003 (min_of_type): Pass () as last argument of __MATH_TG.
23004
23005 * stdlib/tst-strtod-round-skeleton.c
23006 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23007 headers.
23008
23009 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23010 for combinations of long double with _Float64 and _Float64x.
23011
23012 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23013 (__DECL_SIMD_cosf32): Likewise.
23014 (__DECL_SIMD_cosf64): Likewise.
23015 (__DECL_SIMD_cosf32x): Likewise.
23016 (__DECL_SIMD_cosf64x): Likewise.
23017 (__DECL_SIMD_cosf128x): Likewise.
23018 (__DECL_SIMD_sinf16): Likewise.
23019 (__DECL_SIMD_sinf32): Likewise.
23020 (__DECL_SIMD_sinf64): Likewise.
23021 (__DECL_SIMD_sinf32x): Likewise.
23022 (__DECL_SIMD_sinf64x): Likewise.
23023 (__DECL_SIMD_sinf128x): Likewise.
23024 (__DECL_SIMD_sincosf16): Likewise.
23025 (__DECL_SIMD_sincosf32): Likewise.
23026 (__DECL_SIMD_sincosf64): Likewise.
23027 (__DECL_SIMD_sincosf32x): Likewise.
23028 (__DECL_SIMD_sincosf64x): Likewise.
23029 (__DECL_SIMD_sincosf128x): Likewise.
23030 (__DECL_SIMD_logf16): Likewise.
23031 (__DECL_SIMD_logf32): Likewise.
23032 (__DECL_SIMD_logf64): Likewise.
23033 (__DECL_SIMD_logf32x): Likewise.
23034 (__DECL_SIMD_logf64x): Likewise.
23035 (__DECL_SIMD_logf128x): Likewise.
23036 (__DECL_SIMD_expf16): Likewise.
23037 (__DECL_SIMD_expf32): Likewise.
23038 (__DECL_SIMD_expf64): Likewise.
23039 (__DECL_SIMD_expf32x): Likewise.
23040 (__DECL_SIMD_expf64x): Likewise.
23041 (__DECL_SIMD_expf128x): Likewise.
23042 (__DECL_SIMD_powf16): Likewise.
23043 (__DECL_SIMD_powf32): Likewise.
23044 (__DECL_SIMD_powf64): Likewise.
23045 (__DECL_SIMD_powf32x): Likewise.
23046 (__DECL_SIMD_powf64x): Likewise.
23047 (__DECL_SIMD_powf128x): Likewise.
23048
23049 * stdlib/Versions (libc): Move entries for wcstof128 and
23050 wcstof128_l to ....
23051 * wcsmbs/Versions (libc): ... here.
23052 Include <float128-abi.h>.
23053
23054 2017-11-24 Florian Weimer <fweimer@redhat.com>
23055
23056 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23057 bits/mman-shared.h.
23058 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23059 <bits/mman-shared.h>.
23060 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23061 to ...
23062 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23063 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23064 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23065 <bits/mman-shared.h>.
23066
23067 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23068
23069 [BZ #22457]
23070 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23071 posix_memalign/free.
23072 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23073
23074 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23075
23076 [BZ #22469]
23077 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23078 and implement the collation rules for pl from CLDR on top of that.
23079 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23080 of locales to be built for testing.
23081 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23082
23083 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23084
23085 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23086 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23087 libm_alias_ldouble_other.
23088 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23089 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23090 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23091 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23092 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23093 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23094 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23095 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23096 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23097 libm_alias_ldouble_r.
23098 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23099 libm_alias_ldouble_other.
23100 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23101 (log10l): Likewise.
23102 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23103 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23104 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23105 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23106 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23107 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23108 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23109 (atan2l): Likewise.
23110 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23111 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23112 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23113 libm_alias_ldouble.
23114 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23115 (cosl): Likewise.
23116 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23117 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23118 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23119 (expl): Likewise.
23120 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23121 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23122 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23123 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23124 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23125 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23126 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23127 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23128 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23129 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23130 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23131 libm_alias_ldouble.
23132 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23133 libm_alias_ldouble_other.
23134 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23135 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23136 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23137 libm_alias_ldouble.
23138 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23139 libm_alias_ldouble_other.
23140 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23141 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23142 * sysdeps/ia64/fpu/w_lgammal_main.c
23143 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23144 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23145
23146 2017-11-23 Florian Weimer <fweimer@redhat.com>
23147
23148 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23149 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23150 alike. Remove freeres marker.
23151 * malloc/arena.c (arena_thread_freeres): Call
23152 tcache_thread_shutdown.
23153
23154 2017-11-23 Florian Weimer <fweimer@redhat.com>
23155
23156 [BZ #22459]
23157 Export nscd hash function as __nss_hash.
23158 * include/nss.h (__nss_hash): Declare.
23159 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23160 symbol.
23161 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23162 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23163 of __nscd_hash.
23164 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23165 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23166 * nss/Makefiles (routines): Add nss_hash.
23167 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23168 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23169 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23170 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23171
23172 2017-11-23 Florian Weimer <fweimer@redhat.com>
23173
23174 [BZ #22478]
23175 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23176 Return error code, not -1.
23177 * signal/tst-sigwait-eintr.c: New file.
23178 * signal/Makefile (tests): Add tst-sigwait-eintr.
23179
23180 2017-11-23 Florian Weimer <fweimer@redhat.com>
23181
23182 Linux: Add memfd_create system call wrapper
23183 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23184 tst-memfd_create.
23185 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23186 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23187 [__USE_GNU] (memfd_create): Declare.
23188 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23189 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23190 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23191 * sysdeps/unix/sysv/linux/**.abilist: Update.
23192 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23193
23194 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23195
23196 * localedata/gen-locale.sh: Fix typo in variable name.
23197
23198 * resolv/res_debug.c (p_secstodate): Condition definition on
23199 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23200 directly as __p_secstodate, and as a compat symbol. Do not use
23201 libresolv_hidden_def.
23202 * resolv/resolv.h (p_secstodate): Remove macro and function
23203 declaration.
23204 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23205 using p_secstodate.
23206 * include/resolv.h (__p_secstodate): Do not use
23207 libresolv_hidden_proto.
23208 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23209 (tests-internal): ... here.
23210 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23211 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23212 and declare and use __p_secstodate and use compat_symbol_reference
23213 in that case.
23214 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23215 implementation returning 77.
23216
23217 [BZ #22463]
23218 * resolv/res_debug.c: Include <libc-diag.h>.
23219 (p_secstodate): Assert time_t at least as wide as u_long. On
23220 overflow, use integer seconds since the epoch as output, or use
23221 "<overflow>" as output and set errno to EOVERFLOW if integer
23222 seconds since the epoch would be 14 or more characters.
23223 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23224 for sprintf call.
23225 * resolv/tst-p_secstodate.c: New file.
23226 * resolv/Makefile (tests): Add tst-p_secstodate.
23227 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23228
23229 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23230 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23231 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23232
23233 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23234
23235 * posix/regcomp.c (init_word_char): Add comments.
23236
23237 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23238
23239 [BZ #22447]
23240 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23241 strlen to compute length of ut_user and set trailing NUL byte of
23242 result explicitly.
23243
23244 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23245
23246 [BZ #15537]
23247 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23248 using “copy "iso14651_t1"” and then implementing the
23249 collation rules for lv from CLDR on top of that.
23250 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23251 of locales to be built for testing.
23252 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23253 sorting.
23254
23255 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23256
23257 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23258 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23259 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23260 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23261 [__USE_MISC] (MADV_HWPOISON): New macro.
23262 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23263
23264 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23265
23266 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23267 -Wmissing-braces on GCC 4.9.
23268
23269 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23270
23271 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23272 * sysdeps/s390/s390-32/start.S (_start): Likewise
23273 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23274 (thread_start): Likewise.
23275 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23276 (thread_start): Likewise.
23277 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23278 (__makecontext_ret): Likewise.
23279 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23280 (__makecontext_ret): Likewise.
23281
23282 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23283
23284 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23285 __wcschrnul): Remove attribute_hidden.
23286
23287 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23288
23289 regex: don't assume uint64_t or uint32_t
23290 This avoids -Werror=overflow errors for 32-bit systems in
23291 the 64-bit case. Problem reported by Joseph Myers in:
23292 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23293 Also, when this code is used in Gnulib it ports to platforms
23294 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23295 them, and on some 32-bit compilers there is no uint64_t.
23296 Problem reported by Gianluigi Tiesi in:
23297 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23298 * posix/regcomp.c (init_word_char): Don't assume that the types
23299 uint64_t and uint32_t exist. Adapted from Gnulib patch
23300 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23301 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23302
23303 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23304
23305 * sysdeps/aarch64/memset-reg.h: New file.
23306 * sysdeps/aarch64/memset.S: Use it.
23307 (__memset): Rename to MEMSET macro.
23308 [ZVA_MACRO]: Use zva_macro.
23309 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23310 Add memset_generic and memset_falkor.
23311 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23312 (__libc_ifunc_impl_list): Add memset ifuncs.
23313 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23314 local variable zva_size.
23315 * sysdeps/aarch64/multiarch/memset.c: New file.
23316 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23317 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23318 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23319 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23320 (DCZID_DZP_MASK): New macro.
23321 (DCZID_BS_MASK): Likewise.
23322 (init_cpu_features): Read and set zva_size.
23323 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23324 (struct cpu_features): New member zva_size.
23325
23326 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23327 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23328 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23329
23330 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23331 backwards. Fix timing computation.
23332 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23333 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23334 on memset by N at a time. Fix timing computation.
23335
23336 2017-11-20 Florian Weimer <fweimer@redhat.com>
23337
23338 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23339 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23340
23341 2017-11-19 Florian Weimer <fweimer@redhat.com>
23342
23343 manual: Document mprotect
23344 * manual/memory.texi (Memory Protection): New section.
23345 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23346 documentation of PROT_* flags and reference the Memory Protection
23347 section instead.
23348
23349 2017-11-19 Florian Weimer <fweimer@redhat.com>
23350
23351 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23352 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23353 (Scatter-Gather): ... to here. Remove misleading comment.
23354
23355 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23356
23357 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23358 style.
23359
23360 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23361 when /proc/<pid>/setgroups does not exist.
23362
23363 2017-11-18 Florian Weimer <fweimer@redhat.com>
23364
23365 * sysdeps/unix/sysv/linux/tst-ttyname.c
23366 (become_root_in_mount_ns): Remove.
23367 (do_in_chroot_1): Call support_enter_mount_namespace.
23368 (do_in_chroot_2): Likewise.
23369 (do_test): Call support_become_root early.
23370
23371 2017-11-18 Florian Weimer <fweimer@redhat.com>
23372
23373 * support/namespace.h (support_enter_mount_namespace): Declare.
23374 * support/support_enter_mount_namespace.c: New file.
23375 * support/Makefile (libsupport-routines): Add
23376 support_enter_mount_namespace.
23377
23378 2017-11-18 Florian Weimer <fweimer@redhat.com>
23379
23380 * support/temp_file.c (support_create_temp_directory): Use
23381 test_dir and do not rely on the presence of the XXXXXX suffix.
23382 * support/temp_file.h (support_create_temp_directory): Update
23383 comment.
23384 * support/tst-xreadlink.c (do_test): Adjust.
23385 * support/support_chroot.c (support_chroot_create): Likewise.
23386
23387 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23388
23389 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23390 macro.
23391 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23392 htm-no-suspend.
23393
23394 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23395
23396 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23397 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23398 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23399 (ceill): Define using libm_alias_ldouble.
23400 * sysdeps/x86_64/fpu/s_copysignl.S: Include
23401 <libm-alias-ldouble.h>.
23402 (copysignl): Define using libm_alias_ldouble.
23403 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23404 (fabsl): Define using libm_alias_ldouble.
23405 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23406 (floorl): Define using libm_alias_ldouble.
23407 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23408 (fmaxl): Define using libm_alias_ldouble.
23409 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23410 (fminl): Define using libm_alias_ldouble.
23411 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23412 (llrintl): Define using libm_alias_ldouble.
23413 (lrintl): Likewise.
23414 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
23415 <libm-alias-ldouble.h>.
23416 (nearbyintl): Define using libm_alias_ldouble.
23417 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23418 (truncl): Define using libm_alias_ldouble.
23419 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
23420 <libm-alias-ldouble.h>.
23421 (lrintl): Define using libm_alias_ldouble.
23422
23423 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23424 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23425 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
23426 (asinhl): Define using libm_alias_ldouble.
23427 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
23428 (atanl): Define using libm_alias_ldouble.
23429 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
23430 (cbrtl): Define using libm_alias_ldouble.
23431 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23432 (ceill): Define using libm_alias_ldouble.
23433 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
23434 (copysignl): Define using libm_alias_ldouble.
23435 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23436 (fabsl): Define using libm_alias_ldouble.
23437 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23438 (floorl): Define using libm_alias_ldouble.
23439 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23440 (fmaxl): Define using libm_alias_ldouble.
23441 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23442 (fminl): Define using libm_alias_ldouble.
23443 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
23444 (frexpl): Define using libm_alias_ldouble.
23445 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23446 (llrintl): Define using libm_alias_ldouble.
23447 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
23448 (logbl): Define using libm_alias_ldouble.
23449 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
23450 (lrintl): Define using libm_alias_ldouble.
23451 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
23452 (nearbyintl): Define using libm_alias_ldouble.
23453 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
23454 (nextafterl): Define using libm_alias_ldouble.
23455 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
23456 (remquol): Define using libm_alias_ldouble.
23457 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
23458 (rintl): Define using libm_alias_ldouble.
23459 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23460 (truncl): Define using libm_alias_ldouble.
23461 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23462 (fmaxl): Define using libm_alias_ldouble.
23463 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23464 (fminl): Define using libm_alias_ldouble.
23465
23466 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
23467 to C syntax instead of availability and properties of types.
23468 * bits/floatn.h [!__ASSEMBLER]: Likewise.
23469 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
23470 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
23471 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
23472 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
23473 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
23474
23475 2017-11-17 Florian Weimer <fweimer@redhat.com>
23476
23477 support_become_root: Enable file creation in namespaces.
23478 * support/support_become_root.c (setup_mapping): New function.
23479 (support_become_root): Call it.
23480
23481 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23482
23483 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
23484 macro.
23485
23486 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23487
23488 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
23489 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
23490
23491 2017-11-16 Joseph Myers <joseph@codesourcery.com>
23492
23493 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
23494
23495 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
23496 version to 4.14.
23497
23498 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
23499
23500 * INSTALL: Fix botched up regeneration.
23501
23502 * NEWS: Update sourceare link to https.
23503 * configure.ac: Likewise.
23504 * crypt/md5test-giant.c: Likewise.
23505 * dlfcn/bug-atexit1.c: Likewise.
23506 * dlfcn/bug-atexit2.c: Likewise.
23507 * localedata/README: Likewise.
23508 * malloc/tst-mallocfork.c: Likewise.
23509 * manual/install.texi: Likewise.
23510 * nptl/tst-pthread-getattr.c: Likewise.
23511 * stdio-common/tst-fgets.c: Likewise.
23512 * stdio-common/tst-fwrite.c: Likewise.
23513 * sunrpc/Makefile: Likewise.
23514 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
23515 * wcsmbs/tst-mbrtowc2.c: Likewise.
23516 * configure: Regenerate.
23517 * INSTALL: Regenerate.
23518
23519 2017-11-15 Martin Sebor <msebor@redhat.com>
23520
23521 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
23522 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
23523 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
23524
23525 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23526
23527 [BZ #22145]
23528 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
23529 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
23530
23531 [BZ #22145]
23532 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
23533 Defer is_pty check until end of the function.
23534 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23535
23536 [BZ #22145]
23537 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
23538 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
23539 (ttyname): Likewise.
23540 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
23541 (__ttyname_r): Likewise.
23542
23543 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
23544 int to bool.
23545
23546 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
23547
23548 * manual/terminal.texi (Is It a Terminal):
23549 Mention ENODEV for ttyname and ttyname_r.
23550
23551 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23552
23553 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
23554 constant and macro.
23555
23556 * sysdeps/unix/sysv/linux/bits/mman-linux.h
23557 [__USE_MISC] (MADV_WIPEONFORK): New macro.
23558 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23559 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23560 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
23561 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23562
23563 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23564
23565 * signal/sigrelse.c (sigrelse): Optimize implementation.
23566
23567 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
23568 (__sigpause): Rely on __sigsuspend to implement single thread
23569 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
23570
23571 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23572
23573 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23574 kernel version to 4.14.
23575
23576 2017-11-15 Steve Ellcey <sellcey@cavium.com>
23577
23578 [BZ #22442]
23579 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
23580 Check if ifname is too long.
23581
23582 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23583
23584 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
23585
23586 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23587
23588 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
23589 was accidentally lost.
23590
23591 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23592
23593 * localedata/locales/az_IR: Add standard copyright header.
23594
23595 2017-11-15 Florian Weimer <fweimer@redhat.com>
23596
23597 [BZ #22439]
23598 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
23599 not just the top one. Output a new "subheaps" statistic.
23600
23601 2017-11-15 Florian Weimer <fweimer@redhat.com>
23602
23603 [BZ #22408]
23604 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
23605 under the per-arena lock.
23606 * malloc/Makefile (tests): Add tst-malloc_info.
23607 (tst-malloc_info): Link with libpthread.
23608 * malloc/tst-malloc_info.c: New file.
23609
23610 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23611
23612 [BZ #21660]
23613 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
23614 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
23615 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
23616 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
23617 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
23618 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
23619 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
23620 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
23621 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
23622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
23623 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
23624 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
23625 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
23626 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
23627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
23628 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
23629 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
23630 (__floating_type): Likewise.
23631 (__real_integer_type): Likewise.
23632 (__complex_integer_type): Likewise.
23633 (__expr_is_real): Likewise.
23634 (__tgmath_real_type_sub): Likewise.
23635 (__tgmath_real_type): Likewise.
23636 (__tgmath_complex_type_sub): Likewise.
23637 (__tgmath_complex_type): Likewise.
23638 (__TGMATH_F128): Likewise.
23639 (__TGMATH_CF128): Likewise.
23640 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
23641 new macros.
23642 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
23643 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
23644 Likewise.
23645 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
23646 Likewise.
23647 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
23648 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
23649 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
23650 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
23651 Likewise.
23652 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
23653 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
23654 Likewise.
23655 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
23656 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
23657 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
23658 Likewise.
23659 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
23660 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
23661 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
23662 (cimag): Likewise.
23663 (creal): Likewise.
23664
23665 2017-11-14 Joseph Myers <joseph@codesourcery.com>
23666
23667 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
23668 for stpncpy calls for GCC 8.
23669 (test_strncat): Disable -Wstringop-truncation warning for strncat
23670 calls for GCC 8. Disable -Wstringop-overflow= warning for one
23671 strncat call for GCC 7.
23672 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
23673 calls for GCC 8.
23674 (test_memcmp): Use memcpy instead of strncpy for calls not copying
23675 trailing NUL.
23676
23677 * string/bug-strncat1.c: Include <libc-diag.h>.
23678 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
23679
23680 2017-11-13 Claude Paroz <claude@2xlibre.net>
23681
23682 [BZ #22387]
23683 * localedata/locales/aa_DJ: Improved readibility by replacing
23684 <Uxxxx> sequences in the ASCII printable range by their ASCII
23685 character equivalents.
23686 * localedata/locales/aa_ER: Likewise.
23687 * localedata/locales/aa_ER@saaho: Likewise.
23688 * localedata/locales/aa_ET: Likewise.
23689 * localedata/locales/af_ZA: Likewise.
23690 * localedata/locales/agr_PE: Likewise.
23691 * localedata/locales/ak_GH: Likewise.
23692 * localedata/locales/am_ET: Likewise.
23693 * localedata/locales/anp_IN: Likewise.
23694 * localedata/locales/ar_AE: Likewise.
23695 * localedata/locales/ar_BH: Likewise.
23696 * localedata/locales/ar_DZ: Likewise.
23697 * localedata/locales/ar_EG: Likewise.
23698 * localedata/locales/ar_IN: Likewise.
23699 * localedata/locales/ar_IQ: Likewise.
23700 * localedata/locales/ar_JO: Likewise.
23701 * localedata/locales/ar_KW: Likewise.
23702 * localedata/locales/ar_LB: Likewise.
23703 * localedata/locales/ar_LY: Likewise.
23704 * localedata/locales/ar_MA: Likewise.
23705 * localedata/locales/ar_OM: Likewise.
23706 * localedata/locales/ar_QA: Likewise.
23707 * localedata/locales/ar_SA: Likewise.
23708 * localedata/locales/ar_SD: Likewise.
23709 * localedata/locales/ar_SS: Likewise.
23710 * localedata/locales/ar_SY: Likewise.
23711 * localedata/locales/ar_TN: Likewise.
23712 * localedata/locales/ar_YE: Likewise.
23713 * localedata/locales/as_IN: Likewise.
23714 * localedata/locales/ast_ES: Likewise.
23715 * localedata/locales/ayc_PE: Likewise.
23716 * localedata/locales/az_AZ: Likewise.
23717 * localedata/locales/az_IR: Likewise.
23718 * localedata/locales/be_BY: Likewise.
23719 * localedata/locales/be_BY@latin: Likewise.
23720 * localedata/locales/bem_ZM: Likewise.
23721 * localedata/locales/ber_DZ: Likewise.
23722 * localedata/locales/ber_MA: Likewise.
23723 * localedata/locales/bg_BG: Likewise.
23724 * localedata/locales/bhb_IN: Likewise.
23725 * localedata/locales/bho_IN: Likewise.
23726 * localedata/locales/bi_VU: Likewise.
23727 * localedata/locales/bn_BD: Likewise.
23728 * localedata/locales/bn_IN: Likewise.
23729 * localedata/locales/bo_CN: Likewise.
23730 * localedata/locales/bo_IN: Likewise.
23731 * localedata/locales/br_FR: Likewise.
23732 * localedata/locales/brx_IN: Likewise.
23733 * localedata/locales/bs_BA: Likewise.
23734 * localedata/locales/byn_ER: Likewise.
23735 * localedata/locales/ca_AD: Likewise.
23736 * localedata/locales/ca_ES: Likewise.
23737 * localedata/locales/ca_FR: Likewise.
23738 * localedata/locales/ca_IT: Likewise.
23739 * localedata/locales/ce_RU: Likewise.
23740 * localedata/locales/chr_US: Likewise.
23741 * localedata/locales/cmn_TW: Likewise.
23742 * localedata/locales/crh_UA: Likewise.
23743 * localedata/locales/cs_CZ: Likewise.
23744 * localedata/locales/csb_PL: Likewise.
23745 * localedata/locales/cv_RU: Likewise.
23746 * localedata/locales/cy_GB: Likewise.
23747 * localedata/locales/da_DK: Likewise.
23748 * localedata/locales/de_AT: Likewise.
23749 * localedata/locales/de_BE: Likewise.
23750 * localedata/locales/de_CH: Likewise.
23751 * localedata/locales/de_DE: Likewise.
23752 * localedata/locales/de_IT: Likewise.
23753 * localedata/locales/de_LI: Likewise.
23754 * localedata/locales/de_LU: Likewise.
23755 * localedata/locales/doi_IN: Likewise.
23756 * localedata/locales/dv_MV: Likewise.
23757 * localedata/locales/dz_BT: Likewise.
23758 * localedata/locales/el_CY: Likewise.
23759 * localedata/locales/el_GR: Likewise.
23760 * localedata/locales/en_AG: Likewise.
23761 * localedata/locales/en_AU: Likewise.
23762 * localedata/locales/en_BW: Likewise.
23763 * localedata/locales/en_CA: Likewise.
23764 * localedata/locales/en_DK: Likewise.
23765 * localedata/locales/en_GB: Likewise.
23766 * localedata/locales/en_HK: Likewise.
23767 * localedata/locales/en_IE: Likewise.
23768 * localedata/locales/en_IL: Likewise.
23769 * localedata/locales/en_IN: Likewise.
23770 * localedata/locales/en_NG: Likewise.
23771 * localedata/locales/en_NZ: Likewise.
23772 * localedata/locales/en_PH: Likewise.
23773 * localedata/locales/en_SG: Likewise.
23774 * localedata/locales/en_US: Likewise.
23775 * localedata/locales/en_ZA: Likewise.
23776 * localedata/locales/en_ZM: Likewise.
23777 * localedata/locales/en_ZW: Likewise.
23778 * localedata/locales/eo: Likewise.
23779 * localedata/locales/es_AR: Likewise.
23780 * localedata/locales/es_BO: Likewise.
23781 * localedata/locales/es_CL: Likewise.
23782 * localedata/locales/es_CO: Likewise.
23783 * localedata/locales/es_CR: Likewise.
23784 * localedata/locales/es_CU: Likewise.
23785 * localedata/locales/es_DO: Likewise.
23786 * localedata/locales/es_EC: Likewise.
23787 * localedata/locales/es_ES: Likewise.
23788 * localedata/locales/es_GT: Likewise.
23789 * localedata/locales/es_HN: Likewise.
23790 * localedata/locales/es_MX: Likewise.
23791 * localedata/locales/es_NI: Likewise.
23792 * localedata/locales/es_PA: Likewise.
23793 * localedata/locales/es_PE: Likewise.
23794 * localedata/locales/es_PR: Likewise.
23795 * localedata/locales/es_PY: Likewise.
23796 * localedata/locales/es_SV: Likewise.
23797 * localedata/locales/es_US: Likewise.
23798 * localedata/locales/es_UY: Likewise.
23799 * localedata/locales/es_VE: Likewise.
23800 * localedata/locales/et_EE: Likewise.
23801 * localedata/locales/eu_ES: Likewise.
23802 * localedata/locales/eu_ES@euro: Likewise.
23803 * localedata/locales/fa_IR: Likewise.
23804 * localedata/locales/ff_SN: Likewise.
23805 * localedata/locales/fi_FI: Likewise.
23806 * localedata/locales/fil_PH: Likewise.
23807 * localedata/locales/fo_FO: Likewise.
23808 * localedata/locales/fr_BE: Likewise.
23809 * localedata/locales/fr_CA: Likewise.
23810 * localedata/locales/fr_CH: Likewise.
23811 * localedata/locales/fr_FR: Likewise.
23812 * localedata/locales/fr_LU: Likewise.
23813 * localedata/locales/fur_IT: Likewise.
23814 * localedata/locales/fy_DE: Likewise.
23815 * localedata/locales/fy_NL: Likewise.
23816 * localedata/locales/ga_IE: Likewise.
23817 * localedata/locales/gd_GB: Likewise.
23818 * localedata/locales/gez_ER: Likewise.
23819 * localedata/locales/gez_ET: Likewise.
23820 * localedata/locales/gl_ES: Likewise.
23821 * localedata/locales/gu_IN: Likewise.
23822 * localedata/locales/gv_GB: Likewise.
23823 * localedata/locales/ha_NG: Likewise.
23824 * localedata/locales/hak_TW: Likewise.
23825 * localedata/locales/he_IL: Likewise.
23826 * localedata/locales/hi_IN: Likewise.
23827 * localedata/locales/hif_FJ: Likewise.
23828 * localedata/locales/hne_IN: Likewise.
23829 * localedata/locales/hr_HR: Likewise.
23830 * localedata/locales/hsb_DE: Likewise.
23831 * localedata/locales/ht_HT: Likewise.
23832 * localedata/locales/hu_HU: Likewise.
23833 * localedata/locales/hy_AM: Likewise.
23834 * localedata/locales/i18n: Likewise.
23835 * localedata/locales/ia_FR: Likewise.
23836 * localedata/locales/id_ID: Likewise.
23837 * localedata/locales/ig_NG: Likewise.
23838 * localedata/locales/ik_CA: Likewise.
23839 * localedata/locales/is_IS: Likewise.
23840 * localedata/locales/it_CH: Likewise.
23841 * localedata/locales/it_IT: Likewise.
23842 * localedata/locales/iu_CA: Likewise.
23843 * localedata/locales/ja_JP: Likewise.
23844 * localedata/locales/ka_GE: Likewise.
23845 * localedata/locales/kk_KZ: Likewise.
23846 * localedata/locales/kl_GL: Likewise.
23847 * localedata/locales/kn_IN: Likewise.
23848 * localedata/locales/ko_KR: Likewise.
23849 * localedata/locales/kok_IN: Likewise.
23850 * localedata/locales/ks_IN: Likewise.
23851 * localedata/locales/ks_IN@devanagari: Likewise.
23852 * localedata/locales/ku_TR: Likewise.
23853 * localedata/locales/kw_GB: Likewise.
23854 * localedata/locales/ky_KG: Likewise.
23855 * localedata/locales/lb_LU: Likewise.
23856 * localedata/locales/lg_UG: Likewise.
23857 * localedata/locales/li_BE: Likewise.
23858 * localedata/locales/li_NL: Likewise.
23859 * localedata/locales/lij_IT: Likewise.
23860 * localedata/locales/ln_CD: Likewise.
23861 * localedata/locales/lo_LA: Likewise.
23862 * localedata/locales/lt_LT: Likewise.
23863 * localedata/locales/lv_LV: Likewise.
23864 * localedata/locales/lzh_TW: Likewise.
23865 * localedata/locales/mag_IN: Likewise.
23866 * localedata/locales/mai_IN: Likewise.
23867 * localedata/locales/mg_MG: Likewise.
23868 * localedata/locales/mhr_RU: Likewise.
23869 * localedata/locales/mi_NZ: Likewise.
23870 * localedata/locales/mk_MK: Likewise.
23871 * localedata/locales/ml_IN: Likewise.
23872 * localedata/locales/mn_MN: Likewise.
23873 * localedata/locales/mni_IN: Likewise.
23874 * localedata/locales/mr_IN: Likewise.
23875 * localedata/locales/ms_MY: Likewise.
23876 * localedata/locales/mt_MT: Likewise.
23877 * localedata/locales/my_MM: Likewise.
23878 * localedata/locales/nan_TW: Likewise.
23879 * localedata/locales/nan_TW@latin: Likewise.
23880 * localedata/locales/nb_NO: Likewise.
23881 * localedata/locales/nds_DE: Likewise.
23882 * localedata/locales/nds_NL: Likewise.
23883 * localedata/locales/ne_NP: Likewise.
23884 * localedata/locales/nhn_MX: Likewise.
23885 * localedata/locales/niu_NU: Likewise.
23886 * localedata/locales/niu_NZ: Likewise.
23887 * localedata/locales/nl_AW: Likewise.
23888 * localedata/locales/nl_BE: Likewise.
23889 * localedata/locales/nl_NL: Likewise.
23890 * localedata/locales/nn_NO: Likewise.
23891 * localedata/locales/nr_ZA: Likewise.
23892 * localedata/locales/nso_ZA: Likewise.
23893 * localedata/locales/oc_FR: Likewise.
23894 * localedata/locales/om_ET: Likewise.
23895 * localedata/locales/om_KE: Likewise.
23896 * localedata/locales/or_IN: Likewise.
23897 * localedata/locales/os_RU: Likewise.
23898 * localedata/locales/pa_IN: Likewise.
23899 * localedata/locales/pa_PK: Likewise.
23900 * localedata/locales/pap_AW: Likewise.
23901 * localedata/locales/pap_CW: Likewise.
23902 * localedata/locales/pl_PL: Likewise.
23903 * localedata/locales/ps_AF: Likewise.
23904 * localedata/locales/pt_BR: Likewise.
23905 * localedata/locales/pt_PT: Likewise.
23906 * localedata/locales/quz_PE: Likewise.
23907 * localedata/locales/raj_IN: Likewise.
23908 * localedata/locales/ro_RO: Likewise.
23909 * localedata/locales/ru_RU: Likewise.
23910 * localedata/locales/ru_UA: Likewise.
23911 * localedata/locales/rw_RW: Likewise.
23912 * localedata/locales/sa_IN: Likewise.
23913 * localedata/locales/sat_IN: Likewise.
23914 * localedata/locales/sc_IT: Likewise.
23915 * localedata/locales/sd_IN: Likewise.
23916 * localedata/locales/sd_IN@devanagari: Likewise.
23917 * localedata/locales/se_NO: Likewise.
23918 * localedata/locales/sgs_LT: Likewise.
23919 * localedata/locales/shs_CA: Likewise.
23920 * localedata/locales/si_LK: Likewise.
23921 * localedata/locales/sid_ET: Likewise.
23922 * localedata/locales/sk_SK: Likewise.
23923 * localedata/locales/sl_SI: Likewise.
23924 * localedata/locales/sm_WS: Likewise.
23925 * localedata/locales/so_DJ: Likewise.
23926 * localedata/locales/so_ET: Likewise.
23927 * localedata/locales/so_KE: Likewise.
23928 * localedata/locales/so_SO: Likewise.
23929 * localedata/locales/sq_AL: Likewise.
23930 * localedata/locales/sq_MK: Likewise.
23931 * localedata/locales/sr_ME: Likewise.
23932 * localedata/locales/sr_RS: Likewise.
23933 * localedata/locales/sr_RS@latin: Likewise.
23934 * localedata/locales/ss_ZA: Likewise.
23935 * localedata/locales/st_ZA: Likewise.
23936 * localedata/locales/sv_FI: Likewise.
23937 * localedata/locales/sv_SE: Likewise.
23938 * localedata/locales/sw_KE: Likewise.
23939 * localedata/locales/sw_TZ: Likewise.
23940 * localedata/locales/szl_PL: Likewise.
23941 * localedata/locales/ta_IN: Likewise.
23942 * localedata/locales/ta_LK: Likewise.
23943 * localedata/locales/tcy_IN: Likewise.
23944 * localedata/locales/te_IN: Likewise.
23945 * localedata/locales/tg_TJ: Likewise.
23946 * localedata/locales/th_TH: Likewise.
23947 * localedata/locales/the_NP: Likewise.
23948 * localedata/locales/ti_ER: Likewise.
23949 * localedata/locales/ti_ET: Likewise.
23950 * localedata/locales/tig_ER: Likewise.
23951 * localedata/locales/tk_TM: Likewise.
23952 * localedata/locales/tl_PH: Likewise.
23953 * localedata/locales/tn_ZA: Likewise.
23954 * localedata/locales/to_TO: Likewise.
23955 * localedata/locales/tpi_PG: Likewise.
23956 * localedata/locales/tr_CY: Likewise.
23957 * localedata/locales/tr_TR: Likewise.
23958 * localedata/locales/ts_ZA: Likewise.
23959 * localedata/locales/tt_RU: Likewise.
23960 * localedata/locales/tt_RU@iqtelif: Likewise.
23961 * localedata/locales/ug_CN: Likewise.
23962 * localedata/locales/uk_UA: Likewise.
23963 * localedata/locales/unm_US: Likewise.
23964 * localedata/locales/ur_IN: Likewise.
23965 * localedata/locales/ur_PK: Likewise.
23966 * localedata/locales/uz_UZ: Likewise.
23967 * localedata/locales/uz_UZ@cyrillic: Likewise.
23968 * localedata/locales/ve_ZA: Likewise.
23969 * localedata/locales/vi_VN: Likewise.
23970 * localedata/locales/wa_BE: Likewise.
23971 * localedata/locales/wae_CH: Likewise.
23972 * localedata/locales/wal_ET: Likewise.
23973 * localedata/locales/wo_SN: Likewise.
23974 * localedata/locales/xh_ZA: Likewise.
23975 * localedata/locales/yi_US: Likewise.
23976 * localedata/locales/yo_NG: Likewise.
23977 * localedata/locales/yue_HK: Likewise.
23978 * localedata/locales/yuw_PG: Likewise.
23979 * localedata/locales/zh_CN: Likewise.
23980 * localedata/locales/zh_HK: Likewise.
23981 * localedata/locales/zh_SG: Likewise.
23982 * localedata/locales/zh_TW: Likewise.
23983 * localedata/locales/zu_ZA: Likewise.
23984
23985 2017-11-13 Florian Weimer <fweimer@redhat.com>
23986
23987 * support/next_to_fault.h, support/next_to_fault.c: New files.
23988 * support/Makefile (libsupport-routines): Add next_to_fault.
23989 * resolv/tst-inet_pton.c (struct next_to_fault)
23990 (next_to_fault_allocate, next_to_fault_free): Remove.
23991 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23992
23993 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23994
23995 * elf/dl-support.c: Include <dl-procruntime.c>.
23996 * include/link.h: Include <link_map.h>.
23997 * sysdeps/generic/dl-procruntime.c: New file.
23998 * sysdeps/generic/link_map.h: Likewise.
23999 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24000 the writable ld.so namespace.
24001
24002 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24003
24004 timezone: pacify GCC -Wstringop-truncation
24005 Problem reported by Martin Sebor in:
24006 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24007 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24008
24009 2017-11-12 Florian Weimer <fweimer@redhat.com>
24010
24011 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24012 tst-xreadlink.
24013 (tests): Add tst-xreadlink.
24014 * support/support.h (xstrndup): Declare.
24015 * support/xunistd.h (xunlink, xreadlink): Declare.
24016 * support/temp_file.h (support_create_temp_directory): Declare.
24017 * support/temp_file.c (support_create_temp_directory): New function.
24018 * support/support_chroot.c (support_chroot_create): Use it.
24019 * support/xreadlink.c: New file.
24020 * support/xstrndup.c: Likewise.
24021 * support/xunlink.c: Likewise.
24022 * support/tst-xreadlink.c: Likewise.
24023
24024 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24025
24026 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24027
24028 2017-11-11 Florian Weimer <fweimer@redhat.com>
24029
24030 [BZ #22409]
24031 [BZ #22412]
24032 * resolv/res_comp.c (printable_string, binary_hnok)
24033 (binary_leading_dash): New functions.
24034 (res_hnok): Reimplement using these functions and ns_name_pton.
24035 (res_ownok): Likewise.
24036 (res_mailok): Reimplement using printable_string, ns_name_pton and
24037 binary_hnok.
24038 (res_dnok): Reimplement using printable_string and ns_name_pton.
24039 * resolv/tst-res_hnok.c (tests): Add additional tests.
24040 (LETTERDIGITS, PRINTABLE): Define.
24041 (do_test): Adjust one_char results.
24042
24043 2017-11-11 Florian Weimer <fweimer@redhat.com>
24044
24045 [BZ #22413]
24046 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24047 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24048
24049 2017-11-11 Florian Weimer <fweimer@redhat.com>
24050
24051 * resolv/tst-ns_name_pton.c: New file.
24052 * resolv/Makefile (tests): Add tst-ns_name_pton.
24053 (tst-ns_name_pton): Link against libresolv.
24054
24055 2017-11-11 Florian Weimer <fweimer@redhat.com>
24056
24057 * resolv/tst-res_hnok.c: New file.
24058 * resolv/Makefile (tests): Add tst-res_hnok.
24059 (tst-res_hnok): Link against libresolv.
24060
24061 2017-11-11 Florian Weimer <fweimer@redhat.com>
24062
24063 * resolv/tst-resolv-network.c: Use test framework instead explicit
24064 main function.
24065
24066 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24067
24068 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24069 <jmp_buf-macros.h>.
24070 [!_ISOMAC] (STR_HELPER): New.
24071 [!_ISOMAC] (STR): Likewise.
24072 [!_ISOMAC] (TEST_SIZE): Likewise.
24073 [!_ISOMAC] (TEST_ALIGN): Likewise.
24074 [!_ISOMAC] (TEST_OFFSET): Likewise.
24075 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24076 field offsets of jmp_buf as well as sigjmp_buf.
24077 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24078 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24079 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24080 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24081 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24082 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24083 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24084 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24085 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24086 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24087 Likewise.
24088 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24089 Likewise.
24090 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24092 Likewise.
24093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24094 Likewise.
24095 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24096 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24097 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24098 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24099 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24100 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24101 Likewise.
24102 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24103 Likewise.
24104 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24105 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24106 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24107
24108 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24109
24110 * include/float.h
24111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24112 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24114 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24116 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24118 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24120 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24122 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24124 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24126 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24128 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24130 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24132 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24134 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24136 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24138 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24140 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24142 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24144 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24146 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24148 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24150 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24152 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24153 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24154 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24155 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24156 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24157 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24158 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24159 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24160 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24161 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24162 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24163 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24164 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24166 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24168 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24170 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24172 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24173 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24174 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24175 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24176 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24177 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24178 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24179 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24180 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24181 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24182 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24183 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24184 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24185 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24186 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24187 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24188 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24189 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24190 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24191 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24192 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24193 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24194 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24195 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24196 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24197 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24198 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24199
24200 * stdlib/tst-strtod.h (F16): New macro.
24201 (F32): Likewise.
24202 (F64): Likewise.
24203 (F32X): Likewise.
24204 (F64X): Likewise.
24205 (F128X): Likewise.
24206 (IF_FLOAT16): Likewise.
24207 (IF_FLOAT32): Likewise.
24208 (IF_FLOAT64): Likewise.
24209 (IF_FLOAT32X): Likewise.
24210 (IF_FLOAT64X): Likewise.
24211 (IF_FLOAT128X): Likewise.
24212 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24213 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24214 (STRTOD_TEST_FOREACH): Likewise.
24215 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24216 (CHOOSE_f64): Likewise.
24217 (CHOOSE_f32x): Likewise.
24218 (CHOOSE_f64x): Likewise.
24219
24220 2017-11-07 Andreas Schwab <schwab@suse.de>
24221
24222 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24223
24224 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24225
24226 [BZ #22403]
24227 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24228 to be escaped.
24229 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24230 to be escaped.
24231
24232 2017-11-07 Claude Paroz <claude@2xlibre.net>
24233
24234 [BZ #22403]
24235 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24236 to be escaped.
24237 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24238 to be escaped.
24239 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24240 to be escaped.
24241
24242 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24243
24244 [BZ #22298]
24245 * nptl/allocatestack.c (allocate_stack): Check if
24246 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24247 __PTHREAD_MUTEX_HAVE_PREV is defined.
24248 * nptl/descr.h (pthread): Likewise.
24249 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24250 Likewise.
24251 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24252 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24253 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24254 * sysdeps/nptl/bits/thread-shared-types.h
24255 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24256 defines.
24257 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24258 of __WORDSIZE for internal layout.
24259 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24260 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24261 instead of __WORDSIZE whether to use an union for __spins and __list
24262 fields.
24263 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24264 case.
24265 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24266 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24267 defines.
24268 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24269 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24270 Likewise.
24271 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24272 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24273 Likewise.
24274 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24275 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24276 Likewise.
24277 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24278 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24279 Likewise.
24280 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24281 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24282 Likewise.
24283 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24284 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24285 Likewise.
24286 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24287 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24288 Likewise.
24289 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24290 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24291 Likewise.
24292 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24293 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24294 Likewise.
24295 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24296 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24297 Likewise.
24298 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24299 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24300 Likewise.
24301 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24302 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24303 Likewise.
24304 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24305 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24306 Likewise.
24307 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24308 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24309 Likewise.
24310
24311 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24312 New macros.
24313 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24314 checks for expected input type size.
24315 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24316 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24317 Likewise.
24318 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24319 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24320 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24321 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24322 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24323 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24324 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24325 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24326 superflous runtime assert check.
24327 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24328 Likewise.
24329 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24330 Likewise.
24331 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24332 Likewise.
24333 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24334 Likewise.
24335 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24336 Likewise.
24337 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24338 Likewise.
24339 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24340 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24341 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24342 Likewise.
24343 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24344 Likewise.
24345 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24346 Likewise.
24347 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24348 Likewise.
24349 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24350 Likewise.
24351 * nptl/pthread_attr_setinheritsched.c
24352 (__pthread_attr_setinheritsched): Likewise.
24353 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24354 Likewise.
24355 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24356 Likewise.
24357 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24358 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24359 __old_pthread_attr_setstack): Likewise.
24360 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24361 Likewise.
24362 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24363 Likewise.
24364 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24365 Likewise.
24366 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24367 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24368 Likewise.
24369 * nptl/tst-typesizes.c: Remove file.
24370
24371 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24372 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24373 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24374 checks for internal pthread_mutex_t offsets.
24375 * sysdeps/aarch64/nptl/pthread-offsets.h
24376 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24377 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24378 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24379 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24380 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24381 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24382 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24383 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24384 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24385 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24386 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24387 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24388 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24389 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24390 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24391 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24392 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24393 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24394
24395 2017-11-07 Florian Weimer <fweimer@redhat.com>
24396
24397 * bits/mman-linux.h: Move ...
24398 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24399 comment.
24400 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
24401 outdated comment.
24402
24403 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24404
24405 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
24406 Redefine STRNLEN as __strnlen_power8.
24407
24408 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24409
24410 * signal/sighold.c (sighold): Optimize implementation.
24411
24412 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
24413 __NR_rt_sigqueueinfo.
24414
24415 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
24416 __sigtimedwait.
24417 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
24418 assume __NR_rt_sigtimedwait.
24419 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
24420 and add LIBC_CANCEL_HANDLED for cancellation marking.
24421 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24422
24423 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24424 (sysdeps_routines): Add memchr_noneon.
24425 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
24426 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
24427 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
24428 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
24429 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
24430 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24431 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
24432
24433 * sysdeps/arm/arm-ifunc.h: New file.
24434 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
24435 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
24436 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
24437 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
24438 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
24439 (__memcpy_neon): Avoid create hidden alias.
24440 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
24441 (__memcpy_vfp): Likewise.
24442 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24443 (sysdep_routines): Add memcpy_arm.
24444 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
24445
24446 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
24447
24448 [BZ #22362]
24449 * Makerules (make-link-multidir): New.
24450 * config.make.in (multidir): New.
24451 * configure.ac (libc_cv_multidir): New. AC_SUBST.
24452 * configure: Regenerated.
24453 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
24454 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
24455 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
24456 New target.
24457
24458 2017-11-06 Joseph Myers <joseph@codesourcery.com>
24459
24460 [BZ #22402]
24461 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
24462 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
24463
24464 2017-11-04 Mike FABIAN <mfabian@redhat.com>
24465
24466 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
24467 to be escaped.
24468
24469 2017-11-04 Florian Weimer <fweimer@redhat.com>
24470
24471 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
24472
24473 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24474
24475 * math/math.h [__HAVE_DISTINCT_FLOAT16
24476 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24477 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24478 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24479 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
24480 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24481 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
24482 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24483 (__MATH_TG_F32): New macro.
24484 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24485 (__MATH_TG_F64X): Likewise.
24486 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24487 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
24488
24489 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
24490
24491 * po/de.po: Update translations.
24492 * po/ru.po: Likewise.
24493
24494 2017-11-03 Florian Weimer <fweimer@redhat.com>
24495
24496 * manual/filesys.texi (Hard Links): Document linkat.
24497
24498 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24499
24500 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
24501 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24502 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24503 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24504 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24505 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24506 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
24507 the same as _Float128.
24508 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24509 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24510 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
24511
24512 * stdlib/stdlib.h
24513 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
24514 Declare.
24515 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
24516 Likewise.
24517 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
24518 Likewise.
24519 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24520 (strtof32x): Likewise.
24521 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24522 (strtof64x): Likewise.
24523 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24524 (strtof128x): Likewise.
24525 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24526 (strfromf16): Likewise.
24527 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24528 (strfromf32): Likewise.
24529 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24530 (strfromf64): Likewise.
24531 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24532 (strfromf32x): Likewise.
24533 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24534 (strfromf64x): Likewise.
24535 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24536 (strfromf128x): Likewise.
24537 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
24538 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
24539 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
24540 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
24541 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
24542 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
24543
24544 2017-11-03 Richard Henderson <rth@twiddle.net>
24545
24546 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
24547
24548 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24549
24550 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
24551
24552 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24553
24554 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
24555 DT_TLSDESC_GOT initialization.
24556 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
24557 (_dl_tlsdesc_resolve_hold): Likewise.
24558 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
24559 (_dl_tlsdesc_resolve_hold): Likewise.
24560 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
24561 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24562
24563 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24564
24565 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
24566
24567 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24568
24569 [BZ #18572]
24570 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
24571 non-lazily for R_ARM_TLS_DESC.
24572
24573 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24574
24575 [BZ #17078]
24576 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
24577 R_ARM_TLS_DESC case.
24578 (elf_machine_lazy_rel): Remove the prelink check.
24579
24580 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24581
24582 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
24583 DT_TLSDESC_GOT initialization.
24584 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
24585 (_dl_tlsdesc_resolve_rela): Likewise.
24586 (_dl_tlsdesc_resolve_hold): Likewise.
24587 (_dl_tlsdesc_undefweak): Remove ldar.
24588 (_dl_tlsdesc_dynamic): Likewise.
24589 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
24590 (_dl_tlsdesc_resolve_rela): Likewise.
24591 (_dl_tlsdesc_resolve_hold): Likewise.
24592 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
24593 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24594 (_dl_tlsdesc_resolve_rela): Likewise.
24595 (_dl_tlsdesc_resolve_hold): Likewise.
24596
24597 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24598
24599 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
24600 binding and initialization non-lazily for R_AARCH64_TLSDESC.
24601
24602 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24603
24604 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
24605 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
24606
24607 2017-11-02 Joseph Myers <joseph@codesourcery.com>
24608
24609 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
24610 Declare.
24611 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
24612 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
24613 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
24614 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
24615 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
24616 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
24617 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
24618 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
24619 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
24620 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
24621 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
24622
24623 2017-11-02 Mike FABIAN <mfabian@redhat.com>
24624
24625 [BZ #22382]
24626 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
24627 * localedata/locales/tpi_PG: Add standard header.
24628
24629 2017-11-02 Florian Weimer <fweimer@redhat.com>
24630
24631 test-errno-linux: quotactl can fail with EPERM in containers.
24632 * sysdeps/unix/sysv/linux/test-errno-linux.c
24633 (LIST, LIST_FORWARD): New macros.
24634 (check_error_in_list): New function.
24635 (test_wrp_rv): Accept list of permitted error codes.
24636 (test_wrp_rv2): Remove.
24637 (test_wrp): Call test_wrp_rv with list of error codes.
24638 (test_wrp2): Accept list of error codes.
24639 (do_test): Adjust. Allow EPERM for quotactl.
24640
24641 2017-11-02 Florian Weimer <fweimer@redhat.com>
24642
24643 * stdio-common/bug16.c (do_test): Use array_length.
24644 * stdio-common/errlist.c (_sys_nerr): Likewise.
24645 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
24646 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
24647 * stdio-common/psiginfo.c (psiginfo): Use array_length.
24648 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
24649 (do_test): Use array_length.
24650 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
24651 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
24652 * stdio-common/tst-printf-round.c (do_test): Likewise.
24653 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
24654 (CHECK): Use array_length.
24655 * stdio-common/tstdiomisc.c (t3, F): Likewise.
24656 * stdio-common/tstscanf.c (main): Likewise.
24657 * stdio-common/vfprintf.c (process_string_arg): Likewise.
24658
24659 2017-11-02 Florian Weimer <fweimer@redhat.com>
24660
24661 Add array_length and array_end macros.
24662 * include/array_length.h: New file.
24663
24664 2017-11-02 Florian Weimer <fweimer@redhat.com>
24665
24666 [BZ #22332]
24667 * posix/tst-glob-tilde.c (do_noescape): New variable.
24668 (one_test): Process it.
24669 (do_test): Set do_noescape. Add unescaping test case.
24670
24671 2017-11-01 Joseph Myers <joseph@codesourcery.com>
24672
24673 * math/complex.h
24674 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
24675 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
24676 with appropriate macros defined and undefined.
24677 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
24678 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24679 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
24680 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24681 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
24682 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24683 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
24684 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24685 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
24686 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24687
24688 * math/complex.h
24689 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
24690 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
24691 that for long double. Do not condition define and undefine of
24692 _Mdouble_complex_ on [__CFLOAT128].
24693
24694 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
24695
24696 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
24697 of <sysdeps/generic/sysdep.h>.
24698 (ALIGNARG): Removed.
24699 (ASM_SIZE_DIRECTIVE): Likewise.
24700 (ENTRY): Likewise.
24701 (END): Likewise.
24702 (ENTRY_CHK): Likewise.
24703 (END_CHK): Likewise.
24704 (syscall_error): Likewise.
24705 (mcount): Likewise.
24706 (PSEUDO_END): Likewise.
24707 (L): Likewise.
24708 (atom_text_section): Likewise.
24709 * sysdeps/x86/sysdep.h: New file.
24710 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
24711 of <sysdeps/generic/sysdep.h>.
24712 (ALIGNARG): Removed.
24713 (ASM_SIZE_DIRECTIVE): Likewise.
24714 (ENTRY): Likewise.
24715 (END): Likewise.
24716 (ENTRY_CHK): Likewise.
24717 (END_CHK): Likewise.
24718 (syscall_error): Likewise.
24719 (mcount): Likewise.
24720 (PSEUDO_END): Likewise.
24721 (L): Likewise.
24722 (atom_text_section): Likewise.
24723
24724 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
24725
24726 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
24727 category of LC_CTYPE set to "i18n:2012".
24728 * localedata/locales/i18n_ctype: Regenerate.
24729
24730 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
24731
24732 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
24733 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
24734 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
24735 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
24736
24737 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
24738 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
24739 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
24740 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
24741
24742 2017-10-31 Joseph Myers <joseph@codesourcery.com>
24743
24744 * math/complex.h
24745 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24746 New macro.
24747 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24748 Likewise.
24749 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24750 Likewise.
24751 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24752 (CMPLXF32X): Likewise.
24753 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24754 (CMPLXF64X): Likewise.
24755 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24756 (CMPLXF128X): Likewise.
24757
24758 * math/math.h
24759 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24760 (__MATH_EVAL_FMT2): Define to add 0.0f.
24761
24762 2017-10-31 Alan Modra <amodra@gmail.com>
24763
24764 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24765 include sysdep.h.
24766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24769 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24772 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24780 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24781 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24782 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24783 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24784 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24785 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24786 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24787 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24788 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24789 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24790 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24791 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24792 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24793 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24794 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24795 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24796 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24797 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24798 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24799 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24800 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24801 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24802 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24803 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24804 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24805 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24806 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24807 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24808 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24809 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24810 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24811 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24812 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24813 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24814 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24815 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24816 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24817 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24818 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24819 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24820 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24821 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24822 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24823 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24824 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24825 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24826 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24827 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24828 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24829 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24830 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24831 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24832 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24833 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24834 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24835
24836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24837 include sysdep.h and math_ldbl_opt.h.
24838
24839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24840 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
24841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24845 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24865
24866 2017-10-31 Alan Modra <amodra@gmail.com>
24867
24868 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24869 string/strncase_l.c, not string/strncase.c.
24870 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24871 (libc_hidden_def): Redefine.
24872
24873 2017-10-31 Alan Modra <amodra@gmail.com>
24874
24875 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24876 (__STRCMP, STRCMP, __strcasecmp_l): Define.
24877 (__strcasecmp): Don't define.
24878
24879 2017-10-31 Alan Modra <amodra@gmail.com>
24880
24881 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24882 IS_IN (libc).
24883 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24884 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24885 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24886
24887 2017-10-31 Alan Modra <amodra@gmail.com>
24888
24889 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24890 USE_AS_STPNCPY.
24891
24892 2017-10-31 Alan Modra <amodra@gmail.com>
24893
24894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24895 Redefine only when SHARED.
24896
24897 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24898
24899 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24900 Include <bits/math-finite.h> with appropriate macros defined and
24901 undefined.
24902 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24903 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24904 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24905 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24906 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24907
24908 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24909 [!_Mlong_double_] (_Mlong_double_): Likewise.
24910 [!_Mfloat16_] (_Mfloat16_): Likewise.
24911 [!_Mfloat32_] (_Mfloat32_): Likewise.
24912 [!_Mfloat64_] (_Mfloat64_): Likewise.
24913 [!_Mfloat128_] (_Mfloat128_): Likewise.
24914 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24915 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24916 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24917 (_Mdouble_): Define without indirection through those macros.
24918 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24919 [!_Mfloat128_] (_Mfloat128_): Likewise.
24920 [_Mlong_double_] (_Mlong_double_): Likewise.
24921 (_Mdouble_): Define without indirection through those macros.
24922 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24923 not add -D_Mlong_double_=double.
24924 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24925 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24926
24927 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24928
24929 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24930
24931 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24932
24933 * sysdeps/x86/libc-start.c: Reformat.
24934
24935 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24936
24937 [BZ #22353]
24938 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24939 (1): Renamed to ...
24940 (L(Src0)): This.
24941 (L(Src1)): New.
24942 (L(Src2)): Likewise.
24943 (L(1)): Renamed to ...
24944 (L(Src3)): This.
24945
24946 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24947
24948 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24949 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24950 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24951 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24952 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24953 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24954 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24955 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24956 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24957 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24958 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24959 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24960 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24961 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24962 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24963 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24964 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24965 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24966 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24967 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24968 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24969 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24970 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24971 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24972 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24973 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24974 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24975 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24976 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24977 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24978 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24979 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24980 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24981 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24982 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24983 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24984 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24985 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24986 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24987 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24988 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24989 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24990 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24991 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24992 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24993 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24994 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24995 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24996 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24997 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24998 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24999 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25000 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25001 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25002 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25003 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25004 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25005 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25006 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25007 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25008 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25009 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25010 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25011 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25012 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25013 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25014
25015 2017-10-30 Florian Weimer <fweimer@redhat.com>
25016
25017 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25018 always defined.
25019 * io/tst-mkdirat.c (do_test): Likewise.
25020 * io/tst-mkfifoat.c (do_test): Likewise.
25021 * io/tst-mknodat.c (do_test): Likewise.
25022 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25023 * locale/programs/locale.c (select_dirs): Likewise.
25024 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25025 * posix/bug-glob2.c (my_readdir): Likewise.
25026 * posix/tst-dir.c (main): Likewise.
25027 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25028 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25029
25030 2017-10-30 Florian Weimer <fweimer@redhat.com>
25031
25032 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25033 just __USE_GNU.
25034
25035 2017-10-30 Florian Weimer <fweimer@redhat.com>
25036
25037 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25038 Convert to support/test-driver.c.
25039 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25040 New macro parameters.
25041 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25042 * posix/tst-gnuglob.c: New file.
25043 * posix/tst-gnuglob64.c: Likewise.
25044 * posix/Makefile (tests): Add tst-gnuglob64.
25045
25046 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25047
25048 [BZ #19485]
25049 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25050 and use a better translation for March in “mon”.
25051 * localedata/locales/csb_PL: Use more ASCII to improve the
25052 readability of the source.
25053
25054 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25055
25056 [BZ #13953]
25057 * localedata/locales/km_KH: Use ASCII as much
25058 as possible for better readability of the source and
25059 remove useless comments.
25060 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25061 was commented out and apparently wrong anyway because it was
25062 using Lao characters. If Buddhist era should be used
25063 for km_KH, a native speaker should write the correct formaat
25064 for Khmer.
25065 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25066 (According to CLDR, the first weekday for Cambodia is Sunday).
25067 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25068 (These were using Lao characters which must be wrong. If we get
25069 the correct data from a native speaker, we could add it back, until
25070 then it is better not to have name_mr and name_mrs at all than
25071 having it wrong).
25072
25073 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25074
25075 * locale/loadlocale.c: Correct size of
25076 _nl_value_type_LC_<category> arrays.
25077
25078 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25079
25080 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25081 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25082 with appropriate macros defined and undefined.
25083 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25084 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25085 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25086 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25087 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25088
25089 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25090
25091 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25092 "-O2 -march=i586".
25093
25094 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25095
25096 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25097 with lowercase letters to make it agree with CLDR.
25098
25099 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25100
25101 [BZ #15260]
25102 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25103 first letters of yesstr and nostr in yesexpr and noexpr,
25104 not for the full words.
25105 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25106 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25107 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25108 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25109 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25110 first letters of yesstr and nostr in yesexpr and noexpr,
25111 until now only English was matched in yesexpr and noexpr.
25112 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25113 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25114 fil but not for tl. As tl and fil are very similar, using fil
25115 is probably better than using English.
25116
25117 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25118
25119 [BZ #21706]
25120 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25121 in yesstr and nostr.
25122
25123 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25124
25125 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25126 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25127 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25128 Likewise.
25129 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25130 Likewise.
25131 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25132 Likewise.
25133 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25134 Likewise.
25135 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25136 (SNANF128X): Likewise.
25137
25138 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25139 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25140 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25141 (HUGE_VAL_F32): Likewise.
25142 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25143 (HUGE_VAL_F64): Likewise.
25144 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25145 (HUGE_VAL_F32X): Likewise.
25146 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25147 (HUGE_VAL_F64X): Likewise.
25148 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25149 (HUGE_VAL_F128X): Likewise.
25150
25151 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25152
25153 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25154 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25155 for the br_FR locale.
25156
25157 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25158
25159 [BZ #21706]
25160 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25161
25162 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25163
25164 * locale/programs/record-status.h: Define globals, and function
25165 prototypes. Move function bodies...
25166 * locale/programs/record-status.c: ... to here. New file.
25167 * iconv/Makefile (iconv_prog-modules): Add record-status.
25168 * locale/Makefile (lib-modules): Likewise.
25169 * iconv/iconv_prog.c: Remove verbose.
25170 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25171 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25172 record a warning about ASCII compatibility.
25173 * locale/programs/ld-monetary.c (monetary_finish): If
25174 warn_int_curr_symbol is true then record a warning about the symbol
25175 not being in our ISO 4217 list.
25176 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25177 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25178 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25179 (OPT_NO_WARN): Define.
25180 (OPT_WARN): Define.
25181 (options): Add entry for --no-warnings, and --warnings.
25182 (set_warnings): New function to enable/disable warnings.
25183 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25184 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25185 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25186 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25187 Pass flags to generate_locale.
25188 (generate_locale): Accept new flag argument and pass it to localedef
25189 invocation.
25190 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25191 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25192
25193 * localedata/Makefile (test-input-data): Use full file name.
25194 * localedata/da_DK.in: Rename to...
25195 * localedata/da_DK.ISO-8859-1.in: ...this.
25196 * localedata/de_DE.in: Rename to...
25197 * localedata/de_DE.ISO-8859-1.in: ...this.
25198 * localedata/en_US.in: Rename to...
25199 * localedata/en_US.ISO-8859-1.in: ...this.
25200 * localedata/fr_FR.in: Rename to...
25201 * localedata/fr_FR.UTF-8.in: ... this.
25202 * localedata/hr_HR.in: Rename to...
25203 * localedata/hr_HR.ISO-8859-2.in: ...this.
25204 * localedata/hu_HU.in: Rename to...
25205 * localedata/hu_HU.UTF-8.in: ...this.
25206 * localedata/si_LK.in: Rename to...
25207 * localedata/si_LK.UTF-8.in: ...this.
25208 * localedata/sv_SE.in: Rename to...
25209 * localedata/sv_SE.ISO-8859-1.in: ...this.
25210 * localedata/tr_TR.in: Rename to...
25211 * localedata/tr_TR.UTF-8.in: ...this.
25212 * localedata/uk_UA.in: Rename to...
25213 * localedata/uk_UA.UTF-8.in: ...this.
25214 * localedata/sort-test.sh: Test file is locale name with the
25215 suffix.
25216
25217 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25218 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25219 file.
25220 * localedata/locales/i18n_ctype: Regenerate.
25221 * localedata/locales/tr_TR: Likewise.
25222 * localedata/locales/translit_circle: Likewise.
25223 * localedata/locales/translit_cjk_compat: Likewise.
25224 * localedata/locales/translit_combining: Likewise.
25225 * localedata/locales/translit_compat: Likewise.
25226 * localedata/locales/translit_font: Likewise.
25227 * localedata/locales/translit_fraction: Likewise.
25228
25229 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25230
25231 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25232 lxvd2x/stxvd2x with lvx/stvx.
25233 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25234
25235 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25236
25237 * include/alloc_buffer.h: Replace "if if " with "if " in
25238 comments.
25239 * sysdeps/mips/memcpy.S: Likkewise.
25240 * sysdeps/mips/memset.S: Likewise.
25241 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25242 Likewise.
25243 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25244 Likewise.
25245 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25246 Likewise.
25247
25248 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25249
25250 [BZ #15261]
25251 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25252 yesexpr and noexpr.
25253 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25254 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25255 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25256 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25257 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25258 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25259 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25260
25261 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25262
25263 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25264 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25265 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25266 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25267 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25268 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25269 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25270 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25271 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25272 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25273 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25274 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25275
25276 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25277
25278 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25279 as possible for better readability of the source.
25280 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25281 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25282 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25283 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25284 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25285 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25286 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25287 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25288 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25289 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25290 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25291 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25292 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25293 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25294 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25295 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25296 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25297 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25298 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25299 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25300 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25301 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25302 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25303 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25304 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25305 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25306 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25307 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25308 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25309 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25310 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25311 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25312 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25313 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25314 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25315 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25316 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25317 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25318 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25319 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25320 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25321 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25322 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25323 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25324 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25325 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25326 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25327 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25328 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25329 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25330 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25331 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25332 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25333 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25334 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25335 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25336 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25337 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25338 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25339 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25340 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25341 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25342 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25343 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25344 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25345 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25346 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25347 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25348 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25349 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25350 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25351 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25352 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25353 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25354 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25355 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25356 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25357 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25358 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25359 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25360 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25361 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25362 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25363 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25364 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25365 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25366 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25367 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25368 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25369 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25370 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25371 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25372 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25373 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25374 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25375 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25376 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25377 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25378 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25379 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25380 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25381 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25382 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25383 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25384 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25385 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25386 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25387 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25388 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25389 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25390 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25391 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25392 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25393 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25394 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25395 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25396 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25397 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25398 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25399 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
25400 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
25401 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
25402 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
25403 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
25404 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
25405 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
25406 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
25407 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
25408 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
25409 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
25410 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
25411 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
25412 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
25413 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
25414 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
25415 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
25416 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
25417 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
25418 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
25419 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
25420 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
25421 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
25422 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
25423 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
25424 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
25425 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25426 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
25427 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
25428 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
25429 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
25430 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
25431 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
25432 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
25433 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
25434 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25435 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
25436 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
25437 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
25438 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
25439 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
25440 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
25441 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
25442 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
25443 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
25444 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
25445 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25446 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
25447 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
25448 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
25449 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
25450 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25451 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25452 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25453 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
25454
25455 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25456
25457 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
25458 (Use first letters of yesstr and nostr correctly instead of using
25459 full words).
25460
25461 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25462
25463 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
25464 (Use first letters of yesstr and nostr correctly).
25465
25466 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25467
25468 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
25469 also check for the first characters of yesstr and nostr.
25470 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
25471 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
25472
25473 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25474
25475 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
25476 also check for Chinese characters.
25477
25478 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25479
25480 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
25481 match also for the contents of yesstr and nostr. As the first letter
25482 of yesstr and nostr is equal, checking only for the first letter
25483 is not enough.
25484
25485 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25486
25487 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
25488 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
25489
25490 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25491
25492 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
25493 of main contributor.
25494
25495 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25496
25497 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
25498 instead of using English.
25499
25500 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25501
25502 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
25503 by including the first letters of nostr and yesexpr in the regexp.
25504 Also make it more readable by using ASCII where possible.
25505
25506 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25507
25508 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
25509 the first letter of nostr in the regexp. It agrees with CLDR now.
25510 Also make it more readable by using ASCII where possible.
25511
25512 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25513
25514 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
25515 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
25516 these strings contain a U+17D6 (which somewhat looks like a colon)
25517 instead of a real colon to separate the full words for “yes”
25518 and “no” from the single letter responses.
25519
25520 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25521
25522 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
25523 it agree with CLDR (include the first letter of yesstr).
25524 Also make it more readable by using ASCII where possible.
25525
25526 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25527
25528 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
25529 and improve yesexpr and noexpr. The yesstr and nostr apparently
25530 came from CLDR. And CLDR has a bug there: these strings contain
25531 a U+0903 (which looks like a colon) instead of a real colon
25532 to separate the full words for “yes” and “no” from the single
25533 letter responses.
25534
25535 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25536
25537 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
25538 letters of the full yesstr and nostr in yesexpr and noexpr.
25539
25540 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25541
25542 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
25543 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
25544 * localedata/locales/an_ES: Make source more readable by using ASCII
25545 where possible.
25546
25547 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25548
25549 [BZ #20952]
25550 * localedata/locales/yuw_PG: New file.
25551 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
25552 * locale/iso-639.def: Add Yau (Uruwa).
25553
25554 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25555
25556 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
25557
25558 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25559
25560 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
25561 (__libc_realloc): Likewise.
25562 (_mid_memalign): Likewise.
25563 (__libc_calloc): Likewise.
25564
25565 2017-10-23 Mike FABIAN <mfabian@redhat.com>
25566
25567 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
25568 by adding the generic +1 and -0 as in all other locales.
25569 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
25570 day names and make it more readable by using ASCII where possible.
25571
25572 2017-10-24 Joseph Myers <joseph@codesourcery.com>
25573
25574 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
25575 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
25576
25577 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25578
25579 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
25580 WNOHANG in waitpid call.
25581
25582 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
25583
25584 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
25585 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
25586
25587 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
25588 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
25589 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
25590 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
25591 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
25592 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
25593 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
25594 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
25595 variables.
25596
25597 2017-10-23 Michael Collison <michael.collison@arm.com>
25598
25599 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
25600 with __builtin_sqrt.
25601 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
25602 with __builtin_sqrtf.
25603 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
25604 with __builtin_ceil.
25605 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
25606 with __builtin_ceilf.
25607 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
25608 with __builtin_floor.
25609 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
25610 with __builtin_floorf.
25611 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
25612 with __builtin_fma.
25613 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
25614 with __builtin_fmaf.
25615 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
25616 with __builtin_fmax.
25617 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
25618 with __builtin_fmaxf.
25619 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
25620 with __builtin_fmin.
25621 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
25622 with __builtin_fminf.
25623 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
25624 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
25625 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
25626 with builtin_rint and conversion to int.
25627 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
25628 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
25629 with builtin_llround.
25630 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
25631 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
25632 with builtin_rint and conversion to long int.
25633 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
25634 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
25635 with builtin_lround.
25636 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
25637 with builtin_lroundf.
25638 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
25639 statements with __builtin_nearbyint.
25640 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
25641 statements with __builtin_nearbyintf.
25642 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
25643 with __builtin_rint.
25644 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
25645 with __builtin_rintf.
25646 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
25647 with __builtin_round.
25648 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
25649 with __builtin_roundf.
25650 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
25651 with __builtin_trunc.
25652 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
25653 with __builtin_truncf.
25654 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
25655 and s_l[l]round[f].c too.
25656
25657 2017-10-23 Alan Modra <amodra@gmail.com>
25658
25659 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
25660 Adjust stack after restoring regs. Add missing LR cfi_restore.
25661
25662 2017-10-23 Alan Modra <amodra@gmail.com>
25663
25664 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
25665 Move LR save and frame setup/teardown and LR restore to
25666 immediately around memset call. Provide cfi.
25667
25668 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25669
25670 * sysdeps/i386/fpu/e_powf.S: Removed.
25671 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
25672 * sysdeps/i386/fpu/w_powf.c: Likewise.
25673 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
25674 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25675 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25676 Add e_powf-sse2.
25677 (CFLAGS-e_powf-sse2.c): New.
25678 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
25679 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
25680
25681 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25682
25683 * sysdeps/i386/fpu/e_log2f.S: Removed.
25684 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
25685 * sysdeps/i386/fpu/w_log2f.c: Likewise.
25686 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
25687 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25688 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25689 Add e_log2f-sse2.
25690 (CFLAGS-e_log2f-sse2.c): New.
25691 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
25692 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
25693
25694 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25695
25696 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25697 Add e_powf-fma.
25698 (CFLAGS-e_powf-fma.c): New.
25699 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
25700 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
25701
25702 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25705 Add e_log2f-fma.
25706 (CFLAGS-e_log2f-fma.c): New.
25707 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
25708 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
25709
25710 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25711
25712 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25713 Add e_logf-fma.
25714 (CFLAGS-e_logf-fma.c): New.
25715 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
25716 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
25717
25718 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25719
25720 * sysdeps/i386/fpu/e_logf.S: Removed.
25721 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
25722 * sysdeps/i386/fpu/w_logf.c: Likewise.
25723 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
25724 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
25725 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25726 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25727 Add e_logf-sse2.
25728 (CFLAGS-e_logf-sse2.c): New.
25729 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
25730 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
25731
25732 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25733
25734 * sysdeps/i386/fpu/e_exp2f.S: Removed.
25735 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
25736 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
25737 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25738 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25739 Add e_exp2f-sse2.
25740 (CFLAGS-e_exp2f-sse2.c): New.
25741 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
25742 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
25743
25744 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25745
25746 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25747 Add e_exp2f-fma.
25748 (CFLAGS-e_exp2f-fma.c): New.
25749 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25750 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25751
25752 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25753
25754 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25755 * sysdeps/i386/fpu/e_expf.S: Likewise.
25756 * sysdeps/i386/fpu/math_errf.c: Likewise.
25757 * sysdeps/i386/fpu/w_expf.c: Likewise.
25758 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25759 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25760 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25761 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25762 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25763 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25764 Remove e_expf-ia32.
25765 (CFLAGS-e_expf-sse2.c): New.
25766 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25767 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25768
25769 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 * sysdeps/x86_64/fpu/e_expf.S: Removed.
25772 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25773 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25774 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25775 e_expf.c.
25776 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25777 New.
25778 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25779 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25780 Renamed to ...
25781 (__redirect_expf): This.
25782 (SYMBOL_NAME): Changed to expf.
25783 (__ieee754_expf): Renamed to ...
25784 (__expf): This.
25785 (__GI___expf): This.
25786 (__ieee754_expf): Add strong_alias.
25787 (__expf_finite): Likewise.
25788 (__expf): New.
25789 Include <sysdeps/ieee754/flt-32/e_expf.c>.
25790
25791 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
25792
25793 [BZ #22332]
25794 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25795 unescaping.
25796
25797 2017-10-21 Florian Weimer <fweimer@redhat.com>
25798
25799 * posix/Makefile (tests): Add tst-glob-tilde.
25800 (tests-special): Add tst-glob-tilde-mem.out
25801 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25802 (tst-glob-tilde-mem.out): Add mtrace check.
25803 * posix/tst-glob-tilde.c: New file.
25804
25805 2017-10-20 Joseph Myers <joseph@codesourcery.com>
25806
25807 * bits/floatn-common.h: New file.
25808 * math/Makefile (headers): Add bits/floatn-common.h.
25809 * bits/floatn.h: Include <bits/floatn-common.h>.
25810 * sysdeps/ia64/bits/floatn.h: Likewise.
25811 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25812 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25813 * sysdeps/powerpc/bits/floatn.h: Likewise.
25814 * sysdeps/x86/bits/floatn.h: Likewise.
25815
25816 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25817
25818 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25819 indicates whether compiler emits an warning for alias for
25820 functions with incompatible types.
25821
25822 [BZ #22273]
25823 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25824 the auxiliary process is terminated by a signal before calling _exit
25825 or execve.
25826
25827 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25828
25829 [BZ #21265]
25830 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25831 New.
25832 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25833 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25834 and bit_arch_XSAVEC_Usable if needed.
25835 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25836 and bit_arch_Use_dl_runtime_resolve_opt.
25837 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25838 Removed.
25839 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25840 (bit_arch_Prefer_No_AVX512): Updated.
25841 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25842 (bit_arch_XSAVEC_Usable): New.
25843 (STATE_SAVE_OFFSET): Likewise.
25844 (STATE_SAVE_MASK): Likewise.
25845 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25846 (cpu_features): Add xsave_state_size and xsave_state_full_size.
25847 (index_arch_Use_dl_runtime_resolve_opt): Removed.
25848 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25849 (index_arch_XSAVEC_Usable): New.
25850 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25851 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
25852 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25853 is enabled.
25854 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25855 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25856 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25857 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25858 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25859 _dl_runtime_resolve_xsavec.
25860 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25861 Removed.
25862 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25863 instead of VEC_SIZE.
25864 (REGISTER_SAVE_BND0): Removed.
25865 (REGISTER_SAVE_BND1): Likewise.
25866 (REGISTER_SAVE_BND3): Likewise.
25867 (REGISTER_SAVE_RAX): Always defined to 0.
25868 (VMOV): Removed.
25869 (_dl_runtime_resolve_avx): Likewise.
25870 (_dl_runtime_resolve_avx_slow): Likewise.
25871 (_dl_runtime_resolve_avx_opt): Likewise.
25872 (_dl_runtime_resolve_avx512): Likewise.
25873 (_dl_runtime_resolve_avx512_opt): Likewise.
25874 (_dl_runtime_resolve_sse): Likewise.
25875 (_dl_runtime_resolve_sse_vex): Likewise.
25876 (USE_FXSAVE): New.
25877 (_dl_runtime_resolve_fxsave): Likewise.
25878 (USE_XSAVE): Likewise.
25879 (_dl_runtime_resolve_xsave): Likewise.
25880 (USE_XSAVEC): Likewise.
25881 (_dl_runtime_resolve_xsavec): Likewise.
25882 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25883 Removed.
25884 (_dl_runtime_resolve_avx512_opt): Likewise.
25885 (_dl_runtime_resolve_avx): Likewise.
25886 (_dl_runtime_resolve_avx_opt): Likewise.
25887 (_dl_runtime_resolve_sse): Likewise.
25888 (_dl_runtime_resolve_sse_vex): Likewise.
25889 (_dl_runtime_resolve_fxsave): New.
25890 (_dl_runtime_resolve_xsave): Likewise.
25891 (_dl_runtime_resolve_xsavec): Likewise.
25892
25893 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
25894
25895 [BZ #22320]
25896 CVE-2017-15670
25897 * posix/glob.c (__glob): Fix one-byte overflow.
25898
25899 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25900
25901 * malloc/malloc.c (sysdep-cancel.h): Add include.
25902
25903 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
25904
25905 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25906
25907 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
25908
25909 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25910 (tests): Remove $(objpfx)ga_test depdendency.
25911 * resolv/ga_test.c: Remove file.
25912
25913 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25914
25915 [BZ #18812]
25916 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25917 * localedata/locales/kab_DZ: New file.
25918
25919 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25922 _dl_relocate_static_pie instead of _dl_start to compute load
25923 address in static PIE.
25924
25925 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25926
25927 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25928
25929 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25930
25931 [BZ #13605]
25932 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25933 * localedata/locales/shn_MM: New file.
25934
25935 2017-10-20 Florian Weimer <fweimer@redhat.com>
25936
25937 [BZ #22321]
25938 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25939 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25940 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25941 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25942 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25943 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25944
25945 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25946
25947 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25948
25949 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25950
25951 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25952
25953 [BZ #22322]
25954 * sysdeps/mips/bits/long-double.h: Move to ....
25955 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25956
25957 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25958
25959 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25960
25961 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25962 H.J. Lu <hongjiu.lu@intel.com>
25963
25964 [BZ #22299]
25965 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25966 GLRO(dl_platform) to NULL.
25967 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25968 (modules-names): Add tst-platformmod-1 and
25969 x86_64/tst-platformmod-2.
25970 (CFLAGS-tst-platform-1.c): New.
25971 (CFLAGS-tst-platformmod-1.c): Likewise.
25972 (CFLAGS-tst-platformmod-2.c): Likewise.
25973 (LDFLAGS-tst-platformmod-2.so): Likewise.
25974 ($(objpfx)tst-platform-1): Likewise.
25975 ($(objpfx)tst-platform-1.out): Likewise.
25976 (tst-platform-1-ENV): Likewise.
25977 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25978 * sysdeps/x86_64/tst-platform-1.c: New file.
25979 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25980 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25981
25982 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25983
25984 [BZ #13994]
25985 * locale/iso-639.def: Add Karbi.
25986 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25987 * localedata/locales/mjw_IN: New file.
25988
25989 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25990
25991 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25992 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25993 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25994 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25995 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25996 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25997 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25998 <bits/floatn.h>.
25999 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26000 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26001 * manual/math.texi (Mathematics): Document additional architecture
26002 support for _Float128.
26003 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26004 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26005 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26006 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26007 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26008 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26009 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26010 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26011 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26012 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26013 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26014 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26015 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26016 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26017 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26018
26019 2017-10-18 Renlin Li <renlin.li@arm.com>
26020
26021 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26022 _DYNAMIC symbol to calculate load address.
26023
26024 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26025
26026 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26027 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26028 summary bits.
26029 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26030 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26031
26032 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26033
26034 [BZ #16777]
26035 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26036 and improve readability by using more ASCII.
26037 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26038 and improve readability by using more ASCII.
26039
26040 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26041
26042 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26043 not all targets support atomics on bool.
26044
26045 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26046
26047 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26048 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26049 __f128.
26050 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26051 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26052 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26053 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26054 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26055 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26056
26057 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26058
26059 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26060 defines.
26061
26062 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26063
26064 [BZ #22159]
26065 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26066 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26067 (do_check_remalloced_chunk): Fix build bug.
26068 (do_check_malloc_state): Add assert that checks arena->top.
26069 (malloc_consolidate): Remove initialization.
26070 (int_mallinfo): Remove call to malloc_consolidate.
26071 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26072
26073 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26074
26075 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26076 (have_fastchunks): Remove.
26077 (clear_fastchunks): Remove.
26078 (set_fastchunks): Remove.
26079 (malloc_state): Add have_fastchunks.
26080 (malloc_init_state): Use have_fastchunks.
26081 (do_check_malloc_state): Remove incorrect invariant checks.
26082 (_int_malloc): Use have_fastchunks.
26083 (_int_free): Likewise.
26084 (malloc_consolidate): Likewise.
26085
26086 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26087
26088 * malloc/malloc.c (tcache_put): Inline.
26089 (tcache_get): Inline.
26090
26091 2017-10-17 Jordi Mallach <jordi@gnu.org>
26092
26093 Aurelien Jarno <aurelien@aurel32.net>
26094 [BZ #2522]
26095 * localedata/locales/ca_ES@valencia: New file.
26096 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26097
26098 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26099
26100 [BZ #22296]
26101 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26102 < 6.x
26103
26104 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26105
26106 * scripts/build-many-glibcs.py (Context.add_all_configs):
26107 Add arm-linux-gnueabihf multiarch extra_glibcs.
26108
26109 * sysdeps/generic/ifunc-init.h: New file.
26110 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26111
26112 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26113
26114 [BZ #22019]
26115 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26116 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26117 * stdlib/tst-strfmon_l.c: adapt test case.
26118
26119 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26120
26121 * sysdeps/generic/float128-abi.h: New file.
26122 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26123 non-__prefixed symbols to ....
26124 * math/Versions: ... here. Include <float128-abi.h>.
26125 * stdlib/Versions ... and here. Include <float128-abi.h>
26126
26127 2017-10-16 Florian Weimer <fweimer@redhat.com>
26128
26129 * version.h (VERSION): Switch to ".9000" as the development
26130 version suffix.
26131
26132 2017-10-16 Florian Weimer <fweimer@redhat.com>
26133
26134 [BZ #22050]
26135 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26136 compat_symbol_reference to access non-default version.
26137
26138 2017-10-16 Florian Weimer <fweimer@redhat.com>
26139
26140 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26141
26142 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26143
26144 * include/shlib-compat.h (compat_symbol_reference): Update
26145 comment.
26146
26147 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26148
26149 * math/Makefile (test-types): Add
26150 $(type-float128-$(float128-alias-fcts)).
26151 * math/test-float128.h (TYPE_STR): Define conditional on
26152 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26153 (ULP_IDX): Likewise.
26154 (ULP_I_IDX): Likewise.
26155
26156 * stdlib/strtold.c: Include <bits/floatn.h>
26157 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26158 and later undefine as macro. Define as weak alias if
26159 [!USE_WIDE_CHAR].
26160 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26161 and later undefine as macro. Define as weak alias if
26162 [USE_WIDE_CHAR].
26163 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26164 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26165 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26166 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26167 Define and later undefine as macro. Define as weak alias if
26168 [USE_WIDE_CHAR].
26169 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26170 <bits/floatn.h>.
26171 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26172 Define and later undefine as macro. Define as weak alias if
26173 [!USE_WIDE_CHAR].
26174 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26175 Define and later undefine as macro. Define as weak alias if
26176 [USE_WIDE_CHAR].
26177
26178 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26179
26180 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26181 record_verbose messages.
26182
26183 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26184
26185 [BZ #22052]
26186 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26187 to silence -O3 -Wall warning with GCC 7.
26188
26189 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 * Makeconfig (+link-static-before-libc): Use the first of
26192 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26193 * gmon/Makefile (tests): Add tst-gmon-static.
26194 (tests-static): Likewise.
26195 (CFLAGS-tst-gmon-static.c): New.
26196 (CRT-tst-gmon-static): Likewise.
26197 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26198 (tst-gmon-static-ENV): Likewise.
26199 (tests-special): Likewise.
26200 ($(objpfx)tst-gmon-static.out): Likewise.
26201 (clean-tst-gmon-static-data): Likewise.
26202 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26203 * gmon/tst-gmon-static-gprof.sh: New file.
26204 * gmon/tst-gmon-static.c: Likewise.
26205
26206 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26207
26208 [BZ #22295]
26209 * locale/programs/linereader.c (get_string): Don't warn on
26210 non-symbolic character.
26211
26212 [BZ #22294]
26213 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26214 int_curr_symbol.
26215
26216 [BZ #22292]
26217 * locale/programs/record-status.h: New file
26218 * locale/programs/locale.c: Add comment.
26219 * locale/programs/charmap-dir.c: Don't include error.h.
26220 (charmap_opendir): Use record_error.
26221 * locale/programs/charmap.c: Don't include error.h.
26222 (charmap_read): Use record_error, and record_warning.
26223 (parse_charmap): Likewise.
26224 * locale/programs/ld-address.c: Don't include error.h.
26225 (address_finish): Use record_error, and record_warning.
26226 * locale/programs/ld-collate.c: Don't include error.h.
26227 (collate_finish): Use record_error, and record_error_at_line.
26228 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26229 (ctype_class_new): Likewise.
26230 (ctype_map_new): Likewise.
26231 (set_one_default): Likewise.
26232 (set_class_defaults): Likewise.
26233 (translit_flatten): Likewise.
26234 (allocate_arrays): Use record_error, and record_verbose.
26235 * locale/programs/ld-identification.c: Don't include error.h.
26236 (indentation_finish): Use record_error and record_warning.
26237 * locale/programs/ld-measurement.c: Don't include error.h.
26238 (measurement_finish): Use record_error.
26239 * locale/programs/ld-messages.c
26240 (message_finish): Likewise.
26241 * locale/programs/ld-monetary.c
26242 (monetary_finish): Likewise.
26243 * locale/programs/ld-name.c (name_finish): Use record_error
26244 and record_warning.
26245 * locale/programs/ld-numeric.c
26246 (numeric_finish): Use record_error.
26247 * locale/programs/ld-paper.c: Don't include error.h.
26248 (paper_finish): Use record_error.
26249 * locale/programs/ld-telephone.c: Don't include error.h.
26250 (telephone_finish): Use record_error.
26251 * locale/programs/ld-time.c (time_finish): Likewise.
26252 * locale/programs/linereader.h (lr_error): Make inline func.
26253 * locale/programs/localedef.c: Define recorded_warning_count,
26254 and recorded_error_count.
26255 (main): Use record_error. Use recorded_error_count and
26256 recorded_warning_count to issue correct error returns.
26257 (add_to_readlist): Use record_error.
26258 (find_locale): Likewise.
26259 (load_locale): Likewise.
26260 * locale/programs/localedef.h: Remove be_quiet
26261 and WITH_CUR_LOCALE.
26262 * locale/programs/locarchive.c (compare_from_file): Use
26263 record_error.
26264 * locale/programs/locfile.c (write_locale_data): Use
26265 record_error.
26266 * locale/programs/repertoire.c: Dont include error.h.
26267 (repertoire_complain): Use record_error.
26268 * localedata/tst-fmon.sh: Expect failures from localedef.
26269 * localedata/tst-locale.sh: Likewise.
26270 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26271
26272 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26273 (REPORTS): Likewise.
26274 (check): Likewise.
26275 (i18n): Rename to...
26276 (i18n_ctype): ...this.
26277 (i18n-report): Rename to...
26278 (i18n_ctype-report): ...this.
26279 * localedata/locales/i18n_ctype: Regenerate.
26280 * localedata/locales/i18n: copy i18n_ctype.
26281
26282 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26283
26284 * stdlib/strfroml.c: Include <bits/floatn.h>.
26285 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26286 Define before include of <stdlib.h> and undefine afterwards, then
26287 define as weak alias.
26288
26289 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26290 Undefine and restore default definition. Use
26291 libm_alias_ldouble_other.
26292
26293 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26294
26295 [BZ #22153]
26296 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26297 in coredumps.
26298
26299 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26300
26301 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26302 Assign sym_map to be map for local symbols, as TLS relocations
26303 use sym_map to determine whether the symbol is defined and to
26304 extract the TLS information.
26305 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26306 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26307
26308 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26309
26310 [BZ #22189]
26311 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26312 (math_force_eval): Add powerpc version.
26313
26314 [BZ #22142]
26315 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26316 -DBL_MAX.
26317 (do_test): Likewise.
26318 * stdio-common/tst-printf.sh: Likewise.
26319 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26320 ifdef clause in order to set the carry bit right. Replace r0 by
26321 0 without changing the behavior.
26322
26323 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26324
26325 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26326 <libm-alias-ldouble.h>.
26327 (fabsl): Define using libm_alias_ldouble.
26328 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26329 <libm-alias-ldouble.h>.
26330 (fabsl): Define using libm_alias_ldouble.
26331
26332 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26333 Remove conditional code.
26334
26335 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26336 Rename to __clog10_internal_l.
26337 (__clog10_internal_l): Define aliases using
26338 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26339 with __clog10.
26340
26341 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26342
26343 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26344 * benchtests/sincosf-inputs: New file.
26345 * benchtests/cosf-inputs: New file.
26346 * benchtests/sinf-inputs: New file.
26347
26348 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26349
26350 * posix/tst-spawn.c (do_test): Wait for both children.
26351
26352 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 [BZ #22284]
26355 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26356 tests-pie): Add tst-gmon-pie.
26357 (CFLAGS-tst-gmon-pie.c): New.
26358 (CRT-tst-gmon-pie): Likewise.
26359 (tst-gmon-pie-ENV): Likewise.
26360 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26361 ($(objpfx)tst-gmon-pie.out): Likewise.
26362 (clean-tst-gmon-pie-data): Likewise.
26363 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26364 * gmon/gmon.c [PIC]: Include <link.h>.
26365 [PIC] (callback): New function.
26366 (write_hist): Add an argument for load address. Subtract load
26367 address from PCs.
26368 (write_call_graph): Likewise.
26369 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26370 it to write_hist and write_call_graph.
26371 * gmon/tst-gmon-pie.c: New file.
26372
26373 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26374
26375 * math/Makefile (test-types-basic): New variable.
26376 (test-types): Likewise.
26377 (libm-test-support): Use $(test-types) instead of $(types).
26378 (libm-tests-base-normal): Likewise.
26379 (libm-tests-base-finite): Likewise.
26380 (libm-tests-base-inline): Likewise.
26381 (generated): Likewise.
26382 ($(objpfx)libm-test-support-$(t).c): Likewise.
26383 (libm-tests-for-type iterator): Likewise.
26384 (libm-test-support iterator): Likewise.
26385 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26386 (ulp_idx): Use ULP_IDX.
26387 * math/test-ldouble.h: Include <float.h>.
26388 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26389 (ULP_IDX): New macro.
26390 (ULP_I_IDX): Likewise.
26391 * math/test-double.h (ULP_IDX): Likewise.
26392 (ULP_I_IDX): Likewise.
26393 * math/test-float.h (ULP_IDX): Likewise.
26394 (ULP_I_IDX): Likewise.
26395 * math/test-float128.h (ULP_IDX): Likewise.
26396 (ULP_I_IDX): Likewise.
26397
26398 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26399
26400 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
26401 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
26402 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
26403 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
26404 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
26405 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
26406 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
26407 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
26408 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
26409 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
26410 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
26411 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
26412 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
26413 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26414 (SINGLE_THREAD_BY_GLOBAL): Define.
26415 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26416 Likewise.
26417 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26418 Likewise.
26419 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26420 Likewise.
26421 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26422 Likewise.
26423 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
26424 (SINGLE_THREAD_BY_GLOBAL): Likewise.
26425 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26426 Likewise.
26427
26428 2017-10-11 Andreas Schwab <schwab@suse.de>
26429
26430 * nis/Makefile (aux): Remove.
26431 * nscd/Makefile (aux): Add nscd_hash.
26432 (nscd-modules): Likewise.
26433 ($(objpfx)nscd): Don't depend on libnsl.
26434 * nscd/nscd_hash.c: New file.
26435 * nscd/nscd_hash.h: Likewise.
26436 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
26437 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
26438 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
26439 instead of <nis/rpcsvc/nis.h>.
26440 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
26441
26442 2017-10-11 Florian Weimer <fweimer@redhat.com>
26443
26444 [BZ #22078]
26445 Avoid large NSS buffers with many addresses, aliases.
26446 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
26447 using dynarrays and struct alloc_buffer.
26448 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
26449 (tst-nss-files-hosts-multi): Link with -ldl.
26450 * nss/tst-nss-files-hosts-multi.c: New file.
26451
26452 2017-10-11 Florian Weimer <fweimer@redhat.com>
26453
26454 [BZ #18023]
26455 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
26456 scratch_buffer. Eliminate gotos.
26457
26458 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26459
26460 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
26461 libm_alias_ldouble_other.
26462 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
26463 undefine and redefine.
26464 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26465 (exp10l): Do not define here.
26466 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
26467 (weak_alias): Undefine and redefine.
26468 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
26469 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26470 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
26471 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
26472
26473 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
26474 [!__fma] (fma): Define using libm_alias_double.
26475 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
26476 [!__fmaf] (fmaf): Define using libm_alias_float.
26477 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
26478 (fmal): Define using libm_alias_ldouble.
26479
26480 2017-10-10 Joseph Myers <joseph@codesourcery.com>
26481
26482 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
26483 New macro.
26484 (libm_alias_double_other): Likewise.
26485 (libm_alias_double_r): Use libm_alias_double_other_r.
26486 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
26487 New macro.
26488 (libm_alias_float_other): Likewise.
26489 (libm_alias_float_r): Use libm_alias_float_other_r.
26490 * sysdeps/generic/libm-alias-float128.h
26491 (libm_alias_float128_other_r): New macro.
26492 (libm_alias_float128_other): Likewise.
26493 (libm_alias_float128_r): Use libm_alias_float128_other_r.
26494 * sysdeps/generic/libm-alias-ldouble.h
26495 (libm_alias_ldouble_other_r): New macro.
26496 (libm_alias_ldouble_other): Likewise.
26497 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26498 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26499 (libm_alias_double_other_r): New macro.
26500 (libm_alias_double_other): Likewise.
26501 (libm_alias_double_r): Use libm_alias_double_other_r.
26502 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26503 (libm_alias_ldouble_other_r): New macro.
26504 (libm_alias_ldouble_other): Likewise.
26505 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26506 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
26507 [!USE_AS_COMPAT]: Use libm_alias_double_other.
26508 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
26509 [!USE_AS_COMPAT]: Use libm_alias_float_other.
26510 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
26511 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
26512 * math/w_exp2f.c: Use libm_alias_float_other.
26513 * math/w_expf.c: Likewise.
26514 * math/w_log2f.c: Likewise.
26515 * math/w_logf.c: Likewise.
26516 * math/w_powf.c: Likewise.
26517 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
26518 [!__exp2f]: Use libm_alias_float_other.
26519 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
26520 [!__expf]: Use libm_alias_float_other.
26521 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
26522 [!__log2f]: Use libm_alias_float_other.
26523 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
26524 [!__logf]: Use libm_alias_float_other.
26525 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
26526 [!__powf]: Use libm_alias_float_other.
26527
26528 2017-10-10 Florian Weimer <fweimer@redhat.com>
26529
26530 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
26531 function.
26532 (_nss_files_gethostbyname3_r): Call it.
26533
26534 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26535
26536 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
26537 error. Remove default definition of declare_mgen_alias.
26538 [!declare_mgen_alias_r]: Likewise.
26539 * sysdeps/generic/math-type-macros-double.h
26540 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
26541 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
26542 (declare_mgen_alias_r): Likewise.
26543 * sysdeps/generic/math-type-macros-float128.h
26544 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26545 * sysdeps/generic/math-type-macros-ldouble.h
26546 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26547 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
26548 macro.
26549 (declare_mgen_alias_r_s): Likewise.
26550 (declare_mgen_alias_r): Likewise.
26551 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
26552 (lgamma_r): Define using libm_alias_double_r.
26553 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
26554 (lgammaf_r): Define using libm_alias_float_r.
26555 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
26556 (lgammal_r): Define using libm_alias_ldouble_r.
26557 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
26558 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
26559
26560 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26561
26562 * lib/glob.c (__glob_pattern_type): Remove now-spurious
26563 extern declaration.
26564
26565 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26566
26567 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
26568
26569 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
26570
26571 [BZ #21326]
26572 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
26573 [__cplusplus >= 201103] (__USE_ISOC99): Define.
26574 * math/Makefile (test-math-cxx11): New test.
26575 * math/test-math-cxx11.cc: New file.
26576
26577 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
26578
26579 * login/openpty.c (openpty): Close slave pty file descriptor on error.
26580
26581 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
26582 call to allocate the slave pty file descriptor.
26583
26584 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26585
26586 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
26587 [!__fma] (fma): Define using libm_alias_double.
26588 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
26589 [!__fma] (fma): Define using libm_alias_double.
26590
26591 * sysdeps/ieee754/float128/float128_private.h: Include
26592 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
26593 (libm_alias_ldouble_r): Undefine and redefine.
26594 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
26595 <libm-alias-ldouble.h>.
26596 (asinhl): Define using libm_alias_ldouble.
26597 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
26598 <libm-alias-ldouble.h>.
26599 (atanl): Define using libm_alias_ldouble.
26600 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
26601 <libm-alias-ldouble.h>.
26602 (cbrtl): Define using libm_alias_ldouble.
26603 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
26604 <libm-alias-ldouble.h>.
26605 (ceill): Define using libm_alias_ldouble.
26606 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
26607 <libm-alias-ldouble.h>.
26608 (copysignl): Define using libm_alias_ldouble.
26609 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
26610 <libm-alias-ldouble.h>.
26611 (cosl): Define using libm_alias_ldouble.
26612 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
26613 <libm-alias-ldouble.h>.
26614 (erfl): Define using libm_alias_ldouble.
26615 (erfcl): Likewise.
26616 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
26617 <libm-alias-ldouble.h>.
26618 (expm1l): Define using libm_alias_ldouble.
26619 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
26620 <libm-alias-ldouble.h>.
26621 (fabsl): Define using libm_alias_ldouble.
26622 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
26623 <libm-alias-ldouble.h>.
26624 (floorl): Define using libm_alias_ldouble.
26625 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
26626 <libm-alias-ldouble.h>.
26627 (fmal): Define using libm_alias_ldouble.
26628 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
26629 <libm-alias-ldouble.h>.
26630 (frexpl): Define using libm_alias_ldouble.
26631 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
26632 libm_alias_ldouble.
26633 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
26634 <libm-alias-ldouble.h>.
26635 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
26636 libm_alias_ldouble.
26637 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
26638 <libm-alias-ldouble.h>.
26639 (getpayloadl): Define using libm_alias_ldouble.
26640 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
26641 <libm-alias-ldouble.h>.
26642 (llrintl): Define using libm_alias_ldouble.
26643 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
26644 <libm-alias-ldouble.h>.
26645 (llroundl): Define using libm_alias_ldouble.
26646 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
26647 <libm-alias-ldouble.h>.
26648 (logbl): Define using libm_alias_ldouble.
26649 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
26650 <libm-alias-ldouble.h>.
26651 (lrintl): Define using libm_alias_ldouble.
26652 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
26653 <libm-alias-ldouble.h>.
26654 (lroundl): Define using libm_alias_ldouble.
26655 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
26656 <libm-alias-ldouble.h>.
26657 (modfl): Define using libm_alias_ldouble.
26658 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
26659 <libm-alias-ldouble.h>.
26660 (nearbyintl): Define using libm_alias_ldouble.
26661 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
26662 <libm-alias-ldouble.h>.
26663 (nextafterl): Define using libm_alias_ldouble.
26664 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
26665 <libm-alias-ldouble.h>.
26666 (nextupl): Define using libm_alias_ldouble.
26667 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
26668 <libm-alias-ldouble.h>.
26669 (remquol): Define using libm_alias_ldouble.
26670 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
26671 <libm-alias-ldouble.h>.
26672 (rintl): Define using libm_alias_ldouble.
26673 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
26674 <libm-alias-ldouble.h>.
26675 (roundevenl): Define using libm_alias_ldouble.
26676 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
26677 <libm-alias-ldouble.h>.
26678 (roundl): Define using libm_alias_ldouble.
26679 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
26680 using libm_alias_ldouble.
26681 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
26682 <libm-alias-ldouble.h>.
26683 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
26684 Define using libm_alias_ldouble.
26685 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
26686 <libm-alias-ldouble.h>.
26687 (sincosl): Define using libm_alias_ldouble.
26688 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
26689 <libm-alias-ldouble.h>.
26690 (sinl): Define using libm_alias_ldouble.
26691 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
26692 <libm-alias-ldouble.h>.
26693 (tanhl): Define using libm_alias_ldouble.
26694 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
26695 <libm-alias-ldouble.h>.
26696 (tanl): Define using libm_alias_ldouble.
26697 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
26698 <libm-alias-ldouble.h>.
26699 (totalorderl): Define using libm_alias_ldouble.
26700 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
26701 <libm-alias-ldouble.h>.
26702 (totalordermagl): Define using libm_alias_ldouble.
26703 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
26704 <libm-alias-ldouble.h>.
26705 (truncl): Define using libm_alias_ldouble.
26706 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
26707 libm_alias_ldouble.
26708 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
26709 libm_alias_ldouble.
26710 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
26711 <libm-alias-ldouble.h>.
26712 (weak_alias): Do not undefine and redefine.
26713 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26714 (copysignl): Define with long_double_symbol only if [IS_IN
26715 (libc)].
26716 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
26717 <libm-alias-ldouble.h>.
26718 (weak_alias): Do not undefine and redefine.
26719 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26720 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
26721 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
26722 <libm-alias-ldouble.h>.
26723 (weak_alias): Do not undefine and redefine.
26724 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26725 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
26726 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
26727 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
26728 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
26729 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
26730 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
26731 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
26732 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
26733 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
26734 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
26735 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
26736 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
26737 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
26738 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
26739 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
26740 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
26741 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
26742 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
26743 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
26744 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
26745 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26746 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26747 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26748 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26749 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26750
26751 2017-10-06 Carlos O'Donell <carlos@redhat.com>
26752
26753 [BZ #22111]
26754 * malloc/malloc.c (tcache_shutting_down): Use bool type.
26755 (tcache_thread_freeres): Set tcache_shutting_down before
26756 freeing the tcache.
26757 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26758 * malloc/tst-malloc-tcache-leak.c: New file.
26759
26760 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26761
26762 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26763 back to powerpc32 file.
26764 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26765 (memrchr): Add __memrchr_power8 to ifunc list.
26766 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26767 extra bytes for unaligned inputs.
26768
26769 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26770
26771 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26772 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26773 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26774 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26775 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26776
26777 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26778
26779 * sysdeps/arm/libm-test-ulps: Update.
26780
26781 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26782 <libm-alias-ldouble.h>.
26783 (asinhl): Define using libm_alias_ldouble.
26784 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26785 <libm-alias-ldouble.h>.
26786 (cbrtl): Define using libm_alias_ldouble.
26787 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26788 <libm-alias-ldouble.h>.
26789 (copysignl): Define using libm_alias_ldouble.
26790 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26791 <libm-alias-ldouble.h>.
26792 (cosl): Define using libm_alias_ldouble.
26793 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26794 <libm-alias-ldouble.h>.
26795 (erfl): Define using libm_alias_ldouble.
26796 (erfcl): Likewise.
26797 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26798 <libm-alias-ldouble.h>.
26799 (fmal): Define using libm_alias_ldouble.
26800 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26801 <libm-alias-ldouble.h>.
26802 (frexpl): Define using libm_alias_ldouble.
26803 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26804 libm_alias_ldouble.
26805 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26806 <libm-alias-ldouble.h>.
26807 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26808 libm_alias_ldouble.
26809 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26810 <libm-alias-ldouble.h>.
26811 (getpayloadl): Define using libm_alias_ldouble.
26812 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26813 <libm-alias-ldouble.h>.
26814 (llrintl): Define using libm_alias_ldouble.
26815 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26816 <libm-alias-ldouble.h>.
26817 (llroundl): Define using libm_alias_ldouble.
26818 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26819 <libm-alias-ldouble.h>.
26820 (lrintl): Define using libm_alias_ldouble.
26821 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26822 <libm-alias-ldouble.h>.
26823 (lroundl): Define using libm_alias_ldouble.
26824 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26825 <libm-alias-ldouble.h>.
26826 (modfl): Define using libm_alias_ldouble.
26827 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26828 <libm-alias-ldouble.h>.
26829 (nextupl): Define using libm_alias_ldouble.
26830 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26831 <libm-alias-ldouble.h>.
26832 (remquol): Define using libm_alias_ldouble.
26833 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26834 <libm-alias-ldouble.h>.
26835 (roundevenl): Define using libm_alias_ldouble.
26836 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26837 <libm-alias-ldouble.h>.
26838 (roundl): Define using libm_alias_ldouble.
26839 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26840 using libm_alias_ldouble.
26841 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26842 <libm-alias-ldouble.h>.
26843 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26844 <libm-alias-ldouble.h>.
26845 (setpayloadsigl): Define using libm_alias_ldouble.
26846 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26847 <libm-alias-ldouble.h>.
26848 (sincosl): Define using libm_alias_ldouble.
26849 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26850 <libm-alias-ldouble.h>.
26851 (sinl): Define using libm_alias_ldouble.
26852 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26853 <libm-alias-ldouble.h>.
26854 (tanhl): Define using libm_alias_ldouble.
26855 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26856 <libm-alias-ldouble.h>.
26857 (tanl): Define using libm_alias_ldouble.
26858 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26859 <libm-alias-ldouble.h>.
26860 (totalorderl): Define using libm_alias_ldouble.
26861 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26862 <libm-alias-ldouble.h>.
26863 (totalordermagl): Define using libm_alias_ldouble.
26864 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26865 libm_alias_ldouble.
26866 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26867 libm_alias_ldouble.
26868
26869 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
26870
26871 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26872 memmove_falkor.
26873 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26874 (__libc_ifunc_impl_list): Likewise.
26875 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26876 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26877
26878 * benchtests/bench-memmove-walk.c: New file.
26879 * benchtests/Makefile (string-benchset): Add it.
26880
26881 * benchtests/bench-memset-walk.c: New file.
26882 * benchtests/Makefile (string-benchset): Add it.
26883
26884 * benchtests/bench-memcpy-walk.c: New file.
26885 * benchtests/Makefile (string-benchset): Add it.
26886
26887 2017-10-05 Florian Weimer <fweimer@redhat.com>
26888
26889 nscd: Eliminate compilation time dependency in the build output.
26890 * nscd/nscd_stat.c (STATDATA_VERSION)
26891 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26892 (STATDATA_VERSION_FULL): New macro definitions.
26893 (compilation): Remove.
26894 (struct statdata): Adjust version member.
26895 (send_stats): Set version from STATDATA_VERSION_FULL.
26896 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26897
26898 2017-10-05 Joseph Myers <joseph@codesourcery.com>
26899
26900 * configure.ac (--enable-add-ons): Remove option.
26901 (machine): Do not mention add-ons in comment.
26902 (LIBC_PRECONFIGURE): Likewise.
26903 (add_ons): Remove variable and sanity checks and logic to locate
26904 add-ons.
26905 (add_ons_automatic): Remove variable.
26906 (configured_add_ons): Likewise.
26907 (add_ons_sfx): Likewise.
26908 (add_ons_pfx): Likewise.
26909 (add_on_subdirs): Likewise.
26910 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26911 consideration of add-ons in Implies handling.
26912 (sysdeps_add_ons): Likewise.
26913 * configure: Regenerated.
26914 * libidn/configure.ac: Remove.
26915 * libidn/configure: Likewise.
26916 * sysdeps/unix/inet/configure.ac: New file.
26917 * sysdeps/unix/inet/configure: New generated file.
26918 * sysdeps/unix/inet/Subdirs: Add libidn.
26919 * Makeconfig (sysdeps-srcdirs): Remove variable.
26920 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26921 ($(common-objpfx)config.status): Do not depend on add-on files.
26922 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26923 comment.
26924 (all-subdirs): Do not include $(add-on-subdirs).
26925 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26926 * config.make.in (add-ons): Remove variable.
26927 (add-on-subdirs): Likewise.
26928 (sysdeps-add-ons): Likewise.
26929 * manual/Makefile (add-chapters): Remove.
26930 ($(objpfx)texis): Do not depend on $(add-chapters).
26931 (nonexamples): Do not handle $(add-chapters).
26932 (examples): Do not handle $(add-ons).
26933 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26934 libc-texinfo.sh.
26935 * manual/install.texi (Installation): Do not mention add-ons.
26936 (--enable-add-ons): Do not document configure option.
26937 * INSTALL: Regenerated.
26938 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26939 * manual/maint.texi (Hierarchy Conventions): Do not mention
26940 add-ons.
26941 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26942 --enable-add-ons.
26943 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26944 add-ons.
26945 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26946 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26947
26948 2017-10-05 Andreas Schwab <schwab@suse.de>
26949
26950 [BZ #15142]
26951 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26952 (_IO_flush_all_lockp): Always lock list_all_lock.
26953 (_IO_flush_all_linebuffered): Likewise.
26954 (_IO_unbuffer_all): Likewise.
26955
26956 2017-10-05 Florian Weimer <fweimer@redhat.com>
26957
26958 [BZ #15436]
26959 Do not flush stdio streams on abort.
26960 * stdlib/abort.c (fflush): Remove macro definition.
26961 (abort): Remove stages related to stdio flushing.
26962
26963 2017-10-05 Florian Weimer <fweimer@redhat.com>
26964
26965 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26966
26967 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26968
26969 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26970
26971 2017-10-05 Florian Weimer <fweimer@redhat.com>
26972
26973 * support/support_format_hostent.c (support_format_hostent): Add
26974 more error information for NETDB_INTERNAL.
26975
26976 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26977
26978 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26979 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26980 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26981 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26982 AC_DEFINE if multi-arch is enabled.
26983 * sysdeps/i386/configure: Regenerated.
26984
26985 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26986
26987 * Makeconfig (+link-static-before-libc): Use
26988 $(DEFAULT-LDFLAGS-$(@F)).
26989 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26990 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26991 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26992
26993 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26994
26995 * elf/Makefile (tests): Add tst-main1.
26996 (modules-names): Add tst-main1mod.
26997 ($(objpfx)tst-main1): New.
26998 (CRT-tst-main1): Likewise.
26999 (LDFLAGS-tst-main1): Likewise.
27000 (LDLIBS-tst-main1): Likewise.
27001 (tst-main1mod.so-no-z-defs): Likewise.
27002 * elf/tst-main1.c: New file.
27003 * elf/tst-main1mod.c: Likewise.
27004
27005 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27006
27007 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27008
27009 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27010
27011 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27012 (fma): Define using libm_alias_double.
27013 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27014 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27015 <math_ldbl_opt.h>.
27016 (fmal): Do not define as compat symbol here.
27017 * sysdeps/alpha/fpu/s_fma.c: New file.
27018
27019 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27020
27021 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27022
27023 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27024
27025 [BZ #22229]
27026 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27027 <math_ldbl_opt.h>
27028 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27029 and libc.
27030 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27031 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27032 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27033 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27035 Include <math_ldbl_opt.h>
27036 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27037 and libc.
27038 (compat_symbol): Undefine and redefine.
27039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27040 <math_ldbl_opt.h>
27041 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27042 (compat_symbol): Undefine and redefine.
27043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27044 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27045 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27046 GLIBC_2_1 for libm.
27047 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27048 GLIBC_2.0 copysignl symbol.
27049 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27050 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27051
27052 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27053
27054 2017-10-04 Florian Weimer <fweimer@redhat.com>
27055
27056 * scripts/check-local-headers.sh: Ignore nspr4 header file
27057 directory in addition to nspr.
27058
27059 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27060
27061 [BZ #17956]
27062 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27063 * configure: Regenerate.
27064 * crypt/Makefile (nss-cpp-flags): New variable.
27065 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27066 (CPPFLAGS-md5-crypt.c): Use it.
27067 * scripts/check-local-headers.sh: Ignore nspr header file
27068 directory.
27069
27070 2017-10-04 Andreas Schwab <schwab@suse.de>
27071
27072 * nis/Makefile (services): Remove compat.
27073 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27074 ($(objpfx)libnss_compat.so): Remove rule.
27075 * nis/Versions (libnss_compat): Remove.
27076 * nss/Makefile (services): Add compat.
27077 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27078 * nss/Versions (libnss_compat): Define.
27079 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27080 Don't include <rpc/types.h>. Replace bool_t by bool.
27081 * nss/nss_compat/compat-initgroups.c: Likewise.
27082 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27083 instead of <rpcsrv/ypclnt.h>.
27084 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27085 yp_get_default_domain.
27086 * nss/nss_compat/compat-pwd.c: Likewise.
27087 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27088 yp_get_default_domain.
27089 * nss/nss_compat/nisdomain.c: New file.
27090 * nss/nss_compat/nisdomain.h: Likewise.
27091
27092 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27093
27094 [BZ #22244]
27095 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27096 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27097
27098 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27099
27100 [BZ #22243]
27101 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27102 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27103
27104 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27107 "movl main@GOTOFF(%ebx), %eax".
27108
27109 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27110
27111 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27112 allow undefined _DYNAMIC in PIE libc.a.
27113 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27114 Likewse.
27115
27116 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27117
27118 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27119 check _DYNAMIC.
27120
27121 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27122
27123 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27124 check _DYNAMIC.
27125
27126 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27127
27128 * math/test-math-iscanonical.cc (error): Replace bool with int.
27129
27130 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27131
27132 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27133 (modf): Define using libm_alias_double, only if [!__modf].
27134 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27135 <libm-alias-double.h>.
27136 (modf): Define using libm_alias_double, only if [!__modf].
27137 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27138 compat symbol here.
27139 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27140 (weak_alias): Do not undefine and redefine.
27141 (strong_alias): Likewise.
27142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27143 (weak_alias): Likewise.
27144 (strong_alias): Likewise.
27145
27146 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27147 (logb): Define using libm_alias_double, only if [!__logb].
27148 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27149 <libm-alias-double.h>.
27150 (logb): Define using libm_alias_double, only if [!__logb].
27151 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27152 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27153 (weak_alias): Do not undefine and redefine.
27154 (strong_alias): Likewise.
27155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27156 (weak_alias): Likewise.
27157 (strong_alias): Likewise.
27158
27159 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27160
27161 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27162 Check SHARED instead PIC.
27163
27164 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27165
27166 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27167 [!__fmaf] (fmaf): Define using libm_alias_float.
27168
27169 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27170 (frexp): Define using libm_alias_double.
27171 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27172 <libm-alias-double.h>.
27173 (frexp): Define using libm_alias_double.
27174 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27175 compat symbol here.
27176
27177 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27178
27179 [BZ #22235]
27180 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27181 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27182 (CFLAGS-test-math-iscanonical.cc): New variable.
27183 * math/test-math-iscanonical.cc: New file.
27184 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27185 Provide a C++ implementation based on function overloading,
27186 rather than using __MATH_TG, which uses C-only builtins.
27187 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27188 Likewise.
27189 * sysdeps/powerpc/powerpc64le/Makefile
27190 (CFLAGS-test-math-iscanonical.cc): New variable.
27191
27192 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27193
27194 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27195 (ceil): Define using libm_alias_double.
27196 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27197 (floor): Define using libm_alias_double.
27198 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27199 <libm-alias-double.h>.
27200 (llround): Define using libm_alias_double.
27201 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27202 <libm-alias-double.h>.
27203 (lround): Define using libm_alias_double.
27204 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27205 <libm-alias-double.h>.
27206 (nearbyint): Define using libm_alias_double.
27207 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27208 <libm-alias-double.h>.
27209 (remquo): Define using libm_alias_double.
27210 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27211 (rint): Define using libm_alias_double.
27212 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27213 (round): Define using libm_alias_double.
27214 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27215 (trunc): Define using libm_alias_double.
27216 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27217 <libm-alias-double.h>.
27218 (ceil): Define using libm_alias_double.
27219 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27220 <libm-alias-double.h>.
27221 (floor): Define using libm_alias_double.
27222 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27223 <libm-alias-double.h>.
27224 (llround): Define using libm_alias_double.
27225 [_LP64] (lround): Likewise.
27226 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27227 <libm-alias-double.h>.
27228 [!_LP64] (lround): Define using libm_alias_double.
27229 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27230 <libm-alias-double.h>.
27231 (nearbyint): Define using libm_alias_double.
27232 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27233 <libm-alias-double.h>.
27234 (remquo): Define using libm_alias_double.
27235 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27236 <libm-alias-double.h>.
27237 (rint): Define using libm_alias_double.
27238 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27239 <libm-alias-double.h>.
27240 (round): Define using libm_alias_double.
27241 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27242 <libm-alias-double.h>.
27243 (trunc): Define using libm_alias_double.
27244 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27245 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27246 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27247 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27248 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27249 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27250 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27251 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27252 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27253
27254 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27255
27256 * math/w_remainder.c: New file.
27257 * math/w_remainderf.c: New file.
27258 * math/w_remainderl.c: New file.
27259
27260 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27261
27262 * elf/rtld.c (BOOTSTRAP_MAP): New.
27263 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27264 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27265 Likewise.
27266 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27267 Likewise.
27268 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27269 Likewise.
27270
27271 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27272
27273 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27274 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27275 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27276 rtld_hidden_data_ver): Define to empty.
27277 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27278 __assert_perror_fail): Likewise.
27279 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27280 (__rewinddir): Likewise.
27281 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27282 (__profile_frequency): Likewise.
27283 * include/setjmp.h (__sigsetjmp): Likewise.
27284 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27285 __libc_sigaction): Likewise.
27286 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27287 not set hidden attribute.
27288 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27289 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27290 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27291 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27292 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27293 __fxstatat64): Likewise.
27294 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27295 (__uname): Likewise.
27296 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27297 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27298 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27299 (NO_RTLD_HIDDEN): Set.
27300 * sysdeps/mach/hurd/configure: Refresh.
27301 * config.h.in: Refresh.
27302
27303 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27304
27305 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27306 (atan): Define using libm_alias_double.
27307 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27308 (tan): Define using libm_alias_double.
27309 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27310 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27311
27312 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27313 define as weak alias of __atan. Do not define any aliases if
27314 [__atan].
27315 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27316 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27317 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27318 as weak alias of __tan. Do not define any aliases if [__tan].
27319 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27320 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27321 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27322 __atan.
27323 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27324 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27325 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27326 and define as weak alias of __atan.
27327 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27328 __atan.
27329 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27330 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27331 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27332 define as weak alias of __tan.
27333
27334 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27335
27336 * math/w_lgamma.c: New file.
27337 * math/w_lgammaf.c: New file.
27338 * math/w_lgammal.c: New file.
27339
27340 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27341
27342 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27343 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27344 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27345 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27346 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27347 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27348 * sysdeps/i386/fpu/w_log2f.c: New file.
27349 * sysdeps/i386/fpu/w_logf.c: New file.
27350 * sysdeps/i386/fpu/w_powf.c: New file.
27351 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27352 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27353 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27354
27355 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27356 H.J. Lu <hongjiu.lu@intel.com>
27357
27358 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27359 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27360 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27361 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27362 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27363 the new expf code.
27364 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27365 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27366 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27367 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27368 * sysdeps/i386/fpu/w_exp2f.c: New file.
27369 * sysdeps/i386/fpu/w_expf.c: New file.
27370 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27371 * sysdeps/x86_64/fpu/w_expf.c: New file.
27372
27373 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27374
27375 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27376 (log2f): Likewise.
27377 (powf): Likewise.
27378 * math/w_log2f.c: New file.
27379 * math/w_logf.c: New file.
27380 * math/w_powf.c: New file.
27381 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27382 * math/w_logf_compat.c (__logf_compat): Likewise.
27383 * math/w_powf_compat.c (__powf_compat): Likewise.
27384 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27385 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27386 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27387 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27388 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27389 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27390 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27391 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27392 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27393 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27394 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27395 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27396 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27397 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27398 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27400 Likewise.
27401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27402 Likewise.
27403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27404 Likewise.
27405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27406 Likewise.
27407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27408 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27409 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27410 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27411 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27412 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27413 Likewise.
27414 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27415 Likewise.
27416 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27417 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27418 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27419
27420 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27421
27422 * sysdeps/powerpc/powerpc64/multiarch/Makefile
27423 (sysdep_routines): Add memrchr_power8.
27424 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27425 (memrchr): Add __memrchr_power8 to list of memrchr functions.
27426 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
27427 New file.
27428 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27429 (memrchr): Add __memrchr_power8 to ifunc list.
27430 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
27431
27432 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27433
27434 [BZ #18822]
27435 * sysdeps/unix/sysv/linux/posix_fadvise64.c
27436 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
27437 libc_hidden_def.
27438 * sysdeps/unix/sysv/linux/posix_fallocate64.c
27439 (__posix_fallocate64_l64): Likewise.
27440
27441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 [BZ #18822]
27444 * sysdeps/unix/sysv/linux/sched_setaffinity.c
27445 (__sched_setaffinity_new): Add libc_hidden_proto and
27446 libc_hidden_def.
27447
27448 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27449
27450 [BZ #18822]
27451 * include/glob.h (__glob64): Add libc_hidden_proto.
27452 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
27453 libc_hidden_def.
27454
27455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27456
27457 [BZ #18822]
27458 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
27459 attribute_hidden.
27460
27461 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27462
27463 [BZ #18822]
27464 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
27465
27466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27467
27468 [BZ #18822]
27469 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
27470 libc_hidden_def.
27471
27472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27473
27474 [BZ #18822]
27475 * csu/version.c (__libc_print_version): Add attribute_hidden.
27476
27477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27478
27479 [BZ #18822]
27480 * include/libc-internal.h (__init_misc): Add attribute_hidden.
27481
27482 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27483
27484 [BZ #18822]
27485 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
27486
27487 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27488
27489 [BZ #18822]
27490 * nscd/nscd_helper.c (__nis_hash): New prototype.
27491
27492 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27493
27494 [BZ #18822]
27495 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
27496 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
27497 libc_hidden_def.
27498 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
27499 * termios/tcgetattr.c (__tcgetattr): Likewise.
27500
27501 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27502
27503 [BZ #18822]
27504 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
27505 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
27506 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
27507 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
27508 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
27509
27510 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27511
27512 [BZ #18822]
27513 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
27514
27515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27516
27517 [BZ #18822]
27518 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
27519 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
27520
27521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27522
27523 [BZ #18822]
27524 * intl/hash-string.h (__hash_string): Add attribute_hidden.
27525
27526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27527
27528 [BZ #18822]
27529 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
27530 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
27531
27532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27533
27534 [BZ #18822]
27535 * include/ifreq.h: New file.
27536 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
27537 (__ifreq): Likewise.
27538 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
27539 (__ifreq): Likewise.
27540
27541 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27542
27543 [BZ #18822]
27544 * include/idna.h: New file.
27545 * inet/getnameinfo.c: Include <idna.h> instead of
27546 <libidn/idna.h>.
27547 (__idna_to_unicode_lzlz): Removed.
27548 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
27549 <libidn/idna.h>.
27550 (__idna_to_ascii_lz): Removed.
27551 (__idna_to_unicode_lzlz): Likewise.
27552
27553 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27554
27555 [BZ #18822]
27556 * include/plural-exp.h: New file.
27557 * intl/plural-exp.c: Include <plural-exp.h> instead of
27558 "plural-exp.h".
27559
27560 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27561
27562 [BZ #18822]
27563 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
27564 "getsourcefilter.h".
27565 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
27566 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
27567 "getsourcefilter.h".
27568 (__get_sol): Removed.
27569
27570 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27571
27572 [BZ #18822]
27573 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
27574 to ...
27575 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
27576
27577 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27578
27579 [BZ #18822]
27580 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
27581 attribute_hidden.
27582
27583 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27584
27585 [BZ #18822]
27586 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
27587
27588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27589
27590 [BZ #18822]
27591 * include/search.h (__tdestroy): Add libc_hidden_proto.
27592 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
27593
27594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27595
27596 [BZ #18822]
27597 * include/assert.h (__assert_fail_base): Add attribute_hidden.
27598
27599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27600
27601 [BZ #18822]
27602 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
27603 attribute_hidden.
27604
27605 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27606
27607 [BZ #18822]
27608 * include/signal.h (__kill): Add libc_hidden_proto.
27609 (__sigblock): Likewise.
27610 (__sigprocmask): Likewise.
27611 (__sigaltstack): Likewise.
27612 * signal/kill.c (__kill): Add libc_hidden_def.
27613 * signal/sigblock.c (__sigblock): Likewise.
27614 * signal/sigprocmask.c (__sigprocmask): Likewise.
27615 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
27616 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
27617 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
27618 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
27619 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
27620 Likewise.
27621 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
27622 Likewise.
27623 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
27624 (__sigprocmask): Likewise.
27625 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
27626 Likewise.
27627 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
27628 (__sigprocmask): Likewise.
27629 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
27630 Likewise.
27631
27632 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27633
27634 [BZ #18822]
27635 * include/string.h (__strsep): Add libc_hidden_proto.
27636 * string/strsep.c (__strsep): Add libc_hidden_def.
27637
27638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27639
27640 [BZ #18822]
27641 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
27642 attribute_hidden.
27643 (__spawni): Likewise.
27644
27645 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27646
27647 [BZ #18822]
27648 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
27649 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
27650 libc_hidden_def.
27651
27652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27653
27654 [BZ #18822]
27655 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
27656
27657 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27658
27659 [BZ #18822]
27660 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
27661 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
27662 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
27663 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
27664 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
27665 Likewise.
27666 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
27667 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
27668
27669 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27670
27671 [BZ #18822]
27672 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
27673 (__dcigettext): Likewise.
27674
27675 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27676
27677 [BZ #18822]
27678 * include/sys/sysinfo.h (__get_nprocs_conf): Add
27679 libc_hidden_proto.
27680 (__get_nprocs): Likewise.
27681 (__get_phys_pages): Likewise.
27682 (__get_avphys_pages): Likewise.
27683 (__get_child_max): Add attribute_hidden.
27684 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
27685 (__get_nprocs): Likewise.
27686 (__get_phys_pages): Likewise.
27687 (__get_avphys_pages): Likewise.
27688 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
27689 libc_hidden_def.
27690 (__get_nprocs): Likewise.
27691 (__get_phys_pages): Likewise.
27692 (__get_avphys_pages): Likewise.
27693 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
27694 libc_hidden_def.
27695 (__get_nprocs_conf): Likewise.
27696 (__get_phys_pages): Likewise.
27697 (__get_avphys_pages): Likewise.
27698
27699 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27700
27701 [BZ #18822]
27702 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
27703 attribute_hidden.
27704 (__netlink_close): Likewise.
27705 (__netlink_free_handle): Likewise.
27706 (__netlink_request): Likewise.
27707
27708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27709
27710 [BZ #18822]
27711 * include/rpc/rpc.h (__rpc_thread_variables): Add
27712 attribute_hidden.
27713 (__rpc_thread_svc_cleanup): Likewise.
27714 (__rpc_thread_clnt_cleanup): Likewise.
27715 (__rpc_thread_key_cleanup): Likewise.
27716
27717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27718
27719 [BZ #18822]
27720 * include/sys/uio.h (__readv): Add libc_hidden_proto.
27721 (__writev): Likewise.
27722 * misc/readv.c (__readv): Add libc_hidden_def.
27723 * misc/writev.c (__writev): Likewise.
27724 * sysdeps/posix/readv.c (__readv): Likewise.
27725 * sysdeps/posix/writev.c (__writev): Likewise.
27726 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
27727 (__readv): Likewise.
27728 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
27729 (__writev): Likewise.
27730
27731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27732
27733 [BZ #18822]
27734 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
27735 (__regcomp): Add libc_hidden_proto.
27736 (__regexec): Likewise.
27737 (__regfree): Likewise.
27738 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
27739 (__regfree): Likewise.
27740 * posix/regexec.c (__regexec): Likewise.
27741
27742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27743
27744 [BZ #18822]
27745 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27746 (__getutent): Likewise.
27747 (__getutid): Likewise.
27748 (__getutline): Likewise.
27749 (__pututline): Likewise.
27750 (__getutent_r): Likewise.
27751 (__getutid_r): Likewise.
27752 (__getutline_r): Likewise.
27753 (__utmpname): Add attribute_hidden.
27754 (__setutent): Likewise.
27755 (__endutent): Likewise.
27756 * login/getutent.c (__getutent): Add libc_hidden_def.
27757 * login/getutent_r.c (__getutent_r): Likewise.
27758 (__pututline): Likewise.
27759 * login/getutid.c (__getutid): Likewise.
27760 * login/getutid_r.c (__getutid_r): Likewise.
27761 * login/getutline.c (__getutline): Likewise.
27762 * login/getutline_r.c (__getutline_r): Likewise.
27763 * login/updwtmp.c (__updwtmp): Likewise.
27764
27765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27766
27767 [BZ #18822]
27768 * include/dirent.h (__opendir): Always add attribute_hidden.
27769 (__fdopendir): Likewise.
27770 (__closedir): Likewise.
27771 (__readdir): Likewise.
27772 (__readdir64): Add libc_hidden_proto.
27773 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27774 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27775 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27776 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27777 New alias.
27778
27779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27780
27781 [BZ #18822]
27782 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27783 * include/netdb.h (__gethostbyaddr_r): Likewise.
27784 (__gethostbyname_r): Likewise.
27785 (__gethostbyname2_r): Likewise.
27786 (__getnetbyaddr_r): Likewise.
27787 (__getnetbyname_r): Likewise.
27788 (__getservbyname_r): Likewise.
27789 (__getservbyport_r): Likewise.
27790 (__getprotobyname_r): Likewise.
27791 (__getprotobynumber_r): Likewise.
27792 (__getnetgrent_r): Likewise.
27793 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27794 (__getrpcbynumber_r): Likewise.
27795 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27796
27797 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27798
27799 [BZ #18822]
27800 * include/stdio.h (__fcloseall): Add attribute_hidden.
27801 (__getline): Likewise.
27802 (__path_search): Likewise.
27803 (__gen_tempname): Likewise.
27804 (__libc_message): Likewise.
27805 (__flockfile): Likewise.
27806 (__funlockfile): Likewise.
27807 (__fxprintf): Likewise.
27808 (__fxprintf_nocancel): Likewise.
27809
27810 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27811
27812 [BZ #18822]
27813 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27814 (__sgetsgent_r): Likewise.
27815
27816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27817
27818 [BZ #18822]
27819 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27820 (__statfs64): Likewise.
27821 (__fstatfs64): Likewise.
27822 * include/sys/statvfs.h (__statvfs64): Likewise.
27823 (__fstatvfs64): Likewise.
27824 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27825 (__statfs_filesize_max): Likewise.
27826 (__statfs_symlinks): Likewise.
27827 (__statfs_chown_restricted): Likewise.
27828
27829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27830
27831 [BZ #18822]
27832 * include/time.h (__tzstring): Add attribute_hidden.
27833 (__tzfile_read): Likewise.
27834 (__tzfile_compute): Likewise.
27835 (__tzfile_default): Likewise.
27836 (__tzset_parse_tz): Likewise.
27837 (__offtime): Likewise.
27838 (__asctime_r): Likewise.
27839 (__tzset): Likewise.
27840 (__tz_convert): Likewise.
27841 (__getdate_r): Likewise.
27842 (__getclktck): Likewise.
27843
27844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27845
27846 [BZ #18822]
27847 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27848 (__nscd_unmap): Likewise.
27849 (__nscd_cache_search): Likewise.
27850 (__nscd_get_nl_timestamp): Likewise.
27851 (__nscd_getpwnam_r): Likewise.
27852 (__nscd_getpwuid_r): Likewise.
27853 (__nscd_getgrnam_r): Likewise.
27854 (__nscd_getgrgid_r): Likewise.
27855 (__nscd_gethostbyname_r): Likewise.
27856 (__nscd_gethostbyname2_r): Likewise.
27857 (__nscd_gethostbyaddr_r): Likewise.
27858 (__nscd_getai): Likewise.
27859 (__nscd_getgrouplist): Likewise.
27860 (__nscd_getservbyname_r): Likewise.
27861 (__nscd_getservbyport_r): Likewise.
27862 (__nscd_innetgr): Likewise.
27863 (__nscd_setnetgrent): Likewise.
27864
27865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27866
27867 [BZ #18822]
27868 * include/gmp.h: Declare internal functions only if _ISOMAC is
27869 undefined.
27870 (__mpn_extract_double): Add attribute_hidden.
27871 (__mpn_extract_long_double): Likewise.
27872 (__mpn_extract_float128): Likewise.
27873 (__mpn_construct_float): Likewise.
27874 (__mpn_construct_double): Likewise.
27875 (__mpn_construct_long_double): Likewise.
27876 (__mpn_construct_float128): Likewise.
27877 (mpn_add_1): Likewise.
27878 (mpn_addmul_1): Likewise.
27879 (mpn_add_n): Likewise.
27880 (mpn_cmp): Likewise.
27881 (mpn_divrem): Likewise.
27882 (mpn_lshift): Likewise.
27883 (mpn_mul): Likewise.
27884 (mpn_mul_1): Likewise.
27885 (mpn_rshift): Likewise.
27886 (mpn_sub_1): Likewise.
27887 (mpn_submul_1): Likewise.
27888 (mpn_sub_n): Likewise.
27889
27890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27891
27892 [BZ #18822]
27893 * include/wchar.h (__wcsnlen): Add attribute_hidden.
27894 (__wcscat): Likewise.
27895 (__btowc): Likewise.
27896 (__wcrtomb): Likewise.
27897 (__mbsrtowcs): Likewise.
27898 (__wcsrtombs): Likewise.
27899 (__mbsnrtowcs): Likewise.
27900 (__wcsnrtombs): Likewise.
27901 (__wcsncpy): Likewise.
27902 (__wcpncpy): Likewise.
27903 (__wmemcpy): Likewise.
27904 (__wmempcpy): Likewise.
27905 (__wmemmove): Likewise.
27906 (__wcschrnul): Likewise.
27907 (__vfwscanf): Likewise.
27908 (__vswprintf): Likewise.
27909 (__fwprintf): Likewise.
27910 (__vfwprintf): Likewise.
27911
27912 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27913
27914 [BZ #18822]
27915 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27916 (__getgrgid_r): Likewise.
27917 (__getgrnam_r): Likewise.
27918 * include/pwd.h (__getpwuid_r): Likewise.
27919 (__getpwnam_r): Likewise.
27920 (__fgetpwent_r): Likewise.
27921 * include/shadow.h (__getspnam_r): Likewise.
27922 (__sgetspent_r): Likewise.
27923 (__fgetspent_r): Likewise.
27924
27925 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27926
27927 [BZ #18822]
27928 * include/unistd.h (__access): Add attribute_hidden.
27929 (__lseek64): Likewise.
27930 (__libc_pread64): Likewise.
27931 (__pipe2): Likewise.
27932 (__sleep): Likewise.
27933 (__chdir): Likewise.
27934 (__fchdir): Likewise.
27935 (__getcwd): Likewise.
27936 (__rmdir): Likewise.
27937 (__execvpe): Likewise.
27938 (__execve): Likewise.
27939 (__setsid): Likewise.
27940 (__getuid): Likewise.
27941 (__geteuid): Likewise.
27942 (__getgid): Likewise.
27943 (__getegid): Likewise.
27944 (__getgroups): Likewise.
27945 (__group_member): Likewise.
27946 (__ttyname_r): Likewise.
27947 (__isatty): Likewise.
27948 (__readlink): Likewise.
27949 (__unlink): Likewise.
27950 (__gethostname): Likewise.
27951 (__profil): Likewise.
27952 (__getdtablesize): Likewise.
27953 (__brk): Likewise.
27954 (__ftruncate): Likewise.
27955 (__ftruncate64): Likewise.
27956
27957 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27958
27959 [BZ #18822]
27960 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27961 * argp/argp-fs-xinl.c: Likewise.
27962 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27963 * argp/argp-parse.c: Include <argp.h>.
27964 * argp/argp-xinl.c: Likewise.
27965 * include/argp-fmtstream.h: New file.
27966 * include/argp.h (__argp_error): Add attribute_hidden.
27967 (__argp_failure): Likewise.
27968 (__argp_input): Likewise.
27969 (__argp_state_help): Likewise.
27970
27971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27972
27973 [BZ #18822]
27974 * include/wchar.h (____wcstof_l_internal): New prototype.
27975 (____wcstod_l_internal): Likewise.
27976 (____wcstold_l_internal): Likewise.
27977 (____wcstol_l_internal): Likewise.
27978 (____wcstoul_l_internal): Likewise.
27979 (____wcstoll_l_internal): Likewise.
27980 (____wcstoull_l_internal): Likewise.
27981 (____wcstof128_l_internal): Likewise.
27982 * sysdeps/ieee754/float128/wcstof128.c
27983 (____wcstof128_l_internal): Removed.
27984 * sysdeps/ieee754/float128/wcstof128_l.c
27985 (____wcstof128_l_internal): Likewise.
27986 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27987 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27988 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27989 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27990 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27991 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27992 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27993 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27994 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27995 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27996
27997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27998
27999 [BZ #18822]
28000 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28001 instead of <sys/statvfs.h>.
28002 (__internal_statvfs): Removed.
28003 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28004 instead of <sys/statvfs.h>.
28005 (__internal_statvfs64): Removed.
28006 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28007 "internal_statvfs.h" instead of <sys/statvfs.h>.
28008 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28009 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28010 instead of <sys/statvfs.h>.
28011 (__internal_statvfs): Removed.
28012 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28013 instead of <sys/statvfs.h>.
28014 (__internal_statvfs64): Removed.
28015
28016 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28017
28018 [BZ #18822]
28019 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28020 (__gconv_close): Likewise.
28021 (__gconv): Likewise.
28022 (__gconv_find_transform): Likewise.
28023 (__gconv_lookup_cache): Likewise.
28024 (__gconv_compare_alias_cache): Likewise.
28025 (__gconv_load_cache): Likewise.
28026 (__gconv_get_path): Likewise.
28027 (__gconv_close_transform): Likewise.
28028 (__gconv_release_cache): Likewise.
28029 (__gconv_find_shlib): Likewise.
28030 (__gconv_release_shlib): Likewise.
28031 (__gconv_get_builtin_trans): Likewise.
28032 (__gconv_compare_alias): Likewise.
28033 * include/dlfcn.h (_dlerror_run): Likewise.
28034 * include/stdio.h (__fortify_fail_abort): Likewise.
28035 * include/time.h (__tz_compute): Likewise.
28036 (__strptime_internal): Likewise.
28037 * intl/gettextP.h (_nl_find_domain): Likewise.
28038 (_nl_load_domain): Likewise.
28039 (_nl_find_msg): Likewise.
28040 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28041 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28042 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28043 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28044 (__gai_find_request): Likewise.
28045 (__gai_remove_request): Likewise.
28046 (__gai_notify): Likewise.
28047 (__gai_notify_only): Likewise.
28048 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28049 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28050 (_dl_non_dynamic_init): Likewise.
28051 (_dl_aux_init): Likewise.
28052 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28053 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28054 Likewise.
28055 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28056 (__wcsmbs_clone_conv): Likewise.
28057 (__wcsmbs_named_conv): Likewise.
28058
28059 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28060
28061 [BZ #18822]
28062 * include/stdlib.h (__random): Add attribute_hidden.
28063 (__random_r): Likewise.
28064 (__srandom_r): Likewise.
28065 (__initstate_r): Likewise.
28066 (__setstate_r): Likewise.
28067 (__erand48_r): Likewise.
28068 (__nrand48_r): Likewise.
28069 (__jrand48_r): Likewise.
28070 (__srand48_r): Likewise.
28071 (__seed48_r): Likewise.
28072 (__lcong48_r): Likewise.
28073 (__drand48_iterate): Likewise.
28074 (__setenv): Likewise.
28075 (__unsetenv): Likewise.
28076 (__clearenv): Likewise.
28077 (__ptsname_r): Likewise.
28078 (__posix_openpt): Likewise.
28079 (__add_to_environ): Likewise.
28080 (__realpath): Add libc_hidden_proto.
28081 (__ecvt_r): Likewise.
28082 (__fcvt_r): Likewise.
28083 (__qecvt_r): Likewise.
28084 (__qfcvt_r): Likewise.
28085 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28086 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28087
28088 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28089
28090 [BZ #18822]
28091 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28092 * include/time.h (__mktime_internal): Likewise.
28093 * libio/iolibio.h (__fopen_internal): Likewise.
28094
28095 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28096
28097 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28098 pointer in frame.
28099 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28100 Correct offset used to restore PIC register.
28101
28102 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28103
28104 [BZ libc/22165]
28105 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28106 code to load address of __getcontext_ret when generating PIC code.
28107
28108 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28109
28110 * elf/Makefile (tests-static-internal): Add
28111 tst-tls1-static-non-pie.
28112 (LDFLAGS-tst-tls1-static-non-pie): New.
28113 * elf/tst-tls1-static-non-pie.c: New file.
28114
28115 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28116
28117 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28118 (asinh): Define using libm_alias_double.
28119 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28120 (cbrt): Define using libm_alias_double.
28121 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28122 <libm-alias-double.h>.
28123 (copysign): Define using libm_alias_double.
28124 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28125 (erf): Define using libm_alias_double.
28126 (erfc): Likewise.
28127 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28128 (expm1): Define using libm_alias_double.
28129 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28130 (fabs): Define using libm_alias_double.
28131 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28132 libm_alias_double.
28133 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28134 <libm-alias-double.h>.
28135 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28136 libm_alias_double.
28137 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28138 <libm-alias-double.h>.
28139 (getpayload): Define using libm_alias_double.
28140 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28141 <libm-alias-double.h>.
28142 (llrint): Define using libm_alias_double.
28143 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28144 (lrint): Define using libm_alias_double.
28145 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28146 <libm-alias-double.h>.
28147 (nextup): Define using libm_alias_double.
28148 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28149 <libm-alias-double.h>.
28150 (roundeven): Define using libm_alias_double.
28151 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28152 libm_alias_double.
28153 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28154 <libm-alias-double.h>.
28155 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28156 using libm_alias_double.
28157 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28158 (cos): Define using libm_alias_double.
28159 (sin): Likewise.
28160 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28161 <libm-alias-double.h>.
28162 (sincos): Define using libm_alias_double.
28163 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28164 (tanh): Define using libm_alias_double.
28165 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28166 <libm-alias-double.h>.
28167 (totalorder): Define using libm_alias_double.
28168 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28169 <libm-alias-double.h>.
28170 (totalordermag): Define using libm_alias_double.
28171 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28172 libm_alias_double.
28173 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28174 libm_alias_double.
28175 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28176 <libm-alias-double.h>.
28177 (getpayload): Define using libm_alias_double.
28178 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28179 <libm-alias-double.h>.
28180 (roundeven): Define using libm_alias_double.
28181 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28182 <libm-alias-double.h>.
28183 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28184 <libm-alias-double.h>.
28185 (totalorder): Define using libm_alias_double.
28186 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28187 <libm-alias-double.h>.
28188 (totalordermag): Define using libm_alias_double.
28189 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28190 libc compat symbol here.
28191 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28192 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28193 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28194 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28195 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28196 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28197 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28198 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28199 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28200 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28201
28202 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28203
28204 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28205 _dl_relocate_static_pie instead of _dl_start to compute load
28206 address in static PIE. Return 0 if _DYNAMIC is undefined for
28207 static executable.
28208
28209 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28210
28211 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28212 _DYNAMIC is undefined for static executable.
28213
28214 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28215
28216 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28217
28218 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28219
28220 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28221
28222 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28223
28224 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28225 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28226 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28227 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28228 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28229 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28230 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28231 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28232 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28233 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28234 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28235 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28236 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28237 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28238 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28239 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28240 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28241
28242 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28243
28244 * math/bits/cmathcalls.h (cimag): Remove inline.
28245 (creal): Remove inline.
28246 (conj): Remove inline.
28247
28248 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28249
28250 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28251 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28252 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28253 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28254 (issignalingf_inline): Likewise.
28255 (POWF_LOG2_TABLE_BITS): Likewise.
28256 (POWF_LOG2_POLY_ORDER): Likewise.
28257 (POWF_SCALE_BITS): Likewise.
28258 (POWF_SCALE): Likewise.
28259 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28260 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28261 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28262
28263 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28264
28265 * math/Makefile (type-float-routines): Add e_log2f_data.
28266 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28267 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28268 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28269 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28270 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28271 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28272 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28273
28274 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28275
28276 * math/Makefile (type-float-routines): Add e_logf_data.
28277 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28278 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28279 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28280 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28281 * sysdeps/i386/fpu/e_logf_data.c: New file.
28282 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28283 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28284
28285 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28286
28287 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28288 undefined _DYNAMIC in PIE libc.a.
28289 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28290 Likewse.
28291
28292 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28293
28294 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28295 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28296 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28297 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28298 (__signbit): Remove.
28299 (__signbitl): Remove.
28300 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28301 (__signbit): Remove.
28302 (__signbitl): Remove.
28303 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28304 (__signbit): Remove.
28305 (__signbitl): Remove.
28306 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28307 (__signbit): Remove.
28308 (__signbitl): Remove.
28309 * sysdeps/tile/bits/mathinline.h: Delete file.
28310 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28311 (__signbit): Remove.
28312 (__signbitl): Remove.
28313
28314 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28315
28316 * math/math.h: Improve handling of C99 isgreater macros.
28317 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28318 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28319 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28320 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28321 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28322
28323 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28324
28325 * sysdeps/aarch64/libm-test-ulps: Update.
28326
28327 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28328
28329 [BZ #22225]
28330 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28331 math_opt_barrier on argument when doing arithmetic on it.
28332 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28333 Likewise. Use math_force_eval not math_opt_barrier after
28334 arithmetic.
28335 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28336 math_opt_barrier on argument when doing arithmetic on it.
28337 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28338 Likewise.
28339
28340 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28341
28342 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28343 libc_hidden_def.
28344 (__freeifaddrs): Likewise.
28345
28346 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28347
28348 * include/dirent.h (__dirfd): New declaration.
28349 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28350 alias.
28351 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28352 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28353 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28354 * include/unistd.h (__revoke): New declaration.
28355 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28356 alias.
28357 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28358 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28359 revoke.
28360 * include/dirent.h (__seekdir): New declaration.
28361 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28362 redefine as weak alias.
28363 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28364 of seekdir.
28365 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28366 and use libc_hidden_def on them.
28367 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28368 them.
28369 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28370 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28371 instead of getifaddrs and freeifaddrs.
28372
28373 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28374
28375 [BZ #18822]
28376 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28377 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28378 (__dso_handle): Remove declaration.
28379 * dlfcn/tstatexit.c (__dso_handle): Removed.
28380 (main): Don't check __dso_handle.
28381 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28382 (main): Don't check __dso_handle.
28383 * include/dso_handle.h: New file.
28384 * malloc/mtrace.c: Include <dso_handle.h>.
28385 (mtrace): Pass __dso_handle directly.
28386 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28387 (__dso_handle): Remove declaration.
28388 (__pthread_atfork): Pass __dso_handle directly.
28389 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28390 (__dso_handle): Removed.
28391 * posix/wordexp-test.c: Include <dso_handle.h>.
28392 (__dso_handle): Remove declaration.
28393 (__app_register_atfork): Pass __dso_handle directly.
28394 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28395 (__dso_handle): Remove declaration.
28396 (at_quick_exit): Pass __dso_handle directly.
28397 * stdlib/atexit.c: Include <dso_handle.h>.
28398 (__dso_handle): Remove declaration.
28399 (atexit): Pass __dso_handle directly.
28400 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
28401 (__dso_handle): Removed.
28402
28403 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28404
28405 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
28406 using VDSO.
28407
28408 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
28409
28410 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
28411 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
28412 values to correct default value for given type.
28413
28414 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28415
28416 [BZ #22101]
28417 * elf/Makefile (tests): Add tst-debug1.
28418 ($(objpfx)tst-debug1): New.
28419 ($(objpfx)tst-debug1.out): Likewise.
28420 ($(objpfx)tst-debug1mod1.so): Likewise.
28421 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
28422 with p_filesz == 0.
28423 * elf/tst-debug1.c: New file.
28424
28425 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28426
28427 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
28428 Define using __ifunc.
28429
28430 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28431
28432 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
28433 exp2f() values.
28434
28435 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28436
28437 [BZ #22156]
28438 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
28439
28440 2017-09-26 Florian Weimer <fweimer@redhat.com>
28441
28442 * resolv/Makefile (tests-internal): Fix typo in comment.
28443
28444 2017-09-26 Florian Weimer <fweimer@redhat.com>
28445
28446 * resolv/nss_dns/dns-host.c: Fix typo in comment.
28447
28448 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28449
28450 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
28451 Use an union instead of a max_align_t array for __space,
28452 so that __space is the same size on all platforms.
28453 * malloc/scratch_buffer_grow_preserve.c
28454 (__libc_scratch_buffer_grow_preserve): Likewise.
28455
28456 [BZ #22183]
28457 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
28458 version to 2.
28459 * posix/Makefile (routines): Add glob-lstat-compat and
28460 glob64-lstat-compat.
28461 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
28462 * posix/glob-lstat-compat.c: New file.
28463 * posix/glob64-lstat-compat.c: Likewise.
28464 * posix/tst-glob_lstat_compat.c: Likewise.
28465 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
28466 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
28467 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
28468 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
28469 Likewise.
28470 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
28471 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28472 * posix/glob.c (glob_lstat): New function.
28473 (glob): Rename to __glob and add versioned symbol to 2.27.
28474 (glob_in_dir): Use glob_lstat.
28475 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
28476 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
28477 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
28478 2.27.
28479 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
28480 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
28481 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
28482 gl_lstat on glob call.
28483 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
28484 and glob64 symbols.
28485 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28486 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
28487 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
28488 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
28489 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
28490 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
28491 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
28492 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
28493 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
28494 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
28495 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
28496 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
28497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
28498 Likewise.
28499 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
28500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
28501 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
28502 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
28503 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
28504 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28505 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
28506 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
28507 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
28508 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
28509 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
28510 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
28511
28512 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
28513
28514 * configure.ac (AS): Require binutils 2.25 or later.
28515 * configure: Regenerated.
28516
28517 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
28518
28519 [BZ #22207]
28520 * stdlib/test-atexit-race-common.c (do_test): Minimize required
28521 VM size.
28522
28523 2017-09-25 DJ Delorie <dj@redhat.com>
28524
28525 [BZ #22161]
28526 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
28527 resetting timeout.
28528
28529 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
28530
28531 * sysdeps/ieee754/dbl-64/sincos32.h
28532 [SINCCOS32_H]: Remove define.
28533 [SINCOS32_H]: Define.
28534
28535 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28536
28537 * math/Versions (expf): New libm symbol at GLIBC_2.27.
28538 (exp2f): Likewise.
28539 * math/w_exp2f.c: New file.
28540 * math/w_expf.c: New file.
28541 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
28542 * math/w_expf_compat.c (__expf_compat): Likewise.
28543 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
28544 * sysdeps/ia64/fpu/e_expf.S: Likewise.
28545 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28546 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28547 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28548 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28549 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28550 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28551 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28552 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28553 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28554 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28555 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28556 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28558 Likewise.
28559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28560 Likewise.
28561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28562 Likewise.
28563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28564 Likewise.
28565 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28566 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28567 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28568 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28569 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28570 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28571 Likewise.
28572 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28573 Likewise.
28574 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28575 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28576 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28577
28578 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28579
28580 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
28581 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
28582 (roundtoint, converttoint): Likewise.
28583 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
28584 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
28585 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
28586 * sysdeps/ieee754/flt-32/math_config.h: New file.
28587 * sysdeps/ieee754/flt-32/math_errf.c: New file.
28588 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
28589 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
28590 * sysdeps/i386/fpu/math_errf.c: New file.
28591 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
28592 * sysdeps/ia64/fpu/math_errf.c: New file.
28593 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
28594 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
28595
28596 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
28597
28598 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
28599 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
28600 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
28601 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
28602 to make sure that these symbols are defined.
28603 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
28604 of <limits.h>
28605 (__need_NULL): Do not define.
28606 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
28607 alignment.
28608 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
28609 CMGROUP_MAX, cmsgcred): Do not define.
28610 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
28611 NULL.
28612 * bits/socket.h: Likewise.
28613 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
28614 __gettimeofday instead of gettimeofday.
28615 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
28616 instead of settimeofday.
28617
28618 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28619
28620 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
28621 (asinhf): Define using libm_alias_float.
28622 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
28623 (atanf): Define using libm_alias_float.
28624 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
28625 (cbrtf): Define using libm_alias_float.
28626 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
28627 (ceilf): Define using libm_alias_float.
28628 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
28629 <libm-alias-float.h>.
28630 (copysignf): Define using libm_alias_float.
28631 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
28632 (cosf): Define using libm_alias_float.
28633 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
28634 (erff): Define using libm_alias_float.
28635 (erfcf): Likewise.
28636 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
28637 (expm1f): Define using libm_alias_float.
28638 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
28639 (fabsf): Define using libm_alias_float.
28640 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
28641 (floorf): Define using libm_alias_float.
28642 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
28643 (frexpf): Define using libm_alias_float.
28644 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
28645 libm_alias_float.
28646 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
28647 <libm-alias-float.h>.
28648 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
28649 libm_alias_float.
28650 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
28651 <libm-alias-float.h>.
28652 (getpayloadf): Define using libm_alias_float.
28653 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
28654 <libm-alias-float.h>.
28655 (llrintf): Define using libm_alias_float.
28656 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
28657 <libm-alias-float.h>.
28658 (llroundf): Define using libm_alias_float.
28659 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
28660 (logbf): Define using libm_alias_float.
28661 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
28662 (lrintf): Define using libm_alias_float.
28663 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
28664 (lroundf): Define using libm_alias_float.
28665 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
28666 (modff): Define using libm_alias_float.
28667 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
28668 <libm-alias-float.h>.
28669 (nearbyintf): Define using libm_alias_float.
28670 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
28671 <libm-alias-float.h>.
28672 (nextafterf): Define using libm_alias_float.
28673 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
28674 <libm-alias-float.h>.
28675 (nextupf): Define using libm_alias_float.
28676 * sysdeps/ieee754/flt-32/s_remquof.c: Include
28677 <libm-alias-float.h>.
28678 (remquof): Define using libm_alias_float.
28679 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
28680 (rintf): Define using libm_alias_float.
28681 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
28682 <libm-alias-float.h>.
28683 (roundevenf): Define using libm_alias_float.
28684 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
28685 (roundf): Define using libm_alias_float.
28686 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
28687 using libm_alias_float.
28688 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
28689 <libm-alias-float.h>.
28690 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
28691 Define using libm_alias_float.
28692 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
28693 <libm-alias-float.h>.
28694 (sincosf): Define using libm_alias_float.
28695 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
28696 (sinf): Define using libm_alias_float.
28697 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
28698 (tanf): Define using libm_alias_float.
28699 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
28700 (tanhf): Define using libm_alias_float.
28701 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
28702 <libm-alias-float.h>.
28703 (totalorderf): Define using libm_alias_float.
28704 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
28705 <libm-alias-float.h>.
28706 (totalordermagf): Define using libm_alias_float.
28707 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
28708 (truncf): Define using libm_alias_float.
28709 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
28710 libm_alias_float.
28711 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
28712 libm_alias_float.
28713
28714 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28715
28716 [BZ #22146]
28717 math/math.h: Let fpclassify use the builtin in C++ mode, even
28718 when optimazing for size.
28719
28720 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28721
28722 * csu/Makefile (generated): Do not add version-info.h.
28723 (before-compile): Likewise.
28724 (all-Banner-files): Remove variable.
28725 ($(objpfx)version-info.h): Remove rule.
28726 * csu/version.c (banner): Do not include "version-info.h".
28727 * libidn/Banner: Remove.
28728 * manual/contrib.texi (Simon Josefsson): New entry.
28729
28730 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28731
28732 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
28733 Remove conditionals on LDBL_MANT_DIG.
28734 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28735 (__ieee754_lgammal_r): Likewise.
28736
28737 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28738
28739 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
28740 _Float128 and L().
28741 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
28742 _Float128 and L(). Replace _Float128 with long double and L(x)
28743 with xL, throughout the file.
28744 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28745 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28746 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28747 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28748
28749 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28750
28751 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28752 sysdeps/ieee754/ldbl-128ibm.
28753 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28754 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28755 of including it. Keep _Float128 and L() intact. These will be
28756 reviewed by a separate patch.
28757 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28758 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28759 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28760 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28761
28762 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28763
28764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28765 (__finitef128): Define to __redirect___finitef128.
28766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28767 (__isinff128): Define to __redirect___isinff128.
28768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28769 (__isnanf128): Define to __redirect___isnanf128.
28770
28771 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28772
28773 * sysdeps/powerpc/powerpc64le/Makefile
28774 (CFLAGS-tst-strtod-nan-locale.c): New variable.
28775 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28776
28777 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
28778 Carlos O'Donell <carlos@redhat.com>
28779
28780 [BZ #22180]
28781 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28782 * stdlib/test-dlclose-exit-race.c: New file.
28783 * stdlib/test-dlclose-exit-race-helper.c: New file.
28784 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28785
28786 2017-09-21 Joseph Myers <joseph@codesourcery.com>
28787
28788 * crypt/Banner: Remove file.
28789 * nptl/Banner: Likewise.
28790 * resolv/Banner: Likewise.
28791 * soft-fp/Banner: Likewise.
28792 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28793 ($(objpfx)version.d): Remove dependency on banner.h.
28794 ($(objpfx)version.os): Likewise.
28795 * nptl/version.c (banner): Do not include banner.h.
28796 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28797 Jelinek and BIND code.
28798
28799 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28800 Carlos O'Donell <carlos@redhat.com>
28801
28802 * support/xdlfcn.h: New file.
28803 * support/xdlfcn.c: New file.
28804 * support/Makefile (libsupport-routines): Add xdlfcn.
28805 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28806
28807 2017-09-20 Joseph Myers <joseph@codesourcery.com>
28808
28809 [BZ #20142]
28810 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28811 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28812 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28813 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28814 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28815 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28816 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28817 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28818
28819 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
28820 Ricky Zhou <rickyz@google.com>
28821 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
28822
28823 [BZ #14333]
28824 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28825 Remove atomics.
28826 (__new_exitfn): Fail registration when we finished at_exit processing.
28827 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28828 * stdlib/on_exit.c (__on_exit): Likewise.
28829 * stdlib/exit.c (__exit_funcs_done): New variable.
28830 (__run_exit_handlers): Use __exit_funcs_lock.
28831 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28832 declarations.
28833 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28834 (test-cxa_atexit-race, test-on_exit-race): New tests.
28835 * stdlib/test-atexit-race-common.c: New file.
28836 * stdlib/test-atexit-race.c: New file.
28837 * stdlib/test-at_quick_exit-race.c: New file.
28838 * stdlib/test-cxa_atexit-race.c: New file.
28839 * stdlib/test-on_exit-race.c: New file.
28840
28841 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
28842
28843 * benchtests/Makefile: Add exp2f and log2f benchmarks.
28844 * benchtests/exp2f-inputs: Copy of expf-inputs.
28845 * benchtests/log2f-inputs: Copy of logf-inputs.
28846
28847 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28848
28849 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28850 Explicitly take address of first element of array arguments in
28851 call to INLINE_SYSCALL.
28852
28853 2017-09-19 Andreas Schwab <schwab@suse.de>
28854
28855 [BZ #22134]
28856 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28857 execveat first.
28858 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28859 unimplemented.
28860 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28861 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28862 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28863 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28864 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28865 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28866 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28867 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28868 * posix/Makefile (tests): Add tst-fexecve.
28869 * posix/tst-fexecve.c: New file.
28870
28871 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28872
28873 * benchtests/Makefile: Add logf benchmark.
28874 * benchtests/logf-inputs: Add reduced trace from wrf_r.
28875
28876 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28877
28878 * benchtests/Makefile: Add expf benchmark.
28879 * benchtests/expf-inputs: Add reduced trace from wrf_r.
28880
28881 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
28882
28883 * csu/Makefile: Add -funwind-tables to libc-start.c.
28884 * debug/Makefile: Add -funwind-tables to backtrace.c.
28885 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28886 * sysdeps/arm/Makefile: Likewise.
28887 * sysdeps/i386/Makefile: Likewise.
28888 * sysdeps/m68k/Makefile: Likewise.
28889 * sysdeps/mips/Makefile: Likewise.
28890 * sysdeps/nios2/Makefile: Likewise.
28891 * sysdeps/sh/Makefile: Likewise.
28892 * sysdeps/sparc/Makefile: Likewise.
28893
28894 2017-09-19 Joseph Myers <joseph@codesourcery.com>
28895
28896 * benchtests/Makefile (bench-math): Add trunc and truncf.
28897 (CFLAGS-bench-trunc.c): New variable.
28898 (CFLAGS-bench-truncf.c): Likewise.
28899 * benchtests/trunc-inputs: New file.
28900 * benchtests/truncf-inputs: Likewise.
28901
28902 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28903
28904 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28905
28906 2017-09-18 Joseph Myers <joseph@codesourcery.com>
28907
28908 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28909 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28910 redefine.
28911 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28912 (exp10l): Define as weak alias.
28913 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28914 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28915 and redefine.
28916 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28917 (remainderl): Define as weak alias.
28918
28919 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28920 (fmal): Define using libm_alias_ldouble.
28921 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28922 (acoshl): Define using libm_alias_ldouble.
28923 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28924 (acosl): Define using libm_alias_ldouble.
28925 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28926 (asinl): Define using libm_alias_ldouble.
28927 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28928 (atan2l): Define using libm_alias_ldouble.
28929 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28930 (atanhl): Define using libm_alias_ldouble.
28931 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28932 (coshl): Define using libm_alias_ldouble.
28933 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28934 (exp10l): Define using libm_alias_ldouble.
28935 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28936 (exp2l): Define using libm_alias_ldouble.
28937 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28938 (expl): Define using libm_alias_ldouble.
28939 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28940 (fmodl): Define using libm_alias_ldouble.
28941 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28942 (hypotl): Define using libm_alias_ldouble.
28943 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28944 (j0l): Define using libm_alias_ldouble.
28945 (y0l): Likewise.
28946 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28947 (j1l): Define using libm_alias_ldouble.
28948 (y1l): Likewise.
28949 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28950 (jnl): Define using libm_alias_ldouble.
28951 (ynl): Likewise.
28952 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28953 (log10l): Define using libm_alias_ldouble.
28954 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28955 (log2l): Define using libm_alias_ldouble.
28956 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28957 (logl): Define using libm_alias_ldouble.
28958 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28959 (powl): Define using libm_alias_ldouble.
28960 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28961 (remainderl): Define using libm_alias_ldouble.
28962 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28963 (sinhl): Define using libm_alias_ldouble.
28964 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28965 (sqrtl): Define using libm_alias_ldouble.
28966 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28967 (tgammal): Define using libm_alias_ldouble.
28968 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28969 (exp10l): Do not use long_double_symbol here.
28970 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28971 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28972 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28973 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28974 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28975 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28976 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28977 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28978 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28979 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28980 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28981 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28982 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28983 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28984 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28985 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28986 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28987 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28988 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28989 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28990 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28991 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28992
28993 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28994
28995 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28996 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28997
28998 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28999
29000 * io/read.c (read): Add libc_hidden_weak.
29001 * sysdeps/mach/hurd/read.c (read): Likewise.
29002 * io/write.c (write): Likewise.
29003 * sysdeps/mach/hurd/write.c (write): Likewise.
29004 * io/pread64.c (__pread64): Likewise.
29005 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29006 * posix/pread64.c (__pread64): Add libc_hidden_def.
29007
29008 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29009
29010 * benchtests/scripts/compare_strings.py: New option -g.
29011 (draw_graph): Print a message that a graph is being generated.
29012 (process_results): Generate graph only if -g is passed.
29013 (main): Process option -g.
29014
29015 * benchtests/scripts/compare_strings.py (process_results):
29016 Better spacing for output.
29017
29018 * benchtests/scripts/compare_strings.py: Use argparse.
29019 * benchtests/README: Document existence of compare_strings.py.
29020
29021 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29022
29023 * math/s_fma.c: Include <libm-alias-double.h>.
29024 (fma): Define using libm_alias_double.
29025 * math/s_nextafter.c: Include <libm-alias-double.h>.
29026 (nextafter): Define using libm_alias_double.
29027 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29028 (acos): Define using libm_alias_double.
29029 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29030 (aocsh): Define using libm_alias_double.
29031 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29032 (asin): Define using libm_alias_double.
29033 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29034 (atan2): Define using libm_alias_double.
29035 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29036 (atanh): Define using libm_alias_double.
29037 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29038 (cosh): Define using libm_alias_double.
29039 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29040 (exp10): Define using libm_alias_double.
29041 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29042 (exp2): Define using libm_alias_double.
29043 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29044 (exp): Define using libm_alias_double.
29045 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29046 (fmod): Define using libm_alias_double.
29047 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29048 (hypot): Define using libm_alias_double.
29049 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29050 (j0): Define using libm_alias_double.
29051 (y0): Likewise.
29052 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29053 (j1): Define using libm_alias_double.
29054 (y1): Likewise.
29055 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29056 (jn): Define using libm_alias_double.
29057 (yn): Likewise.
29058 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29059 (log10): Define using libm_alias_double.
29060 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29061 (log2): Define using libm_alias_double.
29062 * math/w_log_compat.c: Include <libm-alias-double.h>.
29063 (log): Define using libm_alias_double.
29064 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29065 (pow): Define using libm_alias_double.
29066 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29067 (remainder): Define using libm_alias_double.
29068 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29069 (sinh): Define using libm_alias_double.
29070 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29071 (sqrt): Define using libm_alias_double.
29072 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29073 (tgamma): Define using libm_alias_double.
29074 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29075 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29076 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29077 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29078 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29079 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29080 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29081 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29082 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29083 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29084 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29085 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29086 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29087 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29088 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29089 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29090 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29091 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29092 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29093 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29094 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29095 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29096 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29097 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29098 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29099
29100 * math/e_acoshl.c: Remove.
29101 * math/e_acosl.c: Likewise.
29102 * math/e_asinl.c: Likewise.
29103 * math/e_atan2l.c: Likewise.
29104 * math/e_atanhl.c: Likewise.
29105 * math/e_coshl.c: Likewise.
29106 * math/e_expl.c: Likewise.
29107 * math/e_fmodl.c: Likewise.
29108 * math/e_gammal_r.c: Likewise.
29109 * math/e_hypotl.c: Likewise.
29110 * math/e_j0l.c: Likewise.
29111 * math/e_j1l.c: Likewise.
29112 * math/e_jnl.c: Likewise.
29113 * math/e_lgammal_r.c: Likewise.
29114 * math/e_log10l.c: Likewise.
29115 * math/e_log2l.c: Likewise.
29116 * math/e_logl.c: Likewise.
29117 * math/e_powl.c: Likewise.
29118 * math/e_rem_pio2l.c: Likewise.
29119 * math/e_sinhl.c: Likewise.
29120 * math/e_sqrtf128.c: Likewise.
29121 * math/e_sqrtl.c: Likewise.
29122 * math/k_cosl.c: Likewise.
29123 * math/k_sinl.c: Likewise.
29124 * math/k_tanl.c: Likewise.
29125 * math/s_asinhl.c: Likewise.
29126 * math/s_atanl.c: Likewise.
29127 * math/s_cbrtl.c: Likewise.
29128 * math/s_erfl.c: Likewise.
29129 * math/s_expm1l.c: Likewise.
29130 * math/s_log1pl.c: Likewise.
29131 * math/s_tanhl.c: Likewise.
29132
29133 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29134
29135 [BZ #21745]
29136 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29137 [$(subdir) = math] (sysdep_calls): New variable. Has the
29138 previous contents of sysdep_routines, but re-sorted..
29139 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29140 sysdep_calls.
29141 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29142 defined in sysdep_calls and replace by the respective m_* names.
29143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29144 (compat_symbol): Undefine to avoid duplicated compat symbols in
29145 libc.
29146
29147 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29148
29149 * math/s_fmaf.c: Include <libm-alias-float.h>.
29150 (fmaf): Define using libm_alias_float.
29151 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29152 (acosf): Define using libm_alias_float.
29153 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29154 (acoshf): Define using libm_alias_float.
29155 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29156 (asinf): Define using libm_alias_float.
29157 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29158 (atan2f): Define using libm_alias_float.
29159 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29160 (atanhf): Define using libm_alias_float.
29161 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29162 (coshf): Define using libm_alias_float.
29163 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29164 (exp10f): Define using libm_alias_float.
29165 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29166 (fmodf): Define using libm_alias_float.
29167 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29168 (hypotf): Define using libm_alias_float.
29169 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29170 (j0f): Define using libm_alias_float.
29171 (y0f): Likewise.
29172 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29173 (j1f): Define using libm_alias_float.
29174 (y1f): Likewise.
29175 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29176 (jnf): Define using libm_alias_float.
29177 (ynf): Likewise.
29178 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29179 (log10f): Define using libm_alias_float.
29180 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29181 (log2f): Define using libm_alias_float.
29182 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29183 (logf): Define using libm_alias_float.
29184 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29185 (powf): Define using libm_alias_float.
29186 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29187 (remainderf): Define using libm_alias_float.
29188 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29189 (sinhf): Define using libm_alias_float.
29190 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29191 (sqrtf): Define using libm_alias_float.
29192 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29193 (tgammaf): Define using libm_alias_float.
29194
29195 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29196
29197 * include/math.h (roundeven): Change hidden_proto call to
29198 __roundeven.
29199 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29200 alias.
29201 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29202 (y0): Rename to __y0 and define as weak alias.
29203 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29204 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29205 alias.
29206 (y0f): Rename to __y0f and define as weak alias.
29207 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29208 alias.
29209 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29210 (y1): Rename to __y1 and define as weak alias.
29211 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29212 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29213 alias.
29214 (y1f): Rename to __y1f and define as weak alias.
29215 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29216 alias.
29217 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29218 (yn): Rename to __yn and define as weak alias.
29219 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29220 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29221 alias.
29222 (ynf): Rename to __ynf and define as weak alias.
29223 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29224 (fromfp): Define as weak alias.
29225 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29226 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29227 (fromfpx): Define as weak alias.
29228 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29229 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29230 __getpayload and define as weak alias.
29231 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29232 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29233 __roundeven and define as weak alias.
29234 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29235 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29236 __setpayload.
29237 (setpayload): Define as weak alias.
29238 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29239 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29240 __setpayloadsig.
29241 (setpayloadsig): Define as weak alias.
29242 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29243 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29244 __totalorder and define as weak alias.
29245 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29246 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29247 to __totalordermag and define as weak alias.
29248 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29249 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29250 (ufromfp): Define as weak alias.
29251 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29252 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29253 __ufromfpx.
29254 (ufromfpx): Define as weak alias.
29255 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29256 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29257 Rename to __getpayload and define as weak alias.
29258 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29259 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29260 Rename to __roundeven and define as weak alias.
29261 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29262 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29263 Rename to __totalorder and define as weak alias.
29264 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29265 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29266 (totalordermag): Rename to __totalordermag and define as weak
29267 alias.
29268 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29269 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29270 macro.
29271 (__roundevenl): Likewise.
29272 (__totalorderl): Likewise.
29273 (__totalordermagl): Likewise
29274 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29275 __fromfpf128.
29276 (fromfpf128): Define as weak alias.
29277 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29278 __fromfpxf128.
29279 (fromfpxf128): Define as weak alias.
29280 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29281 __setpayloadf128.
29282 (setpayloadf128): Define as weak alias.
29283 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29284 __setpayloadsigf128.
29285 (setpayloadsigf128): Define as weak alias.
29286 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29287 __ufromfpf128.
29288 (ufromfpf128): Define as weak alias.
29289 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29290 __ufromfpxf128.
29291 (ufromfpxf128): Define as weak alias.
29292 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29293 (fromfpf): Define as weak alias.
29294 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29295 __fromfpxf.
29296 (fromfpxf): Define as weak alias.
29297 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29298 __getpayloadf and define as weak alias.
29299 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29300 __roundevenf and define as weak alias.
29301 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29302 __setpayloadf.
29303 (setpayloadf): Define as weak alias.
29304 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29305 __setpayloadsigf.
29306 (setpayloadsigf): Define as weak alias.
29307 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29308 __totalorderf and define as weak alias.
29309 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29310 Rename to __totalordermagf and define as weak alias.
29311 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29312 __ufromfpf.
29313 (ufromfpf): Define as weak alias.
29314 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29315 __ufromfpxf.
29316 (ufromfpxf): Define as weak alias.
29317 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29318 __fromfpl.
29319 (fromfpl): Define as weak alias.
29320 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29321 __fromfpxl.
29322 (fromfpxl): Define as weak alias.
29323 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29324 to __getpayloadl and define as weak alias.
29325 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29326 __roundevenl and define as weak alias.
29327 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29328 __setpayloadl.
29329 (setpayloadl): Define as weak alias.
29330 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29331 __setpayloadsigl.
29332 (setpayloadsigl): Define as weak alias.
29333 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29334 to __totalorderl and define as weak alias.
29335 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29336 Rename to __totalordermagl and define as weak alias.
29337 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29338 __ufromfpl.
29339 (ufromfpl): Define as weak alias.
29340 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29341 __ufromfpxl.
29342 (ufromfpxl): Define as weak alias.
29343 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29344 __fromfpl.
29345 (fromfpl): Define as weak alias.
29346 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29347 __fromfpxl.
29348 (fromfpxl): Define as weak alias.
29349 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29350 Rename to __getpayloadl and define as weak alias.
29351 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29352 to __roundevenl and define as weak alias. Call __roundeven
29353 instead of roundeven.
29354 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29355 __setpayloadl.
29356 (setpayloadl): Define as weak alias.
29357 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29358 __setpayloadsigl.
29359 (setpayloadsigl): Define as weak alias.
29360 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29361 Rename to __totalorderl and define as weak alias.
29362 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29363 Rename to __totalordermagl and define as weak alias.
29364 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29365 __ufromfpl.
29366 (ufromfpl): Define as weak alias.
29367 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29368 __ufromfpxl.
29369 (ufromfpxl): Define as weak alias.
29370 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29371 __fromfpl.
29372 (fromfpl): Define as weak alias.
29373 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29374 __fromfpxl.
29375 (fromfpxl): Define as weak alias.
29376 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29377 __getpayloadl and define as weak alias.
29378 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29379 __roundevenl and define as weak alias.
29380 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29381 __setpayloadl.
29382 (setpayloadl): Define as weak alias.
29383 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29384 __setpayloadsigl.
29385 (setpayloadsigl): Define as weak alias.
29386 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29387 __totalorderl and define as weak alias.
29388 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29389 Rename to __totalordermagl and define as weak alias.
29390 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29391 __ufromfpl.
29392 (ufromfpl): Define as weak alias.
29393 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29394 __ufromfpxl.
29395 (ufromfpxl): Define as weak alias.
29396
29397 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29398
29399 * benchtests/bench-string.h (realloc_bufs): New function.
29400 (test_init): Call it.
29401 * benchtests/bench-memset-large.c (do_test): Likewise.
29402 * benchtests/bench-memset.c (do_test): Likewise.
29403
29404 * benchtests/bench-memset-large.c: Print output in JSON
29405 format.
29406 * benchtests/bench-memset.c: Likewise.
29407
29408 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29409
29410 [BZ #21084]
29411 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
29412 * iconvdata/Makefile: Add IBM858.
29413 * iconvdata/gconv-modules: Likewise.
29414 * iconvdata/tst-tables.sh: Likewise.
29415 * iconvdata/ibm858.c: New file.
29416 * localedata/charmaps/IBM858: Likewise.
29417
29418 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
29419
29420 [BZ #22023]
29421 * locales/niu_NZ (LC_TIME): copy "niu_NU".
29422 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
29423
29424 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29425
29426 [BZ #22112]
29427 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
29428 and add tel_int_fmt.
29429
29430 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29431
29432 * sysdeps/generic/libm-alias-float128.h: New file.
29433 * sysdeps/generic/math-type-macros-float128.h: Include
29434 <libm-alias-float128.h>.
29435 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29436
29437 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29438
29439 * sysdeps/generic/libm-alias-ldouble.h: New file.
29440 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
29441 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
29442 * sysdeps/generic/math-type-macros-ldouble.h: Include
29443 <libm-alias-ldouble.h>.
29444 [!declare_mgen_alias] (declare_mgen_alias): Define to use
29445 libm_alias_ldouble.
29446
29447 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
29448
29449 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
29450 * math/w_exp_compat.c: ... here.
29451 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
29452 * math/w_expf_compat.c: ... here.
29453 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
29454 * math/w_expl_compat.c: ... here.
29455 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
29456 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
29457 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
29458 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29459
29460 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29461
29462 * math/w_scalbln_template.c (strong_alias): Do not undefine and
29463 redefine.
29464 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
29465 macro.
29466 (ldexpl): Only define as compat symbol for libc, not libm.
29467 (scalbnl): Define as compat symbol for libc here.
29468 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
29469 define for [IS_IN (libc)].
29470 (__ldexpl_2): Remove alias.
29471 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
29472 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
29473 name in long_double_symbol call.
29474 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
29475 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
29476 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
29477 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
29478 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
29479 Remove macro.
29480 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
29481 Define as compat symbol.
29482
29483 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29484
29485 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
29486 * sysdeps/unix/sysv/linux/alpha/Makefile
29487 [$(subdir) = csu] (sysdep_routines): Remove rule.
29488
29489 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29490
29491 * sysdeps/generic/libm-alias-double.h: New file.
29492 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
29493 * sysdeps/generic/math-type-macros-double.h: Include
29494 <libm-alias-double.h>.
29495 [declare_mgen_alias] (declare_mgen_alias): Define to use
29496 libm_alias_double.
29497 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
29498 (M_LIBM_NEED_COMPAT): Remove macro.
29499 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
29500 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
29501 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
29502 code.
29503 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29504 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29505 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29506 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29507 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29508 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29509 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29510 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29511 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29512 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29513 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29514 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29515 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29516 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29517 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29518 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29519 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29520 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29521 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29522 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29523 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29524 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29525 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29526 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29527 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29528 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29529 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29530 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
29531 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
29532 macro.
29533 (declare_mgen_alias): New macro.
29534 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
29535 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
29536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
29537 (M_LIBM_NEED_COMPAT): Remove macro.
29538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
29539 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
29540 <first-versions.h>.
29541 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
29542 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
29543
29544 2017-09-12 Joseph Myers <joseph@codesourcery.com>
29545
29546 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
29547 (declare_mgen_alias_2): Remove.
29548 * sysdeps/generic/math-type-macros-double.h
29549 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
29550 Likewise.
29551 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
29552 alias.
29553 (ldexp): Define with declare_mgen_alias.
29554 (scalbn): Likewise.
29555
29556 2017-09-12 Steve Ellcey <sellcey@cavium.com>
29557
29558 * grp/initgroups.c: Include config.h.
29559 (DEFAULT_CONFIG): New macro.
29560 (internal_getgrouplist): Use DEFAULT_CONFIG.
29561 * nscd/initgrcache.c (addinitgroupsX): Likewise.
29562 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
29563 (DEFAULT_DEFCONFIG): New macro.
29564 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
29565 * nss/grp-lookup.c: Include config.h
29566 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
29567 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
29568 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
29569 * manual/nss.texi: Update default values section.
29570
29571 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
29572
29573 [BZ #21967]
29574 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
29575 New.
29576 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
29577 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29578 Handle MathVec_Prefer_No_AVX512.
29579 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
29580 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
29581 is set.
29582
29583 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
29584
29585 * posix/sched_primax.c (__sched_get_priority_max): Add
29586 libc_hidden_def.
29587 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
29588 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
29589 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
29590 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
29591 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
29592 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
29593 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
29594 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
29595 Add aliases.
29596
29597 2017-09-11 Joseph Myers <joseph@codesourcery.com>
29598
29599 * sysdeps/generic/libm-alias-float.h: New file.
29600 * sysdeps/generic/math-type-macros-float.h: Include
29601 <libm-alias-float.h>.
29602 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29603
29604 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
29605
29606 [BZ #22093]
29607 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
29608 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
29609 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
29610 (HWCAP_IMPORTANT): Likewise.
29611 (HWCAP_X86_64): New enum.
29612 (HWCAP_X86_AVX512_1): Updated.
29613 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
29614 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
29615 (modules-names): Add x86_64/tst-x86_64mod-1.
29616 (LDFLAGS-tst-x86_64mod-1.so): New.
29617 ($(objpfx)tst-x86_64-1): Likewise.
29618 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
29619 (tst-x86_64-1-clean): Likewise.
29620 * sysdeps/x86_64/tst-x86_64-1.c: New file.
29621 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
29622
29623 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
29624
29625 * po/sv.po: Update translations.
29626 * po/fr.po: Likewise.
29627
29628 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
29629
29630 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
29631 seconds.
29632 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
29633 seconds.
29634 * elf/rtld-Rules: Fix $(error) use.
29635
29636 2017-09-09 Mike FABIAN <mfabian@redhat.com>
29637
29638 [BZ #14925]
29639 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
29640 * locale/iso-639.def: Change “Bengali” to “Bangla”.
29641 * localedata/locales/bn_BD: “Bengali” was still used in some
29642 comments. Change it to “Bangla”.
29643
29644 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
29645
29646 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
29647
29648 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29649
29650 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
29651 thunderx2t99p1 to list of cpu names.
29652 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
29653 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
29654
29655 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29656
29657 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
29658 Use strcmp instead of tunable_is_name.
29659
29660 2017-09-08 Joseph Myers <joseph@codesourcery.com>
29661
29662 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29663 (F_GET_RW_HINT): New macro.
29664 [__USE_GNU] (F_SET_RW_HINT): Likewise.
29665 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
29666 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
29667 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
29668 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
29669 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
29670 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
29671 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
29672 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
29673
29674 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29675 (F_ADD_SEALS): New macro.
29676 [__USE_GNU] (F_GET_SEALS): Likewise.
29677 [__USE_GNU] (F_SEAL_SEAL): Likewise.
29678 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
29679 [__USE_GNU] (F_SEAL_GROW): Likewise.
29680 [__USE_GNU] (F_SEAL_WRITE): Likewise.
29681
29682 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29683
29684 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
29685 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
29686 * posix/glob_internal.h (__glob_pattern_type):
29687 * posix/glob.c (glob):
29688 * posix/glob_pattern_p.c (__glob_pattern_p):
29689 Use them.
29690
29691 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
29692 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
29693 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
29694 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
29695 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
29697 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
29698 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
29699 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29700 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
29701 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29702 * sysdeps/wordsize-64/glob.c: Likewise.
29703 * sysdeps/wordsize-64/glob64.c: Likewise.
29704 * sysdeps/wordsize-64/globfree.c: Likewise.
29705 * sysdeps/wordsize-64/globfree64.c: Likewise.
29706 * sysdeps/unix/sysv/linux/glob.c: New file.
29707 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
29708 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
29709 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
29710 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29711 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
29712 adds !GLOB_NO_OLD_VERSION as an extra condition.
29713 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
29714 using relative path instead of absolute one.
29715 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
29716 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29717 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29718 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
29719 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
29720 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
29721
29722 [BZ #1062]
29723 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
29724 (glob): Use the same scratch buffer for both getlogin_r and
29725 getpwnam_r. Don’t require preallocation of the login name. This
29726 simplifies storage allocation, and corrects the handling of
29727 long login names.
29728
29729 [BZ #1062]
29730 * posix/glob.c (glob): Port recent patches to platforms
29731 lacking getpwnam_r.
29732 (glob): Fix longstanding misuse of errno after getpwnam_r, which
29733 returns an error number rather than setting errno.
29734
29735 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
29736 instead of GCC extension.
29737 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
29738 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
29739 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
29740
29741 [BZ #866]
29742 [BZ #1062]
29743 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
29744 * posix/bug-glob1.c: Remove file.
29745 * posix/tst-glob_symlinks.c: New file.
29746 * posix/glob.c (__lstat64): New macro.
29747 (is_dir): New function.
29748 (glob, glob_in_dir): Match symlinks even if they are dangling.
29749 (link_stat, link_exists_p): Remove. All uses removed.
29750
29751 [BZ #1062]
29752 [BZ #19971]
29753 * posix/glob.c (struct readdir_result): Remove skip_entry member.
29754 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29755 All uses removed.
29756
29757 [BZ #1062]
29758 CVE-2017-15671
29759 * posix/Makefile (routines): Add globfree, globfree64, and
29760 glob_pattern_p.
29761 * posix/flexmember.h: New file.
29762 * posix/glob_internal.h: Likewise.
29763 * posix/glob_pattern_p.c: Likewise.
29764 * posix/globfree.c: Likewise.
29765 * posix/globfree64.c: Likewise.
29766 * sysdeps/gnu/globfree64.c: Likewise.
29767 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29768 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29769 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29770 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29771 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29772 * sysdeps/wordsize-64/globfree.c: Likewise.
29773 * sysdeps/wordsize-64/globfree64.c: Likewise.
29774 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29775 [NDEBUG): Remove comments.
29776 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29777 (dirent_type): New type. Use uint_fast8_t not
29778 uint8_t, as C99 does not require uint8_t.
29779 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29780 (struct readdir_result): Use dirent_type. Do not define skip_entry
29781 unless it is needed; this saves a byte on platforms lacking d_ino.
29782 (readdir_result_type, readdir_result_skip_entry):
29783 New functions, replacing ...
29784 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29785 these functions, which were removed. This makes the callers
29786 easier to read. All callers changed.
29787 (D_INO_TO_RESULT): Now empty if there is no d_ino.
29788 (size_add_wrapv, glob_use_alloca): New static functions.
29789 (glob, glob_in_dir): Check for size_t overflow in several places,
29790 and fix some size_t checks that were not quite right.
29791 Remove old code using SHELL since Bash no longer
29792 uses this.
29793 (glob, prefix_array): Separate MS code better.
29794 (glob_in_dir): Remove old Amiga and VMS code.
29795 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29796 separate files.
29797 (glob_in_dir): Do not rely on undefined behavior in accessing
29798 struct members beyond their bounds. Use a flexible array member
29799 instead
29800 (link_stat): Rename from link_exists2_p and return -1/0 instead of
29801 0/1. Caller changed.
29802 (glob): Fix memory leaks.
29803 * posix/glob64 (globfree64): Move to separate file.
29804 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29805 (globfree64): Remove hidden alias.
29806 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29807 oldglob.
29808 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29809 separate file.
29810 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29811 define.
29812 Move compat code to separate file.
29813 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29814 separate file.
29815
29816 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
29817
29818 * resolv/tst-resolv-qtypes.c (domain): Changed to
29819 "const char domain[] =".
29820
29821 2017-09-07 Joseph Myers <joseph@codesourcery.com>
29822
29823 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29824 version to 3.1.6.
29825
29826 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29827 (TCP_MD5SIG_EXT): Likewise.
29828 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29829 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29830 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
29831
29832 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29833
29834 2017-09-07 Mike FABIAN <mfabian@redhat.com>
29835
29836 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29837
29838 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
29839
29840 [BZ #22100]
29841 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29842
29843 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
29844
29845 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29846 before assuming that the file is empty. Avoid testing buffer content
29847 when nread == 0.
29848
29849 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29850
29851 [BZ #18858]
29852 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29853 Remove define.
29854 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29855 Likewise.
29856 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29857 Likewise.
29858 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29859 Likewise.
29860 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29861 Likewise.
29862 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29863 Likewise.
29864 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29865 Likewise.
29866
29867 2017-09-06 Florian Weimer <fweimer@redhat.com>
29868
29869 * malloc/dynarray_emplace_enlarge.c
29870 (__libc_dynarray_emplace_enlarge): Add missing else.
29871
29872 2017-09-06 Florian Weimer <fweimer@redhat.com>
29873
29874 [BZ #22096]
29875 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29876 case of failure to obtain the global conf object.
29877
29878 2017-09-06 Florian Weimer <fweimer@redhat.com>
29879
29880 [BZ #22095]
29881 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29882 dynarray allocation failure.
29883
29884 2017-09-06 Florian Weimer <fweimer@redhat.com>
29885
29886 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29887 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29888 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29889 New functions.
29890 (response): Call them. Add 'p', '6' flag processing.
29891 (test_reverse): New function.
29892 (test_get2_any): Call it.
29893 (test_no_inet6): Add 'p' test.
29894 (test_inet6): Likewise.
29895
29896 2017-09-06 Florian Weimer <fweimer@redhat.com>
29897
29898 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29899 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29900 the QNAME.
29901 (test_gai): Adjust query names. Add additional tests.
29902 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29903 test_get2. Adjust query names. Add additional tests.
29904 (test_no_inet6): New function, extracted from threadfunc.
29905 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29906 Add additional tests.
29907
29908 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29909
29910 [BZ #22070]
29911 * localedata/unicode-gen/utf8_gen.py: Set the width for
29912 characters with Prepended_Concatenation_Mark property to 1
29913 * localedata/charmaps/UTF-8: Updated using the improved script.
29914
29915 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29916
29917 [BZ #21750]
29918 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29919 use the range notation for all ranges of neighbouring characters
29920 with the same width.
29921
29922 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29923
29924 * sysdeps/generic/math-type-macros-double.h: Include
29925 <math-svid-compat.h>.
29926 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29927 * sysdeps/generic/math-type-macros-float.h: Include
29928 <math-svid-compat.h>.
29929 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29930 * sysdeps/generic/math-type-macros-ldouble.h: Include
29931 <math-svid-compat.h>.
29932 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29933 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29934 condition.
29935 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29936 * math/w_acosf_compat.c: Likewise.
29937 * math/w_acosh_compat.c: Likewise.
29938 * math/w_acoshf_compat.c: Likewise.
29939 * math/w_acoshl_compat.c: Likewise.
29940 * math/w_acosl_compat.c: Likewise.
29941 * math/w_asin_compat.c: Likewise.
29942 * math/w_asinf_compat.c: Likewise.
29943 * math/w_asinl_compat.c: Likewise.
29944 * math/w_atan2_compat.c: Likewise.
29945 * math/w_atan2f_compat.c: Likewise.
29946 * math/w_atan2l_compat.c: Likewise.
29947 * math/w_atanh_compat.c: Likewise.
29948 * math/w_atanhf_compat.c: Likewise.
29949 * math/w_atanhl_compat.c: Likewise.
29950 * math/w_cosh_compat.c: Likewise.
29951 * math/w_coshf_compat.c: Likewise.
29952 * math/w_coshl_compat.c: Likewise.
29953 * math/w_exp10_compat.c: Likewise.
29954 * math/w_exp10f_compat.c: Likewise.
29955 * math/w_exp10l_compat.c: Likewise.
29956 * math/w_exp2_compat.c: Likewise.
29957 * math/w_exp2f_compat.c: Likewise.
29958 * math/w_exp2l_compat.c: Likewise.
29959 * math/w_fmod_compat.c: Likewise.
29960 * math/w_fmodf_compat.c: Likewise.
29961 * math/w_fmodl_compat.c: Likewise.
29962 * math/w_hypot_compat.c: Likewise.
29963 * math/w_hypotf_compat.c: Likewise.
29964 * math/w_hypotl_compat.c: Likewise.
29965 * math/w_j0_compat.c: Likewise.
29966 * math/w_j0f_compat.c: Likewise.
29967 * math/w_j0l_compat.c: Likewise.
29968 * math/w_j1_compat.c: Likewise.
29969 * math/w_j1f_compat.c: Likewise.
29970 * math/w_j1l_compat.c: Likewise.
29971 * math/w_jn_compat.c: Likewise.
29972 * math/w_jnf_compat.c: Likewise.
29973 * math/w_jnl_compat.c: Likewise.
29974 * math/w_lgamma_r_compat.c: Likewise.
29975 * math/w_lgammaf_r_compat.c: Likewise.
29976 * math/w_lgammal_r_compat.c: Likewise.
29977 * math/w_log10_compat.c: Likewise.
29978 * math/w_log10f_compat.c: Likewise.
29979 * math/w_log10l_compat.c: Likewise.
29980 * math/w_log2_compat.c: Likewise.
29981 * math/w_log2f_compat.c: Likewise.
29982 * math/w_log2l_compat.c: Likewise.
29983 * math/w_log_compat.c: Likewise.
29984 * math/w_logf_compat.c: Likewise.
29985 * math/w_logl_compat.c: Likewise.
29986 * math/w_pow_compat.c: Likewise.
29987 * math/w_powf_compat.c: Likewise.
29988 * math/w_powl_compat.c: Likewise.
29989 * math/w_remainder_compat.c: Likewise.
29990 * math/w_remainderf_compat.c: Likewise.
29991 * math/w_remainderl_compat.c: Likewise.
29992 * math/w_sinh_compat.c: Likewise.
29993 * math/w_sinhf_compat.c: Likewise.
29994 * math/w_sinhl_compat.c: Likewise.
29995 * math/w_sqrt_compat.c: Likewise.
29996 * math/w_sqrtf_compat.c: Likewise.
29997 * math/w_sqrtl_compat.c: Likewise.
29998 * math/w_tgamma_compat.c: Likewise.
29999 * math/w_tgammaf_compat.c: Likewise.
30000 * math/w_tgammal_compat.c: Likewise.
30001 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30002 [LIBM_SVID_COMPAT].
30003 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30004 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30005 [LIBM_SVID_COMPAT].
30006 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30007 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30008 [LIBM_SVID_COMPAT].
30009 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30010 * sysdeps/i386/fpu/w_sqrt.c: New file.
30011 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30012 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30013 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30014 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30015 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30016 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30017 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30018 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30019 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30020 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30021 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30022 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30023 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30024 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30025 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30026 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30027 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30028 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30029 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30030 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30031 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30032 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30033 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30034 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30035 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30036 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30037 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30038 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30039 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30040 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30041 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30042 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30043 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30044 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30045 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30046 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30047 * sysdeps/ia64/fpu/w_log.c: Likewise.
30048 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30049 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30050 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30051 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30052 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30053 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30054 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30055 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30056 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30057 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30058 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30059 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30060 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30061 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30062 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30063 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30064 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30065 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30066 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30067 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30068 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30069 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30070 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30071 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30072 [LIBM_SVID_COMPAT].
30073 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30074 * sysdeps/ieee754/k_standard.c: Likewise.
30075 * sysdeps/ieee754/k_standardf.c: Likewise.
30076 * sysdeps/ieee754/k_standardl.c: Likewise.
30077 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30078 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30079 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30080 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30081 long_double_symbol call on [LIBM_SVID_COMPAT].
30082 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30083 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30084 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30085 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30086 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30087 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30088 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30089 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30090 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30091 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30092 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30093 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30094 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30095 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30096 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30097 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30098 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30099 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30100 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30101 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30102 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30103 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30104
30105 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30106
30107 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30108 * malloc/tst-mallocstate.c: Convert from test-skeleton
30109 to test-driver. Ifdef code using TEST_COMPAT macro.
30110 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30111 * math/test-matherr.c: Likewise.
30112
30113 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30114
30115 [BZ #22086]
30116 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30117 comparing word with byte-swapped constant.
30118
30119 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30120
30121 [BZ #20498]
30122 * locale/iso-639.def: add Miskito.
30123 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30124 * localedata/locales/miq_NI: New file.
30125
30126 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 [BZ #18822]
30129 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30130 (__mkdir): Likewise.
30131 * io/chmod.c (__chmod): Add libc_hidden_def.
30132 * io/mkdir.c (__mkdir): Likewise.
30133 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30134 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30135 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30136 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30137
30138 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30139
30140 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30141 version to 4.13.
30142
30143 [BZ #22082]
30144 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30145 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30146
30147 2017-09-04 Florian Weimer <fweimer@redhat.com>
30148
30149 * math/math.h: Issue warning if log is defined.
30150
30151 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30152
30153 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30154 kernel version to 4.13.
30155
30156 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30157
30158 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30159 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30160 parameter.
30161 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30162 just <bits/types.h>.
30163 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30164 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30165 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30166 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30167 * misc/preadv2.c: Include <errno.h>.
30168 * misc/preadv64v2.c: Include <errno.h>.
30169 * misc/pwritev2.c: Include <errno.h>.
30170 * misc/pwritev64v2.c: Include <errno.h>.
30171 * sysdeps/posix/preadv2.c: Include <errno.h>.
30172 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30173 Fix <unistd.h> inclusion.
30174 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30175 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30176 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30177 __strtoul_internal): New functions.
30178 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30179 * sysdeps/posix/system.c: Include <sigsetops.h>.
30180 * sysdeps/mach/hurd/i386/Makefile
30181 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30182 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30183 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30184 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30185 __feraiseexcept_renamed to feraiseexcept instead of
30186 __GI_feraiseexcept.
30187 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30188 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30189 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30190 RWF_NOWAIT): Define to 0 if undefined already.
30191 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30192 boils down to 0.
30193 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30194 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30195
30196 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30197
30198 * manual/math.texi (pow10): Do not document.
30199 (pow10f): Likewise.
30200 (pow10l): Likewise.
30201 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30202 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30203 * math/libm-test-exp10.inc (pow10_test): Remove.
30204 (do_test): Do not call pow10.
30205 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30206 [NO_LONG_DOUBLE] (pow10l): Likewise.
30207 * math/w_exp10f_compat.c (pow10f): Likewise.
30208 * math/w_exp10l_compat.c (pow10l): Likewise.
30209 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30210 (pow10): Make into compat symbol.
30211 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30212 (pow10f): Make into compat symbol.
30213 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30214 (pow10l): Make into compat symbol.
30215 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30216 pow10.
30217 (CFLAGS-nldbl-pow10.c): Remove variable..
30218 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30219 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30220 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30221 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30222 Undefine and redefine.
30223 (pow10l): Make into compat symbol.
30224 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30225 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30226 * sysdeps/arm/libm-test-ulps: Likewise.
30227 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30228 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30229 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30230 * sysdeps/microblaze/libm-test-ulps: Likewise.
30231 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30232 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30233 * sysdeps/nios2/libm-test-ulps: Likewise.
30234 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30235 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30236 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30237 * sysdeps/sh/libm-test-ulps: Likewise.
30238 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30239 * sysdeps/tile/libm-test-ulps: Likewise.
30240 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30241
30242 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30243
30244 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30245
30246 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30247
30248 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30249 "../ChangeLog.old/ChangeLog.8".
30250 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30251 "../ChangeLog.old/ChangeLog.14".
30252
30253 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30254
30255 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30256 Threads Library.
30257
30258 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30259
30260 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30261
30262 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30263
30264 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30265 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30266
30267 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30268
30269 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30270 32 atexit handlers.
30271
30272 2017-09-01 Zack Weinberg <zackw@panix.com>
30273
30274 * math/math.h (HUGE_VAL): Improve commentary.
30275
30276 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30277 Andreas Schwab <schwab@suse.de>
30278
30279 [BZ #21530]
30280 * include/stdio.h (__gen_tempfd): New function.
30281 * stdio-common/Makefile (routines): Add gentempfd.
30282 * stdio-common/gentempfd.c: New file.
30283 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30284 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30285 unnamed file first.
30286
30287 2017-09-01 Florian Weimer <fweimer@redhat.com>
30288
30289 [BZ #21915]
30290 [BZ #21922]
30291 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30292 result to determine success or failure, not the errno value.
30293 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30294 (tst-nss-files-hosts-erange): Link with -ldl.
30295 * nss/tst-nss-files-hosts-erange.c: New file.
30296 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30297 (do_test): Add NO_DATA tests.
30298 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30299 (do_test): Call it.
30300
30301 2017-09-01 Florian Weimer <fweimer@redhat.com>
30302
30303 [BZ #21922]
30304 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30305 coming from gethostbyname2_r.
30306
30307 2017-09-01 Florian Weimer <fweimer@redhat.com>
30308
30309 * support/namespace.h (struct support_chroot_configuration): Add
30310 hosts, host_conf.
30311 (struct support_chroot): Add path_hosts, path_host_conf.
30312 * support/support_chroot.c (write_file): New function.
30313 (support_chroot_create): Call it to process /etc/resolv.conf,
30314 /etc/hosts, /etc/host.conf.
30315 (support_chroot_free): Update.
30316
30317 2017-09-01 Florian Weimer <fweimer@redhat.com>
30318
30319 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30320 status indicates it is set.
30321
30322 2017-09-01 Florian Weimer <fweimer@redhat.com>
30323
30324 [BZ #20532]
30325 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30326 function lookup failures more reliable.
30327
30328 2017-09-01 Florian Weimer <fweimer@redhat.com>
30329
30330 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30331 (getcanonname): Likewise.
30332 (gaih_inet): Likewise.
30333
30334 2017-09-01 Florian Weimer <fweimer@redhat.com>
30335
30336 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30337 (getcanonname): Likewise.
30338 (gaih_inet): Likewise.
30339
30340 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30341 Richard Henderson <rth@twiddle.net>
30342
30343 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30344 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30345 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30346 (IREG_SIZE, OREG_SIZE): New macros.
30347 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30348 (IREG_SIZE, OREG_SIZE): New macros.
30349 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30350 (IREG_SIZE): New macro.
30351 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30352 (IREG_SIZE): New macro.
30353 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30354 New includes.
30355 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30356 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30357 (__CONCATX): Handle exceptions correctly on large values that may
30358 set FE_INVALID.
30359 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30360 Initialize if not already set.
30361 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30362
30363 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30364
30365 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30366 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30367 Likewise.
30368 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30369 Likewise.
30370 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30371 Likewise.
30372 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30373 Likewise.
30374 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30375 Likewise.
30376 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30377 Likewise.
30378 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30379 Likewise.
30380 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30381 (NO_CANCELLATION): Likewise.
30382 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30383 Likewise.
30384 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30385 Likewise.
30386 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30387 Likewise.
30388 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30389 (NO_CANCELLATION): Likewise.
30390 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30391 (NO_CANCELLATION): Likewise.
30392 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30393 Likewise
30394 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30395 Likewise.
30396 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30397 Likewise.
30398 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30399 Likewise.
30400 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
30401 hidden prototype.
30402 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
30403 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
30404
30405 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30406
30407 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
30408 in resolver call.
30409
30410 2017-08-31 Florian Weimer <fweimer@redhat.com>
30411
30412 * include/libc-symbols.h (internal_function): Remove.
30413
30414 2017-08-31 Florian Weimer <fweimer@redhat.com>
30415
30416 * stdlib/fmtmsg.c (internal_addseverity): Remove
30417 internal_function.
30418
30419 2017-08-31 Florian Weimer <fweimer@redhat.com>
30420
30421 * stdio-common/printf_fp.c (group_number): Remove
30422 internal_function.
30423 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
30424
30425 2017-08-31 Florian Weimer <fweimer@redhat.com>
30426
30427 * posix/fnmatch.c (internal_function): Remove definition.
30428 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
30429 * posix/regcomp.c (peek_token, init_word_char)
30430 (duplicate_node_closure, fetch_token, peek_token)
30431 (peek_token_bracket, build_range_exp, build_collating_symbol):
30432 Likewise.
30433 * posix/regex_internal.c (re_string_construct_common)
30434 (create_ci_newstate, create_cd_newstate, re_string_allocate)
30435 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
30436 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
30437 (re_string_translate_buffer, re_string_reconstruct)
30438 (re_string_peek_byte_case, re_string_fetch_byte_case)
30439 (re_string_destruct, re_string_context_at, re_node_set_alloc)
30440 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
30441 (re_node_set_add_intersect, re_node_set_init_union)
30442 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
30443 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
30444 (re_dfa_add_node, calc_state_hash, re_acquire_state)
30445 (re_acquire_state_context): Likewise.
30446 * posix/regex_internal.h (internal_function): Remove definition.
30447 (re_string_realloc_buffers, build_wcs_buffer)
30448 (build_wcs_upper_buffer, build_upper_buffer)
30449 (re_string_translate_buffer, re_string_context_at)
30450 (re_string_char_size_at, re_string_wchar_at)
30451 (re_string_elem_size_at): Likewise.
30452 * posix/regexec.c (match_ctx_init, match_ctx_clean)
30453 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
30454 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
30455 (re_search_internal, re_search_2_stub, re_search_stub)
30456 (re_copy_regs, prune_impossible_nodes, check_matching)
30457 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
30458 (free_fail_stack_return, sift_states_iter_mb)
30459 (sift_states_backward, build_sifted_states)
30460 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
30461 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
30462 (check_subexp_limits, sift_states_bkref, merge_state_array)
30463 (find_recover_state, transit_state, merge_state_with_log)
30464 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
30465 (transit_state_mb, transit_state_bkref, get_subexp)
30466 (get_subexp_sub, find_subexp_node, check_arrival)
30467 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
30468 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
30469 (check_node_accept_bytes, find_collation_sequence_value)
30470 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
30471 (acquire_init_state_context, check_halt_node_context)
30472 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
30473 (sub_epsilon_src_nodes): Likewise.
30474 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
30475 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
30476 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
30477 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
30478 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
30479 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
30480 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
30481 * sysdeps/posix/ttyname.c (getttyname): Likewise.
30482 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
30483 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
30484 (PREADV): Likewise.
30485 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
30486 (PREADV): Likewise.
30487 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
30488 (PWRITEV): Likewise.
30489 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
30490 (PWRITEV): Likewise.
30491 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
30492 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
30493
30494 2017-08-31 Florian Weimer <fweimer@redhat.com>
30495
30496 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
30497 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
30498 Remove internal_function.
30499 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
30500 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
30501 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
30502 (__deallocate_stack, __libc_pthread_init)
30503 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
30504 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
30505 (__libc_disable_asynccancel, __librt_disable_asynccancel):
30506 Likewise.
30507 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
30508 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
30509 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
30510 Likewise.
30511 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
30512 (__pthread_mutex_unlock_usercnt): Likewise.
30513
30514 2017-08-31 Florian Weimer <fweimer@redhat.com>
30515
30516 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
30517 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
30518 (fts_safe_changedir): Remove internal_function.
30519 * io/ftw.c (internal_function): Remove definition.
30520 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
30521
30522 2017-08-31 Florian Weimer <fweimer@redhat.com>
30523
30524 * inet/deadline.c (__deadline_current_time)
30525 (__deadline_from_timeval, __deadline_to_ms): Remove
30526 internal_function.
30527 * inet/getnameinfo.c (nrl_domainname): Likewise.
30528 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
30529 * inet/inet6_option.c (add_pad): Likewise.
30530 * inet/net-internal.h (__deadline_current_time)
30531 (__deadline_from_timeval, __deadline_to_ms): Likewise.
30532 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
30533 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
30534 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
30535
30536 2017-08-31 Joseph Myers <joseph@codesourcery.com>
30537
30538 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
30539 include <bits/nan.h>.
30540 * math/Makefile (headers): Remove bits/nan.h.
30541 * bits/nan.h: Remove.
30542 * sysdeps/ieee754/bits/nan.h: Likewise.
30543 * sysdeps/mips/bits/nan.h: Likewise.
30544
30545 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
30546 not include <bits/inf.h>.
30547 * math/Makefile (headers): Remove bits/inf.h.
30548 * bits/inf.h: Remove.
30549 * sysdeps/ieee754/bits/inf.h: Likewise.
30550
30551 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
30552 bits/huge_vall.h or bits/huge_val_flt128.h.
30553 (HUGE_VAL): Define directly here.
30554 [__USE_ISOC99] (HUGE_VALF): Likewise.
30555 [__USE_ISOC99] (HUGE_VALL): Likewise.
30556 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30557 (HUGE_VAL_F128): Likewise.
30558 * math/Makefile (headers): Remove bits/huge_val.h,
30559 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
30560 * bits/huge_val.h: Remove.
30561 * bits/huge_val_flt128.h: Likewise.
30562 * bits/huge_valf.h: Likewise.
30563 * bits/huge_vall.h: Likewise.
30564 * sysdeps/ia64/bits/huge_vall.h: Likewise.
30565 * sysdeps/ieee754/bits/huge_val.h: Likewise.
30566 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
30567 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
30568 * sysdeps/sh/bits/huge_val.h: Likewise.
30569 * sysdeps/sparc/bits/huge_vall.h: Likewise.
30570 * sysdeps/x86/bits/huge_vall.h: Likewise.
30571
30572 2017-08-31 Florian Weimer <fweimer@redhat.com>
30573
30574 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
30575 internal_function.
30576 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
30577 Likewise.
30578 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
30579 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
30580 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
30581 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
30582 * elf/dl-fini.c (_dl_sort_fini): Likewise.
30583 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
30584 * elf/dl-libc.c (dlerror_run): Likewise.
30585 * elf/dl-load.c (add_name_to_object, decompose_rpath)
30586 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
30587 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
30588 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
30589 Likewise.
30590 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
30591 (_dl_higher_prime_number, _dl_strtoul): Likewise.
30592 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
30593 * elf/dl-profile.c (_dl_start_profile): Likewise.
30594 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
30595 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
30596 Likewise.
30597 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
30598 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
30599 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
30600 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
30601 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
30602 (_dl_allocate_tls_storage): Likewise.
30603 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
30604 (_dl_check_all_versions): Likewise.
30605 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
30606 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
30607 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
30608 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30609 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
30610 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
30611 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
30612 internal_function from __dl_start.
30613 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
30614 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
30615 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
30616 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
30617 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
30618 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
30619 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
30620 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
30621 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
30622 (_dl_next_ld_env_entry, _dl_important_hwcaps)
30623 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
30624 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
30625 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
30626 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
30627 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
30628 Likewise.
30629 (struct rtld_global_ro): Remove internal_function from the
30630 _dl_lookup_symbol_x member.
30631 (_dl_symbol_value): Remove. No longer defined anywhere.
30632 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
30633 internal_function.
30634 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30635 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
30636 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
30637 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
30638 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
30639 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
30640 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
30641 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
30642 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
30643 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
30644 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30645 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
30646
30647 2017-08-31 Florian Weimer <fweimer@redhat.com>
30648
30649 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
30650 Remove internal_function.
30651 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30652 Likewise.
30653 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30654 Likewise.
30655
30656 2017-08-31 Florian Weimer <fweimer@redhat.com>
30657
30658 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
30659 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
30660 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
30661
30662 2017-08-31 Florian Weimer <fweimer@redhat.com>
30663
30664 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
30665 (__gai_enqueue_request): Remove internal_function.
30666 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
30667 (__gai_remove_request, __gai_notify, __gai_notify_only)
30668 (__gai_sigqueue): Likewise.
30669 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
30670 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
30671 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
30672 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
30673 Likewise.
30674
30675 2017-08-31 Florian Weimer <fweimer@redhat.com>
30676
30677 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
30678 * include/dirent.h (__opendirat, __getdents, __getdents64)
30679 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
30680 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
30681 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30682 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
30683 Likewise.
30684 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
30685
30686 2017-08-31 Florian Weimer <fweimer@redhat.com>
30687
30688 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
30689 internal_function.
30690 (GETCWD_RETURN_TYPE): Likewise.
30691
30692 2017-08-31 Florian Weimer <fweimer@redhat.com>
30693
30694 * include/time.h (__tz_compute, __strptime_internal): Remove
30695 internal_function.
30696 * time/strptime_l.c (__strptime_internal): Likewise.
30697 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
30698
30699 2017-08-31 Florian Weimer <fweimer@redhat.com>
30700
30701 * iconv/gconv.c (__gconv): Remove internal_function.
30702 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
30703 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
30704 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
30705 (__gconv_release_cache): Likewise.
30706 * iconv/gconv_close.c (__gconv_close): Likewise.
30707 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
30708 (read_conf_file, __gconv_get_path): Likewise.
30709 * iconv/gconv_db.c (derivation_lookup, add_derivation)
30710 (__gconv_release_step, gen_steps, increment_counter)
30711 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
30712 (__gconv_close_transform, free_modules_db): Likewise.
30713 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
30714 Likewise.
30715 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
30716 (__gconv_find_transform, __gconv_lookup_cache)
30717 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
30718 (__gconv_close_transform, __gconv_release_cache)
30719 (__gconv_loaded_object, __gconv_release_shlib)
30720 (__gconv_compare_alias): Likewise.
30721 * iconv/gconv_open.c (__gconv_open): Likewise.
30722 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
30723 * iconv/iconvconfig.c (add_module): Likewise.
30724 * intl/dcigettext.c (plural_lookup, guess_category_value)
30725 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
30726 * intl/eval-plural.h (plural_eval): Likewise.
30727 * intl/finddomain.c (_nl_find_domain): Likewise.
30728 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
30729 (_nl_load_domain, _nl_find_msg): Likewise.
30730 (internal_function): Remove definition.
30731 * intl/loadinfo.h (internal_function): Likewise.
30732 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
30733 internal_function.
30734 * intl/localealias.c (internal_function): Remove definition.
30735 (read_alias_file): Remove internal_function.
30736 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
30737 * intl/plural-exp.h (internal_function): Remove definition.
30738 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
30739 internal_function.
30740 * intl/plural.c: Regenerate.
30741 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
30742 * locale/coll-lookup.c (__collidx_table_lookup)
30743 (__collseq_table_lookup): Likewise.
30744 * locale/coll-lookup.h (__collidx_table_lookup)
30745 (__collseq_table_lookup): Likewise.
30746 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30747 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30748 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30749 (_nl_unload_locale): Likewise.
30750 * locale/localeinfo.h (struct __locale_data): Remove
30751 internal_function from cleanup member.
30752 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30753 (_nl_remove_locale, _nl_load_locale_from_archive)
30754 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30755 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30756 (_nl_cleanup_time): Remove internal_function.
30757 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30758 (_nl_parse_alt_digit): Likewise.
30759 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30760 (_nl_select_era_entry): Likewise.
30761 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30762 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30763 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30764 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30765 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30766
30767 2017-08-31 Florian Weimer <fweimer@redhat.com>
30768
30769 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30770 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30771 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30772 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30773 Likewise.
30774 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30775 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30776 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30777 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30778 Likewise.
30779 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30780
30781 2017-08-31 Florian Weimer <fweimer@redhat.com>
30782
30783 * misc/getttyent.c (skip, value): Remove internal_function.
30784 * misc/syslog.c (openlog_internal): Likewise.
30785 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30786
30787 2017-08-31 Florian Weimer <fweimer@redhat.com>
30788
30789 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30790 (__nss_rewrite_field): Remove internal_function.
30791 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30792 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30793 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30794 * nss/nsswitch.c (nss_parse_file, nss_getline)
30795 (nss_parse_service_list, nss_new_service): Likewise.
30796 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30797 * nss/valid_field.c (__nss_valid_field): Likewise.
30798 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30799
30800 2017-08-31 Florian Weimer <fweimer@redhat.com>
30801
30802 * malloc/arena.c (__malloc_fork_lock_parent)
30803 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30804 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30805 internal_function from defintions.
30806 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30807 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30808 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30809 internal_function from declarations.
30810 * malloc/malloc.c (internal_function): Do not define.
30811 (mem2mem_check): Remove internal_function from declaration.
30812 (munmap_chunk, mremap_chunk): Remove internal_function.
30813 * malloc/mtrace.c (tr_where): Likewise.
30814
30815 2017-08-31 Florian Weimer <fweimer@redhat.com>
30816
30817 * include/rpc/pmap_clnt.h (__get_socket): Remove
30818 internal_function.
30819 * sunrpc/auth_des.c (synchronize): Likewise.
30820 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30821 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30822 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30823 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30824 (key_call): Likewise.
30825 * sunrpc/pm_getport.c (__get_socket): Likewise.
30826 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30827 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30828 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30829 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30830 (invalidate): Likewise.
30831 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30832 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30833 (set_input_fragment, get_input_bytes): Likewise.
30834
30835 2017-08-31 Florian Weimer <fweimer@redhat.com>
30836
30837 * malloc/malloc.c (_int_free): Remove locked variable and related
30838 asserts.
30839
30840 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
30841
30842 [BZ #22051]
30843 * Makerules (build-module-helper-objlist): Filter out
30844 $(elf-objpfx)sofini.os.
30845 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30846 needed.
30847
30848 2017-08-31 Florian Weimer <fweimer@redhat.com>
30849
30850 * libio/fcloseall.c: Assume weak_alias is defined.
30851 * libio/feof.c: Likewise.
30852 * libio/fileno.c: Likewise.
30853 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30854 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30855 definitions.
30856 (_IO_file_open): Call __open directly.
30857 (_IO_new_file_sync): Assume ESPIPE is defined.
30858 (_IO_file_seekoff_maybe_mmap): Call __read directly.
30859 (_IO_new_file_write): Call __write directly.
30860 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30861 * libio/ftello64.c (__ftello64): Assume EIO is defined.
30862 * libio/genops.c: Assume _LIBC is defined.
30863 (save_for_backup): Remove internal_function.
30864 * libio/getc.c: Assume weak_alias is defined.
30865 * libio/getwc.c: Likewise.
30866 * libio/iofclose.c: Assume _LIBC is defined.
30867 * libio/iofdopen.c: Likewise.
30868 (_IO_fcntl): Remove macro definition.
30869 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30870 Call __fcntl directly.
30871 * libio/iofflush.c: Assume weak_alias is defined.
30872 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30873 defined.
30874 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30875 * libio/iofgets.c: Likewise.
30876 * libio/iofopen.c: Assume _LIBC is defined.
30877 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30878 * libio/iofputs.c: Assume weak_alias is defined.
30879 * libio/iofread.c: Likewise.
30880 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30881 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30882 * libio/ioftell.c: Assume weak_alias is defined.
30883 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30884 * libio/iofwide.c: Assume _LIBC is defined.
30885 (_IO_fwide): Drop SHARED conditional because it is implied by
30886 SHLIB_COMPAT.
30887 * libio/iofwrite.c: Assume weak_alias is defined.
30888 * libio/iogetdelim.c: Likewise.
30889 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30890 * libio/iogetwline.c (wmemcpy): Remove macro definition.
30891 (_IO_getwline): Call __wmemcpy directly.
30892 * libio/iopopen.c: Assume _LIBC is defined.
30893 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30894 (_IO_close): Remove macro definitions.
30895 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30896 _exit directly.
30897 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30898 directly.
30899 * libio/ioputs.c: Assume weak_alias is defined.
30900 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30901 * libio/iosetbuffer.c: Assume weak_alias is defined.
30902 * libio/iosetvbuf.c: Likewise.
30903 * libio/ioungetc.c: Likewise.
30904 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30905 libc_hidden_def, libc_hidden_weak, NULL are defined.
30906 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30907 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30908 defined.
30909 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30910 definitions.
30911 (_IO_old_file_init_internal): Drop SHARED conditional because it
30912 is implied by SHLIB_COMPAT.
30913 (_IO_old_file_fopen): Call __open directly.
30914 (_IO_old_file_sync): Assume ESPIPE is defined.
30915 (_IO_old_file_write): Call __write directly.
30916 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30917 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30918 Call __fcntl directly.
30919 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30920 (_IO_old_fgetpos): Assume EIO is defined.
30921 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30922 (_IO_old_fgetpos64): Assume EIO is defined.
30923 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30924 (_IO_old_fsetpos): Assume EIO is defined.
30925 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30926 (_IO_old_fsetpos64): Assume EIO is defined.
30927 * libio/oldiopopen.c: Assume _LIBC is defined.
30928 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30929 (_IO_close): Remove macro definitions.
30930 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30931 directly.
30932 (_IO_old_proc_close): Call __close, __waitpid directly.
30933 * libio/put.c: Assume weak_alias is defined.
30934 * libio/stdfiles.c: Assume _LIBC is defined.
30935 * libio/stdio.c: Likewise.
30936 * libio/wfileops.c: Likewise.
30937 (_IO_wfile_sync): Assume ESPIPE is defined.
30938 * libio/wgenops.c: Assume _LIBC is defined.
30939 (save_for_wbackup): Remove internal_function.
30940
30941 2017-08-31 Florian Weimer <fweimer@redhat.com>
30942
30943 * malloc/malloc.c (top_check): Change return type to void. Remove
30944 internal_function.
30945 * malloc/hooks.c (top_check): Likewise.
30946 (malloc_check, realloc_check, memalign_check): Adjust.
30947
30948 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30949
30950 [BZ #21457]
30951 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30952 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30953 sigcontext and namespace requirements.
30954 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30955 * sysdeps/m68k/sys/ucontext.h: Likewise.
30956 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30957 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30958 <bits/sigcontext.h>.
30959 (__ctx): Define earlier.
30960 (mcontext_t): Define structure contents rather than using struct
30961 sigcontext.
30962 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30963 __glibc_reserved1 instead of __reserved.
30964 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30965 <bits/sigcontext.h>.
30966 (__ctx): Define earlier.
30967 (mcontext_t): Define structure contents rather than using struct
30968 sigcontext.
30969 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30970 mcontext_t instead of struct sigcontext.
30971 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30972 <bits/sigcontext.h>.
30973 (__ctx): Define earlier.
30974 (mcontext_t): Define structure contents rather than using struct
30975 sigcontext.
30976 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30977 <bits/sigcontext.h>.
30978 (__ctx): Define earlier.
30979 (mcontext_t): Define structure contents rather than using struct
30980 sigcontext.
30981 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30982 mcontext_t instead of struct sigcontext.
30983 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30984 mcontext_t instead of struct sigcontext.
30985 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30986 <bits/sigcontext.h>.
30987 (__ctx): New macro.
30988 (struct __ia64_fpreg_mcontext): New type.
30989 (mcontext_t): Define structure contents rather than using struct
30990 sigcontext.
30991 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30992 (uc_sigmask): Define using __ctx.
30993 (uc_stack): Likewise.
30994 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30995 <bits/sigcontext.h>.
30996 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30997 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30998 <bits/sigcontext.h>.
30999 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31000 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31001 <bits/sigcontext.h>.
31002 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31003 <bits/sigcontext.h>.
31004 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31005 <bits/sigcontext.h>.
31006 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31007 <bits/sigcontext.h>.
31008 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31009 <bits/sigcontext.h>.
31010 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31011 <bits/sigcontext.h>.
31012 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31013 <bits/sigcontext.h>.
31014 (__ctx): Define earlier.
31015 (mcontext_t): Define structure contents rather than using struct
31016 sigcontext.
31017 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31018 <bits/sigcontext.h>. Include <bits/types.h>.
31019 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31020 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31021 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31022 (test-xfail-UNIX98/signal.h/conform): Likewise.
31023 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31024 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31025 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31026 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31027 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31028 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31029 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31030 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31031 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31032
31033 2017-08-30 Florian Weimer <fweimer@redhat.com>
31034
31035 * malloc/dynarray_emplace_enlarge.c
31036 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31037 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31038 * malloc/tst-dynarray.c (test_long_overflow): New function.
31039 (do_test): Call it.
31040
31041 2017-08-30 Florian Weimer <fweimer@redhat.com>
31042
31043 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31044 (set_arena_corrupt): Remove definitions.
31045 (mtrim): Do not check for corrupt arena.
31046 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31047 Likewise.
31048
31049 2017-08-30 Florian Weimer <fweimer@redhat.com>
31050
31051 [BZ #21754]
31052 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31053 check_action.
31054 (ptmalloc_init): Do not set or use check_action.
31055 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31056 call to malloc_printerr. Remove return statement.
31057 (free_check): Likewise. Remove arena unlock.
31058 (top_check): Update comment. Adjust call to malloc_printerr.
31059 Remove heap repair code.
31060 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31061 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31062 (sysmalloc): Adjust call to malloc_printerr.
31063 (munmap_chunk, __libc_realloc): Likewise. Remove return
31064 statement.
31065 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31066 Remove errout label and corresponding gotos.
31067 (_int_free): Likewise. Remove arena unlock.
31068 (do_set_mallopt_check): Do not set check_action.
31069 (malloc_printerr): Adjust parameter list. Do not mark arena as
31070 corrupt.
31071 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31072 comment.
31073 * manual/probes.texi (Memory Allocation Probes): Remove
31074 memory_mallopt_check_action.
31075
31076 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31077
31078 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31079 Use pointer to uint64_t instead of long int for sp.
31080
31081 2017-08-30 Florian Weimer <fweimer@redhat.com>
31082
31083 [BZ #21754]
31084 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31085 without printing a backtrace. Do not leak any information in the
31086 error message.
31087 * manual/memory.texi (Heap Consistency Checking): Update.
31088 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31089
31090 2017-08-30 Florian Weimer <fweimer@redhat.com>
31091
31092 Do not scale NPTL tests with available number of CPUs.
31093 * nptl/tst-cond16.c (count): Set to constant value of 8.
31094 * nptl/tst-cond18.c (count): Likewise.
31095
31096 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31097
31098 [BZ #22035]
31099 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31100 Define to take a second argument that is a macro that
31101 concatentates a suffix, not the suffix itself.
31102 (__CONCAT_d): New macro.
31103 (__CONCAT_f): Likewise.
31104 (__CONCAT_l): Likewise.
31105
31106 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31107
31108 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31109 by child.
31110
31111 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31112 Aurelien Jarno <aurelien@aurel32.net>
31113 Maciej W. Rozycki <macro@imgtec.com>
31114
31115 [BZ #21956]
31116 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31117 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31118 `mips16-syscall6' and `mips16-syscall7'.
31119 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31120 (CFLAGS-mips16-syscall7.c): Remove.
31121 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31122 Remove `__mips16_syscall5', `__mips16_syscall6' and
31123 `__mips16_syscall7'.
31124 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31125 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31126 `__mips_syscall_return'.
31127 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31128 (__mips16_syscall1): Likewise.
31129 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31130 (__mips16_syscall2): Likewise.
31131 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31132 (__mips16_syscall3): Likewise.
31133 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31134 (__mips16_syscall4): Likewise.
31135 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31136 Remove.
31137 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31138 Remove.
31139 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31140 Remove.
31141 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31142 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31143 `__mips16_syscall5'. Remove prototype.
31144 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31145 `__mips16_syscall6'. Remove prototype.
31146 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31147 `__mips16_syscall7'. Remove prototype.
31148 (__nomips16, __mips16_syscall_return): Move to...
31149 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31150 (__nomips16, __mips_syscall_return): ... here.
31151 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31152 `__mips16_syscall_return' to `__mips_syscall_return'.
31153 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31154 `internal_syscall##nr'.
31155 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31156 `internal_syscall##nr'.
31157 (FORCE_FRAME_POINTER): Remove.
31158 (__mips_syscall5): New prototype.
31159 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31160 (__mips_syscall6): New prototype.
31161 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31162 (__mips_syscall7): New prototype.
31163 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31164 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31165 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31166 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31167 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31168 (sysdep_routines): Add libc-do-syscall.
31169 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31170 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31171
31172 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31173
31174 [BZ #21672]
31175 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31176 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31177 (advise_stack_range): New function.
31178 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31179 stack non required to advise_stack_range at allocatestack.c
31180
31181 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31182
31183 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31184
31185 2017-08-29 Florian Weimer <fweimer@redhat.com>
31186
31187 [BZ #22026]
31188 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31189 __end_fct. Mangle __end_fct after setting it to NULL.
31190 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31191 (modules-names, modules-names-tests): Add
31192 tst-gconv-init-failure-mod.
31193 (gconv-modules): New target.
31194 (tst-gconv-init-failure-mod.so): Link against libsupport.
31195 (tst-gconv-init-failure): Depend on gconv-modules,
31196 tst-gconv-init-failure-mod.so.
31197 * iconv/tst-gconv-init-failure-mod.c: New file.
31198 * iconv/tst-gconv-init-failure.c: Likewise.
31199 * iconv/test-gconv-modules: Likewise.
31200
31201 2017-08-29 Florian Weimer <fweimer@redhat.com>
31202
31203 [BZ #22025]
31204 * iconv/gconv_db.c (free_derivation): Remove redundant
31205 parentheses.
31206 (gen_steps): Unconditionally mangle __btowc_fct after
31207 initialization.
31208 (increment_counter): Likewise. Do not call init_fct for internal
31209 modules.
31210
31211 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31212
31213 [BZ #22028]
31214 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31215 (_MSUF_): Remove macro.
31216 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31217 Likewise.
31218 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31219 (__REDIRFROM_X): New macro.
31220 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31221 Likewise.
31222 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31223 (__REDIRTO_X): Likewise.
31224 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31225 arguments.
31226 (__MATH_REDIRCALL_2): Likewise.
31227 (__MATH_REDIRCALL_INTERNAL): Likewise.
31228 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31229 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31230 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31231 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31232 * math/test-finite-macros.c: New file.
31233 * math/Makefile (tests): Add test-finite-macros.
31234 (CFLAGS-test-finite-macros.c): New variable.
31235
31236 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31237 Jeff Law <law@redhat.com>
31238
31239 [BZ #22025]
31240 Mangle NULL pointers in iconv/gconv.
31241 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31242 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31243 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31244 is non-NULL before demangling the end_fct. Check for NULL
31245 end_fct after demangling.
31246 (__gconv_release_step): Demangle the end_fct before checking
31247 it for NULL. Remove assert on __shlibc_handle != NULL.
31248 (gen_steps): Don't check btowc_fct for NULL before mangling.
31249 Demangle init_fct before checking for NULL.
31250 (increment_counter): Likewise.
31251 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31252 end_fct for NULL before mangling.
31253 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31254 for NULL.
31255
31256 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31257
31258 [BZ #21971]
31259 * locale/iso-639.def: add Morisyen.
31260
31261 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31262
31263 [BZ #21930]
31264 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31265 (iszero): New C++ implementation that does not use
31266 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31267 signaling nans are enabled, since __builtin_types_compatible_p
31268 is a C-only feature.
31269 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31270 defined, include ieee754_float128.h for access to the union and
31271 member ieee854_float128.ieee.
31272 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31273 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31274 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31275 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31276 options of test-math-zero on powerpc64le.
31277
31278 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31279
31280 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31281 Change double to float.
31282
31283 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31284
31285 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31286 unconditional.
31287 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31288 conditional code; define contents only for [LIBM_SVID_COMPAT].
31289
31290 2017-08-28 Florian Weimer <fweimer@redhat.com>
31291
31292 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31293 (abi-lp64_be-options): Remove.
31294 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31295 (abi-hard-options): Likewise.
31296 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31297 (abi-o32_hard-options, abi-o32_soft_2008-options)
31298 (abi-o32_hard_2008-options, abi-n32_soft-options)
31299 (abi-n32_hard-options, abi-n32_soft_2008-options)
31300 (abi-n32_hard_2008-options, abi-n64_soft-options)
31301 (abi-n64_hard-options, abi-n64_soft_2008-options)
31302 (abi-n64_hard_2008-options): Likewise.
31303 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31304 (abi-64-v1-options, abi-64-v2-options): Likewise.
31305 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31306 (abi-64-options): Likewise.
31307 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31308 (abi-64-options): Likewise.
31309 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31310 (abi-64-options): Likewise.
31311 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31312 (abi-64-options, abi-x32-options): Likewise.
31313
31314 2017-08-28 Florian Weimer <fweimer@redhat.com>
31315
31316 Store supported list of SYS_* system calls in the source tree.
31317 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31318 (bits/syscall.h): Generate from list file.
31319 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31320 [$(subdir) = misc] (tests): Add tst-syscall-list.
31321 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31322 [$(subdir) = misc] (tst-syscall-list-macros.list)
31323 [$(subdir) = misc] (tst-syscall-list-nr.list)
31324 (tst-syscall-list-sys.list): Helper targets for new
31325 tst-syscall-list test.
31326 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31327 tst-syscall-list.sh.
31328 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31329 target. Do not include bits/syscall.d.
31330 [$(subdir) = misc] (generated): Do not update.
31331 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31332 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31333 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31334 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31335
31336 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31337
31338 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31339 (tst-cxa_atexit, tst-on_exit): Likewise.
31340 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31341 tst-cxa_atexit, and tst-on_exit.
31342 * stdlib/tst-atexit-common.c: New file.
31343 * stdlib/tst-atexit.c: New file.
31344 * stdlib/tst-at_quick_exit.c: New file.
31345 * stdlib/tst-cxa_atexit.c: New file.
31346 * stdlib/tst-on_exit.c: New file.
31347
31348 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31349
31350 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31351 * mach/stack_chk_fail_local.c: New file.
31352 * hurd/stack_chk_fail_local.c: New file.
31353 * mach/Machrules ($(interface-library)-routines): Add
31354 stack_chk_fail_local.
31355 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31356 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31357 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31358 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31359 * hurd/Makefile (CFLAGS-hurdstartup.o,
31360 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31361
31362 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31363
31364 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31365 (index_cpu_*, index_arch_*): Removed.
31366
31367 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31368
31369 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31370 Use uint64_t instead of unsigned long.
31371
31372 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31373
31374 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31375 [__HAVE_DISTINCT_FLOAT128].
31376
31377 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31378 of <bits/math-finite.h>.
31379 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31380 inclusion of <bits/math-finite.h>.
31381 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31382 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31383 __NO_LONG_DOUBLE_MATH].
31384 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31385 (__MATH_REDIRCALL_2): Likewise.
31386 (__MATH_REDIRCALL_INTERNAL): Likewise.
31387 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31388 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31389 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31390
31391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31392 Remove file.
31393 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31394 Likewise.
31395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31396 Likewise.
31397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31398 Likewise.
31399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
31400 Likewise.
31401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
31402 Likewise.
31403 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31404 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31405 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31406 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
31408 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
31409 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
31410 w_sqrtf_compat-ppc32.
31411
31412 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31413
31414 * math/math.h [defined __cplusplus] (issignaling): In the long
31415 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
31416 is not defined. Call __issignaling, otherwise.
31417
31418 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31419
31420 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
31421 syscall definitions and replace __builtin_expect with __glibc_likely.
31422 * sysdeps/unix/syscall-template.S: Update comment about cancellable
31423 syscall.
31424 (SYSCALL_CANCELLABLE): Removedefinition
31425 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
31426 definition.
31427 (PSEUDO_END): Likewise.
31428 [IS_IN (libpthread)] (CENABLE): Likewise.
31429 [IS_IN (libpthread)] (CDISABLE): Likewise.
31430 [IS_IN (libc)] (CENABLE): Likewise.
31431 [IS_IN (libc)] (CENABLE): Likewise.
31432 [IS_IN (librt)] (CDISABLE): Likewise.
31433 [IS_IN (librt)] (CDISABLE): Likewise.
31434 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31435 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
31436 definition.
31437 (PSEUDO_END): Likewise.
31438 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
31439 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
31440 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31441 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31442 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31443 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31444 (CENABLE): Likewise.
31445 (CDISABLE): Likewise.
31446 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31447 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
31448 defintion.
31449 (PSEUDO_END): Likewise.
31450 [IS_IN (libpthread)] (CENABLE): Likewise.
31451 [IS_IN (libpthread)] (CDISABLE): Likewise.
31452 [IS_IN (libc)] (CENABLE): Likewise.
31453 [IS_IN (libc)] (CENABLE): Likewise.
31454 [IS_IN (librt)] (CDISABLE): Likewise.
31455 [IS_IN (librt)] (CDISABLE): Likewise.
31456 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31457 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
31458 definition.
31459 (PSEUDO_END): Likewise.
31460 [IS_IN (libpthread)] (CENABLE): Likewise.
31461 [IS_IN (libpthread)] (CDISABLE): Likewise.
31462 [IS_IN (libc)] (CENABLE): Likewise.
31463 [IS_IN (libc)] (CENABLE): Likewise.
31464 [IS_IN (librt)] (CDISABLE): Likewise.
31465 [IS_IN (librt)] (CDISABLE): Likewise.
31466 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31467 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
31468 definition.
31469 (PSEUDO_END): Likewise.
31470 [IS_IN (libpthread)] (CENABLE): Likewise.
31471 [IS_IN (libpthread)] (CDISABLE): Likewise.
31472 [IS_IN (libc)] (CENABLE): Likewise.
31473 [IS_IN (libc)] (CENABLE): Likewise.
31474 [IS_IN (librt)] (CDISABLE): Likewise.
31475 [IS_IN (librt)] (CDISABLE): Likewise.
31476 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31477 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
31478 definition.
31479 (PSEUDO_END): Likewise.
31480 [IS_IN (libpthread)] (CENABLE): Likewise.
31481 [IS_IN (libpthread)] (CDISABLE): Likewise.
31482 [IS_IN (libc)] (CENABLE): Likewise.
31483 [IS_IN (libc)] (CENABLE): Likewise.
31484 [IS_IN (librt)] (CDISABLE): Likewise.
31485 [IS_IN (librt)] (CDISABLE): Likewise.
31486 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31487 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
31488 definition.
31489 (PSEUDO_END): Likewise.
31490 [IS_IN (libpthread)] (CENABLE): Likewise.
31491 [IS_IN (libpthread)] (CDISABLE): Likewise.
31492 [IS_IN (libc)] (CENABLE): Likewise.
31493 [IS_IN (libc)] (CENABLE): Likewise.
31494 [IS_IN (librt)] (CDISABLE): Likewise.
31495 [IS_IN (librt)] (CDISABLE): Likewise.
31496 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31497 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
31498 definition.
31499 (PSEUDO_END): Likewise.
31500 [IS_IN (libpthread)] (CENABLE): Likewise.
31501 [IS_IN (libpthread)] (CDISABLE): Likewise.
31502 [IS_IN (libc)] (CENABLE): Likewise.
31503 [IS_IN (libc)] (CENABLE): Likewise.
31504 [IS_IN (librt)] (CDISABLE): Likewise.
31505 [IS_IN (librt)] (CDISABLE): Likewise.
31506 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31507 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
31508 Remove definition.
31509 (PSEUDO_END): Likewise.
31510 [IS_IN (libpthread)] (CENABLE): Likewise.
31511 [IS_IN (libpthread)] (CDISABLE): Likewise.
31512 [IS_IN (libc)] (CENABLE): Likewise.
31513 [IS_IN (libc)] (CENABLE): Likewise.
31514 [IS_IN (librt)] (CDISABLE): Likewise.
31515 [IS_IN (librt)] (CDISABLE): Likewise.
31516 (SINGLE_THREAD_P): Likewise.
31517 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
31518 definition.
31519 (PSEUDO_END): Likewise.
31520 [IS_IN (libpthread)] (CENABLE): Likewise.
31521 [IS_IN (libpthread)] (CDISABLE): Likewise.
31522 [IS_IN (libc)] (CENABLE): Likewise.
31523 [IS_IN (libc)] (CENABLE): Likewise.
31524 [IS_IN (librt)] (CDISABLE): Likewise.
31525 [IS_IN (librt)] (CDISABLE): Likewise.
31526 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31527 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
31528 definition.
31529 (PSEUDO_END): Likewise.
31530 [IS_IN (libpthread)] (CENABLE): Likewise.
31531 [IS_IN (libpthread)] (CDISABLE): Likewise.
31532 [IS_IN (libc)] (CENABLE): Likewise.
31533 [IS_IN (libc)] (CENABLE): Likewise.
31534 [IS_IN (librt)] (CDISABLE): Likewise.
31535 [IS_IN (librt)] (CDISABLE): Likewise.
31536 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31537 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
31538 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31539 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
31540 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
31541 definition.
31542 (PSEUDO_END): Likewise.
31543 [IS_IN (libpthread)] (CENABLE): Likewise.
31544 [IS_IN (libpthread)] (CDISABLE): Likewise.
31545 [IS_IN (libc)] (CENABLE): Likewise.
31546 [IS_IN (libc)] (CENABLE): Likewise.
31547 [IS_IN (librt)] (CDISABLE): Likewise.
31548 [IS_IN (librt)] (CDISABLE): Likewise.
31549 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31550 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
31551 definition.
31552 (PSEUDO_END): Likewise.
31553 [IS_IN (libpthread)] (CENABLE): Likewise.
31554 [IS_IN (libpthread)] (CDISABLE): Likewise.
31555 [IS_IN (libc)] (CENABLE): Likewise.
31556 [IS_IN (libc)] (CENABLE): Likewise.
31557 [IS_IN (librt)] (CDISABLE): Likewise.
31558 [IS_IN (librt)] (CDISABLE): Likewise.
31559 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31560 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
31561 definition.
31562 (PSEUDO_END): Likewise.
31563 [IS_IN (libpthread)] (CENABLE): Likewise.
31564 [IS_IN (libpthread)] (CDISABLE): Likewise.
31565 [IS_IN (libc)] (CENABLE): Likewise.
31566 [IS_IN (libc)] (CENABLE): Likewise.
31567 [IS_IN (librt)] (CDISABLE): Likewise.
31568 [IS_IN (librt)] (CDISABLE): Likewise.
31569 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31570 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
31571 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31572 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
31573 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
31574 definition.
31575 (PSEUDO_END): Likewise.
31576 [IS_IN (libpthread)] (CENABLE): Likewise.
31577 [IS_IN (libpthread)] (CDISABLE): Likewise.
31578 [IS_IN (libc)] (CENABLE): Likewise.
31579 [IS_IN (libc)] (CENABLE): Likewise.
31580 [IS_IN (librt)] (CDISABLE): Likewise.
31581 [IS_IN (librt)] (CDISABLE): Likewise.
31582 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31583 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
31584 definition.
31585 (PSEUDO_END): Likewise.
31586 [IS_IN (libpthread)] (CENABLE): Likewise.
31587 [IS_IN (libpthread)] (CDISABLE): Likewise.
31588 [IS_IN (libc)] (CENABLE): Likewise.
31589 [IS_IN (libc)] (CENABLE): Likewise.
31590 [IS_IN (librt)] (CDISABLE): Likewise.
31591 [IS_IN (librt)] (CDISABLE): Likewise.
31592 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31593
31594 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
31595
31596 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
31597
31598 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31599
31600 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
31601
31602 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31603
31604 [BZ #21982]
31605 * string/stratcliff.c (do_test): Declare size, nchars, inner,
31606 middle and outer with size_t instead of int. Repleace %d and
31607 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
31608 "MAX (outer, nchars - 64)" to support unsigned outer and
31609 nchars. Also exit loop when outer == 0.
31610
31611 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31612
31613 * include/fcntl.h (__fcntl_nocancel): Remove definition.
31614 * include/signal.h (__sigsuspend_nocancel): Likewise.
31615 * include/time.h (__nanosleep_nocancel): Likewise.
31616 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
31617 * login/utmp_file.c: Include non cancellable syscall header.
31618 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
31619 prototype.
31620
31621 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31622
31623 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
31624 .byte sequences with AVX512F instructions.
31625 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
31626 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
31627 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
31629 Likewise.
31630 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
31631 Likewise.
31632
31633 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
31634 Steve Ellcey <sellcey@cavium.com>
31635
31636 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
31637 Use PTR_REG macro in cmp instruction.
31638
31639 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31640
31641 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
31642 Change the return type of the ifunc resolver to match the return
31643 type of the target function.
31644
31645 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31646
31647 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
31648 (preadv64): Likewise.
31649 (pwrite64(: Likewise.
31650 (pwritev64): Likewise.
31651
31652 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31653 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
31654 (LOAD_ARGS_0): Likewise.
31655 (LOAD_ARGS_1): Likewise.
31656 (LOAD_ARGS_2): Likewise.
31657 (LOAD_ARGS_3): Likewise.
31658 (LOAD_ARGS_4): Likewise.
31659 (LOAD_ARGS_5): Likewise.
31660 (LOAD_ARGS_6): Likewise.
31661 (LOAD_REGS_0): Likewise.
31662 (LOAD_REGS_1): Likewise.
31663 (LOAD_REGS_2): Likewise.
31664 (LOAD_REGS_3): Likewise.
31665 (LOAD_REGS_4): Likewise.
31666 (LOAD_REGS_5): Likewise.
31667 (LOAD_REGS_6): Likewise.
31668 (ASM_ARGS_0): Likewise.
31669 (ASM_ARGS_1): Likewise.
31670 (ASM_ARGS_2): Likewise.
31671 (ASM_ARGS_3): Likewise.
31672 (ASM_ARGS_4): Likewise.
31673 (ASM_ARGS_5): Likewise.
31674 (ASM_ARGS_6): Likewise.
31675 (LOAD_ARGS_TYPES_1): Likewise.
31676 (LOAD_ARGS_TYPES_2): Likewise.
31677 (LOAD_ARGS_TYPES_3): Likewise.
31678 (LOAD_ARGS_TYPES_4): Likewise.
31679 (LOAD_ARGS_TYPES_5): Likewise.
31680 (LOAD_ARGS_TYPES_6): Likewise.
31681 (LOAD_REGS_TYPES_1): Likewise.
31682 (LOAD_REGS_TYPES_2): Likewise.
31683 (LOAD_REGS_TYPES_3): Likewise.
31684 (LOAD_REGS_TYPES_4): Likewise.
31685 (LOAD_REGS_TYPES_5): Likewise.
31686 (LOAD_REGS_TYPES_6): Likewise.
31687 (TYPEFY): New define.
31688 (ARGIFY): Likewise.
31689 (internal_syscall0): Likewise.
31690 (internal_syscall1): Likewise.
31691 (internal_syscall2): Likewise.
31692 (internal_syscall3): Likewise.
31693 (internal_syscall4): Likewise.
31694 (internal_syscall5): Likewise.
31695 (internal_syscall6): Likewise.
31696 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
31697 (INTERNAL_SYSCALL_NCS): Remove define.
31698 (internal_syscall1): Add define.
31699
31700 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31701
31702 * math/w_remainder_compat.c: Remove duplicate inclusion of
31703 math-svid-compat.h.
31704 * math/w_remainderf_compat.c: Likewise.
31705 * math/w_remainderl_compat.c: Likewise.
31706
31707 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31708
31709 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31710
31711 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31712
31713 [BZ #21684]
31714 * math/tgmath.h (__floating_type): Simplify definitions.
31715 (__real_integer_type): New macro.
31716 (__complex_integer_type): Likewise.
31717 (__expr_is_real): Likewise.
31718 (__tgmath_real_type_sub): Update comment to describe handling of
31719 complex types.
31720 (__tgmath_complex_type_sub): New macro.
31721 (__tgmath_complex_type): Likewise.
31722 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31723 (__TGMATH_CF128): Use __expr_is_real.
31724 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
31725 __expr_is_real.
31726 (__TGMATH_BINARY_REAL_IMAG): Likewise.
31727 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
31728 * math/gen-tgmath-tests.py (Type.create_type): Create complex
31729 integer types.
31730
31731 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31732
31733 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
31734 macro.
31735 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
31736 alias.
31737 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
31738 Likewise.
31739
31740 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
31741 nanosleep_not_cancel with __nanosleep_nocancel.
31742 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
31743 (__nanosleep_nocancel): New macro.
31744 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
31745 function.
31746 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31747 macro.
31748 (__nanosleep_nocancel): New prototype.
31749
31750 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31751 pause_not_cancel with __pause_nocancel.
31752 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31753 (__pause_nocancel): New macro.
31754 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31755 macro.
31756 (__pause_nocancel): New prototype.
31757 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31758
31759 2017-08-22 Martin Sebor <msebor@redhat.com>
31760
31761 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31762 to return a pointer to the same type as the target function.
31763
31764 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31765
31766 [BZ #18822]
31767 [BZ #21986]
31768 * include/printf.h (__printf_fphex): Add attribute_hidden.
31769 (__guess_grouping): New prototype.
31770 * stdio-common/printf_fp.c (__guess_grouping): Removed.
31771 * stdio-common/reg-printf.c (__register_printf_specifier): Add
31772 libc_hidden_proto and libc_hidden_def.
31773 * stdlib/strfmon_l.c (__guess_grouping): Removed.
31774 (__vstrfmon_l): Remove the third argument passed to
31775 __guess_grouping.
31776
31777 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31778
31779 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31780 definition for issignaling that does not rely on __MATH_TG,
31781 since __MATH_TG uses __builtin_types_compatible_p, which is only
31782 available in C mode.
31783 (CFLAGS-test-math-issignaling.cc): New variable.
31784 * math/Makefile [CXX] (tests): Add test-math-issignaling.
31785 * math/test-math-issignaling.cc: New test for C++ implementation
31786 of type-generic issignaling.
31787 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31788 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31789 options of test-math-issignaling on powerpc64le.
31790
31791 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
31792
31793 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31794 building libc.a.
31795 (hidden_proto): Likewise.
31796 (hidden_tls_proto): Likewise.
31797 (__hidden_proto): Likewise.
31798
31799 2017-08-22 Florian Weimer <fweimer@redhat.com>
31800
31801 math: Statically link tests of internal functionality.
31802 * math/Makefile (tests): Remove atest-exp, atest-sincos,
31803 atest-exp2.
31804 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31805 (gmp-objs): Remove assignment.
31806 (atest-exp, atest-sincos, atest-exp2): Remove targets.
31807
31808 2017-08-22 Joseph Myers <joseph@codesourcery.com>
31809
31810 [BZ #21987]
31811 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31812 and copy to ...
31813 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31814 ... here.
31815 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31816 ... and here.
31817
31818 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31819 variable definitions above inclusion of ../Rules.
31820
31821 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31822
31823 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31824 case calling __builtin_unreachable.
31825
31826 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31827
31828 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31829 __waitpid_nocancel.
31830 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31831 (__waitpid_nocancel): New macro.
31832 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31833 macro.
31834 (__waitpid_nocancel): Replace macro with a function.
31835 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31836 function.
31837
31838 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31839 __fcntl_nocancel.
31840 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31841 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31842
31843 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31844 __writev_nocancel_nostatus.
31845 (write_call_graph): Likewise.
31846 (write_bb_counts): Likewise.
31847 * resolv/herror.c (herror): Likewise.
31848 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31849 macro.
31850 (__writev_nocancel_nostatus): New macro.
31851 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31852 Remove macro.
31853 (__writev_nocancel_nostatus): New function.
31854
31855 2017-08-21 Joseph Myers <joseph@codesourcery.com>
31856
31857 Revert:
31858 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31859
31860 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31861 building libc.a.
31862 (hidden_proto): Likewise.
31863 (hidden_tls_proto): Likewise.
31864 (__hidden_proto): Likewise.
31865
31866 [BZ #21973]
31867 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31868 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31870 Likewise.
31871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31872 Likewise.
31873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31874 Likewise.
31875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31876 Likewise.
31877 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31878 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31879 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31880 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31881 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31882 GLIBC_2.0 sqrtl symbol.
31883
31884 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31885 [__USE_MISC] (_LIB_VERSION): Likewise.
31886 [__USE_MISC] (struct exception): Likewise.
31887 [__USE_MISC] (matherr): Likewise.
31888 [__USE_MISC] (DOMAIN): Likewise.
31889 [__USE_MISC] (SING): Likewise.
31890 [__USE_MISC] (OVERFLOW): Likewise.
31891 [__USE_MISC] (UNDERFLOW): Likewise.
31892 [__USE_MISC] (TLOSS): Likewise.
31893 [__USE_MISC] (PLOSS): Likewise.
31894 [__USE_MISC] (HUGE): Likewise.
31895 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31896 * math/math-svid-compat.h: New file.
31897 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31898 and matherrl.
31899 * include/math.h [!_ISOMAC] (__matherr): Remove.
31900 * manual/arith.texi (FP Exceptions): Do not document matherr.
31901 * math/Makefile (tests): Change test-matherr to test-matherr-3.
31902 (tests-internal): New variable.
31903 (install-lib): Do not add libieee.a.
31904 (non-lib.a): Likewise.
31905 (extra-objs): Do not add libieee.a and ieee-math.o.
31906 (CPPFLAGS-s_lib_version.c): Remove variable.
31907 ($(objpfx)libieee.a): Remove rule.
31908 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31909 * math/ieee-math.c: Remove.
31910 * math/libm-test-support.c (matherr): Remove.
31911 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31912 and license notices. Include <math-svid-compat.h> and
31913 <shlib-compat.h>.
31914 (matherr): Undefine as macro. Use compat_symbol_reference.
31915 (_LIB_VERSION): Likewise.
31916 * math/test-matherr-2.c: New file.
31917 * math/test-matherr-3.c: Likewise.
31918 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31919 declaration.
31920 (__kernel_standard_f): Likewise.
31921 (__kernel_standard_l): Likewise.
31922 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31923 <math_private.h>. Include <math-svid-compat.h>.
31924 (_LIB_VERSION): Undefine as macro.
31925 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31926 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31927 [LIBM_SVID_COMPAT], use compat_symbol.
31928 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31929 <math_private.h>. Include <math-svid-compat.h>.
31930 (matherr): Undefine as macro.
31931 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31932 compat_symbol.
31933 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31934 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31935 compat_symbol_reference.
31936 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31937 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31938 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31939 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31940 (MATHERR_D): Remove declaration.
31941 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31942 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31943 [LIBM_BUILD] (pmatherrf): Likewise.
31944 [LIBM_BUILD] (pmatherr): Likewise.
31945 [LIBM_BUILD] (pmatherrl): Likewise.
31946 (DOMAIN): Likewise.
31947 (SING): Likewise.
31948 (OVERFLOW): Likewise.
31949 (UNDERFLOW): Likewise.
31950 (TLOSS): Likewise.
31951 (PLOSS): Likewise.
31952 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31953 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31954 compat_symbol.
31955 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31956 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31957 compat_symbol.
31958 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31959 * math/w_acos_compat.c: Likewise.
31960 * math/w_acosf_compat.c: Likewise.
31961 * math/w_acosh_compat.c: Likewise.
31962 * math/w_acoshf_compat.c: Likewise.
31963 * math/w_acoshl_compat.c: Likewise.
31964 * math/w_acosl_compat.c: Likewise.
31965 * math/w_asin_compat.c: Likewise.
31966 * math/w_asinf_compat.c: Likewise.
31967 * math/w_asinl_compat.c: Likewise.
31968 * math/w_atan2_compat.c: Likewise.
31969 * math/w_atan2f_compat.c: Likewise.
31970 * math/w_atan2l_compat.c: Likewise.
31971 * math/w_atanh_compat.c: Likewise.
31972 * math/w_atanhf_compat.c: Likewise.
31973 * math/w_atanhl_compat.c: Likewise.
31974 * math/w_cosh_compat.c: Likewise.
31975 * math/w_coshf_compat.c: Likewise.
31976 * math/w_coshl_compat.c: Likewise.
31977 * math/w_exp10_compat.c: Likewise.
31978 * math/w_exp10f_compat.c: Likewise.
31979 * math/w_exp10l_compat.c: Likewise.
31980 * math/w_exp2_compat.c: Likewise.
31981 * math/w_exp2f_compat.c: Likewise.
31982 * math/w_exp2l_compat.c: Likewise.
31983 * math/w_fmod_compat.c: Likewise.
31984 * math/w_fmodf_compat.c: Likewise.
31985 * math/w_fmodl_compat.c: Likewise.
31986 * math/w_hypot_compat.c: Likewise.
31987 * math/w_hypotf_compat.c: Likewise.
31988 * math/w_hypotl_compat.c: Likewise.
31989 * math/w_j0_compat.c: Likewise.
31990 * math/w_j0f_compat.c: Likewise.
31991 * math/w_j0l_compat.c: Likewise.
31992 * math/w_j1_compat.c: Likewise.
31993 * math/w_j1f_compat.c: Likewise.
31994 * math/w_j1l_compat.c: Likewise.
31995 * math/w_jn_compat.c: Likewise.
31996 * math/w_jnf_compat.c: Likewise.
31997 * math/w_jnl_compat.c: Likewise.
31998 * math/w_lgamma_main.c: Likewise.
31999 * math/w_lgamma_r_compat.c: Likewise.
32000 * math/w_lgammaf_main.c: Likewise.
32001 * math/w_lgammaf_r_compat.c: Likewise.
32002 * math/w_lgammal_main.c: Likewise.
32003 * math/w_lgammal_r_compat.c: Likewise.
32004 * math/w_log10_compat.c: Likewise.
32005 * math/w_log10f_compat.c: Likewise.
32006 * math/w_log10l_compat.c: Likewise.
32007 * math/w_log2_compat.c: Likewise.
32008 * math/w_log2f_compat.c: Likewise.
32009 * math/w_log2l_compat.c: Likewise.
32010 * math/w_log_compat.c: Likewise.
32011 * math/w_logf_compat.c: Likewise.
32012 * math/w_logl_compat.c: Likewise.
32013 * math/w_pow_compat.c: Likewise.
32014 * math/w_powf_compat.c: Likewise.
32015 * math/w_powl_compat.c: Likewise.
32016 * math/w_remainder_compat.c: Likewise.
32017 * math/w_remainderf_compat.c: Likewise.
32018 * math/w_remainderl_compat.c: Likewise.
32019 * math/w_scalb_compat.c: Likewise.
32020 * math/w_scalbf_compat.c: Likewise.
32021 * math/w_scalbl_compat.c: Likewise.
32022 * math/w_sinh_compat.c: Likewise.
32023 * math/w_sinhf_compat.c: Likewise.
32024 * math/w_sinhl_compat.c: Likewise.
32025 * math/w_sqrt_compat.c: Likewise.
32026 * math/w_sqrtf_compat.c: Likewise.
32027 * math/w_sqrtl_compat.c: Likewise.
32028 * math/w_tgamma_compat.c: Likewise.
32029 * math/w_tgammaf_compat.c: Likewise.
32030 * math/w_tgammal_compat.c: Likewise.
32031 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32032 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32033 * sysdeps/ieee754/k_standard.c: Likewise.
32034 * sysdeps/ieee754/k_standardf.c: Likewise.
32035 * sysdeps/ieee754/k_standardl.c: Likewise.
32036 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32037 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32038 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32039 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32040 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32041 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32042 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32043 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32044 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32046 Likewise.
32047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32048 Likewise.
32049 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32050 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32051 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32052 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32053
32054 2017-08-21 Florian Weimer <fweimer@redhat.com>
32055
32056 [BZ #21864]
32057 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32058 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32059 Move before inclusion of ../Rules.
32060
32061 2017-08-21 Florian Weimer <fweimer@redhat.com>
32062
32063 [BZ #21972]
32064 * assert/assert.h (assert): Use static_cast (bool) for C++.
32065 Use the ternary operator in the warning branch for GNU C.
32066 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32067 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32068 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32069 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32070 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32071
32072 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32073
32074 [BZ #18822]
32075 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32076 (__syscall_clock_gettime): Add attribute_hidden.
32077 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32078 (__start_context): Likewise.
32079
32080 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32081
32082 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32083 building libc.a.
32084 (hidden_proto): Likewise.
32085 (hidden_tls_proto): Likewise.
32086 (__hidden_proto): Likewise.
32087
32088 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32089
32090 * include/libc-symbols.h (attribute_hidden): Enable hidden
32091 visibility in libc.a compiled with PIE.
32092
32093 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32094
32095 [BZ #18822]
32096 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32097 Add attribute_hidden.
32098
32099 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32100
32101 [BZ #21864]
32102 * Makerules (all-nonlib): Add $(others-extras).
32103 * catgets/Makefile (others-extras): New.
32104 * elf/Makefile (others-extras): Likewise.
32105 * nss/Makefile (others-extras): Likewise.
32106
32107 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32108
32109 [BZ #18822]
32110 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32111 * elf/dl-open.c: Include <libc-internal.h>.
32112 (__libc_multiple_libcs): Removed.
32113 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32114 <hp-timing.h>.
32115 * include/libc-internal.h (__libc_multiple_libcs): New.
32116 * misc/sbrk.c: Include <libc-internal.h>.
32117 (__libc_multiple_libcs): Removed.
32118
32119 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 [BZ #18822]
32122 * grp/initgroups.c (__nss_group_database): Removed.
32123 (__nss_initgroups_database): Likewise.
32124 * nscd/gai.c (__nss_hosts_database): Likewise.
32125 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32126 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32127 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32128 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32129 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32130 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32131 attribute_hidden.
32132 * nss/nsswitch.c (__nss_database_custom): Define only if
32133 USE_NSCD is defined.
32134 (__nss_configure_lookup): Use __nss_database_custom only if
32135 USE_NSCD is defined.
32136 * nss/nsswitch.h (__nss_database_custom): Declare only if
32137 USE_NSCD is defined. Add attribute_hidden.
32138 (__nss_setent): Add attribute_hidden.
32139 (__nss_endent): Likewise.
32140 (__nss_getent_r): Likewise.
32141 (__nss_getent): Likewise.
32142 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32143
32144 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32145
32146 [BZ #18822]
32147 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32148 libc_hidden_proto and libc_hidden_def.
32149
32150 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32151
32152 [BZ #18822]
32153 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32154 Add libc_hidden_proto.
32155 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32156 Add libc_hidden_def.
32157
32158 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32159
32160 [BZ #21974]
32161 * gmon/Makefile (routines): Remove bb_init_func and
32162 bb_exit_func.
32163 (elide-routines.os): Removed.
32164 * gmon/bb_exit_func.c: Likewise.
32165 * gmon/bb_init_func.c: Likewise.
32166 * include/sys/gmon.h (__bb): Likewise.
32167 (__bb_init_func): Likewise.
32168 (__bb_exit_func): Likewise.
32169 * sysdeps/alpha/bb_init_func.S: Likewise.
32170
32171 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32172
32173 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32174 * include/setjmp.h (____longjmp_chk): Here. Add
32175 attribute_hidden.
32176
32177 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32178
32179 [BZ #18822]
32180 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32181 attribute_hidden.
32182 (__strspn_sse2): Likewise.
32183
32184 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32185
32186 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32187 (close_not_cancel_no_status): Likewise.
32188 (__close_nocancel): New macro.
32189 (__close_nocancel_nostatus): Likewise.
32190 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32191 macro.
32192 (close_not_cancel): Likewise.
32193 (close_not_cancel_no_status): Likewise.
32194 (__close_nocancel): New prototype.
32195 (__close_nocancel_nostatus): New function.
32196 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32197 * catgets/open_catalog.c (__open_catalog): Replace
32198 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32199 * gmon/gmon.c (write_gmon): Likewise.
32200 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32201 * intl/loadmsgcat.c (close): Likewise.
32202 * io/ftw.c (open_dir_stream): Likewise.
32203 (ftw_startup): Likewise.
32204 * libio/fileops.c (_IO_file_open): Likewise.
32205 (_IO_file_close_mmap): Likewise.
32206 (_IO_file_close): Likewise.
32207 * libio/iopopen.c (_IO_dup2): Likewise.
32208 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32209 * locale/loadlocale.c (_nl_load_locale): Likewise.
32210 * login/utmp_file.c (pututline_file): Likewise.
32211 (endutent_file): Likewise.
32212 * misc/daemon.c (daemon): Likewise.
32213 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32214 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32215 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32216 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32217 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32218 * nscd/nscd_helper.c (open_socket): Likewise.
32219 (__nscd_open_socket): Likewise.
32220 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32221 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32222 (__nscd_innetgr): Likewise.
32223 * nss/nss_db/db-open.c (internal_setent): Likewise.
32224 * resolv/res-close.c (__res_iclose): Likewise.
32225 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32226 * sysdeps/posix/closedir.c (__closedir): Likewise.
32227 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32228 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32229 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32230 (opendir_tail): Likewise.
32231 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32232 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32233 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32234 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32235 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32236 (gethostid): Likewise.
32237 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32238 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32239 Likewise.
32240 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32241 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32242 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32243 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32244 Likewise.
32245 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32246 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32247 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32248 Likewise.
32249 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32250 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32251 Likewise.
32252 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32253 Likewise.
32254 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32255 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32256 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32257 __close_nocancel.
32258
32259 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32260 (openat_not_cancel_3): Likewise.
32261 (openat64_not_cancel_3): Likewise).
32262 (openat_not_cancel_3): Likewise).
32263 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32264 macro.
32265 (openat_not_cancel_3): Likewise.
32266 (openat64_not_cancel): Likewise.
32267 (openat64_not_cancel_3): Likewise.
32268 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32269 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32270 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32271 __open{64}_nocancel.
32272 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32273 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32274 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32275
32276 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32277
32278 [BZ #18822]
32279 * include/argz.h (__argz_create_sep): New function prototype.
32280 (__argz_append): Likewise.
32281 (__argz_add): Likewise.
32282 (__argz_add_sep): Likewise.
32283 (__argz_delete): Likewise.
32284 (__argz_insert): Likewise.
32285 (__argz_replace): Likewise.
32286 * string/argz.h (__argz_create_sep): Removed.
32287 (__argz_append): Likewise.
32288 (__argz_add): Likewise.
32289 (__argz_add_sep): Likewise.
32290 (__argz_delete): Likewise.
32291 (__argz_insert): Likewise.
32292 (__argz_replace): Likewise.
32293
32294 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32295
32296 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32297 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32298 (GNU_PROPERTY_STACK_SIZE): Likewie.
32299 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32300 (GNU_PROPERTY_LOPROC): Likewise.
32301 (GNU_PROPERTY_HIPROC): Likewise.
32302 (GNU_PROPERTY_LOUSER): Likewise.
32303 (GNU_PROPERTY_HIUSER): Likewise.
32304 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32305 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32306 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32307 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32308 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32309 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32310 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32311 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32312 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32313 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32314 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32315 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32316 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32317 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32318 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32319 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32320 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32321 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32322 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32323 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32324 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32325 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32326 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32327
32328 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32329
32330 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32331 in C++ mode.
32332
32333 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32334
32335 [BZ #21930]
32336 * math/math.h (isinf): Check if in C or C++ mode before using
32337 __builtin_types_compatible_p, since this is a C mode feature.
32338
32339 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32340
32341 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32342 (__write_nocancel): New macro.
32343 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32344 Rewrite as a function prototype.
32345 (write_not_cancel): Remove macro.
32346 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32347 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32348 (write_gmon): Likewise.
32349 * libio/fileops.c (_IO_new_file_write): Likewise.
32350 * login/utmp_file.c (pututline_file): Likewise.
32351 (updwtmp_file): Likewise.
32352 * stdio-common/psiginfo.c (psiginfo): Likewise.
32353 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32354 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32355 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32356 Likewise.
32357 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32358 Likewise.
32359
32360 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32361 (__read_nocancel): New macro.
32362 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32363 __read_nocancel.
32364 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32365 macro.
32366 (__read_nocancel): New prototype.
32367 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32368 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32369 with __read_nocancel.
32370 * intl/loadmsgcat.c (read): Likewise.
32371 * libio/fileops.c (_IO_file_read): Likewise.
32372 * locale/loadlocale.c (_nl_load_locale): Likewise.
32373 * login/utmp_file.c (getutent_r_file): Likewise.
32374 (internal_getut_r): Likewise.
32375 (getutline_r_file): Likewise.
32376 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32377 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32378 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32379 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32380 Likewise.
32381 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32382 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32383 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32384 Likewise.
32385 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32386 Likewise.
32387 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32388 Likewise.
32389 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32390 Likewise.
32391 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32392
32393 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32394
32395 [BZ #21966]
32396 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32397 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32398 usable.
32399
32400 2017-08-17 DJ Delorie <dj@redhat.com>
32401
32402 * bug17079.c: Update to new test harness.
32403 * test-digits-dots.c: Likewise.
32404 * test-netdb.c: Likewise.
32405 * tst-field.c: Likewise.
32406 * tst-nss-getpwent.c: Likewise.
32407 * tst-nss-static.c: Likewise.
32408 * tst-nss-test1.c: Likewise.
32409 * tst-nss-test2.c: Likewise.
32410 * tst-nss-test3.c: Likewise.
32411 * tst-nss-test4.c: Likewise.
32412 * tst-nss-test5.c: Likewise.
32413
32414 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32415
32416 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
32417 (open_not_cancel_2): Likewise.
32418 (open_nocancel): New macro.
32419 (open64_nocancel): Likewise.
32420 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
32421 (open_not_cancel_2): Likewise.
32422 (__open_nocancel): New prototype.
32423 (__open64_nocancel): Likewise.
32424 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32425 __open_nocancel.
32426 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
32427 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
32428 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
32429 with __open_nocancel.
32430 * csu/check_fds.c (check_one_fd): Likewise.
32431 * gmon/gmon.c (write_gmon): Likewise.
32432 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
32433 * intl/loadmsgcat.c (open): Likewise.
32434 * libio/fileops.c (_IO_file_open): Likewise.
32435 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32436 * locale/loadlocale.c (_nl_load_locale): Likewise.
32437 * login/utmp_file.c (setutent_file): Likewise.
32438 * misc/daemon.c (daemon): Likewise.
32439 * nss/nss_db/db-open.c (internal_setent): Likewise.
32440 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32441 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
32442 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32443 (__opendir): Likewise.
32444 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32445 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32446 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32447 (gethostid): Likewise.
32448 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32449 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32450 Likewise.
32451 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32452 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
32453 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32454 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32455 Likewise.
32456 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32457 Likewise.
32458 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32459 Likewise.
32460 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
32461 Likewise.
32462 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32463 Likewise.
32464 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32465 Likewise.
32466 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32467 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32468
32469 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
32470
32471 * benchtests/bench-skeleton.c (main): Add support for
32472 latency benchmarking.
32473 * benchtests/scripts/bench.py: Add support for latency benchmarking.
32474
32475 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
32476
32477 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
32478 the startup object.
32479
32480 2017-08-17 Florian Weimer <fweimer@redhat.com>
32481
32482 * include/sys/socket.h (__opensock): Remove internal_function.
32483 * socket/opensock.c (__opensock): Likewise.
32484 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
32485
32486 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32487
32488 [BZ #21944]
32489 * signal/bits/types/__sigval_t.h: New file.
32490 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
32491 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
32492 and define sigval_t using __sigval_t.
32493 * include/bits/types/__sigval_t.h: New file.
32494 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
32495 instead of <bits/types/__sigval_t.h>.
32496 (struct sigevent): Use __sigval_t instead of sigval_t.
32497 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
32498 instead of <bits/types/__sigval_t.h>.
32499 (siginfo_t): Use __sigval_t instead of sigval_t.
32500 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
32501 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32502 (struct sigevent): Use __sigval_t instead of sigval_t.
32503 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
32504 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32505 (siginfo_t): Use __sigval_t instead of sigval_t.
32506 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
32507
32508 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32509
32510 * NEWS: Remove "[Add new features here]" for 2.27.
32511
32512 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32513
32514 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
32515 libc.so.
32516
32517 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32518
32519 * NEWS: Mention x86-64 FMA optimization.
32520
32521 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32522
32523 [BZ #21912]
32524 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32525 Add e_expf-fma.
32526 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
32527 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
32528 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
32529
32530 2017-08-16 Andreas Schwab <schwab@suse.de>
32531
32532 [BZ #16750]
32533 CVE-2009-5064
32534 * elf/ldd.bash.in: Never run file directly.
32535
32536 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
32537
32538 [BZ #21955]
32539 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
32540 (L(SP_INF_0)): Likewise.
32541
32542 2017-08-15 Florian Weimer <fweimer@redhat.com>
32543
32544 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
32545 run-built-tests.
32546
32547 2017-08-15 Florian Weimer <fweimer@redhat.com>
32548
32549 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
32550 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
32551 BROKEN_THREAD_SIGNALS code.
32552 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
32553 request_list): Remove caller_pid member used for
32554 BROKEN_THREAD_SIGNALS.
32555 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
32556 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32557 Remove BROKEN_THREAD_SIGNALS support.
32558 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
32559 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
32560
32561 2017-08-15 Florian Weimer <fweimer@redhat.com>
32562
32563 * gmon/Makefile (tests): Add tst-gmon.
32564 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
32565 Set.
32566 (tests-special): Add tst-gmon-prof.out.
32567 (tst-gmon.out): Depend on clean-tst-gmon-data.
32568 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
32569 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
32570 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
32571 startup object.
32572 * aclocal.m4 (GPROF): Set and substitute.
32573 * config.amke.in (GPROF): Set.
32574 * configure: Regenerate.
32575
32576 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
32577
32578 * elf/elf.h A (NT_PPC_TAR): New macro.
32579 (NT_PPC_PPR): Likewise.
32580 (NT_PPC_DSCR): Likewise.
32581 (NT_PPC_EBB): Likewise.
32582 (NT_PPC_PMU): Likewise.
32583 (NT_PPC_TM_CGPR): Likewise.
32584 (NT_PPC_TM_CFPR): Likewise.
32585 (NT_PPC_TM_CVMX): Likewise.
32586 (NT_PPC_TM_CVSX): Likewise.
32587 (NT_PPC_TM_SPR): Likewise.
32588 (NT_PPC_TM_CTAR): Likewise.
32589 (NT_PPC_TM_CPPR): Likewise.
32590 (NT_PPC_TM_CDSCR): Likewise.
32591
32592 2017-08-15 Florian Weimer <fweimer@redhat.com>
32593
32594 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
32595 regparm (2) instead of internal_function.
32596 (_MCOUNT_DECL): Adjust.
32597
32598 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
32599
32600 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
32601 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
32602
32603 2017-08-14 Joseph Myers <joseph@codesourcery.com>
32604
32605 * conform/data/sys/wait.h-data (si_value): Do not expect for
32606 XPG42.
32607
32608 2017-08-14 Florian Weimer <fweimer@redhat.com>
32609
32610 [BZ #21962]
32611 NSS: Create stubs for accidentally exported lookup functions.
32612 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
32613 Remove declaration.
32614 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
32615 (ether_hostton): Call __nss_ethers_lookup2 instead.
32616 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
32617 (ether_ntohost): Call __nss_ethers_lookup2 instead.
32618 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
32619 (setup): Call __nss_netgroup_lookup2 instead.
32620 * nss/Makefile (routines): Add compat-lookup.
32621 * nss/Versions (GLIBC_2.27): Add symbol version.
32622 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
32623 (DB_COMPAT_FCT): Remove.
32624 * nss/compat-lookup.c: New file.
32625 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
32626 from databases.def.
32627 * nss/service-lookup.c (NO_COMPAT): Remove definition.
32628 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
32629 (netname2user): Call __nss_publickey_lookup2 instead.
32630 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
32631 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
32632 instead.
32633
32634 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32635 Sergei Trofimovich <slyfox@inbox.ru>
32636
32637 [BZ #21908]
32638 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
32639 Rename to MMAP2_PAGE_UNIT.
32640 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
32641 __OFF_T_MATCHES_OFF64_T is not defined.
32642 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
32643 uint64_t.
32644 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
32645 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
32646
32647 2017-08-14 Florian Weimer <fweimer@redhat.com>
32648
32649 i386: Do not set internal_function.
32650 * config.h.in (USE_REGPARMS, internal_function): Remove.
32651 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
32652 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
32653
32654 2017-08-14 Florian Weimer <fweimer@redhat.com>
32655
32656 * elf/dl-init.c (_dl_init): Remove internal_function.
32657 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
32658 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
32659
32660 2017-08-14 Florian Weimer <fweimer@redhat.com>
32661
32662 * elf/rtld.c (_dl_start): Remove internal_function.
32663 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
32664 _dl_start.
32665
32666 2017-08-14 Florian Weimer <fweimer@redhat.com>
32667
32668 * elf/dl-fini.c (_dl_fini): Remove internal_function
32669 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32670
32671 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
32672
32673 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
32674 (bit_cpu_SHSTK): Likewise.
32675 (index_cpu_IBT): Likewise.
32676 (index_cpu_SHSTK): Likewise.
32677 (reg_IBT): Likewise.
32678 (reg_SHSTK): Likewise.
32679 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
32680 Handle index_cpu_IBT and index_cpu_SHSTK.
32681
32682 2017-08-14 Mike FABIAN <mfabian@redhat.com>
32683
32684 [BZ #19982]
32685 * po/fr.po: Fix spelling mistake.
32686
32687 2017-08-13 Florian Weimer <fweimer@redhat.com>
32688
32689 * elf/dl-addr.c (_dl_addr): Remove internal_function.
32690 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
32691 (_dl_catch_error, _dl_receive_error): Likewise.
32692 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
32693 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
32694 (_dl_deallocate_tls): Likewise.
32695 * include/dlfcn.h (_dl_addr): Likewise.
32696 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
32697 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
32698 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
32699 Likewise.
32700
32701 2017-08-13 Florian Weimer <fweimer@redhat.com>
32702
32703 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
32704 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
32705 internal_function.
32706 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
32707
32708 2017-08-13 Florian Weimer <fweimer@redhat.com>
32709
32710 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
32711 internal_function.
32712 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
32713 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
32714 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
32715 internal_function from _dl_make_stack_executable_hook member.
32716 (_dl_make_stack_executable): Remove internal_function.
32717 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
32718 Likewise.
32719 * sysdeps/unix/sysv/linux/dl-execstack.c
32720 (_dl_make_stack_executable): Likewise.
32721
32722 2017-08-13 Florian Weimer <fweimer@redhat.com>
32723
32724 * sysdeps/unix/sysv/linux/netlinkaccess.h
32725 (__netlink_assert_response): Remove internal_function.
32726 * sysdeps/unix/sysv/linux/netlink_assert_response.c
32727 (__netlink_assert_response): Likewise.
32728
32729 2017-08-13 Florian Weimer <fweimer@redhat.com>
32730
32731 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
32732 internal_function.
32733 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
32734
32735 2017-08-13 Florian Weimer <fweimer@redhat.com>
32736
32737 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
32738 internal_function.
32739 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
32740 * inet/netgroup.h (__internal_setnetgrent)
32741 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32742 * inet/getnetgrent_r.c (__internal_setnetgrent)
32743 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32744 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
32745 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32746 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32747 * nss/nsswitch.h (db_lookup_function): Likewise.
32748
32749 2017-08-13 Florian Weimer <fweimer@redhat.com>
32750
32751 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32752 Remove internal_function.
32753 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32754 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32755 message argument on the stack.
32756 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32757 Likeweise.
32758
32759 2017-08-12 Mike FABIAN <mfabian@redhat.com>
32760
32761 Adapt test case data to the changes in the thousands
32762 separators.
32763
32764 [BZ #20756]
32765 * localedata/tst-langinfo.sh: Adapt test case data.
32766 * stdlib/tst-strfmon_l.c: Likewise.
32767 * stdlib/tst-strtod4.c: Likewise.
32768 * stdlib/tst-strtod5i.c: Likewise.
32769
32770 2017-08-11 Florian Weimer <fweimer@redhat.com>
32771
32772 [BZ #21242]
32773 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32774 Suppress pedantic warning resulting from statement expression.
32775 (__ASSERT_FUNCTION): Add missing __extension__.
32776
32777 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
32778
32779 * benchtests/bench-memmove-large.c: Print output in JSON
32780 format.
32781 * benchtests/bench-memmove.c: Likewise.
32782
32783 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32784 * benchtests/bench-memchr.c (do_one_test): Likewise.
32785 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32786 * benchtests/bench-memcpy.c (do_one_test): Likewise.
32787 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32788 * benchtests/bench-memmove.c (do_one_test): Likewise.
32789 * benchtests/bench-memset-large.c (do_one_test): Likewise.
32790 * benchtests/bench-memset.c (do_one_test): Likewise.
32791 * benchtests/bench-string.h (test_init): Remove memsets.
32792
32793 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32794
32795 * manual/lang.texi
32796 (Computing the Width of an Integer Data Type): Rename section to
32797 "Width of an Integer Type". Remove inaccurate statement regarding
32798 lack of C language facilities for determining width of integer
32799 types, and reorder content to improve flow and context of
32800 discussion.
32801
32802 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
32803
32804 * lang.texi (va_copy): Change standard from ISO to C99.
32805 (__va_copy): Add standard and header annotation.
32806 Update description for clarity of origins and current use.
32807
32808 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32809
32810 [BZ #21941]
32811 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32812 xssqrtqp requires operands to be in Vector Registers
32813 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32814 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32815 (__ieee754_sqrtf128): Likewise.
32816
32817 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
32818
32819 * sysdeps/aarch64/memcmp.S (memcmp):
32820 Rewrite of optimized memcmp.
32821
32822 2017-08-10 Florian Weimer <fweimer@redhat.com>
32823
32824 Introduce ld.so exceptions.
32825 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32826 (_dl_exception_create, _dl_exception_create_format)
32827 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32828 (_dl_catch_exception): Declare.
32829 (_dl_catch_error): Update comment.
32830 * elf/dl-error-skeleton.c (struct catch): Replace objname,
32831 errstring, malloced members with exception member.
32832 (_dl_out_of_memory): Remove.
32833 (fatal_error): New function, extracted from _dl_signal_error.
32834 (_dl_signal_exception, _dl_signal_cexception): New functions.
32835 (_dl_signal_error): Call _dl_exception_create to allocate an
32836 exception object.
32837 (_dl_catch_exception): New function, based on _dl_catch_error.
32838 (_dl_catch_error): Implement using _dl_catch_exception.
32839 * elf/dl-exception.c: New file.
32840 * elf/Makefile (dl-routines): Add dl-exception.
32841 (elide-routines.os): Likewise.
32842 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32843 _dl_exception_create_format, _dl_exception_free.
32844 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32845 _dl_signal_exception.
32846 * elf/dl-lookup.c (make_string): Remove.
32847 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32848 _dl_signal_cexception, _dl_exception_free.
32849 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32850 _dl_signal_exception.
32851 * elf/dl-sym.c (do_sym): Likewise.
32852 * elf/dl-version.c (make_string): Remove.
32853 (match_symbol): Use _dl_exception_create_format,
32854 _dl_signal_cexception, _dl_exception_free.
32855 (_dl_check_map_versions): Likewise.
32856 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32857 _dl_catch_exception.
32858 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32859 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32860 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32861 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32862 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32863 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32864 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32865 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32866 Likewise.
32867 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32869 (ld.so): Likewise.
32870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32871 (ld.so): Likewise.
32872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32873 Likewise.
32874 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32875 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32876 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32877 Likewise.
32878 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32879 Likewise.
32880 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32881
32882 2017-08-10 Florian Weimer <fweimer@redhat.com>
32883
32884 * inet/net-internal.h (__inet6_scopeid_pton): Remove
32885 attribute_hidden, internal_function.
32886 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32887 internal_function.
32888
32889 2017-08-10 Florian Weimer <fweimer@redhat.com>
32890
32891 * malloc/malloc.c (get_max_fast): Reimplement as an inline
32892 function which calls __builtin_unreachable.
32893
32894 2017-08-10 Mike FABIAN <mfabian@redhat.com>
32895
32896 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32897 Indian monetary formatting
32898 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32899 test cases.
32900
32901 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
32902
32903 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32904 Fix typo in comment.
32905
32906 [BZ #21928]
32907 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32908 PTRACE_SEIZE_DEVEL): Remove.
32909 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32910 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32911 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32912 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32913 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32914
32915 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32916
32917 * posix/bits/types.h (__qaddr_t): Remove.
32918
32919 [BZ #21457]
32920 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32921 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32922 __glibc_reserved1.
32923 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32924 (ucontext_t): Use __ctx with uc_flags.
32925 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32926 (__ctxt): Likewise.
32927 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32928 __glibc_reserved1.
32929 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32930 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32931 __glibc_reserved1.
32932 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32933 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32934 __glibc_reserved1.
32935 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32936 macro.
32937 (ucontext_t): Use __ctx with uc_flags.
32938 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32939 (ucontext_t): Use __ctx with uc_flags.
32940 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32941 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32942 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32943 (ucontext_t): Use __ctx with uc_flags.
32944 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32945 undefine further down.
32946 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32947 __glibc_reserved1.
32948 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32949 undefine further down.
32950 (ucontext_t): Use __ctx with uc_flags.
32951 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32952 undefine further down.
32953 (ucontext_t): Use __ctx with uc_flags.
32954 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32955 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32956 Rename uc_pad to __glibc_reserved1.
32957 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32958 undefine further down.
32959 (ucontext_t): Use __ctx with uc_flags.
32960 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32961 further down.
32962 (ucontext_t): Use __ctx with uc_flags.
32963 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32964 __ctx with uc_flags.
32965 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32966 (ucontext_t): Use __ctx with uc_flags.
32967 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32968 __ctx with uc_flags.
32969
32970 2017-08-09 Florian Weimer <fweimer@redhat.com>
32971
32972 [BZ #21932]
32973 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32974 before early return.
32975
32976 2017-08-09 Andreas Schwab <schwab@suse.de>
32977
32978 [BZ #21041]
32979 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32980 renamed alias.
32981
32982 [BZ #21041]
32983 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32984 tst-compat-forwarder.
32985 (modules-names): Add tst-compat-forwarder-mod.
32986 ($(objpfx)tst-compat-forwarder): Depend on
32987 $(objpfx)tst-compat-forwarder-mod.so.
32988 * nptl/tst-compat-forwarder.c: New file.
32989 * nptl/tst-compat-forwarder-mod.c: New file.
32990
32991 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32992
32993 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32994 comments.
32995
32996 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32997 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32998 memcpy_falkor.
32999 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33000 Bump.
33001 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33002 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33003 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33004 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33005 Add falkor.
33006 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33007 New macro.
33008
33009 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33010
33011 [BZ #759]
33012 * manual/setjmp.texi (getcontex): Document uc_stack value
33013 compatibility differences.
33014
33015 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33016
33017 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33018 (old_malloc_hook): Likewise.
33019 (old_memalign_hook): Likewise.
33020 (old_realloc_hook): Likewise.
33021 (struct hdr): Likewise.
33022 (flood): Likewise.
33023 (freehook): Likewise.
33024 (mallochook): Likewise.
33025 (memalignhook): Likewise.
33026 (reallochook): Likewise.
33027 (mprobe): Likewise.
33028 * malloc/mtrace.c (mallwatch): Likewise.
33029 (tr_old_free_hook): Likewise.
33030 (tr_old_malloc_hook): Likewise.
33031 (tr_old_realloc_hook): Likewise.
33032 (tr_old_memalign_hook): Likewise.
33033 (tr_where): Likewise.
33034 (lock_and_info): Likewise.
33035 (tr_freehook): Likewise.
33036 (tr_mallochook): Likewise.
33037 (tr_reallochook): Likewise.
33038 (tr_memalignhook): Likewise.
33039 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33040 * misc/mmap.c (__mmap): Likewise.
33041 * misc/mmap64.c (__mmap64): Likewise.
33042 * misc/mprotect.c (__mprotect): Likewise.
33043 * misc/msync.c (msync): Likewise.
33044 * misc/munmap.c (__munmap): Likewise.
33045 * posix/posix_madvise.c (posix_madvise): Likewise.
33046 * socket/send.c (__send): Likewise.
33047 * socket/sendto.c (__sendto): Likewise.
33048 * socket/setsockopt.c (__setsockopt): Likewise.
33049 * string/memcmp.c (__ptr_t): Remove macro.
33050 (MEMCMP): Use void * instead of ptr_t.
33051 * string/memrchr.c (__ptr_t): Remove macro.
33052 (__memrchr): Use void * instead of ptr_t.
33053 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33054 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33055 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33056 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33057 * sysdeps/mach/msync.c (msync): Likewise.
33058 * sysdeps/mach/munmap.c (__munmap): Likewise.
33059 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33060 Likewise.
33061 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33062 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33063 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33064 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33065 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33066 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33067 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33068 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33069 Likewise.
33070 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33071 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33072 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33073 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33074 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33075 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33076 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33077 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33078 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33079 Likewise.
33080 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33081 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33082 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33083 (MEMCMP): Use void * instead of ptr_t.
33084 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33085 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33086
33087 2017-08-08 Florian Weimer <fweimer@redhat.com>
33088
33089 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33090 return statement.
33091
33092 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33093
33094 [BZ #21913]
33095 * csu/libc-tls.c: Include <startup.h> first.
33096 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33097 * elf/dl-tunables.c: Include <startup.h> first.
33098 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33099 * sysdeps/generic/startup.h: New file.
33100 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33101 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33102 (I386_USE_SYSENTER): New. Defined to 0.
33103
33104 2017-08-08 Andreas Schwab <schwab@suse.de>
33105
33106 [BZ #21041]
33107 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33108 * nptl/pt-system.c (system): Likewise.
33109
33110 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33111
33112 [BZ #21780]
33113 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33114 EOPNOTSUPP.
33115 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33116 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33117 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33118 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33119 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33120 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33121 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33122
33123 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33124
33125 [BZ #21899]
33126 * bits/sigaction.h (struct sigaction): Define sa_handler and
33127 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33128 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33129 [__USE_XOPEN_EXTENDED].
33130 (SA_RESTART): Likewise.
33131 (SA_NODEFER): Likewise.
33132 (SA_RESETHAND): Likewise.
33133 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33134 (struct sigaction): Define sa_handler and sa_sigaction using union
33135 also for [__USE_XOPEN_EXTENDED].
33136 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33137 [__USE_XOPEN_EXTENDED].
33138 (SA_RESTART): Likewise.
33139 (SA_NODEFER): Likewise.
33140 (SA_RESETHAND): Likewise.
33141 * sysdeps/unix/sysv/linux/bits/sigaction.h
33142 (struct sigaction): Define sa_handler and sa_sigaction using union
33143 also for [__USE_XOPEN_EXTENDED].
33144 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33145 [__USE_XOPEN_EXTENDED].
33146 (SA_RESTART): Likewise.
33147 (SA_NODEFER): Likewise.
33148 (SA_RESETHAND): Likewise.
33149 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33150 (struct sigaction): Define sa_handler and sa_sigaction using union
33151 also for [__USE_XOPEN_EXTENDED].
33152 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33153 [__USE_XOPEN_EXTENDED].
33154 (SA_RESTART): Likewise.
33155 (SA_NODEFER): Likewise.
33156 (SA_RESETHAND): Likewise.
33157 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33158 (struct sigaction): Define sa_handler and sa_sigaction using union
33159 also for [__USE_XOPEN_EXTENDED].
33160 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33161 [__USE_XOPEN_EXTENDED].
33162 (SA_RESTART): Likewise.
33163 (SA_NODEFER): Likewise.
33164 (SA_RESETHAND): Likewise.
33165 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33166 (struct sigaction): Define sa_handler and sa_sigaction using union
33167 also for [__USE_XOPEN_EXTENDED].
33168 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33169 [__USE_XOPEN_EXTENDED].
33170 (SA_RESTART): Likewise.
33171 (SA_NODEFER): Likewise.
33172 (SA_RESETHAND): Likewise.
33173 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33174 (struct sigaction): Define sa_handler and sa_sigaction using union
33175 also for [__USE_XOPEN_EXTENDED].
33176 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33177 [__USE_XOPEN_EXTENDED].
33178 (SA_RESTART): Likewise.
33179 (SA_NODEFER): Likewise.
33180 (SA_RESETHAND): Likewise.
33181 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33182 (struct sigaction): Define sa_handler and sa_sigaction using union
33183 also for [__USE_XOPEN_EXTENDED].
33184 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33185 [__USE_XOPEN_EXTENDED].
33186 (SA_RESTART): Likewise.
33187 (SA_NODEFER): Likewise. Define directly rather than as alias.
33188 (SA_RESETHAND): Likewise.
33189 (SA_INTERRUPT): Define only for [__USE_MISC].
33190 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33191 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33192 [__USE_MISC].
33193 (SA_STACK): Define only for [__USE_MISC].
33194 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33195 (struct sigaction): Define sa_handler and sa_sigaction using union
33196 also for [__USE_XOPEN_EXTENDED].
33197 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33198 [__USE_XOPEN_EXTENDED].
33199 (SA_RESTART): Likewise.
33200 (SA_NODEFER): Likewise.
33201 (SA_RESETHAND): Likewise.
33202 (SA_NOPTRACE): Define only for [__USE_MISC].
33203
33204 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33205 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33206 (struct catalog_info): Likewise.
33207 * inet/htontest.c (lo): Likewise.
33208 (foo): Likewise.
33209 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33210 * inet/inet_net.c (inet_network): Likewise.
33211 * inet/inet_netof.c (inet_netof): Likewise.
33212 * inet/rcmd.c (__ivaliduser): Likewise.
33213 (iruserok): Likewise.
33214 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33215 * locale/programs/locale-spec.c (locale_special): Likewise.
33216 * nis/nis_findserv.c (struct findserv_req): Likewise.
33217 (__nis_findfastest_with_timeout): Likewise.
33218 * nss/test-netdb.c (test_network): Likewise.
33219 * resolv/inet_neta.c (inet_neta): Likewise.
33220 * resolv/ns_date.c (ns_datetosecs): Likewise.
33221 (SECS_PER_DAY): Likewise.
33222 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33223 Likewise.
33224 * resolv/res_comp.c (__putlong): Likewise.
33225 (__putshort): Likewise.
33226 (_getlong): Likewise.
33227 (_getshort): Likewise.
33228 * resolv/res_debug.c (p_time): Likewise.
33229 (precsize_ntoa): Likewise.
33230 (precsize_aton): Likewise.
33231 (latlon2ul): Likewise.
33232 (loc_aton): Likewise.
33233 (loc_ntoa): Likewise.
33234 * resolv/res_hconf.c (struct netaddr): Likewise.
33235 (_res_hconf_reorder_addrs): Likewise.
33236 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33237 (clnttcp_control): Likewise.
33238 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33239 (clntudp_control): Likewise.
33240 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33241 (clntunix_control): Likewise.
33242 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33243 * sunrpc/rpc/auth.h (union des_block): Likewise.
33244 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33245 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33246 (xdrrec_create): Likewise.
33247 (xdrrec_endofrecord): Likewise.
33248 (flush_out): Likewise.
33249 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33250 (xdrstdio_putlong): Likewise.
33251 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33252 Likewise.
33253
33254 * misc/sys/cdefs.h (__long_double_t): Remove.
33255 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33256 instead of __long_double_t,
33257 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33258
33259 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33260
33261 * benchtests/scripts/compare_strings.py: Avoid display error when
33262 running on a text terminal.
33263
33264 * benchtests/scripts/compare_strings.py (main): Add an
33265 optional -base option.
33266 (process_results): New argument base_func.
33267
33268 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33269 hardcoding memcpy.
33270 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33271 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33272
33273 2017-08-07 Andreas Schwab <schwab@suse.de>
33274
33275 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33276 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33277 * intl/Makefile ($(objpfx)tst-gettext.out)
33278 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33279 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33280 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33281 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33282 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33283 * posix/Makefile ($(objpfx)globtest.out)
33284 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33285 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33286 ($(objpfx)tst-printf.out): Likewise.
33287 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33288 ($(objpfx)tst-setcontext3.out): Likewise.
33289
33290 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33291
33292 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33293 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33294 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33295 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33296 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33297 and mptan-fma.
33298 (CFLAGS-doasin-fma.c): New.
33299 (CFLAGS-dosincos-fma.c): Likewise.
33300 (CFLAGS-e_asin-fma.c): Likewise.
33301 (CFLAGS-e_atan2-fma.c): Likewise.
33302 (CFLAGS-e_exp-fma.c): Likewise.
33303 (CFLAGS-e_log-fma.c): Likewise.
33304 (CFLAGS-e_pow-fma.c): Likewise.
33305 (CFLAGS-halfulp-fma.c): Likewise.
33306 (CFLAGS-mpa-fma.c): Likewise.
33307 (CFLAGS-mpatan-fma.c): Likewise.
33308 (CFLAGS-mpatan2-fma.c): Likewise.
33309 (CFLAGS-mpexp-fma.c): Likewise.
33310 (CFLAGS-mplog-fma.c): Likewise.
33311 (CFLAGS-mpsqrt-fma.c): Likewise.
33312 (CFLAGS-mptan-fma.c): Likewise.
33313 (CFLAGS-s_atan-fma.c): Likewise.
33314 (CFLAGS-sincos32-fma.c): Likewise.
33315 (CFLAGS-slowexp-fma.c): Likewise.
33316 (CFLAGS-slowpow-fma.c): Likewise.
33317 (CFLAGS-s_sin-fma.c): Likewise.
33318 (CFLAGS-s_tan-fma.c): Likewise.
33319 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33320 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33321 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33322 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33323 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33324 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33325 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33326 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33327 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33328 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33329 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33330 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33331 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33332 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33333 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33334 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33335 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33336 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33337 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33338 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33339 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33340 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33341 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33342 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33343 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33344 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33345 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33346 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33347 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33348 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33349 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33350
33351 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33352
33353 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33354 (min_of_type_f): New macro.
33355 (min_of_type_): Likewise.
33356 (min_of_type_l): Likewise.
33357 (min_of_type_f128): Likewise.
33358 (min_of_type): Define using __MATH_TG and taking an expression
33359 argument.
33360 (math_check_force_underflow): Pass expression instead of type to
33361 min_of_type.
33362 (math_check_force_underflow_nonneg): Likewise.
33363
33364 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33365
33366 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33367 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33368 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33369
33370 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33371
33372 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33373 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33374 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33375 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33376 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33377 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33378 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33379 memmove_chk-nonshared and memset_chk-nonshared
33380 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33381 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33382 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33383 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33384 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33385 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33386 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33387 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33388 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33389 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33390 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33391 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33392 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33393 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33394 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33395 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33396 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33397 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33398 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33399 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
33400 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
33401 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
33402 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
33403 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
33404 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
33405 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
33406 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
33407 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
33408 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
33409 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
33410 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
33411 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
33412 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
33413 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33414 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33415 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
33416 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
33417 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
33418 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
33419 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
33420 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
33421 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
33422 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
33423 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
33424 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
33425 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
33426 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
33427 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
33428 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
33429 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
33430 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
33431 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
33432 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
33433 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
33434 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
33435 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
33436 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
33437 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
33438 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
33439 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
33440 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
33441 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
33442 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
33443 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
33444 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
33445 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
33446 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
33447 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
33448 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
33449 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
33450 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
33451 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33452 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33453 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33454 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33455 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33456 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33457 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33458 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33459 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33460 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33461 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33462 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33463 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33464 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33465 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33466 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33467 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33468 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33469 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33470 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33471 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33472 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33473 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33474 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33475 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33476 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33477 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33478 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33479 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33480 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33481 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33482 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33483 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33484 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33485 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33486 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33487 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33488
33489 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33490
33491 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
33492 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
33493 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
33494 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
33495 svml_d_log2_core-sse2, svml_d_log4_core-sse,
33496 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
33497 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
33498 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
33499 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
33500 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
33501 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
33502 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
33503 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
33504 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
33505 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
33506 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
33507 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
33508 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
33509 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
33510 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
33511 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
33512 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
33513 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
33514 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
33515 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
33516 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
33517 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
33518 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
33519 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
33520 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
33521 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
33522 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
33523 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
33524 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
33525 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
33526 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
33527 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
33528 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
33529 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
33530 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
33531 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
33532 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
33533 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
33534 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
33535 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
33536 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
33537 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
33538 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
33539 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
33540 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
33541 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
33542 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
33543 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
33544 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
33545 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
33546 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
33547 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
33548 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
33549 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
33550 ...
33551 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
33552 Don't include <sysdep.h> nor <init-arch.h>.
33553 (_ZGVbN2v_cos): Removed.
33554 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
33555 ...
33556 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
33557 Don't include <sysdep.h> nor <init-arch.h>.
33558 (_ZGVdN4v_cos): Removed.
33559 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
33560 ...
33561 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
33562 Don't include <sysdep.h> nor <init-arch.h>.
33563 (_ZGVeN8v_cos): Removed.
33564 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
33565 ...
33566 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
33567 Don't include <sysdep.h> nor <init-arch.h>.
33568 (_ZGVbN2v_exp): Removed.
33569 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
33570 ...
33571 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
33572 Don't include <sysdep.h> nor <init-arch.h>.
33573 (_ZGVdN4v_exp): Removed.
33574 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
33575 ...
33576 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
33577 Don't include <sysdep.h> nor <init-arch.h>.
33578 (_ZGVeN8v_exp): Removed.
33579 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
33580 ...
33581 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
33582 Don't include <sysdep.h> nor <init-arch.h>.
33583 (_ZGVbN2v_log): Removed.
33584 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
33585 ...
33586 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
33587 Don't include <sysdep.h> nor <init-arch.h>.
33588 (_ZGVdN4v_log): Removed.
33589 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
33590 ...
33591 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
33592 Don't include <sysdep.h> nor <init-arch.h>.
33593 (_ZGVeN8v_log): Removed.
33594 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
33595 ...
33596 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
33597 Don't include <sysdep.h> nor <init-arch.h>.
33598 (_ZGVbN2vv_pow): Removed.
33599 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
33600 ...
33601 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
33602 Don't include <sysdep.h> nor <init-arch.h>.
33603 (_ZGVdN4vv_pow): Removed.
33604 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
33605 ...
33606 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
33607 Don't include <sysdep.h> nor <init-arch.h>.
33608 (_ZGVeN8vv_pow): Removed.
33609 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
33610 ...
33611 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
33612 Don't include <sysdep.h> nor <init-arch.h>.
33613 (_ZGVbN2v_sin): Removed.
33614 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
33615 ...
33616 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
33617 Don't include <sysdep.h> nor <init-arch.h>.
33618 (_ZGVbN4v_sin): Removed.
33619 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
33620 ...
33621 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
33622 Don't include <sysdep.h> nor <init-arch.h>.
33623 (_ZGVbN8v_sin): Removed.
33624 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
33625 ...
33626 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
33627 Don't include <sysdep.h> nor <init-arch.h>.
33628 (_ZGVbN2vvv_sincos): Removed.
33629 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
33630 ...
33631 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
33632 Don't include <sysdep.h> nor <init-arch.h>.
33633 (_ZGVdN4vvv_sincos): Removed.
33634 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
33635 ...
33636 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
33637 Don't include <sysdep.h> nor <init-arch.h>.
33638 (_ZGVeN8vvv_sincos): Removed.
33639 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
33640 ...
33641 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
33642 Don't include <sysdep.h> nor <init-arch.h>.
33643 (_ZGVeN16v_cosf): Removed.
33644 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
33645 ...
33646 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
33647 Don't include <sysdep.h> nor <init-arch.h>.
33648 (_ZGVbN4v_cosf): Removed.
33649 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
33650 ...
33651 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
33652 Don't include <sysdep.h> nor <init-arch.h>.
33653 (_ZGVdN8v_cosf): Removed.
33654 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
33655 ...
33656 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
33657 Don't include <sysdep.h> nor <init-arch.h>.
33658 (_ZGVeN16v_expf): Removed.
33659 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
33660 ...
33661 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
33662 Don't include <sysdep.h> nor <init-arch.h>.
33663 (_ZGVbN4v_expf): Removed.
33664 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
33665 ...
33666 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
33667 Don't include <sysdep.h> nor <init-arch.h>.
33668 (_ZGVdN8v_expf): Removed.
33669 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
33670 ...
33671 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
33672 Don't include <sysdep.h> nor <init-arch.h>.
33673 (_ZGVeN16v_logf): Removed.
33674 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
33675 ...
33676 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
33677 Don't include <sysdep.h> nor <init-arch.h>.
33678 (_ZGVbN4v_logf): Removed.
33679 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
33680 ...
33681 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
33682 Don't include <sysdep.h> nor <init-arch.h>.
33683 (_ZGVdN8v_logf): Removed.
33684 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
33685 ...
33686 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
33687 Don't include <sysdep.h> nor <init-arch.h>.
33688 (_ZGVeN16vv_powf): Removed.
33689 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
33690 ...
33691 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
33692 Don't include <sysdep.h> nor <init-arch.h>.
33693 (_ZGVbN4vv_powf): Removed.
33694 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
33695 ...
33696 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
33697 Don't include <sysdep.h> nor <init-arch.h>.
33698 (_ZGVdN8vv_powf): Removed.
33699 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
33700 ...
33701 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
33702 Don't include <sysdep.h> nor <init-arch.h>.
33703 (_ZGVeN16vvv_sincosf): Removed.
33704 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
33705 ...
33706 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
33707 Don't include <sysdep.h> nor <init-arch.h>.
33708 (_ZGVbN4vvv_sincosf): Removed.
33709 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
33710 ...
33711 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
33712 Don't include <sysdep.h> nor <init-arch.h>.
33713 (_ZGVdN8vvv_sincosf): Removed.
33714 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
33715 ...
33716 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
33717 Don't include <sysdep.h> nor <init-arch.h>.
33718 (_ZGVeN16v_sinf): Removed.
33719 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
33720 ...
33721 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
33722 Don't include <sysdep.h> nor <init-arch.h>.
33723 (_ZGVbN4v_sinf): Removed.
33724 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
33725 ...
33726 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
33727 Don't include <sysdep.h> nor <init-arch.h>.
33728 (_ZGVdN8v_sinf): Removed.
33729
33730 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33731
33732 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33733 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
33734 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
33735 s_rint-sse4_1 and s_rintf-sse4_1.
33736 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
33737 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
33738 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
33739 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
33740 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
33741 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
33742 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
33743 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
33744 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
33745 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33746 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
33747 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33748 (__ceil): Removed.
33749 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33750 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
33751 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33752 (__ceilf): Removed.
33753 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33754 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
33755 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33756 (__floor): Removed.
33757 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33758 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
33759 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33760 (__floorf): Removed.
33761 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33762 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
33763 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33764 (__nearbyint): Removed.
33765 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33766 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
33767 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33768 (__nearbyintf): Removed.
33769 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33770 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
33771 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33772 (__rint): Removed.
33773 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33774 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
33775 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
33776 (__rintf): Removed.
33777
33778 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33779
33780 * sysdeps/i386/start.S (_start): Check Check PIC instead of
33781 SHARED. Avoid dynamic relocation against main in static PIE.
33782
33783 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33784
33785 [BZ #21815]
33786 * elf/Makefile (CFLAGS-tst-prelink.c): New.
33787 (LDFLAGS-tst-prelink): Likewise.
33788
33789 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33790
33791 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33792 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33793 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33794 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33795 (INTERNAL_SYSCALL_NCS): Likewise.
33796 (LOADARGS_1): Likewise.
33797 (LOADARGS_5): Likewise.
33798 (RESTOREARGS_1): Likewise.
33799 (RESTOREARGS_5): Likewise.
33800
33801 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33802
33803 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33804 (MEMPCPY_SYMBOL): Likewise.
33805 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33806 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33807 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33808 in libc.a.
33809 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33810 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33811 Likewise.
33812 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33813 (__hidden_ver1): Don't use in libc.a.
33814 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33815 (__mempcpy): Don't create a weak alias in libc.a.
33816 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33817 libc.a.
33818 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33819 (__hidden_ver1): Don't use in libc.a.
33820
33821 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33822
33823 * config.make.in (have-insert): New.
33824 * configure.ac (libc_cv_insert): New. Set to yes if linker
33825 supports INSERT in linker script.
33826 (AC_SUBST(libc_cv_insert): New.
33827 * configure: Regenerated.
33828 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33829 if $(have-insert) == yes.
33830
33831 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33832
33833 * elf/Makefile (tests): Add vismain only if
33834 $(have-protected-data) == yes.
33835 (tests-pie): Likewise.
33836
33837 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33838
33839 [BZ #21871]
33840 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33841 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33842
33843 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33844
33845 [BZ #21790]
33846 * sysdeps/i386/i586/memset.S
33847 (__memset_zero_constant_len_parameter): Removed.
33848 * sysdeps/i386/i686/memset.S
33849 (__memset_zero_constant_len_parameter): Likewise.
33850 * sysdeps/i386/i686/multiarch/memset_chk.S
33851 (__memset_zero_constant_len_parameter): Likewise.
33852 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33853 Likewise.
33854
33855 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33856
33857 * stdlib/getentropy.c (getentropy): Change return type to int.
33858
33859 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
33860
33861 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33862
33863 2017-08-03 Joseph Myers <joseph@codesourcery.com>
33864
33865 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33866 u_intN_t.
33867 * math/s_nexttowardf.c (__nexttowardf): Likewise.
33868 * sysdeps/generic/math_private.h (ieee_double_shape_type):
33869 Likewise.
33870 (ieee_float_shape_type): Likewise.
33871 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33872 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33873 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33874 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33875 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33876 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33877 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33878 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33879 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33880 Likewise.
33881 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33882 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33883 (__ieee754_yn): Likewise.
33884 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33885 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33886 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33887 Likewise.
33888 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33889 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33890 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33891 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33892 (__erfc): Likewise.
33893 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33894 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33895 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33896 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33897 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33898 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33899 Likewise.
33900 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33901 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33902 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33903 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33904 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33905 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33906 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33907 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33908 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33909 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33910 (__issignaling): Likewise.
33911 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33912 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33913 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33914 Likewise.
33915 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33916 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33917 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33918 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33919 Likewise.
33920 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33921 Likewise.
33922 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33923 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33924 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33925 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33926 (__erfcf): Likewise.
33927 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33928 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33929 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33930 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33931 Likewise.
33932 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33933 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33934 Likewise.
33935 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33936 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33937 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33938 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33939 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33940 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33941 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33942 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33943 Likewise.
33944 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33945 Likewise.
33946 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33947 Likewise.
33948 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33949 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33950 Likewise.
33951 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33952 Likewise.
33953 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33954 (__ieee754_ynl): Likewise.
33955 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33956 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33957 Likewise.
33958 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33959 Likewise.
33960 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33961 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33962 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33963 Likewise.
33964 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33965 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33966 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33967 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33968 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33969 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33970 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33971 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33972 Likewise.
33973 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33974 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33975 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33976 Likewise.
33977 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33978 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33979 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33980 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33981 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33982 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33983 Likewise.
33984 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33985 Likewise.
33986 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33987 Likewise.
33988 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33989 Likewise.
33990 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33991 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33992 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33993 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33994 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33995 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33996 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33997 Likewise.
33998 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33999 Likewise.
34000 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34001 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34002 Likewise.
34003 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34004 (__ieee754_remainderl): Likewise.
34005 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34006 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34007 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34008 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34009 Likewise.
34010 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34011 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34012 Likewise.
34013 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34014 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34015 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34016 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34017 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34018 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34019 Likewise.
34020 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34021 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34022 (__ieee754_y0l): Likewise.
34023 (pzero): Likewise.
34024 (qzero): Likewise.
34025 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34026 (__ieee754_y1l): Likewise.
34027 (pone): Likewise.
34028 (qone): Likewise.
34029 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34030 (__ieee754_ynl): Likewise.
34031 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34032 (__ieee754_lgammal_r): Likewise.
34033 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34034 Likewise.
34035 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34036 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34037 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34038 (__erfcl): Likewise.
34039 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34040 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34041 Likewise.
34042 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34043 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34044 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34045 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34046 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34047 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34048 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34049 Likewise.
34050 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34051 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34052 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34053 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34054 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34055 Likewise.
34056 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34057 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34058 Likewise.
34059 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34060 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34061 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34062 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34063 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34064
34065 2017-08-03 Florian Weimer <fweimer@redhat.com>
34066
34067 [BZ #21885]
34068 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34069 on memory allocation failure.
34070
34071 2017-08-03 Alan Modra <amodra@gmail.com>
34072
34073 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34074 tst-tlsopt-powerpc.c with function name change and no test harness.
34075 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34076 Call tls_get_addr_opt_test.
34077 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34078 (modules-names): Add mod-tlsopt-powerpc.
34079 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34080 (tst-tlsopt-powerpc): Depend on .so.
34081 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34082 define. Expand use in TLS_GD and TLS_LD.
34083
34084 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34085
34086 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34087 function.
34088 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34089
34090 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34091
34092 [BZ #21686]
34093 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34094 comparing size with that of double.
34095 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34096 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34097 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34098 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34099 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34100 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34101 unsigned __int128 types.
34102
34103 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34104
34105 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34106 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34107 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34108 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34109 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34110
34111 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34112
34113 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34114
34115 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34116
34117 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34118 of SHARED.
34119 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34120 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34121 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34122 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34123 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34124 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34125 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34126
34127 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34128
34129 [BZ #21685]
34130 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34131 bit-field expressions passed to sizeof or typeof.
34132 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34133 (__TGMATH_F128): Likewise.
34134 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34135 (__TGMATH_CF128): Likewise.
34136 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34137 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34138 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34139 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34140 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34141 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34142 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34143 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34144 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34145 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34146 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34147 (__TGMATH_UNARY_IMAG): Likewise.
34148 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34149 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34150 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34151 type.
34152 (define_vars_for_type): Handle bit_field type specially.
34153 (Tests.__init__): Declare structure with bit-field element.
34154
34155 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34156
34157 [BZ #21791]
34158 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34159 (MEMCPY_CHK): Define only if SHARED is defined.
34160 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34161 Likewise.
34162 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34163 Likewise.
34164
34165 See ChangeLog.18 for earlier changes.