]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Avoid fall-through in test-container if execlp fails.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2
3 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
4 execlp returns.
5
6 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
7
8 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
9 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
10 * benchtests/bench-strchr.c (stupid_strchr): Remove.
11 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
12 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
13 * benchtests/bench-strlen.c (builtin_strlen): Remove.
14 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
15 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
16 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
17 * benchtests/bench-strspn.c (stupid_strspn): Remove.
18 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
19 * benchtests/bench-bcopy.c: Delete file.
20 * benchtests/bench-bzero.c: Likewise.
21 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
22 (simple_memccpy): Remove.
23 (generic_memccpy): Add function.
24 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
25 * benchtests/bench-memmove.c (simple_bcopy): Remove.
26 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
27 (generic_mempcpy): Add new function.
28 * benchtests/bench-memset.c (simple_bzero): Remove.
29 (builtin_bzero): Remove.
30 (builtin_memset): Remove.
31 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
32 (generic_rawmemchr): Add new function.
33
34 2019-02-12 Florian Weimer <fweimer@redhat.com>
35
36 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
37
38 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
39
40 [BZ #24122]
41 * elf/Makefile (tests): Add tst-audit13.
42 (modules-names): Add tst-audit13mod1.
43 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
44 rule.
45 * elf/tst-audit13.c: New file.
46 * elf/tst-audit13mod1.c: Likewise.
47
48 2019-02-12 Florian Weimer <fweimer@redhat.com>
49
50 [BZ #24122]
51 * elf/rtld.c (unload_audit_module): New function.
52 (report_audit_module_load_error): Likewise.
53 (load_audit_module): Likewise. Extracted from dl_main. Call
54 _dl_close if the laversion symbol cannot be found. Use early
55 returns for error handling. Add malloc error check. Check for a
56 zero return value from la_version. Remove spurious comment about
57 static TLS initialization. Remove useless casts.
58 (notify_audit_modules_of_loaded_object): New function. Extracted
59 from dl_main.
60 (load_audit_module): Likewise.
61 (dl_main): Call load_audit_modules.
62
63 2019-02-12 Joseph Myers <joseph@codesourcery.com>
64
65 * elf/dl-exception.c (_dl_exception_create_format): Add
66 fall-through comments.
67 * elf/ldconfig.c (parse_conf_include): Likewise.
68 * elf/rtld.c (print_statistics): Likewise.
69 * locale/programs/charmap.c (parse_charmap): Likewise.
70 * misc/mntent_r.c (__getmntent_r): Likewise.
71 * posix/wordexp.c (parse_arith): Likewise.
72 (parse_backtick): Likewise.
73 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
74 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
75 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
76
77 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
78
79 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
80 Use float instead of double.
81
82 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
83
84 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
85
86 2019-02-08 Joseph Myers <joseph@codesourcery.com>
87
88 * sysdeps/powerpc/bits/mathinline.h: Remove.
89
90 2019-02-08 Florian Weimer <fweimer@redhat.com>
91
92 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
93 * math/bits/math-finite.h: Move to ...
94 * bits/math-finite.h: ... here.
95
96 2019-02-08 Florian Weimer <fweimer@redhat.com>
97
98 * sysdeps/generic/bits/unistd_ext.h: Move to ...
99 * bits/unistd_ext.h: here.
100
101 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
102
103 [BZ #21915]
104 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
105 * nss/tst-nss-files-hosts-long.c: New file.
106 * nss/tst-nss-files-hosts-long.root: New directory.
107 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
108 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
109
110 2019-02-08 Florian Weimer <fweimer@redhat.com>
111
112 * include/bits/unistd_ext.h: Remove file.
113 * posix/bits/unistd_ext.h: Move to ...
114 * sysdeps/generic/bits/unistd_ext.h: ... here.
115
116 2019-02-08 Florian Weimer <fweimer@redhat.com>
117
118 * include/bits/unistd_ext.h: New file.
119
120 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
121
122 * time/tst-strftime2.c: Use array_length macros instead of magic
123 numbers.
124
125 2019-02-08 Florian Weimer <fweimer@redhat.com>
126
127 [BZ #24161]
128 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
129 argument.
130 * nptl/register-atfork.c (__run_fork_handlers): Only perform
131 locking if the new do_locking argument is true.
132 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
133 __run_fork_handlers.
134
135 2019-02-08 Florian Weimer <fweimer@redhat.com>
136
137 [BZ #6399]
138 Linux: Add gettid system call wrapper.
139 * posix/Makefile (headers): Add bits/unistd_ext.h.
140 * posix/bits/unistd_ext.h: New file.
141 * posix/unistd.h: Include it.
142 * manual/process.texi (Process Identification): Document gettid.
143 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
144 tst-gettid, tst-gettid-kill.
145 (tst-gettid): Link with $(shared-thread-library).
146 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
147 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
148 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
149 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
150 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
151 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
152 Add gettid.
153 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
154 Likewise.
155 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
156 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
157 Likewise.
158 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
159 Likewise.
160 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
161 Likewise.
162 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
163 Likewise.
164 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
165 Likewise.
166 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
167 Likewise.
168 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
169 Likewise.
170 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
171 (GLIBC_2.30): Likewise.
172 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
173 (GLIBC_2.30): Likewise.
174 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
175 (GLIBC_2.30): Likewise.
176 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
177 (GLIBC_2.30): Likewise.
178 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
179 Likewise.
180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
181 (GLIBC_2.30): Likewise.
182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
183 (GLIBC_2.30): Likewise.
184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
185 (GLIBC_2.30): Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
187 (GLIBC_2.30): Likewise.
188 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
189 Likewise.
190 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
191 Likewise.
192 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
193 Likewise.
194 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
195 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
196 Likewise.
197 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
198 Likewise.
199 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
200 Likewise.
201 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
202 Likewise.
203 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
204
205 2019-02-07 Florian Weimer <fweimer@redhat.com>
206
207 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
208 compatibility symbols.
209
210 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
211
212 [BZ #24180]
213 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
214 Add compiler barriers and comments.
215
216 2019-02-07 Florian Weimer <fweimer@redhat.com>
217
218 * include/array_length.h (array_length): Do not use a statement
219 expression and _Static_assert, so that array_length can be used at
220 file scope and as a constant expression.
221
222 2019-02-07 Florian Weimer <fweimer@redhat.com>
223
224 * support/xdlfcn.h (xdlmopen): Declare.
225 * support/xdlmopen.c: New file.
226 * support/Makefile (libsupport-routines): Add xdlmopen.
227
228 2019-02-06 Joseph Myers <joseph@codesourcery.com>
229
230 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
231 before return type, without separate inline.
232 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
233 * elf/dl-tunables.h (tunable_is_name): Likewise.
234 * malloc/malloc.c (do_set_trim_threshold): Likewise.
235 (do_set_top_pad): Likewise.
236 (do_set_mmap_threshold): Likewise.
237 (do_set_mmaps_max): Likewise.
238 (do_set_mallopt_check): Likewise.
239 (do_set_perturb_byte): Likewise.
240 (do_set_arena_test): Likewise.
241 (do_set_arena_max): Likewise.
242 (do_set_tcache_max): Likewise.
243 (do_set_tcache_count): Likewise.
244 (do_set_tcache_unsorted_limit): Likewise.
245 * nis/nis_subr.c (count_dots): Likewise.
246 * nptl/allocatestack.c (advise_stack_range): Likewise.
247 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
248 (do_sin): Likewise.
249 (reduce_sincos): Likewise.
250 (do_sincos): Likewise.
251 * sysdeps/unix/sysv/linux/x86/elision-conf.c
252 (do_set_elision_enable): Likewise.
253 (TUNABLE_CALLBACK_FNDECL): Likewise.
254
255 2019-02-06 Florian Weimer <fweimer@redhat.com>
256
257 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
258 (xdlsym): Use dlerror to detect a NULL symbol.
259
260 2019-02-06 Florian Weimer <fweimer@redhat.com>
261
262 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
263 <stap-probe.h>.
264 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
265
266 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
267
268 * libio/tst-bz24153.c (wide): Use wide char format specifier.
269
270 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
271
272 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
273 __wmemcmp and weak alias to wmemcmp.
274
275 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
276
277 [BZ #23403]
278 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
279 TLS_TCB_AT_TP tls variant.
280 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
281 Add alignment checks.
282 * support/Makefile (libsupport-routines): Add xposix_memalign and
283 xpthread_setstack.
284 * support/support.h: Add xposix_memalign.
285 * support/xthread.h: Add xpthread_attr_setstack.
286 * support/xposix_memalign.c: New File.
287 * support/xpthread_attr_setstack.c: Likewise.
288
289 2019-02-05 Florian Weimer <fweimer@redhat.com>
290
291 [BZ #24164]
292 arm: Use "nr" constraint for Systemtap probes, to avoid the
293 compiler using memory operands for constants, due to the "o"
294 alternative in the default "nor" constraint.
295 * include/stap-probe.h [USE_STAP_PROBE]: Include
296 <stap-probe-machine.h>
297 * sysdeps/generic/stap-probe-machine.h: New file.
298 * sysdeps/arm/stap-probe-machine.h: Likewise.
299
300 2019-02-04 Joseph Myers <joseph@codesourcery.com>
301
302 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
303 with 0, not tcache->entries[tc_idx].
304
305 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
306 once.
307
308 2019-02-04 Andreas Schwab <schwab@suse.de>
309
310 [BZ #16976]
311 [BZ #17396]
312 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
313 looking up collating elements match against (wide) character
314 sequence instead of name. Correct alignment adjustment.
315 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
316 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
317 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
318 (LOCALES): Add cs_CZ.ISO-8859-2.
319 * posix/tst-fnmatch4.c: New file.
320 * posix/tst-fnmatch5.c: New file.
321 * include/wchar.h (__wmemcmp): Declare.
322 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
323 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
324 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
325 * sysdeps/s390/wmemcmp.c: Likewise.
326
327 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
328
329 [BZ #24155]
330 CVE-2019-7309
331 * NEWS: Updated for CVE-2019-7309.
332 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
333 upper 32 bits of RDX register for x32. Use unsigned Jcc
334 instructions, instead of signed.
335 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
336 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
337
338 2019-02-04 Florian Weimer <fweimer@redhat.com>
339
340 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
341 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
342 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
343 Likewise.
344 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
345 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
346 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
347 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
348 Likewise.
349 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
350 Likewise.
351 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
352 Likewise.
353 (posix_spawn_file_actions_addopen): Likewise.
354 (posix_spawn_file_actions_addclose): Likewise.
355 (posix_spawn_file_actions_adddup2): Likewise.
356 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
357 qualifiers.
358 (posix_spawn_file_actions_addfchdir_np): Likewise.
359
360 2019-02-04 David Newall <glibc@davidnewall.com>
361
362 elf: Implement --preload option for the dynamic linker.
363 * elf/rtld.c (preloadarg): New variable.
364 (handle_preload_list): Pass through “where” argument to
365 do_preload.
366 (dl_main): Handle "--preload" and add second call to
367 handle_preload_list.
368 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
369 (tst-rtld-preload-OBJS): Set variable.
370 (tst-rtld-preload.out): New target.
371 * elf/tst-rtld-preload.sh: New file.
372
373 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
374
375 * Makefile (testrun.sh): Exit in case of incorrect argument.
376
377 2019-02-04 Florian Weimer <fweimer@redhat.com>
378
379 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
380 alignment gaps.
381
382 2019-02-03 Florian Weimer <fweimer@redhat.com>
383
384 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
385 implicit overflow checks.
386
387 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
388
389 * stdlib/isomac.c: Include <unistd.h>.
390
391 2019-02-03 Florian Weimer <fweimer@redhat.com>
392
393 * include/time.h (__tzfile_default): Use int, not long int, for
394 the GMT offsets.
395 * time/tzfile.c (struct ttinfo): Change type of the offset member
396 to int.
397 (__tzfile_read): Remove useless cast.
398 (__tzfile_default): Adjust prototype.
399 * time/tzset.c (tz_rule): Change type of the offset member to int.
400 (parse_offset): Change the type of the sign variable to int.
401
402 2019-02-03 Florian Weimer <fweimer@redhat.com>
403
404 [BZ #24153]
405 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
406 * libio/getchar.c (getchar): Likewise.
407 * libio/getchar_u.c (getchar_unlocked): Likewise.
408 * libio/getwchar.c (getwchar): Likewise.
409 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
410 * libio/iogets.c (_IO_gets): Likewise.
411 * libio/vscanf.c (_IO_vscanf): Likewise.
412 * libio/vwscanf.c (__vwscanf): Likewise.
413 * libio/tst-bz24153.c: New file.
414 * libio/Makefile (tests): Add it.
415
416 2019-02-02 Florian Weimer <fweimer@redhat.com>
417
418 [BZ #14829]
419 * manual/resource.texi (Basic Scheduling Functions): Add
420 portability note. Change process to task throughout the section.
421 Remove incorrect comment about sched_yield as it affects
422 tasks/threads, not entire processes.
423 * sysdeps/unix/sysv/linux/bits/posix_opt.h
424 (_POSIX_PRIORITY_SCHEDULING): Update comment.
425
426 2019-02-01 Joseph Myers <joseph@codesourcery.com>
427
428 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
429 * configure: Regenerated.
430 * manual/install.texi (Tools for Compilation): Update minimum GCC
431 version.
432 * INSTALL: Regenerated.
433
434 2019-02-01 Florian Weimer <fweimer@redhat.com>
435
436 * support/support_test_compare_string.c
437 (support_test_compare_string): Use "string" in error message.
438 * support/tst-test_compare_string.c (do_test): Adjust.
439
440 2019-02-01 Florian Weimer <fweimer@redhat.com>
441
442 * support/support_format_address_family.c
443 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
444
445 2019-02-01 Florian Weimer <fweimer@redhat.com>
446
447 * manual/socket.texi (Internet Address Formats): Clarify the byte
448 order of struct sockaddr_in, struct sockaddr_in6. Document
449 sin6_flowinfo and sin6_scope_id.
450
451 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
452
453 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
454 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
455 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
456 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
457 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
458 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
459
460 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
461
462 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
463 [!MEMCHR](MEMCHR): Set to __memchr.
464 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
465 Add memchr_generic and memchr_nosimd.
466 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
467 (__libc_ifunc_impl_list): Add memchr ifuncs.
468 * sysdeps/aarch64/multiarch/memchr.c: New file.
469 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
470 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
471
472 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
473
474 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
475 Add memset_emag.
476 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
477 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
478 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
479 Add IS_EMAG check for ifunc dispatch.
480 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
481 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
482
483 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
484
485 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
486 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
487 Add emag.
488 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
489 New macro.
490
491 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
492
493 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
494
495 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
496
497 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
498 syscall-template file.
499
500 2019-01-31 Carlos O'Donell <carlos@redhat.com>
501 Torvald Riegel <triegel@redhat.com>
502 Rik Prohaska <prohaska7@gmail.com>
503
504 [BZ# 23844]
505 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
506 tst-rwlock-trywrlock-stall.
507 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
508 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
509 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
510 Set __wrphase_fute to 1 only if we started the write phase.
511 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
512 * nptl/tst-rwlock-trywrlock-stall.c: New file.
513 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
514 * support/xpthread_rwlock_destroy.c: New file.
515 * support/xthread.h: Declare xpthread_rwlock_destroy.
516
517 2019-02-01 Joseph Myers <joseph@codesourcery.com>
518
519 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
520 version to 4.0.2.
521
522 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
523
524 [BZ #24051]
525 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
526 * libio/fileops.c (_IO_new_file_underflow): Likewise
527 * libio/wfileops.c (_IO_wfile_underflow): Likewise
528 * libio/putchar.c (putchar): Likewise.
529 * libio/putchar_u.c (putchar_unlocked): Likewise.
530 * libio/putwchar.c (putchar): Likewise.
531 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
532 * libio/tst-bz24051.c: New test.
533 * libio/Makefile (tests): Add tst-bz24051
534
535 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
536
537 regex: fix read overrun [BZ #24114]
538 Problem found by AddressSanitizer, reported by Hongxu Chen in:
539 https://debbugs.gnu.org/34140
540 * posix/regexec.c (proceed_next_node):
541 Do not read past end of input buffer.
542
543 2019-01-31 Florian Weimer <fweimer@redhat.com>
544
545 [BZ #24059]
546 * nss/nss_files/files-alias.c (get_next_alias): Handle
547 continuation line without newline at the end.
548 * nss/tst-nss-files-alias-truncated.c: New file.
549 * nss/Makefile [$(build-shared)] (tests): Add
550 tst-nss-files-alias-truncated.
551 (tst-nss-files-alias-truncated): Link with libnss_files.so.
552 * support/namespace.h (struct support_chroot_configuration): Add
553 aliases member.
554 (struct support_chroot): Add path_aliases member.
555 * support/support_chroot.c (support_chroot_create): Handle
556 aliases.
557 (support_chroot_free): Free path_aliases.
558
559 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
560
561 * version.h (RELEASE): Set to "development".
562 (VERSION): Set to "2.29.9000".
563 * NEWS: Add section for 2.30.
564
565 * version.h (RELEASE): Set to "stable".
566 (VERSION): Set to "2.29".
567 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
568
569 * NEWS: Add the list of bugs fixed in 2.29.
570 * manual/contrib.texi: Update contributors list with some more
571 names.
572 * manual/install.texi: Update latest versions of packages
573 tested.
574 * INSTALL: Regenerated.
575
576 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
577
578 * po/be.po: Update translations.
579 * po/bg.po: Likewise.
580 * po/ca.po: Likewise.
581 * po/cs.po: Likewise.
582 * po/da.po: Likewise.
583 * po/de.po: Likewise.
584 * po/el.po: Likewise.
585 * po/eo.po: Likewise.
586 * po/es.po: Likewise.
587 * po/fi.po: Likewise.
588 * po/fr.po: Likewise.
589 * po/gl.po: Likewise.
590 * po/hr.po: Likewise.
591 * po/hu.po: Likewise.
592 * po/ia.po: Likewise.
593 * po/id.po: Likewise.
594 * po/it.po: Likewise.
595 * po/ja.po: Likewise.
596 * po/ko.po: Likewise.
597 * po/lt.po: Likewise.
598 * po/nb.po: Likewise.
599 * po/nl.po: Likewise.
600 * po/pl.po: Likewise.
601 * po/pt_BR.po: Likewise.
602 * po/ru.po: Likewise.
603 * po/rw.po: Likewise.
604 * po/sk.po: Likewise.
605 * po/sl.po: Likewise.
606 * po/sv.po: Likewise.
607 * po/tr.po: Likewise.
608 * po/uk.po: Likewise.
609 * po/vi.po: Likewise.
610 * po/zh_CN.po: Likewise.
611 * po/zh_TW.po: Likewise.
612
613 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
614
615 [BZ #24130]
616 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
617 of $f3 register on $y_is_neg path.
618
619 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
620
621 [BZ #24110]
622 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
623 sigaltstack.ss_flags.
624
625 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
626
627 [BZ #23758]
628 * manual/time.texi (strftime): Document "%Ey".
629 * time/strftime_l.c (__strftime_internal): Set the default width
630 padding with zero of "%Ey" to 2.
631
632 [BZ #24096]
633 * manual/time.texi (strftime): Document "%EC" and "%EY".
634 * time/Makefile (tests): Add tst-strftime2.
635 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
636 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
637 override padding for "%Ey".
638 If an optional flag ('_' or '-') is specified to "%EY", interpret the
639 "%Ey" in the subformat as if decorated with that flag.
640 * time/tst-strftime2.c: New file.
641
642 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
643
644 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
645 are not defined.
646
647 [BZ #24122]
648 * elf/Makefile (tests): Add tst-audit13.
649 (modules-names): Add tst-audit13mod1.
650 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
651 rule.
652 * elf/rtld.c (dl_main): Handle invalid audit module version.
653 * elf/tst-audit13.c: New file.
654 * elf/tst-audit13mod1.c: Likewise.
655
656 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
657
658 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
659 returned by __hurd_at_flags.
660 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
661 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
662 directly instead of __hurd_file_name_lookup.
663
664 2019-01-21 Joseph Myers <joseph@codesourcery.com>
665
666 * scripts/build-many-glibcs.py (Context.checkout): Default
667 binutils version to 2.32 branch.
668
669 2019-01-21 Florian Weimer <fweimer@redhat.com>
670
671 [BZ #20018]
672 CVE-2016-10739
673 resolv: Reject trailing characters in host names
674 * include/arpa/inet.h (__inet_aton_exact): Declare.
675 (inet_aton): Remove hidden prototype. No longer used internally.
676 * nscd/gai.c (__inet_aton): Do not define.
677 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
678 * nss/digits_dots.c (__inet_aton): Likewise.
679 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
680 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
681 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
682 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
683 (tst-resolv-trailing): Likewise.
684 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
685 libc.
686 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
687 Make static. Add endp parameter.
688 (__inet_aton_exact): New function.
689 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
690 (__inet_addr): Call inet_aton_end.
691 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
692 not just IPv6. Call __inet_aton_exact.
693 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
694 (tests): Make const. Add additional test cases with trailing
695 characters.
696 (do_test): Use array_length.
697 * resolv/tst-inet_aton_exact.c: New file.
698 * resolv/tst-resolv-trailing.c: Likewise.
699 * resolv/tst-resolv-nondecimal.c: Likewise.
700 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
701
702 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
703
704 [BZ# 24097]
705 CVE-2019-6488
706 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
707 Clear the upper 32 bits of RSI register.
708 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
709 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
710 and tst-size_t-wcsnlen.
711 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
712 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
713
714 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
715
716 [BZ# 24097]
717 CVE-2019-6488
718 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
719 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
720 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
721 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
722 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
723
724 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
725
726 [BZ# 24097]
727 CVE-2019-6488
728 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
729 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
730 * sysdeps/x86_64/strcmp.S: Likewise.
731 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
732 tst-size_t-strncmp and tst-size_t-wcsncmp.
733 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
734 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
735 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
736
737 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
738
739 [BZ# 24097]
740 CVE-2019-6488
741 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
742 RDX_LP for length. Clear the upper 32 bits of RDX register.
743 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
744 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
745 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
746 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
747
748 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
749
750 [BZ# 24097]
751 CVE-2019-6488
752 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
753 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
754 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
755 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
756
757 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
758
759 [BZ# 24097]
760 CVE-2019-6488
761 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
762 length. Clear the upper 32 bits of RDX register.
763 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
764 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
765 Likewise.
766 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
767 Likewise.
768 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
769 tst-size_t-wmemchr.
770 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
771
772 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
773
774 [BZ# 24097]
775 CVE-2019-6488
776 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
777 length. Clear the upper 32 bits of RDX register.
778 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
779 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
780 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
781 tst-size_t-wmemcmp.
782 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
783 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
784
785 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
786
787 [BZ# 24097]
788 CVE-2019-6488
789 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
790 upper 32 bits of RDX register.
791 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
792 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
793 tst-size_t-wmemchr.
794 * sysdeps/x86_64/x32/test-size_t.h: New file.
795 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
796 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
797
798 2019-01-18 Florian Weimer <fweimer@redhat.com>
799
800 [BZ #24112]
801 resolv: Do not send queries for non-host-names in nss_dns.
802 * resolv/nss_dns/dns-host.c (check_name): New function.
803 (_nss_dns_gethostbyname2_r): Use it.
804 (_nss_dns_gethostbyname_r): Likewise.
805 (_nss_dns_gethostbyname4_r): Likewise.
806
807 2019-01-21 Florian Weimer <fweimer@redhat.com>
808
809 * resolv/inet_addr.c: Reformat to GNU style.
810 (__inet_addr, __inet_aton): Update comment.
811
812 2019-01-18 Florian Weimer <fweimer@redhat.com>
813
814 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
815 ("malloc: Use current (C11-style) atomics for fastbin access").
816 This commit introduces a substantial performance regression on
817 POWER and Aarch64.
818 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
819 (REMOVE_FB): Define.
820 (_int_malloc): Use it and reindent.
821 (_int_free): Use CAS loop with
822 catomic_compare_and_exchange_val_rel.
823 (malloc_consolidate): Use atomic_exchange_acq.
824
825
826 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
827
828 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
829 -Wl,-z,now.
830 (LDFLAGS-tst-minsigstksz-2): Likewise.
831 (LDFLAGS-tst-minsigstksz-3): Likewise.
832 (LDFLAGS-tst-minsigstksz-3a): Likewise.
833 (LDFLAGS-tst-minsigstksz-4): Likewise.
834
835 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
836
837 * manual/time.texi (strftime): Fix the wording to "alternative" rather
838 than "alternate".
839
840 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
841
842 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
843
844 2019-01-16 Zack Weinberg <zackw@panix.com>
845
846 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
847 (xget_sigstack_location): New test support functions.
848 * support/xsigstack.c: New file, implementing them.
849 * support/tst-xsigstack.c: New test for them.
850 * support/Makefile: Update.
851
852 * signal/tst-minsigstksz-1.c
853 * signal/tst-minsigstksz-2.c
854 * signal/tst-minsigstksz-3.c
855 * signal/tst-minsigstksz-3a.c
856 * signal/tst-minsigstksz-4.c: New tests.
857 * signal/Makefile: Run them.
858
859 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
860
861 * po/libc.pot: Regenerate.
862
863 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
864
865 * math/libm-test-fma.inc (fma_test_data): Set
866 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
867
868 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
869
870 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
871 (do_test): Changed __vector __int128_t to __vector unsigned int.
872
873 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
874
875 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
876 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
877 stpcpy-avx2 and stpncpy-avx2.
878 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
879 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
880 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
881 and __stpncpy_avx2.
882 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
883 ifunc-strcpy.h}: rename header for a more generic name.
884 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
885 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
886 AVX unaligned load is fast and vzeroupper is preferred.
887 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
888 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
889 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
890 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
891 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
892 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
893
894 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
895
896 * argp/argp-help.c: Fix typo in comment.
897 * misc/sys/cdefs.h: Likewise.
898 * posix/regexec.c (sift_states_iter_mb): Likewise.
899 * socket/sockatmark.c: Likewise.
900 * socket/sys/socket.h: Likewise.
901 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
902 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
903 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
904 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
905 * sysdeps/unix/sockatmark.c: Likewise.
906 * time/strptime_l.c: Likewise.
907
908 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
909
910 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
911 missing space after the cast of "_NL_CURRENT".
912
913 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
914
915 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
916 ifdef to fix read of VSCR.
917 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
918 tst-ucontext-ppc64-vscr.c to test list.
919 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
920
921 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
922
923 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
924 fall-through.
925
926 2019-01-09 Jim Wilson <jimw@sifive.com>
927
928 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
929
930 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
931
932 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
933 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
934 __memcpy_falkor for ares.
935 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
936 Add new define.
937 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
938 Add ares cpu.
939
940 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
941
942 [BZ #24066]
943 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
944 4_FP_W_TYPEs are used for IEEE quad precision.
945 * soft-fp/extendhftf2.c: Likewise.
946 * soft-fp/extendsftf2.c: Likewise.
947 * soft-fp/extendxftf2.c: Likewise.
948 * soft-fp/trunctfdf2.c: Likewise.
949 * soft-fp/trunctfhf2.c: Likewise.
950 * soft-fp/trunctfsf2.c: Likewise.
951 * soft-fp/trunctfxf2.c: Likewise.
952 * sysdeps/alpha/ots_cvttx.c: Likewise.
953 * sysdeps/alpha/ots_cvtxt.c: Likewise.
954 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
955 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
956 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
957 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
958 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
959 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
960 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
961 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
962 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
963 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
964 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
965 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
966 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
967 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
968 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
969 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
970
971 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
972
973 [BZ #24024]
974 * Makeconfig: Build libm with -fno-math-errno but build the remaining
975 code with -fmath-errno.
976 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
977 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
978 * string/test-strerror-errno.c: New file.
979
980 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
981
982 [BZ #24046]
983 * localedata/locales/en_US (date_fmt): Add, set to
984 "%a %d %b %Y %r %Z".
985
986 2019-01-07 Florian Weimer <fweimer@redhat.com>
987
988 [BZ #24063]
989 * manual/arith.texi (Math Error Reporting): Use @code{errno}
990 instead of @var{errno}.
991 (Parsing of Integers): Likewise.
992 (Parsing of Floats): Likewise.
993 * manual/filesys.texi (Working with Directory Trees): Likewise.
994 (Temporary Files): Likewise.
995 * manual/job.texi (Terminal Access Functions): Likewise.
996 * manual/llio.texi (Synchronizing I/O): Likewise.
997 * manual/math.texi (SVID Random): Likewise.
998 * manual/message.texi (The catgets Functions): Likewise.
999 (Translation with gettext): Likewise.
1000 (Locating gettext catalog): Likewise.
1001 (Charset conversion in gettext): Likewise.
1002 * manual/nss.texi (NSS Module Function Internals): Likewise.
1003 * manual/search.texi (Hash Search Function): Likewise.
1004 * manual/setjmp.texi (System V contexts): Likewise.
1005 * manual/time.texi (Sleeping): Likewise.
1006 * manual/users.texi (Lookup User): Likewise.
1007 (Lookup Group): Likewise.
1008
1009 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1010
1011 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1012 fix typo.
1013
1014 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1015
1016 [BZ #19444]
1017 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1018 __builtin_unreachable for default case in switch.
1019 (__ieee754_yn): Likewise.
1020 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1021 (__ieee754_ynl): Likewise.
1022 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1023 (__ieee754_ynl): Likewise.
1024 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1025 (__ieee754_ynl): Likewise.
1026
1027 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1028
1029 * manual/maint.texi: Use @{ and @}.
1030
1031 2019-01-04 Florian Weimer <fweimer@redhat.com>
1032
1033 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1034 function.
1035 (do_in_chroot_1): Call it.
1036 (run_chroot_tests):
1037 Improve error reporting in case it is not possible to create a
1038 collision for the PTY name required by the test.
1039
1040 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1041
1042 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1043 lll_wait_tid with timeout.
1044 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1045 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1046 futex_reltimed_wait_cancelable for cancelabla mode.
1047 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1048 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1049 macros.
1050 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1051 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1052 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1053 SYSCALL_CANCEL_NCS): New macro.
1054 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1055 (lll_timedwait_tid): Remove macro.
1056 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1057 Likewise.
1058 (lll_timedwait_tid): Likewise.
1059 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1060 Likewise.
1061 (lll_timedwait_tid): Likewise.
1062 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1063 Likewise.
1064 (lll_timedwait_tid): Likewise.
1065 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1066 Use INTERNAL_SYSCALL_CANCEL.
1067 * sysdeps/unix/sysv/linux/futex-internal.h
1068 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1069 instead of __pthread_{enable,disable}_asynccancel.
1070 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1071 (lll_futex_wait_cancel): New macro.
1072
1073 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1074 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1075
1076 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1077 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1078
1079 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1080 in backtrace analysis.
1081 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1082 side-effects.
1083 (tf_send): Likewise.
1084
1085 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1086 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1087 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1088 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1089 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1090 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1091 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1092 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1093 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1094 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1095 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1096 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1097 Likewise.
1098 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1099 tst-cancel-wrappers.sh.
1100 (generated): Remove tst-cancel-wrappers.out.
1101 (tst-cancel-wrappers.out): Remove rule.
1102 * nptl/tst-cancel-wrappers.sh: Remove file.
1103
1104 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1105
1106 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1107 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1108 Update.
1109
1110 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1111
1112 [BZ #23640]
1113 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1114 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1115 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1116 close-on-exec reset for adddup2 file action.
1117 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1118
1119 2019-01-03 Zack Weinberg <zackw@panix.com>
1120
1121 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1122 parameter. Only use deprecated scanf when __USE_GNU is defined
1123 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1124 than 201103L, whichever is relevant for the language being compiled.
1125
1126 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1127 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1128 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1129 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1130 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1131
1132 * libio/iovsscanf.c
1133 * libio/fwscanf.c
1134 * libio/iovswscanf.c
1135 * libio/swscanf.c
1136 * libio/vscanf.c
1137 * libio/vwscanf.c
1138 * libio/wscanf.c
1139 * stdio-common/fscanf.c
1140 * stdio-common/scanf.c
1141 * stdio-common/vfscanf.c
1142 * stdio-common/vfwscanf.c
1143 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1144 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1145 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1146 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1147 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1148 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1149 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1150 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1151 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1152 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1153 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1154 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1155 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1156 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1157 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1158
1159 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1160 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1161 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1162 not sscanf.
1163 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1164 with a preprocessor macro.
1165
1166 * stdio-common/bug21.c, stdio-common/scanf14.c:
1167 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1168 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1169 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1170 to xscanf, xfscanf, xsscanf.
1171
1172 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1173 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1174 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1175 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1176 xfscanf, xsscanf.
1177 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1178 override feature selection macros or provide definitions of u_char etc.
1179 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1180 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1181 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1182 with -std=gnu89.
1183
1184 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1185
1186 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1187 bits/termios-misc.h.
1188 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1189 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1190 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1191 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1192 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1193 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1194
1195 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1196 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1197 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1198 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1199 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1200 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1201 termios-misc.h.
1202 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1203 (sysdep_headers): Add termios-misc.h.
1204
1205 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1206 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1207 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1208
1209 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1210 termios-tcflow.h.
1211 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1212 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1213 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1214 TCSAFLUSH): Move to termios-tcflow.h.
1215 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1216 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1217 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1218 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1219
1220 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1221 termios-c_lflag.h.
1222 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1223 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1224 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1225 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1226 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1227 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1228 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1229 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1230 Likewise.
1231 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1232 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1233 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1234 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1235
1236 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1237 termios-c_cflag.h.
1238 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1239 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1240 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1241 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1242 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1243 termios-c_cflag.h.
1244 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1245 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1246 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1247 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1248
1249 [BZ #23783]
1250 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1251 termios-baud.h.
1252 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1253 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1254 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1255 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1256 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1257 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1258 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1259 __MAX_BAUD): Move to termios-baud.h.
1260 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1261 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1262 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1263 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1264 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1265
1266 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1267 termios-c_oflag.h.
1268 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1269 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1270 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1271 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1272 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1273 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1274 termios-c_oflag.h.
1275 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1276 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1277 FFR1): Likewise.
1278 [USE_MISC] (XTABS): Likewise.
1279 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1280 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1281 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1282 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1283
1284 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1285 termios-c_iflag.h.
1286 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1287 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1288 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1289 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1290 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1291 IUTF8): Move to termios-c_iflag.h.
1292 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1293 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1294 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1295 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1296
1297 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1298 termios-cc.h.
1299 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1300 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1301 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1302 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1303 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1304 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1305 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1306 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1309 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1311
1312 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1313 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1314 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1315 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1316 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1317 termios-struct.h.
1318 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1319 termios-struct.h.
1320 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1321 Likewise.
1322 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1323 Likewise.
1324 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1325 Likewise.
1326 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1327 Likewise.
1328 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1329 _HAVE_C_OSPEED): Define.
1330 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1331 _HAVE_C_OSPEED): Likewise.
1332 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1333 _HAVE_C_OSPEED): Likewise.
1334 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1335 (cfsetospeed): Check for define value instead of existence.
1336 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1337 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1338 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1339 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1340 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1341
1342 [BZ #17783]
1343 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1344 Define.
1345 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1346 (TIOCSER_TEMT): Likewise.
1347 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1348 (TEOCSER_TEMT): Likewise.
1349
1350 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1351
1352 [BZ #24011]
1353 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1354
1355 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1356
1357 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1358
1359 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1360
1361 * sysdeps/htl/pt-barrierattr-setpshared.c
1362 (pthread_barrierattr_setpshared): Add stub warning.
1363 * sysdeps/htl/pt-condattr-setpshared.c
1364 (pthread_condattr_setpshared): Likewise.
1365 * sysdeps/htl/pt-mutexattr-setpshared.c
1366 (pthread_mutexattr_setpshared): Likewise.
1367 * sysdeps/htl/pt-rwlockattr-setpshared.c
1368 (pthread_rwlockattr_setpshared): Likewise.
1369 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1370 (pthread_mutexattr_setpshared): Likewise.
1371
1372 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1373
1374 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1375 constants to match with Linux 4.20.
1376
1377 * sysdeps/mips/mips32/libm-test-ulps: Update.
1378 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1379
1380 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1381
1382 [BZ #24034]
1383 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1384 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1385 than __typeof (...) for the a_ptr variable.
1386
1387 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1388
1389 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1390 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1391 * libio/Makefile (tests): Add tst-sprintf-ub and
1392 tst-sprintf-chk-ub.
1393 (CFLAGS-tst-sprintf-ub.c): New variable.
1394 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1395 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1396 destination buffer and check for overflows in fortified mode.
1397 * libio/libioP.h (PRINTF_CHK): New macro.
1398 * libio/tst-sprintf-chk-ub.c: New file.
1399 * libio/tst-sprintf-ub.c: Likewise.
1400
1401 2019-01-02 Florian Weimer <fweimer@redhat.com>
1402
1403 [BZ #24018]
1404 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1405 failure.
1406
1407 2019-01-02 Florian Weimer <fweimer@redhat.com>
1408
1409 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1410
1411 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1412
1413 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1414 macro.
1415
1416 * sysdeps/unix/sysv/linux/netpacket/packet.h
1417 (PACKET_IGNORE_OUTGOING): New macro.
1418
1419 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1420 macro.
1421
1422 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1423 version to 4.20.
1424 (riscv_flush_icache): New syscall.
1425
1426 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1427 trailing whitespace removed.
1428 * scripts/config.guess: Update to version 2019-01-01.
1429 * scripts/config.sub: Update to version 2019-01-01.
1430 * scripts/move-if-change: Update from gnulib.
1431
1432 * NEWS: Update copyright dates.
1433 * catgets/gencat.c (print_version): Likewise.
1434 * csu/version.c (banner): Likewise.
1435 * debug/catchsegv.sh: Likewise.
1436 * debug/pcprofiledump.c (print_version): Likewise.
1437 * debug/xtrace.sh (do_version): Likewise.
1438 * elf/ldconfig.c (print_version): Likewise.
1439 * elf/ldd.bash.in: Likewise.
1440 * elf/pldd.c (print_version): Likewise.
1441 * elf/sotruss.sh: Likewise.
1442 * elf/sprof.c (print_version): Likewise.
1443 * iconv/iconv_prog.c (print_version): Likewise.
1444 * iconv/iconvconfig.c (print_version): Likewise.
1445 * locale/programs/locale.c (print_version): Likewise.
1446 * locale/programs/localedef.c (print_version): Likewise.
1447 * login/programs/pt_chown.c (print_version): Likewise.
1448 * malloc/memusage.sh (do_version): Likewise.
1449 * malloc/memusagestat.c (print_version): Likewise.
1450 * malloc/mtrace.pl: Likewise.
1451 * manual/libc.texinfo: Likewise.
1452 * nptl/version.c (banner): Likewise.
1453 * nscd/nscd.c (print_version): Likewise.
1454 * nss/getent.c (print_version): Likewise.
1455 * nss/makedb.c (print_version): Likewise.
1456 * posix/getconf.c (main): Likewise.
1457 * scripts/test-installation.pl: Likewise.
1458 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1459
1460 * All files with FSF copyright notices: Update copyright dates
1461 using scripts/update-copyrights.
1462 * locale/programs/charmap-kw.h: Regenerated.
1463 * locale/programs/locfile-kw.h: Likewise.
1464
1465 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1466
1467 * timezone/zdump.c: Update from tzcode 2018i.
1468 * timezone/zic.c: Likewise.
1469
1470 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1471
1472 regex: improve Gnulib port to AIX
1473 From the glibc point of view, this removes duplicate macro
1474 definitions and is obviously safe.
1475 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1476 * posix/regex_internal.h:
1477 (__attribute__, __attribute_warn_unused_result__):
1478 Remove; already defined elsewhere.
1479
1480 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1481
1482 [BZ #24027]
1483 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1484 copying operation. (ncopies had the wrong type, resulting in an
1485 integer wraparound and too few elements being copied.)
1486
1487 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1488
1489 [BZ #24022]
1490 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1491 <asm/syscalls.h> exists with __has_include__ before including it.
1492
1493 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1494
1495 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1496 version to 4.20.
1497
1498 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1499
1500 * hurd/lookup-retry: Include <unistd.h>.
1501 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1502 Release it on return. Handle "pid" magical lookup retry.
1503
1504 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1505
1506 [BZ #10496]
1507 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1508 (t_fmt_ampm): Likewise.
1509 * localedata/locales/aa_ER (t_fmt): Likewise.
1510 (t_fmt_ampm): Likewise.
1511 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1512 (t_fmt_ampm): Likewise.
1513 * localedata/locales/aa_ET (t_fmt): Likewise.
1514 (t_fmt_ampm): Likewise.
1515 * localedata/locales/am_ET (t_fmt): Likewise.
1516 (t_fmt_ampm): Likewise.
1517 * localedata/locales/byn_ER (t_fmt): Likewise.
1518 (t_fmt_ampm): Likewise.
1519 * localedata/locales/om_ET (t_fmt): Likewise.
1520 (t_fmt_ampm): Likewise.
1521 * localedata/locales/sid_ET (t_fmt): Likewise.
1522 (t_fmt_ampm): Likewise.
1523 * localedata/locales/so_DJ (t_fmt): Likewise.
1524 (t_fmt_ampm): Likewise.
1525 * localedata/locales/so_ET (t_fmt): Likewise.
1526 (t_fmt_ampm): Likewise.
1527 * localedata/locales/so_SO (t_fmt): Likewise.
1528 (t_fmt_ampm): Likewise.
1529 * localedata/locales/ti_ER (t_fmt): Likewise.
1530 (t_fmt_ampm): Likewise.
1531 * localedata/locales/ti_ET (t_fmt): Likewise.
1532 (t_fmt_ampm): Likewise.
1533 * localedata/locales/tig_ER (t_fmt): Likewise.
1534 (t_fmt_ampm): Likewise.
1535 * localedata/locales/wal_ET (t_fmt): Likewise.
1536 (t_fmt_ampm): Likewise.
1537
1538 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1539 * localedata/locales/ar_IN (t_fmt): Likewise.
1540 * localedata/locales/bhb_IN (t_fmt): Likewise.
1541 * localedata/locales/bho_IN (t_fmt): Likewise.
1542 * localedata/locales/bi_VU (t_fmt): Likewise.
1543 * localedata/locales/bn_BD (t_fmt): Likewise.
1544 * localedata/locales/bn_IN (t_fmt): Likewise.
1545 * localedata/locales/brx_IN (t_fmt): Likewise.
1546 * localedata/locales/doi_IN (t_fmt): Likewise.
1547 * localedata/locales/en_HK (t_fmt): Likewise.
1548 (t_fmt_ampm): Likewise.
1549 * localedata/locales/en_IN (t_fmt): Likewise.
1550 * localedata/locales/en_PH (t_fmt): Likewise.
1551 * localedata/locales/gu_IN (t_fmt): Likewise.
1552 * localedata/locales/hi_IN (t_fmt): Likewise.
1553 * localedata/locales/hif_FJ (t_fmt): Likewise.
1554 * localedata/locales/hne_IN (t_fmt): Likewise.
1555 * localedata/locales/kn_IN (t_fmt): Likewise.
1556 * localedata/locales/kok_IN (t_fmt): Likewise.
1557 * localedata/locales/ks_IN (t_fmt): Likewise.
1558 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1559 * localedata/locales/mag_IN (t_fmt): Likewise.
1560 * localedata/locales/mai_IN (t_fmt): Likewise.
1561 * localedata/locales/mjw_IN (t_fmt): Likewise.
1562 * localedata/locales/ml_IN (t_fmt): Likewise.
1563 * localedata/locales/mni_IN (t_fmt): Likewise.
1564 * localedata/locales/mr_IN (t_fmt): Likewise.
1565 * localedata/locales/ms_MY (t_fmt): Likewise.
1566 * localedata/locales/pa_IN (t_fmt): Likewise.
1567 * localedata/locales/raj_IN (t_fmt): Likewise.
1568 * localedata/locales/sa_IN (t_fmt): Likewise.
1569 * localedata/locales/sat_IN (t_fmt): Likewise.
1570 * localedata/locales/sd_IN (t_fmt): Likewise.
1571 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1572 * localedata/locales/tcy_IN (t_fmt): Likewise.
1573 * localedata/locales/the_NP (t_fmt): Likewise.
1574 * localedata/locales/to_TO (t_fmt): Likewise.
1575 * localedata/locales/ur_IN (t_fmt): Likewise.
1576
1577 * localedata/locales/hif_FJ (d_t_fmt): Set to
1578 "%A %d %b %Y %I:%M:%S %p".
1579 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1580
1581 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1582 * localedata/locales/ar_BH (t_fmt): Likewise.
1583 * localedata/locales/ar_DZ (t_fmt): Likewise.
1584 * localedata/locales/ar_EG (t_fmt): Likewise.
1585 * localedata/locales/ar_IQ (t_fmt): Likewise.
1586 * localedata/locales/ar_JO (t_fmt): Likewise.
1587 * localedata/locales/ar_KW (t_fmt): Likewise.
1588 * localedata/locales/ar_LB (t_fmt): Likewise.
1589 * localedata/locales/ar_LY (t_fmt): Likewise.
1590 * localedata/locales/ar_OM (t_fmt): Likewise.
1591 * localedata/locales/ar_QA (t_fmt): Likewise.
1592 * localedata/locales/ar_SD (t_fmt): Likewise.
1593 * localedata/locales/ar_SS (t_fmt): Likewise.
1594 * localedata/locales/ar_SY (t_fmt): Likewise.
1595 * localedata/locales/ar_TN (t_fmt): Likewise.
1596 * localedata/locales/ar_YE (t_fmt): Likewise.
1597
1598 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1599 (t_fmt_ampm): Likewise.
1600 * localedata/locales/gez_ET (t_fmt): Likewise.
1601 (t_fmt_ampm): Likewise.
1602
1603 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1604 (t_fmt_ampm): Likewise.
1605 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1606
1607 * localedata/locales/zh_HK (t_fmt):
1608 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1609
1610 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1611 because this locale does not use the 12-hour clock.
1612 (t_fmt): Set to "%Z %H:%M:%S".
1613 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1614
1615 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1616 because this locale does not use the 12-hour clock.
1617 (t_fmt): Set to "%H:%M:%S %Z".
1618 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1619
1620 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1621 because this locale does not use the 12-hour clock.
1622 (t_fmt): Set to "%T".
1623 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1624 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1625
1626 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1627 because this locale does not use the 12-hour clock.
1628 (t_fmt): Set to "%H:%M:%S %Z".
1629 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1630
1631 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1632 because this locale does not use the 12-hour clock.
1633 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1634 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1635
1636 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1637
1638 [BZ #10496]
1639 [BZ #23724]
1640 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1641 (t_fmt_ampm): Likewise.
1642 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1643 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1644 (d_fmt): Set to "%-d.%-m.%y".
1645
1646 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1647
1648 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1649 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1650 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1651 Likewise.
1652 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1653 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1654 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1655 function.
1656 * support/blob_repeat.c (check_mul_overflow_size_t,
1657 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1658
1659 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1660
1661 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1662
1663 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1664
1665 regex: simplify Gnulib port
1666 This simplifies the code, by removing stuff intended for porting
1667 to Gnulib but no longer needed there.
1668 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1669 uses of libc_hidden_def, weak_alias.
1670 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1671 _Restrict_ except for public-facing headers.
1672 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1673 Remove; already defined elsewhere.
1674 * posix/regex.c, posix/regex_internal.h:
1675 Use __GNUC_PREREQ instead of rolling our own.
1676 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1677
1678 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1679
1680 * benchtests/bench-strlen.c (generic_strlen): New function.
1681 (memchr_strlen): New function.
1682
1683 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1684
1685 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1686 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1687 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1688
1689 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1690
1691 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1692
1693 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1694
1695 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1696 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1697 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1698 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1699 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1700 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1701 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1702
1703 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1704
1705 [BZ #24023]
1706 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1707 PLT reference in libc.so.
1708 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1709 _Q_lltoq and _Q_qtod PLT references in libc.so.
1710
1711 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1712
1713 * benchtests/bench-memchr.c: Cleanup defines.
1714 * benchtests/bench-memcmp.c: Likewise.
1715 * benchtests/bench-memset.c: Likewise.
1716 * benchtests/bench-memset-large.c: Likewise.
1717 * benchtests/bench-memset-walk.c: Likewise.
1718 * benchtests/bench-stpcpy.c: Likewise.
1719 * benchtests/bench-stpncpy.c: Likewise.
1720 * benchtests/bench-strcat.c: Likewise.
1721 * benchtests/bench-strchr.c: Likewise.
1722 * benchtests/bench-strcmp.c: Likewise.
1723 * benchtests/bench-strcpy.c: Likewise.
1724 * benchtests/bench-strcspn.c: Likewise.
1725 * benchtests/bench-string.h: Likewise.
1726 * benchtests/bench-strlen.c: Likewise.
1727 * benchtests/bench-strncat.c: Likewise.
1728 * benchtests/bench-strncmp.c: Likewise.
1729 * benchtests/bench-strncpy.c: Likewise.
1730 * benchtests/bench-strnlen.c: Likewise.
1731 * benchtests/bench-strpbrk.c: Likewise.
1732 * benchtests/bench-strrchr.c: Likewise.
1733 * benchtests/bench-strspn.c: Likewise.
1734
1735 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1736
1737 * stdlib/longlong.h: Update from GCC.
1738
1739 [BZ #23993]
1740 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1741 * configure: Regenerated.
1742 * manual/install.texi (Tools for Compilation): Update minimum GCC
1743 version.
1744 * INSTALL: Regenerated.
1745
1746 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1747
1748 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1749
1750 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1751
1752 * malloc/malloc.c (mremap_chunk): Additional checks.
1753
1754 2018-12-21 Mao Han <han_mao@c-sky.com>
1755
1756 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1757 * scripts/build-many-glibcs.py: Add C-SKY targets.
1758 * sysdeps/csky/Implies: New file.
1759 * sysdeps/csky/Makefile: Likewise.
1760 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1761 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1762 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1763 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1764 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1765 * sysdeps/csky/abiv2/memmove.S: Likewise.
1766 * sysdeps/csky/abiv2/memset.S: Likewise.
1767 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1768 * sysdeps/csky/abiv2/start.S: Likewise.
1769 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1770 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1771 * sysdeps/csky/abiv2/strlen.S: Likewise.
1772 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1773 * sysdeps/csky/abort-instr.h: Likewise.
1774 * sysdeps/csky/atomic-machine.h: Likewise.
1775 * sysdeps/csky/bits/endian.h: Likewise.
1776 * sysdeps/csky/bits/fenv.h: Likewise.
1777 * sysdeps/csky/bits/link.h: Likewise.
1778 * sysdeps/csky/bits/setjmp.h: Likewise.
1779 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1780 * sysdeps/csky/bsd-setjmp.S: Likewise.
1781 * sysdeps/csky/configure: Likewise.
1782 * sysdeps/csky/configure.ac: Likewise.
1783 * sysdeps/csky/dl-machine.h: Likewise.
1784 * sysdeps/csky/dl-procinfo.c: Likewise.
1785 * sysdeps/csky/dl-procinfo.h: Likewise.
1786 * sysdeps/csky/dl-sysdep.h: Likewise.
1787 * sysdeps/csky/dl-tls.h: Likewise.
1788 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1789 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1790 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1791 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1792 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1793 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1794 * sysdeps/csky/fpu/fegetround.c: Likewise.
1795 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1796 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1797 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1798 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1799 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1800 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1801 * sysdeps/csky/fpu/fesetround.c: Likewise.
1802 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1803 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1804 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1805 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1806 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1807 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1808 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1809 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1810 * sysdeps/csky/fpu_control.h: Likewise.
1811 * sysdeps/csky/gccframe.h: Likewise.
1812 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1813 * sysdeps/csky/ldsodefs.h: Likewise.
1814 * sysdeps/csky/libc-tls.c: Likewise.
1815 * sysdeps/csky/linkmap.h: Likewise.
1816 * sysdeps/csky/machine-gmon.h: Likewise.
1817 * sysdeps/csky/memusage.h: Likewise.
1818 * sysdeps/csky/nofpu/Implies: Likewise.
1819 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1820 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1821 * sysdeps/csky/nptl/Makefile: Likewise.
1822 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1823 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1824 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1825 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1826 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1827 * sysdeps/csky/nptl/tls.h: Likewise.
1828 * sysdeps/csky/preconfigure: Likewise.
1829 * sysdeps/csky/sfp-machine.h: Likewise.
1830 * sysdeps/csky/sotruss-lib.c: Likewise.
1831 * sysdeps/csky/stackinfo.h: Likewise.
1832 * sysdeps/csky/sysdep.h: Likewise.
1833 * sysdeps/csky/tininess.h: Likewise.
1834 * sysdeps/csky/tst-audit.h: Likewise.
1835 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1836 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1837 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1838 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1839 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1840 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1841 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1842 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1843 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1844 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1845 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1846 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1847 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1848 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1849 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1850 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1851 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1852 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1853 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1854 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1855 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1856 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1857 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1858 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1859 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1860 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1861 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1862 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1863 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1864 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1865 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1866 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1867 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1868 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1869 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1870 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1871 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1872 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1873 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1874 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1875 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1876 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1877 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1878 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1879
1880 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1881
1882 * include/time.h (__difftime64): Add.
1883 * time/difftime.c (subtract): convert to 64-bit time.
1884 * time/difftime.c (__difftime64): Add.
1885 * time/difftime.c (__difftime): Wrap around __difftime64.
1886
1887 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1888
1889 * manual/examples/add.c: Remove redundant "if not".
1890 * manual/examples/argp-ex1.c: Likewise.
1891 * manual/examples/argp-ex2.c: Likewise.
1892 * manual/examples/argp-ex3.c: Likewise.
1893 * manual/examples/argp-ex4.c: Likewise.
1894 * manual/examples/atexit.c: Likewise.
1895 * manual/examples/db.c: Likewise.
1896 * manual/examples/dir.c: Likewise.
1897 * manual/examples/dir2.c: Likewise.
1898 * manual/examples/execinfo.c: Likewise.
1899 * manual/examples/filecli.c: Likewise.
1900 * manual/examples/filesrv.c: Likewise.
1901 * manual/examples/fmtmsgexpl.c: Likewise.
1902 * manual/examples/genpass.c: Likewise.
1903 * manual/examples/inetcli.c: Likewise.
1904 * manual/examples/inetsrv.c: Likewise.
1905 * manual/examples/isockad.c: Likewise.
1906 * manual/examples/longopt.c: Likewise.
1907 * manual/examples/memopen.c: Likewise.
1908 * manual/examples/memstrm.c: Likewise.
1909 * manual/examples/mkdirent.c: Likewise.
1910 * manual/examples/mkfsock.c: Likewise.
1911 * manual/examples/mkisock.c: Likewise.
1912 * manual/examples/mygetpass.c: Likewise.
1913 * manual/examples/pipe.c: Likewise.
1914 * manual/examples/popen.c: Likewise.
1915 * manual/examples/rprintf.c: Likewise.
1916 * manual/examples/search.c: Likewise.
1917 * manual/examples/select.c: Likewise.
1918 * manual/examples/setjmp.c: Likewise.
1919 * manual/examples/sigh1.c: Likewise.
1920 * manual/examples/sigusr.c: Likewise.
1921 * manual/examples/stpcpy.c: Likewise.
1922 * manual/examples/strdupa.c: Likewise.
1923 * manual/examples/strftim.c: Likewise.
1924 * manual/examples/subopt.c: Likewise.
1925 * manual/examples/swapcontext.c: Likewise.
1926 * manual/examples/termios.c: Likewise.
1927 * manual/examples/testopt.c: Likewise.
1928 * manual/examples/testpass.c: Likewise.
1929 * manual/examples/timeval_subtract.c: Likewise.
1930
1931 2018-12-19 Joseph Myers <joseph@codesourcery.com>
1932
1933 * sysdeps/x86/fpu/math_private.h: New file.
1934 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
1935
1936 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
1937 definition.
1938 (cosh): Likewise.
1939 (tanh): Likewise.
1940
1941 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1942
1943 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
1944 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
1945 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
1946 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
1947 fields.
1948 (_dl_show_auxv): Give a special treatment to
1949 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
1950 and AT_L3_CACHEGEOMETRY.
1951 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
1952 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
1953 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
1954 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
1955
1956 2018-12-19 Andreas Schwab <schwab@suse.de>
1957
1958 * nscd/connections.c (check_use): Don't abort on invalid len.
1959
1960 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
1961
1962 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
1963 values in the 64bit value cases.
1964
1965 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1966
1967 * include/time.h
1968 (__ctime64_r): Add.
1969 * time/ctime_r.c
1970 (__ctime64_r): Add.
1971 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
1972
1973 * include/time.h
1974 (__ctime64): Add.
1975 * time/gmtime.c
1976 (__ctime64): Add.
1977 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
1978
1979 * include/time.h
1980 (__gmtime64_r): Add.
1981 * time/gmtime.c
1982 (__gmtime64_r): Add.
1983 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1984
1985 * include/time.h
1986 (__gmtime64): Add.
1987 * time/gmtime.c
1988 (__gmtime64): Add.
1989 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1990
1991 * include/time.h
1992 (__localtime64_r): Add.
1993 * time/localtime.c
1994 (__localtime64_r): Add.
1995 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
1996
1997 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1998
1999 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2000 kernel_sigction definition.
2001
2002 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2003
2004 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2005
2006 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2007 __syscall_rt_sigaction.
2008 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2009 (kernel_sigaction): Use Linux generic defintion.
2010 (STUB): Define.
2011 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2012 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2013 (__syscall_rt_sigaction): Remove implementation.
2014 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2015 hidden.
2016 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2017 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2018 INTERNAL_SYSCALL): Remove definitions.
2019 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2020 action and signal set size.
2021 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2022 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2023
2024 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2025 James Clarke <jrtc27@jrtc27.com>
2026
2027 [BZ #23967]
2028 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2029 Define if SA_RESTORER is defined.
2030 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2031 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2032 already defined.
2033 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2034 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2035 definitions.
2036 (HAS_SA_RESTORER): Define.
2037 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2038 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2039 (HAS_SA_RESTORER): Define.
2040 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2041 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2042 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2043 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2044 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2045
2046 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2047
2048 * sysdeps/unix/sysv/linux/kernel-features.h
2049 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2050 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2051 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2052 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2053 (__ASSUME_ST_INO_64_BIT): Likewise.
2054 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2055 <kernel-features.h>.
2056 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2057 Remove conditional code.
2058 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2059 <kernel-features.h>.
2060 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2061 Remove conditional code.
2062 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2063 <kernel-features.h>.
2064 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2065 Remove conditional code.
2066 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2067 <kernel-features.h>.
2068 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2069 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2070
2071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2072
2073 * sysdeps/s390/multiarch/ifunc-resolve.h
2074 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2075 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2076 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2077 Delete macro definition.
2078 (s390_libc_ifunc_init): Rename to
2079 s390_libc_ifunc_expr_stfle_init.
2080 * sysdeps/s390/bzero: Use
2081 s390_libc_ifunc_expr_stfle_init instead of
2082 s390_libc_ifunc_init.
2083 * sysdeps/s390/memcmp.c: Likewise.
2084 * sysdeps/s390/memcpy.c: Likewise.
2085 * sysdeps/s390/mempcpy.c: Likewise.
2086 * sysdeps/s390/memset.c: Likewise.
2087
2088 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2089
2090 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2091 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2092
2093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2094
2095 * sysdeps/s390/multiarch/Makefile
2096 (sysdep_routines): Remove wmemcmp variants.
2097 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2098 * sysdeps/s390/multiarch/ifunc-impl-list.c
2099 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2100 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2101 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2102 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2103 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2104 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2105 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2106 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2107
2108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2109
2110 * sysdeps/s390/multiarch/Makefile
2111 (sysdep_routines): Remove wmemset variants.
2112 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2113 * sysdeps/s390/multiarch/ifunc-impl-list.c
2114 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2115 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2116 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2117 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2118 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2119 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2120 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2121 * sysdeps/s390/ifunc-wmemset.h: New file.
2122
2123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2124
2125 * sysdeps/s390/multiarch/Makefile
2126 (sysdep_routines): Remove wmemchr variants.
2127 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2128 * sysdeps/s390/multiarch/ifunc-impl-list.c
2129 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2130 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2131 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2132 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2133 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2134 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2135 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2136 * sysdeps/s390/ifunc-wmemchr.h: New file.
2137
2138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2139
2140 * sysdeps/s390/multiarch/Makefile
2141 (sysdep_routines): Remove wcscspn variants.
2142 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2143 * sysdeps/s390/multiarch/ifunc-impl-list.c
2144 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2145 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2146 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2147 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2148 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2149 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2150 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2151 * sysdeps/s390/ifunc-wcscspn.h: New file.
2152
2153 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2154
2155 * sysdeps/s390/multiarch/Makefile
2156 (sysdep_routines): Remove wcspbrk variants.
2157 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2158 * sysdeps/s390/multiarch/ifunc-impl-list.c
2159 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2160 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2161 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2162 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2163 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2164 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2165 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2166 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2167
2168 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2169
2170 * sysdeps/s390/multiarch/Makefile
2171 (sysdep_routines): Remove wcsspn variants.
2172 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2173 * sysdeps/s390/multiarch/ifunc-impl-list.c
2174 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2175 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2176 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2177 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2178 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2179 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2180 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2181 * sysdeps/s390/ifunc-wcsspn.h: New file.
2182
2183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2184
2185 * sysdeps/s390/multiarch/Makefile
2186 (sysdep_routines): Remove wcsrchr variants.
2187 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2188 * sysdeps/s390/multiarch/ifunc-impl-list.c
2189 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2190 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2191 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2192 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2193 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2194 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2195 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2196 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2197
2198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2199
2200 * sysdeps/s390/multiarch/Makefile
2201 (sysdep_routines): Remove wcschrnul variants.
2202 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2203 * sysdeps/s390/multiarch/ifunc-impl-list.c
2204 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2205 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2206 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2207 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2208 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2209 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2210 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2211 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2212
2213 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2214
2215 * sysdeps/s390/multiarch/Makefile
2216 (sysdep_routines): Remove wcschr variants.
2217 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2218 * sysdeps/s390/multiarch/ifunc-impl-list.c
2219 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2220 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2221 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2222 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2223 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2224 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2225 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2226 * sysdeps/s390/ifunc-wcschr.h: New file.
2227
2228 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2229
2230 * sysdeps/s390/multiarch/Makefile
2231 (sysdep_routines): Remove wcsncmp variants.
2232 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2233 * sysdeps/s390/multiarch/ifunc-impl-list.c
2234 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2235 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2236 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2237 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2238 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2239 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2240 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2241 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2242
2243 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2244
2245 * sysdeps/s390/multiarch/Makefile
2246 (sysdep_routines): Remove wcscmp variants.
2247 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2248 * sysdeps/s390/multiarch/ifunc-impl-list.c
2249 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2250 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2251 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2252 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2253 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2254 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2255 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2256 * sysdeps/s390/ifunc-wcscmp.h: New file.
2257
2258 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2259
2260 * sysdeps/s390/multiarch/Makefile
2261 (sysdep_routines): Remove wcsncat variants.
2262 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2263 * sysdeps/s390/multiarch/ifunc-impl-list.c
2264 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2265 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2266 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2267 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2268 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2269 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2270 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2271 * sysdeps/s390/ifunc-wcsncat.h: New file.
2272
2273 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2274
2275 * sysdeps/s390/multiarch/Makefile
2276 (sysdep_routines): Remove wcscat variants.
2277 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2278 * sysdeps/s390/multiarch/ifunc-impl-list.c
2279 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2280 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2281 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2282 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2283 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2284 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2285 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2286 * sysdeps/s390/ifunc-wcscat.h: New file.
2287
2288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2289
2290 * sysdeps/s390/multiarch/Makefile
2291 (sysdep_routines): Remove wcpncpy variants.
2292 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2293 * sysdeps/s390/multiarch/ifunc-impl-list.c
2294 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2295 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2296 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2298 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2299 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2300 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2301 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2302
2303 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2304
2305 * sysdeps/s390/multiarch/Makefile
2306 (sysdep_routines): Remove wcsncpy variants.
2307 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2308 * sysdeps/s390/multiarch/ifunc-impl-list.c
2309 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2310 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2311 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2313 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2314 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2315 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2316 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2317
2318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2319
2320 * sysdeps/s390/multiarch/Makefile
2321 (sysdep_routines): Remove wcpcpy variants.
2322 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2323 * sysdeps/s390/multiarch/ifunc-impl-list.c
2324 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2325 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2326 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2328 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2329 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2330 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2331 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2332
2333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2334
2335 * sysdeps/s390/multiarch/Makefile
2336 (sysdep_routines): Remove wcscpy variants.
2337 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2338 * sysdeps/s390/multiarch/ifunc-impl-list.c
2339 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2340 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2341 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2343 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2344 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2345 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2346 * sysdeps/s390/ifunc-wcscpy.h: New file.
2347
2348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2349
2350 * sysdeps/s390/multiarch/Makefile
2351 (sysdep_routines): Remove wcsnlen variants.
2352 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2353 * sysdeps/s390/multiarch/ifunc-impl-list.c
2354 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2355 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2356 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2358 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2359 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2360 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2361 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2362
2363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2364
2365 * sysdeps/s390/multiarch/Makefile
2366 (sysdep_routines): Remove wcslen variants.
2367 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2368 * sysdeps/s390/multiarch/ifunc-impl-list.c
2369 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2370 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2371 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2373 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2374 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2375 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2376 * sysdeps/s390/ifunc-wcslen.h: New file.
2377
2378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2379
2380 * sysdeps/s390/multiarch/Makefile
2381 (sysdep_routines): Remove memrchr variants.
2382 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2383 * sysdeps/s390/multiarch/ifunc-impl-list.c
2384 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2385 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2386 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2388 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2389 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2390 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2391 * sysdeps/s390/ifunc-memrchr.h: New file.
2392
2393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2394
2395 * sysdeps/s390/multiarch/Makefile
2396 (sysdep_routines): Remove memccpy variants.
2397 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2398 * sysdeps/s390/multiarch/ifunc-impl-list.c
2399 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2400 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2401 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2403 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2404 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2405 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2406 * sysdeps/s390/ifunc-memccpy.h: New file.
2407
2408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2409
2410 * sysdeps/s390/multiarch/Makefile
2411 (sysdep_routines): Remove rawmemchr variants.
2412 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2413 * sysdeps/s390/multiarch/ifunc-impl-list.c
2414 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2415 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2416 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2418 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2419 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2420 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2421 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2422
2423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2424
2425 * sysdeps/s390/multiarch/Makefile
2426 (sysdep_routines): Remove memchr variants.
2427 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2428 * sysdeps/s390/multiarch/ifunc-impl-list.c
2429 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2430 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2431 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/memchr.c: Move to ...
2433 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2434 * sysdeps/s390/ifunc-memchr.h: New file.
2435 * sysdeps/s390/s390-64/memchr.S: Move to ...
2436 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2437 for 31/64bit and ifunc handling.
2438 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2439 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2440 * sysdeps/s390/s390-32/memchr.S: Likewise.
2441
2442 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2443
2444 * sysdeps/s390/multiarch/Makefile
2445 (sysdep_routines): Remove strcspn variants.
2446 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2447 * sysdeps/s390/multiarch/ifunc-impl-list.c
2448 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2449 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2450 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2451 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2452 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2453 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2454 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2455 * sysdeps/s390/ifunc-strcspn.h: New file.
2456
2457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2458
2459 * sysdeps/s390/multiarch/Makefile
2460 (sysdep_routines): Remove strpbrk variants.
2461 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2462 * sysdeps/s390/multiarch/ifunc-impl-list.c
2463 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2464 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2465 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2466 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2467 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2468 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2469 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2470 * sysdeps/s390/ifunc-strpbrk.h: New file.
2471
2472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2473
2474 * sysdeps/s390/multiarch/Makefile
2475 (sysdep_routines): Remove strspn variants.
2476 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2477 * sysdeps/s390/multiarch/ifunc-impl-list.c
2478 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2479 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2480 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2481 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2482 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2483 * sysdeps/s390/multiarch/strspn.c: Move to ...
2484 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2485 * sysdeps/s390/ifunc-strspn.h: New file.
2486
2487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2488
2489 * sysdeps/s390/multiarch/Makefile
2490 (sysdep_routines): Remove strrchr variants.
2491 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2492 * sysdeps/s390/multiarch/ifunc-impl-list.c
2493 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2494 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2495 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2496 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2497 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2498 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2499 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2500 * sysdeps/s390/ifunc-strrchr.h: New file.
2501
2502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2503
2504 * sysdeps/s390/multiarch/Makefile
2505 (sysdep_routines): Remove strchrnul variants.
2506 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2507 * sysdeps/s390/multiarch/ifunc-impl-list.c
2508 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2509 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2510 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2511 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2512 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2513 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2514 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2515 * sysdeps/s390/ifunc-strchrnul.h: New file.
2516
2517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2518
2519 * sysdeps/s390/multiarch/Makefile
2520 (sysdep_routines): Remove strchr variants.
2521 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2522 * sysdeps/s390/multiarch/ifunc-impl-list.c
2523 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2524 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2525 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2527 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2528 * sysdeps/s390/multiarch/strchr.c: Move to ...
2529 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2530 * sysdeps/s390/ifunc-strchr.h: New file.
2531
2532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2533
2534 * sysdeps/s390/multiarch/Makefile
2535 (sysdep_routines): Remove strncmp variants.
2536 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2537 * sysdeps/s390/multiarch/ifunc-impl-list.c
2538 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2539 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2540 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2541 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2542 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2543 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2544 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2545 * sysdeps/s390/ifunc-strncmp.h: New file.
2546
2547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2548
2549 * sysdeps/s390/multiarch/Makefile
2550 (sysdep_routines): Remove strcmp variants.
2551 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2552 * sysdeps/s390/multiarch/ifunc-impl-list.c
2553 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2554 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2555 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2556 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2557 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2558 * sysdeps/s390/ifunc-strcmp.h: New file.
2559 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2560 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2561 for 31/64bit and ifunc handling.
2562 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2563 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2564 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2565
2566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2567
2568 * sysdeps/s390/multiarch/Makefile
2569 (sysdep_routines): Remove strncat variants.
2570 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2571 * sysdeps/s390/multiarch/ifunc-impl-list.c
2572 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2573 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2574 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2575 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2576 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2577 * sysdeps/s390/multiarch/strncat.c: Move to ...
2578 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2579 * sysdeps/s390/ifunc-strncat.h: New file.
2580
2581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2582
2583 * sysdeps/s390/multiarch/Makefile
2584 (sysdep_routines): Remove strcat variants.
2585 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2586 * sysdeps/s390/multiarch/ifunc-impl-list.c
2587 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2588 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2589 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2590 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2591 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2592 * sysdeps/s390/multiarch/strcat.c: Move to ...
2593 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2594 * sysdeps/s390/ifunc-strcat.h: New file.
2595
2596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2597
2598 * sysdeps/s390/multiarch/Makefile
2599 (sysdep_routines): Remove stpncpy variants.
2600 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2601 * sysdeps/s390/multiarch/ifunc-impl-list.c
2602 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2603 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2604 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2605 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2606 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2607 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2608 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2609 * sysdeps/s390/ifunc-stpncpy.h: New file.
2610
2611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2612
2613 * sysdeps/s390/multiarch/Makefile
2614 (sysdep_routines): Remove strncpy variants.
2615 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2616 * sysdeps/s390/multiarch/ifunc-impl-list.c
2617 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2618 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2619 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2620 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2621 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/ifunc-strncpy.h: New file.
2623 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2624 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2625 and adjust ifunc handling.
2626 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2627 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2628 and adjust ifunc handling.
2629 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2630 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2631
2632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2633
2634 * sysdeps/s390/multiarch/Makefile
2635 (sysdep_routines): Remove stpcpy variants.
2636 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2637 * sysdeps/s390/multiarch/ifunc-impl-list.c
2638 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2639 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2640 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2641 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2642 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2643 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2644 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2645 * sysdeps/s390/ifunc-stpcpy.h: New file.
2646
2647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2648
2649 * sysdeps/s390/multiarch/Makefile
2650 (sysdep_routines): Remove strcpy variants.
2651 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2652 * sysdeps/s390/multiarch/ifunc-impl-list.c
2653 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2654 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2655 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2656 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2657 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2658 * sysdeps/s390/ifunc-strcpy.h: New file.
2659 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2660 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2661 for 31/64bit and ifunc handling.
2662 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2663 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2664 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2665
2666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2667
2668 * sysdeps/s390/multiarch/Makefile
2669 (sysdep_routines): Remove strnlen variants.
2670 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2671 * sysdeps/s390/multiarch/ifunc-impl-list.c
2672 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2673 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2674 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2675 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2676 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2677 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2678 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2679 * sysdeps/s390/ifunc-strnlen.h: New file.
2680
2681 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2682
2683 * sysdeps/s390/multiarch/Makefile
2684 (sysdep_routines): Remove strlen variants.
2685 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2686 * sysdeps/s390/multiarch/ifunc-impl-list.c
2687 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2688 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2689 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2691 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2692 * sysdeps/s390/multiarch/strlen.c: Move to ...
2693 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2694 * sysdeps/s390/ifunc-strlen.h: New file.
2695
2696 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2697
2698 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2699 * sysdeps/s390/multiarch/ifunc-impl-list.c
2700 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2701 * sysdeps/s390/ifunc-memmem.h: New file.
2702 * sysdeps/s390/memmem.c: Likewise.
2703 * sysdeps/s390/memmem-c.c: Likewise.
2704 * sysdeps/s390/memmem-vx.c: Likewise.
2705
2706 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2707
2708 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2709 * sysdeps/s390/multiarch/ifunc-impl-list.c
2710 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2711 * sysdeps/s390/ifunc-strstr.h: New file.
2712 * sysdeps/s390/strstr.c: Likewise.
2713 * sysdeps/s390/strstr-c.c: Likewise.
2714 * sysdeps/s390/strstr-vx.c: Likewise.
2715
2716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2717
2718 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2719 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2720 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2721 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2722 New defines.
2723 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2724 * sysdeps/s390/memmove-c.c: New file.
2725 * sysdeps/s390/memmove.c: Likewise.
2726 * sysdeps/s390/multiarch/ifunc-impl-list.c
2727 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2728
2729 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2730
2731 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2732 * sysdeps/s390/configure.ac: Add check for z13 support.
2733 * sysdeps/s390/configure: Regenerated.
2734
2735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2736
2737 * sysdeps/s390/memcopy.h: New file.
2738
2739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2740
2741 * sysdeps/s390/s390-32/bcopy.S: Remove.
2742 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2743
2744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2745
2746 * sysdeps/s390/ifunc-memcpy.h: New File.
2747 * sysdeps/s390/memcpy.S: Move to ...
2748 * sysdeps/s390/memcpy-z900.S ... here.
2749 Move implementations from memcpy-s390x.s to here.
2750 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2751 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2752 Remove memcpy/mempcpy variants.
2753 * sysdeps/s390/Makefile (sysdep_routines):
2754 Add memcpy/mempcpy variants.
2755 * sysdeps/s390/multiarch/ifunc-impl-list.c
2756 (__libc_ifunc_impl_list): Adjust ifunc variants for
2757 memcpy and mempcpy.
2758 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2759 to ...
2760 * sysdeps/s390/memcpy.c: ... here.
2761 Adjust ifunc variants for memcpy.
2762 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2763 * sysdeps/s390/mempcpy.c: ... here.
2764 Adjust ifunc variants for mempcpy.
2765 * sysdeps/s390/mempcpy.S: Delete file.
2766
2767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2768
2769 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2770 * sysdeps/s390/memcpy.S: ... here.
2771 Adjust to be usable for 31/64bit.
2772 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2773 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2774 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2775 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2776 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2777 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2778 Adjust to be usable for 31/64bit.
2779 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2780 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2781 * sysdeps/s390/multiarch/memcpy.c: ... here.
2782 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2783
2784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2785
2786 * sysdeps/s390/ifunc-memcmp.h: New File.
2787 * sysdeps/s390/memcmp.S: Move to ...
2788 * sysdeps/s390/memcmp-z900.S ... here.
2789 Move implementations from memcmp-s390x.s to here.
2790 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2791 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2792 Remove memcmp variants.
2793 * sysdeps/s390/Makefile (sysdep_routines):
2794 Add memcmp variants.
2795 * sysdeps/s390/multiarch/ifunc-impl-list.c
2796 (__libc_ifunc_impl_list): Adjust ifunc variants for
2797 memcmp.
2798 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2799 to ...
2800 * sysdeps/s390/memcmp.c: ... here.
2801 Adjust ifunc variants for memcmp.
2802
2803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2804
2805 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2806 * sysdeps/s390/memcmp.S: ... here.
2807 Adjust to be usable for 31/64bit.
2808 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2809 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2810 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2811 Remove memcmp.
2812 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2813 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2814 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2815 Adjust to be usable for 31/64bit.
2816 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2817 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2818 * sysdeps/s390/multiarch/memcmp.c: ... here.
2819 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2820
2821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2822
2823 * sysdeps/s390/s390-32/bzero.S: Delete file.
2824 * sysdeps/s390/s390-64/bzero.S: Likewise.
2825 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2826 * sysdeps/s390/bzero.c: New file.
2827 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2828 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2829 * sysdeps/s390/multiarch/ifunc-impl-list.c
2830 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2831
2832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2833
2834 * sysdeps/s390/ifunc-memset.h: New File.
2835 * sysdeps/s390/memset.S: Move to ...
2836 * sysdeps/s390/memset-z900.S ... here.
2837 Move implementations from memset-s390x.s to here.
2838 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2839 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2840 Remove memset variants.
2841 * sysdeps/s390/Makefile (sysdep_routines):
2842 Add memset variants.
2843 * sysdeps/s390/multiarch/ifunc-impl-list.c
2844 (__libc_ifunc_impl_list): Adjust ifunc variants for
2845 memset.
2846 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2847 to ...
2848 * sysdeps/s390/memset.c: ... here.
2849 Adjust ifunc variants for memset.
2850
2851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2852
2853 * sysdeps/s390/s390-64/memset.S: Move to ...
2854 * sysdeps/s390/memset.S: ... here.
2855 Adjust to be usable for 31/64bit.
2856 * sysdeps/s390/s390-32/memset.S: Delete File.
2857 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2858 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2859 Remove memset.
2860 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2861 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2862 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2863 Adjust to be usable for 31/64bit.
2864 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2865 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2866 * sysdeps/s390/multiarch/memset.c: ... here.
2867 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2868
2869 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2870
2871 * sysdeps/s390/multiarch/ifunc-resolve.h
2872 (s390_libc_ifunc_init, s390_libc_ifunc,
2873 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2874
2875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2876
2877 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2878 * sysdeps/s390/configure.ac: Add check for z10 support.
2879 * sysdeps/s390/configure: Regenerated.
2880
2881 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2882
2883 * sysdeps/i386/atomic-machine.h: Merged with ...
2884 * sysdeps/x86_64/atomic-machine.h: To ...
2885 * sysdeps/x86/atomic-machine.h: This. New file.
2886
2887 2018-12-18 Florian Weimer <fweimer@redhat.com>
2888
2889 Rewrite locale/gen-translit.pl in Python.
2890 * locale/Makefile (generated): Add C-translit.h.
2891 (before-compile): Add $(objpfx)C-translit.h.
2892 (C-translit.h): Move to $(objpfx). Create target directory.
2893 Build using Python script.
2894 * locale/gen-translit.py: New file.
2895 * locale/gen-translit.pl: Remove file.
2896 * locale/C-translit.h.in: Change comment character to '#' for
2897 easier parsing without a C preprocessor.
2898 * locale/C-translit.h: Remove generated file.
2899 * manual/install.texi (Tools for Compilation): Do not mention
2900 C-translit.h.
2901 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2902 Remove locale/C-translit.h.
2903 * scripts/update-copyrights: Likewise.
2904 * INSTALL: Regenerate.
2905
2906 2018-12-18 Florian Weimer <fweimer@redhat.com>
2907
2908 [BZ #23995]
2909 * localedata/locales/bi_VU: Remove executable bit from file.
2910
2911 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
2912
2913 * include/time.h
2914 (__localtime64): Add.
2915 * manual/maint.texi: Document Y2038 symbol handling.
2916 * time/localtime.c
2917 (__localtime64): Add.
2918 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
2919
2920 2018-12-17 Joseph Myers <joseph@codesourcery.com>
2921
2922 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
2923 Do not clobber r12.
2924
2925 * scripts/glibcextract.py (compare_macro_consts): Take parameters
2926 to allow extra macros from first or second sources.
2927 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
2928 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2929 (tests-special): Add $(objpfx)tst-mman-consts.out.
2930 ($(objpfx)tst-mman-consts.out): New makefile target.
2931
2932 2018-12-17 Mao Han <han_mao@c-sky.com>
2933
2934 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
2935 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
2936 without stat64 system call support.
2937 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2938 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
2939 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
2940 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
2941 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
2942 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
2943 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
2944 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
2945 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
2946 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
2947 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
2948
2949 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2950
2951 regex: fix storage-exhaustion error
2952 [BZ #18040]
2953 * posix/regexec.c (get_subexp):
2954 Do not continue if storage is exhausted.
2955
2956 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
2957
2958 regex: fix heap-use-after-free error
2959 [BZ #18040]
2960 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
2961 https://debbugs.gnu.org/32592
2962 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
2963 call extend_buffers which reallocates the re_string_t internal buffer.
2964 Local variable 'buf' was not updated in such case, resulting in
2965 use-after-free.
2966 * posix/regexec.c (get_subexp): Update 'buf' after call to
2967 get_subexp_sub.
2968
2969 2018-12-15 Florian Weimer <fweimer@redhat.com>
2970
2971 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
2972 (minimum_stride_size): Use it.
2973 (support_blob_repeat_allocate): Likewise.
2974
2975 2018-12-14 Joseph Myers <joseph@codesourcery.com>
2976
2977 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
2978 definition.
2979 (acosh): Likewise.
2980 (atanh): Likewise.
2981
2982 2018-12-14 Florian Weimer <fweimer@redhat.com>
2983
2984 * manual/process.texi (Process Creation Concepts): Remove
2985 documentation of process (ID) lifetime. List more process
2986 creation functions. Reference Process Identification section.
2987 (Process Identification): Add information about process ID
2988 lifetime. Describe Linux thread/task IDs.
2989 * manual/signal.texi (Signaling Another Process): Mention that the
2990 signal is always sent to the process.
2991
2992 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2993
2994 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
2995 and tst-ldbl-efgcvt.
2996 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
2997 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
2998 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
2999 (fcvt_tests, output_error, output_r_error, do_test): Use the
3000 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3001 select the type of floating-point variables and arguments; to
3002 produce extra tests for double and conversion specifiers for
3003 printf; and to set the names of called functions.
3004 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3005 in tst-efgcvt-template.c.
3006 * misc/tst-ldbl-efgcvt.c: Likewise.
3007
3008 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3009
3010 * nss/Makefile (tst-nss-test3.out): New rule.
3011
3012 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3013
3014 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3015 clobber sp.
3016
3017 2018-12-13 fanjinke <fanjinke@hygon.cn>
3018
3019 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3020 "HygonGenuine".
3021
3022 2018-12-13 Andreas Schwab <schwab@suse.de>
3023
3024 [BZ #23861]
3025 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3026 (__pthread_rwlock_rdlock_full): Update expected value for
3027 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3028 * nptl/tst-rwlock-pwn.c: New file.
3029 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3030
3031 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3032
3033 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3034 definition.
3035
3036 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3037
3038 * benchtests/scripts/compare_bench.py (do_compare): write to
3039 stderr in casestat is not present.
3040 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3041 stderr in case timings field is not present. Also string showing
3042 the output filename goes into the stderr.
3043
3044 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3045
3046 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3047 and ZeroDivisorError exceptions.
3048 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3049 argument to loop through user provided statistics.
3050 * benchtests/scripts/compare_bench.py (main): Include the --stats
3051 argument.
3052
3053 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3054
3055 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3056 instead of return.
3057
3058 2018-12-12 Florian Weimer <fweimer@redhat.com>
3059
3060 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3061 clause to copyright header.
3062
3063 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3064
3065 [BZ #23614]
3066 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3067 registers saved in the stack frame.
3068 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3069 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3070
3071 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3072
3073 * include/bits/monetary-ldbl.h: New file.
3074 * include/bits/printf-ldbl.h: Likewise.
3075 * include/bits/stdio-ldbl.h: Likewise.
3076 * include/bits/stdlib-ldbl.h: Likewise.
3077 * include/bits/syslog-ldbl.h: Likewise.
3078 * include/bits/wchar-ldbl.h: Likewise.
3079
3080 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3081
3082 * libio/libio.h: Remove redirection for _IO_vfprintf.
3083
3084 2018-12-11 Andreas Schwab <schwab@suse.de>
3085
3086 * Makerules: Remove all references to abilist-pattern.
3087 (update-all-abi): Simplify find expression.
3088
3089 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3090
3091 [BZ #23961]
3092 * math/auto-libm-test-in: Add new test case.
3093 * math/auto-libm-test-out-pow: Regenerated.
3094 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3095
3096 2018-12-10 DJ Delorie <dj@redhat.com>
3097
3098 [BZ #23948]
3099 * support/test-container.c: Move postclean step to before we
3100 change namespaces.
3101
3102 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3103
3104 * scripts/gen-as-const.py (main): Handle --python option.
3105 * scripts/gen-py-const.awk: Remove.
3106 * Makerules (py-const-script): Use gen-as-const.py.
3107 ($(py-const)): Likewise.
3108 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3109 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3110 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3111 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3112 ~PTHREAD_MUTEX_NO_ELISION_NP.
3113 * manual/README.pretty-printers: Update reference to
3114 gen-py-const.awk.
3115
3116 * scripts/glibcextract.py: New file.
3117 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3118 or tempfile. Import glibcexctract.
3119 (compute_c_consts): Remove. Moved to glibcextract.py.
3120 (gen_test): Update reference to compute_c_consts.
3121 (main): Likewise.
3122 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3123 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3124 * sysdeps/unix/sysv/linux/Makefile
3125 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3126 Redirect stderr as well as stdout.
3127
3128 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3129
3130 [BZ #19767]
3131 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3132 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3133 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3134 ALWAYS_USE_VSYSCALL.
3135 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3136 ALWAYS_USE_VSYSCALL.
3137 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3138 ALWAYS_USE_VSYSCALL.
3139
3140 2018-12-10 Florian Weimer <fweimer@redhat.com>
3141
3142 [BZ #23972]
3143 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3144 offset instead of count for clarity. Fix typo in comment.
3145 (__old_getdents64): Keep track of previous offset. Use it to call
3146 handle_overflow.
3147 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3148 that d_off is never zero.
3149
3150 2018-12-10 Andreas Schwab <schwab@suse.de>
3151
3152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3153 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3155 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3156 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3157
3158 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3159
3160 * timezone/private.h: Update from tzcode 2018g.
3161 * timezone/tzfile.h: Likewise.
3162 * timezone/tzselect.ksh: Likewise.
3163 * timezone/zdump.c: Likewise.
3164 * timezone/zic.c: Likewise.
3165
3166 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3167
3168 [BZ #23490]
3169 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3170 (do_test): Adjust buffer size and fix format.
3171
3172 2018-12-07 DJ Delorie <dj@redhat.com>
3173
3174 [BZ #23907]
3175 * malloc/tst-tcfree3.c: New.
3176 * malloc/Makefile: Add it.
3177
3178 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3179
3180 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3181
3182 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3183
3184 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3185 used as a mask for the mode argument of __vfscanf_internal and
3186 __vfwscanf_internal.
3187 * stdio-common/vfscanf-internal.c
3188 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3189 (__strtof128_internal): Define to __wcstof128_internal.
3190 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3191 __strtof128_internal or __wcstof128_internal when the format of
3192 long double is the same as _Float128.
3193
3194 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3195
3196 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3197 * posix/confstr.c (confstr): Rename to __confstr.
3198 (__confstr): Add hidden def.
3199 (confstr): Add weak alias for __confstr.
3200 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3201 confstr.
3202
3203 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3204
3205 * NEWS: Mention getcpu.
3206 * include/sched.h (__getcpu): New libc_hidden_proto.
3207 * manual/resource.texi: Document getcpu.
3208 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3209 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3210 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3211 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3212 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3213 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3214 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3215 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3216 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3217 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3218 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3219 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3220 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3221 Likewise.
3222 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3223 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3224 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3226 Likewise.
3227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3228 Likewise.
3229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3230 Likewise.
3231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3232 Likewise.
3233 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3234 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3235 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3236 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3237 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3238 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3239 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3240 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3241 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3242 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3243 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3244 Also check getcpu.
3245
3246 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3247
3248 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3249 functions.
3250 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3251
3252 2018-12-07 Florian Weimer <fweimer@redhat.com>
3253
3254 [BZ #17405]
3255 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3256 * posix/Versions (GLIBC_2.29): Export
3257 posix_spawn_file_actions_addfchdir_np.
3258 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3259 * posix/spawn_faction_destroy.c
3260 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3261 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3262 and the field action.fchdir_action.
3263 * posix/tst-spawn-chdir.c (add_chdir): New function.
3264 (do_test): Add do_fchdir loop. Call add_chdir.
3265 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3266 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3267 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3268 posix_spawn_file_actions_addfchdir_np.
3269 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3270 Likewise.
3271 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3272 Likewise.
3273 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3274 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3275 Likewise.
3276 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3277 Likewise.
3278 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3279 Likewise.
3280 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3281 Likewise.
3282 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3283 Likewise.
3284 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3285 Likewise.
3286 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3287 (GLIBC_2.29): Likewise.
3288 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3289 (GLIBC_2.29): Likewise.
3290 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3291 (GLIBC_2.29): Likewise.
3292 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3293 (GLIBC_2.29): Likewise.
3294 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3295 Likewise.
3296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3297 (GLIBC_2.29): Likewise.
3298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3299 (GLIBC_2.29): Likewise.
3300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3301 (GLIBC_2.29): Likewise.
3302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3303 (GLIBC_2.29): Likewise.
3304 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3305 Likewise.
3306 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3307 Likewise.
3308 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3309 Likewise.
3310 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3312 Likewise.
3313 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3314 Likewise.
3315 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3316 Likewise.
3317 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3318 Likewise.
3319
3320 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3321
3322 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3323 trailing whitespace removed.
3324 * scripts/config.guess: Update to version 2018-11-28.
3325 * scripts/config.sub: Update to version 2018-11-28.
3326 * scripts/install-sh: Update to version 2018-03-11.20.
3327 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3328 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3329
3330 2018-12-07 Florian Weimer <fweimer@redhat.com>
3331
3332 [BZ #23927]
3333 CVE-2018-19591
3334 * inet/tst-if_index-long.c: New file.
3335 * inet/Makefile (tests): Add tst-if_index-long.
3336
3337 2018-12-07 Florian Weimer <fweimer@redhat.com>
3338
3339 * support/check.h (support_record_failure_is_failed): Declare.
3340 * support/descriptors.h: New file.
3341 * support/support_descriptors.c: Likewise.
3342 * support/tst-support_descriptors.c: Likewise.
3343 * support/support_record_failure.c
3344 (support_record_failure_is_failed): New function.
3345 * support/Makefile (libsupport-routines): Add support_descriptors.
3346 (tests): Add tst-support_descriptors.
3347
3348 2018-12-05 Zack Weinberg <zackw@panix.com>
3349 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3350
3351 * stdio-common/vfprintf-internal.c
3352 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3353 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3354 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3355 and __no_long_double.
3356 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3357 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3358 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3359 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3360 and __nldbl_*syslog* functions.
3361 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3362 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3363 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3364 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3365 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3366 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3367 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3368 (__nldbl_vwprintf, __nldbl_wprintf):
3369 Directly call the appropriate __v*printf_internal routine, passing
3370 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3371 variable names.
3372 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3373 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3374 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3375 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3376 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3377 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3378 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3379 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3380 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3381 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3382 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3383 (__nldbl_syslog, __nldbl_vsyslog):
3384 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3385 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3386 appropriate.
3387 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3388 appropriate.
3389
3390 2018-12-05 Zack Weinberg <zackw@panix.com>
3391 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3392
3393 [BZ #11319]
3394 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3395 Moved here from debug/vsprintf_chk.c.
3396 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3397 and completion logic for the strfile to match exactly what
3398 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3399 _IO_str_init_static_internal instead of maxlen-1.
3400 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3401 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3402 __vsprintf_internal.
3403
3404 * debug/vsprintf_chk.c (__vsprintf_chk)
3405 * debug/sprintf_chk.c (__sprintf_chk):
3406 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3407 'flags' argument is positive, and slen as maxlen. No need to lock
3408 the FILE and/or construct a temporary FILE. Minimize and normalize
3409 header inclusions and variable names. Do not libc_hidden_def anything.
3410
3411 * debug/asprintf_chk.c (__asprintf_chk)
3412 * debug/dprintf_chk.c (__dprintf_chk)
3413 * debug/fprintf_chk.c (__fprintf_chk)
3414 * debug/fwprintf_chk.c (__fwprintf_chk)
3415 * debug/printf_chk.c (__printf_chk)
3416 * debug/snprintf_chk.c (__snprintf_chk)
3417 * debug/swprintf_chk.c (__swprintf_chk)
3418 * debug/vasprintf_chk.c (__vasprintf_chk)
3419 * debug/vdprintf_chk.c (__vdprintf_chk)
3420 * debug/vfprintf_chk.c (__vfprintf_chk)
3421 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3422 * debug/vprintf_chk.c (__vprintf_chk)
3423 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3424 * debug/vswprintf_chk.c (__vswprintf_chk)
3425 * debug/vwprintf_chk.c (__vwprintf_chk)
3426 * debug/wprintf_chk.c (__wprintf_chk):
3427 Directly call the corresponding vxxprintf_internal function, passing
3428 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3429 the FILE and/or construct a temporary FILE. Minimize and normalize
3430 header inclusions and variable names. Do not libc_hidden_def anything.
3431
3432 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3433 __obstack_vprintf_internal.
3434 (__obstack_vprintf_chk): Convert into a wrapper that calls
3435 __obstack_vprintf_internal (these two functions already had the
3436 same code) and move to new file...
3437 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3438 file.
3439 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3440 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3441 * debug/Makefile (routines): Add vobprintf_chk.
3442
3443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3444 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3445 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3446 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3447 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3448 (__nldbl___obstack_vfprintf_chk):
3449 Directly call the corresponding vxxprintf_internal function,
3450 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3451 duplicate comparison of slen with 0 or maxlen from the corresponding
3452 non-__nldbl function.
3453
3454 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3455 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3456 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3457 Remove libc_hidden_proto.
3458
3459 * stdio-common/vfprintf-internal.c
3460 (__vfprintf_internal, __vfwprintf_internal):
3461 Do not check _IO_FLAGS2_FORTIFY.
3462 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3463 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3464 a comment explaining why it has the maxlen argument.
3465 (_IO_acquire_lock_clear_flags2_fct): Remove.
3466 (_IO_acquire_lock_clear_flags2): Remove.
3467 (_IO_release_lock): Remove conditional statement which will
3468 now never execute.
3469 (_IO_acquire_lock): Remove variable which is now unused.
3470 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3471 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3472
3473 * stdio-common/Makefile (tests): Add tst-bz11319 and
3474 tst-bz11319-fortify2.
3475 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3476 * stdio-common/tst-bz11319-fortify2.c: New file.
3477 * stdio-common/tst-bz11319.c: Likewise.
3478
3479 2018-12-05 Zack Weinberg <zackw@panix.com>
3480 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3481
3482 * misc/syslog.c: Include libioP.h, not iolibio.h.
3483 (__vsyslog_internal): New function with the former body of
3484 __vsyslog_chk; takes mode_flags argument same as
3485 __v*printf_internal. Call __vfprintf_internal directly.
3486
3487 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3488 Remove libc_hidden_def.
3489 (__syslog, __syslog_chk): Use __vsyslog_internal.
3490 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3491
3492 * include/sys/syslog.h: Add multiple inclusion guard.
3493 Add prototype for __vsyslog_internal.
3494 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3495
3496 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3497 Use __vsyslog_internal.
3498
3499 2018-12-05 Zack Weinberg <zackw@panix.com>
3500 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3501
3502 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3503 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3504 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3505 New functions.
3506 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3507 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3508
3509 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3510 Include wctype.h here if COMPILE_WPRINTF is defined.
3511 Define __vfprintf_internal or __vfwprintf_internal, depending
3512 on COMPILE_WPRINTF.
3513 Temporarily, on entry to this function, update mode_flags
3514 according to the environmental settings corresponding to
3515 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3516 Throughout, check mode_flags instead of __ldbl_is_dbl and
3517 _IO_FLAGS2_FORTIFY on the destination FILE.
3518 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3519 Include vfprintf-internal.c. Don't include wctype.h.
3520 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3521 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3522 and vfprintf.
3523 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3524 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3525 and vfwprintf.
3526 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3527
3528 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3529 and add mode_flags argument; use __vfprintf_internal.
3530 (__vdprintf): New function. Alias vdprintf to this.
3531 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3532 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3533 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3534 (__obstack_printf): Use __obstack_printf_internal.
3535 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3536 public aliases __vsnprintf and vsnprintf.
3537 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3538 called internally.
3539 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3540 public aliases _IO_vsprintf and vsprintf.
3541 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3542 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3543 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3544 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3545 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3546
3547 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3548 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3549 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3550 * stdio-common/printf.c: Use __vfprintf_internal.
3551
3552 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3553 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3554 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3555
3556 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3557 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3558 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3559 __vfwprintf_internal.
3560
3561 * libio/libio.h: Remove libc_hidden_proto and declaration for
3562 _IO_vfprintf.
3563 Remove declaration of _IO_vfwprintf.
3564 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3565 _IO_vsprintf.
3566 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3567 _IO_obstack_printf.
3568 * include/stdio.h: Add prototype for __vasprintf.
3569 (__vsnprintf): Remove declaration, because there are no more
3570 internal calls.
3571 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3572 declaration, because there are no more internal calls.
3573
3574 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3575 __vsnprintf_internal, instead of _IO_vsnprintf.
3576 * argp/argp-help.c (__argp_error, __argp_failure): Use
3577 __vasprintf_internal, instead of _IO_vasprintf.
3578 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3579 redefine, because there are no more internal calls.
3580
3581 2018-12-05 Zack Weinberg <zackw@panix.com>
3582 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3583
3584 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3585 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3586 Include libio/strfile.h instead of libioP.h.
3587 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3588 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3589 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3590 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3591 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3592 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3593 necessary. Do not set __no_long_double. Normalize variable names.
3594 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3595 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3596 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3597 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3598 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3599 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3600 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3601 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3602 Do not set __no_long_double. Normalize variable names.
3603
3604 2018-12-05 Zack Weinberg <zackw@panix.com>
3605 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3606
3607 * stdio-common/isoc99_scanf.c
3608 * stdio-common/isoc99_fscanf.c
3609 * stdio-common/isoc99_sscanf.c
3610 * stdio-common/isoc99_vscanf.c
3611 * stdio-common/isoc99_vfscanf.c
3612 * stdio-common/isoc99_vsscanf.c
3613 * wcsmbs/isoc99_wscanf.c
3614 * wcsmbs/isoc99_fwscanf.c
3615 * wcsmbs/isoc99_swscanf.c
3616 * wcsmbs/isoc99_vwscanf.c
3617 * wcsmbs/isoc99_vfwscanf.c
3618 * wcsmbs/isoc99_vswscanf.c:
3619 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3620 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3621 No need to lock and unlock the FILE passed to that function.
3622
3623 * stdio-common/vfscanf-internal.c
3624 (__vfscanf_internal, __vfwscanf_internal):
3625 Don't look at _IO_FLAGS2_SCANF_STD.
3626 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3627 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3628 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3629
3630 2018-12-05 Zack Weinberg <zackw@panix.com>
3631 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3632
3633 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3634 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3635 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3636 * libio/strfile.h: Add multiple inclusion guard.
3637 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3638
3639 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3640 consistency with the other version of this file.
3641 (ldbl_compat_symbol): New macro.
3642 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3643 New macro.
3644
3645 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3646 Define __vfscanf_internal or __vfwscanf_internal, depending on
3647 COMPILE_WSCANF; don't define any other public symbols.
3648 Remove errval and code to set errp.
3649 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3650 as the mode_flags argument.
3651 (encode_error, conv_error, input_error): Don't set errval.
3652 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3653 Include vfscanf-internal.c.
3654 * stdio-common/vfscanf.c: New file defining the public entry
3655 point vfscanf, which calls __vfscanf_internal.
3656 * stdio-common/vfwscanf.c: New file defining the public entry
3657 point vfwscanf, which calls __vfwscanf_internal.
3658
3659 * stdio-common/iovfscanf.c: New file.
3660 * stdio-common/iovfwscanf.c: Likewise.
3661
3662 * stdio-common/Makefile (routines): Add vfscanf-internal,
3663 vfwscanf-internal, iovfscanf, iovfwscanf.
3664 * stdio-common/Versions: Mention GLIBC_2.29, so that
3665 it can be used in SHLIB_COMPAT expressions.
3666 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3667 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3668 Call __vfscanf_internal, instead of _IO_vfscanf.
3669 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3670 _IO_vfscanf.
3671 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3672 _IO_vfwscanf.
3673
3674 * libio/iovsscanf.c: Clean up includes, when possible. Use
3675 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3676 __vfscanf_internal or __vfwscanf_internal directly.
3677 * libio/iovswscanf.c: Likewise.
3678 * libio/swscanf.c: Likewise.
3679 * libio/vscanf.c: Likewise.
3680 * libio/vwscanf.c: Likewise.
3681 * libio/wscanf.c: Likewise.
3682 * stdio-common/isoc99_fscanf.c: Likewise.
3683 * stdio-common/isoc99_scanf.c: Likewise.
3684 * stdio-common/isoc99_sscanf.c: Likewise.
3685 * stdio-common/isoc99_vfscanf.c: Likewise.
3686 * stdio-common/isoc99_vscanf.c: Likewise.
3687 * stdio-common/isoc99_vsscanf.c: Likewise.
3688 * stdio-common/scanf.c: Likewise.
3689 * stdio-common/sscanf.c: Likewise.
3690 * wcsmbs/isoc99_fwscanf.c: Likewise.
3691 * wcsmbs/isoc99_swscanf.c: Likewise.
3692 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3693 * wcsmbs/isoc99_vswscanf.c: Likewise.
3694 * wcsmbs/isoc99_vwscanf.c: Likewise.
3695 * wcsmbs/isoc99_wscanf.c: Likewise.
3696
3697 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3698
3699 * include/time.h
3700 (__tz_compute): Replace time_t with __time64_t.
3701 (__tz_convert): Replace time_t* with __time64_t.
3702 (__offtime): Replace time_t* with __time64_t.
3703 * time/gmtime.c
3704 (__gmtime_r): Adjust call to __tz_convert.
3705 (gmtime): Likewise.
3706 * time/localtime.c
3707 (__localtime_r): Likewise.
3708 (localtime): Likewise.
3709 * time/offtime.c: Replace time_t with __time64_t.
3710 * time/tzset.c: Likewise.
3711
3712 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3713
3714 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3715 dynamic linker unless [$(run-built-tests) = yes].
3716
3717 2018-12-03 DJ Delorie <dj@delorie.com>
3718
3719 * support/test-container.c (check_for_unshare_hints): New.
3720 (main): Call it if unshare fails. Add support for "su" scriptlet
3721 command.
3722
3723 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3724
3725 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3726 'START' to indicate that start text should be output.
3727 (gen_test): Likewise.
3728 (main): Generate 'START' for first symbol or '--' line, or at end
3729 of input if not previously generated.
3730
3731 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3732
3733 [BZ #19767]
3734 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3735 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3736 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3737 ALWAYS_USE_VSYSCALL.
3738
3739 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3740
3741 [BZ #23913]
3742 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3743 new_argv by one.
3744
3745 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3746
3747 [BZ #23923]
3748 * locale/programs/localedef.c: Declare boolean hard_links default true.
3749 (options): Add --no-hard-links option.
3750 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3751 * locale/programs/localedef.h: Declare prototype for hard_links.
3752 * locale/programs/locfile.c (write_locale_data): Don't use hard
3753 links if hard_links is false.
3754
3755 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3756
3757 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3758 cpu_features_basic.
3759 (__cache_sysconf): Likewise.
3760 (init_cacheinfo): Likewise.
3761 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3762 populate COMMON_CPUID_INDEX_80000007 and
3763 COMMON_CPUID_INDEX_80000008.
3764 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3765 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3766 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3767 (init_cpu_features): Use _Static_assert on
3768 index_arch_Fast_Unaligned_Load.
3769 __get_cpuid_registers and __get_arch_feature. Updated for
3770 cpu_features_basic. Set stepping in cpu_features.
3771 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3772 (FEATURE_INDEX_2): New.
3773 (FEATURE_INDEX_MAX): Changed to enum.
3774 (COMMON_CPUID_INDEX_D_ECX_1): New.
3775 (COMMON_CPUID_INDEX_80000007): Likewise.
3776 (COMMON_CPUID_INDEX_80000008): Likewise.
3777 (cpuid_registers): Likewise.
3778 (cpu_features_basic): Likewise.
3779 (CPU_FEATURE_USABLE): Likewise.
3780 (bit_arch_XXX_Usable): Likewise.
3781 (cpu_features): Use cpuid_registers and cpu_features_basic.
3782 (bit_arch_XXX): Reweritten.
3783 (bit_cpu_XXX): Likewise.
3784 (index_cpu_XXX): Likewise.
3785 (reg_XXX): Likewise.
3786 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3787 <support/check.h>.
3788 (CHECK_CPU_FEATURE): New.
3789 (CHECK_CPU_FEATURE_USABLE): Likewise.
3790 (cpu_kinds): Likewise.
3791 (do_test): Print vendor, family, model and stepping. Check
3792 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3793 (TEST_FUNCTION): Removed.
3794 Include <support/test-driver.c> instead of
3795 "../../test-skeleton.c".
3796 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3797 Check POPCNT instead of POPCOUNT.
3798 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3799
3800 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3801
3802 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3803 there is no element in `consts'.
3804
3805 2018-12-01 Florian Weimer <fweimer@redhat.com>
3806
3807 * support/support_capture_subprocess.c
3808 (support_capture_subprocess): Check that pipe descriptors have
3809 expected values. Close original pipe descriptors in subprocess.
3810
3811 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3812
3813 [BZ #23032]
3814 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3815 attr with __pthread_default_barrierattr.
3816 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3817 attr with __pthread_default_condattr.
3818 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3819 attr with __pthread_default_mutexattr.
3820 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3821 attr with __pthread_default_rwlockattr.
3822
3823 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3824
3825 * manual/tunables.texi (POSIX Thread Tunables): New node.
3826 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3827 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3828 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3829 __pthread_tunables_init.
3830 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3831 (max_adaptive_count): Define.
3832 * nptl/pthread_mutex_conf.c: New file.
3833 * nptl/pthread_mutex_conf.h: New file.
3834 * sysdeps/generic/adaptive_spin_count.h: New file.
3835 * sysdeps/nptl/dl-tunables.list: New file.
3836 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3837 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3838 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3839 Likewise.
3840
3841 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3842
3843 [BZ #20544]
3844 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3845 * stdlib/on_exit.c (__on_exit): Likewise.
3846 * stdlib/Makefile (tests): Add tst-bz20544.
3847 * stdlib/tst-bz20544.c: New test.
3848
3849 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3850
3851 [BZ #19767]
3852 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3853 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3854 New.
3855
3856 2018-11-30 Florian Weimer <fweimer@redhat.com>
3857
3858 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3859 Extend error logging.
3860 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3861 symbol.
3862
3863 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3864
3865 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3866 __sigismember instead of sigismember.
3867 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3868 cancel_handler): New definitions.
3869 (do_system): Use posix_spawn instead of fork and execl and remove
3870 reentracy code.
3871 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3872 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3873 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3874 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3875 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3876 * sysdeps/unix/sysv/linux/system.c: Likewise.
3877
3878 [BZ #22834]
3879 [BZ #17490]
3880 * NEWS: Add new semantic for atfork with popen and system.
3881 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3882 fork and execl.
3883
3884 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3885
3886 [BZ #23690]
3887 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3888 modification order when accessing reloc_result->addr.
3889 * include/link.h (reloc_result): Add field init.
3890 * nptl/Makefile (tests): Add tst-audit-threads.
3891 (modules-names): Add tst-audit-threads-mod1 and
3892 tst-audit-threads-mod2.
3893 Add rules to build tst-audit-threads.
3894 * nptl/tst-audit-threads-mod1.c: New file.
3895 * nptl/tst-audit-threads-mod2.c: Likewise.
3896 * nptl/tst-audit-threads.c: Likewise.
3897 * nptl/tst-audit-threads.h: Likewise.
3898
3899 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3900
3901 * scripts/gen-as-const.py: New file.
3902 * scripts/gen-as-const.awk: Remove.
3903 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3904 gen-as-const.py.
3905 ($(objpfx)test-as-const-%.c): Likewise.
3906
3907 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3908
3909 * elf/dl-exception.c: Include <_itoa.h>.
3910
3911 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3912
3913 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
3914 returned by __f_setlk.
3915
3916 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3917 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3918
3919 * elf/Makefile (tests-internal): Add tst-create_format1.
3920 * elf/dl-exception.c (_dl_exception_create_format): Support
3921 %x, %lx and %zx.
3922 * elf/tst-create_format1.c: New file.
3923
3924 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
3925
3926 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
3927 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
3928 gnulib.)
3929 * argp/argp-help.c (__argp_failure): Likewise.
3930
3931 2018-11-29 Mao Han <han_mao@c-sky.com>
3932
3933 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
3934 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
3935 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
3936 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
3937 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
3938 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
3939 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
3940 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
3941 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
3942 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
3943 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
3944 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
3945 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
3946 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
3947 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
3948 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
3949 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
3950 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
3951 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
3952 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
3953 (R_CKCORE_TLS_TPOFF32): New defines.
3954
3955 2018-11-29 Florian Weimer <fweimer@redhat.com>
3956
3957 * posix/Makefile (before-compile): Remove testcases.h and
3958 ptestcases.h.
3959 (generated): Add testcases.h and ptestcases.h.
3960 (testcases.h, ptestcases.h): Move to $(objpfx).
3961 (runtests.o): Add dependency on testcases.h.
3962 (runptests.o): Add dependency on ptestcases.h.
3963 * posix/testcases.h, posix/ptestcases.h: Remove files.
3964 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
3965 not touch posix/testcases.h and posix/ptestcases.h.
3966
3967 2018-11-28 Florian Weimer <fweimer@redhat.com>
3968
3969 support: Add signal support to support_capture_subprocess_check.
3970 * support/capture_subprocess.h (support_capture_subprocess_check):
3971 Adjust comment and rename parameter.
3972 * support/support_capture_subprocess_check.c
3973 (print_actual_status): New function.
3974 (support_capture_subprocess_check): Support negative
3975 status_or_signal. Call print_actual_status.
3976 * support/tst-support_capture_subprocess.c (do_test): Call
3977 support_capture_subprocess_check.
3978 * libio/tst-vtables-common.c (termination_status)
3979 (init_termination_status): Remove.
3980 (check_for_termination): Adjust support_capture_subprocess_check
3981 call.
3982 (do_test): Remove call to init_termination_status.
3983
3984 2018-11-28 Joseph Myers <joseph@codesourcery.com>
3985
3986 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
3987 source directory instead of a copy.
3988 (CommandList.create_copy_dir): Remove.
3989
3990 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
3991
3992 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3993
3994 2018-11-28 Florian Weimer <fweimer@redhat.com>
3995
3996 * support/support.h (support_quote_string): Do not use str
3997 parameter name.
3998
3999 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4000
4001 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4002 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4003
4004 2018-11-27 Florian Weimer <fweimer@redhat.com>
4005
4006 * support/support.h (support_quote_string): Declare.
4007 * support/support_quote_string.c: New file.
4008 * support/tst-support_quote_string.c: Likewise.
4009 * support/Makefile (libsupport-routines): Add
4010 support_quote_string.
4011 (tests): Add tst-support_quote_string.
4012
4013 2018-11-27 Florian Weimer <fweimer@redhat.com>
4014
4015 [BZ #23927]
4016 CVE-2018-19591
4017 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4018 descriptor leak in case of ENODEV error.
4019
4020 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4021
4022 [BZ #19767]
4023 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4024 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4025 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4026
4027 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4028
4029 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4030 Error for unknown lines.
4031
4032 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4033
4034 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4035 Touch additional files.
4036
4037 2018-11-26 Florian Weimer <fweimer@redhat.com>
4038
4039 [BZ #23907]
4040 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4041 double-frees.
4042
4043 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4044
4045 [BZ #19767]
4046 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4047 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4048 SHARED. Include sysdep.h.
4049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4050 ALWAYS_USE_VSYSCALL.
4051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4052 ALWAYS_USE_VSYSCALL.
4053
4054 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4055
4056 [BZ #19767]
4057 * nptl/Makefile (tests-static): Add tst-cond11-static.
4058 (tests): Likewise.
4059 * nptl/tst-cond11-static.c: New File.
4060 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4061 tst-affinity-static.
4062 (tests): Likewise.
4063 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4064 instead of SHARED.
4065 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4066 (USE_VSYSCALL): Likewise.
4067 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4068 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4069 instead of SHARED.
4070 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4071 SHARED.
4072 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4073 New.
4074
4075 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4076
4077 [BZ #23915]
4078 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4079 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4080 Undefine.
4081
4082 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4083
4084 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4085 (tst-cet-legacy-1a-ARGS): New.
4086 ($(objpfx)tst-cet-legacy-1a): New target.
4087 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4088
4089 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4090
4091 * conform/conformtest.py (CompileSubTest.__init__): Set
4092 self.run_early to False.
4093 (ExecuteSubTest.__init__): Likewise.
4094 (HeaderTests.run): Try running all non-optional, non-XFAILed
4095 compilation tests in a single execution of the compiler.
4096
4097 * conform/conformtest.py (CompileSubTest): New class.
4098 (ExecuteSubTest): Likewise.
4099 (ElementTest.run): Rename to gen_subtests. Append tests to
4100 self.subtests instead of running them.
4101 (ConstantTest.run): Likewise.
4102 (SymbolTest.run): Likewise.
4103 (TypeTest.run): Likewise.
4104 (TagTest.run): Likewise.
4105 (FunctionTest.run): Likewise.
4106 (VariableTest.run): Likewise.
4107 (MacroFunctionTest.run): Likewise.
4108 (MacroStrTest.run): Likewise.
4109 (HeaderTests.handle_test_line): Generate subtests for tests.
4110 (HeaderTests.run): Run subtests for tests.
4111
4112 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4113
4114 * math/Versions (GLIBC_2.29): Add pow.
4115 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4116 symbol.
4117 * math/w_pow.c: New file.
4118 * sysdeps/i386/fpu/w_pow.c: New file.
4119 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4120 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4121 and add necessary aliases.
4122 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4123 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4124 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4126 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4127 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4128 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4129 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4130 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4131 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4132 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4133 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4134 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4135 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4136 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4141 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4142 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4143 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4144 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4145 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4146 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4147 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4148 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4149 __pow.
4150 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4151 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4152 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4153
4154 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4155
4156 * math/Versions (GLIBC_2.29): Add log2.
4157 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4158 symbol.
4159 * math/w_log2.c: New file.
4160 * sysdeps/i386/fpu/w_log2.c: New file.
4161 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4162 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4163 and add necessary aliases.
4164 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4165 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4166 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4167 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4168 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4169 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4170 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4171 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4172 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4173 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4174 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4175 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4176 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4177 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4178 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4183 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4184 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4185 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4186 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4187 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4189 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4190
4191 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4192
4193 * math/Versions (GLIBC_2.29): Add log.
4194 * math/w_log_compat.c (__log_compat): Change to versioned compat
4195 symbol.
4196 * math/w_log.c: New file.
4197 * sysdeps/i386/fpu/w_log.c: New file.
4198 * sysdeps/ia64/fpu/e_log.S: Update.
4199 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4200 and add necessary aliases.
4201 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4202 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4203 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4204 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4205 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4206 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4207 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4208 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4209 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4210 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4211 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4212 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4213 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4214 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4215 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4225 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4227 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4228 __log.
4229 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4230 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4231 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4232 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4233
4234 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4235
4236 * math/Versions (GLIBC_2.29): Add exp and exp2.
4237 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4238 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4239 * math/w_exp_compat.c (__exp_compat): Likewise.
4240 * math/w_exp.c: New file.
4241 * math/w_exp2.c: New file.
4242 * sysdeps/i386/fpu/w_exp.c: New file.
4243 * sysdeps/i386/fpu/w_exp2.c: New file.
4244 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4245 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4246 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4247 and add necessary aliases.
4248 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4249 and add necessary aliases.
4250 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4251 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4252 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4253 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4254 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4255 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4256 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4257 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4258 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4259 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4262 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4278 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4279 (__ieee754_exp): Rename to __exp.
4280 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4281 (__ieee754_exp): Rename to __exp.
4282 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4283 (__ieee754_exp): Rename to __exp.
4284 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4285 __exp.
4286 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4287
4288 2018-11-20 DJ Delorie <dj@redhat.com>
4289
4290 * malloc/malloc.c (tcache_entry): Add key field.
4291 (tcache_put): Set it.
4292 (tcache_get): Likewise.
4293 (_int_free): Check for double free in tcache.
4294 * malloc/tst-tcfree1.c: New.
4295 * malloc/tst-tcfree2.c: New.
4296 * malloc/Makefile: Run the new tests.
4297 * manual/probes.texi: Document memory_tcache_double_free probe.
4298
4299 * dlfcn/dlerror.c (check_free): Prevent double frees.
4300
4301 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4302
4303 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4304
4305 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4306
4307 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4308 in tests. Use names for format arguments.
4309 (ConstantTest.run): Likewise.
4310 (SymbolTest.run): Likewise.
4311 (TypeTest.run): Likewise.
4312 (TagTest.run): Likewise.
4313 (FunctionTest.run): Likewise.
4314 (VariableTest.run): Likewise.
4315 (MacroFunctionTest.run): Likewise.
4316 (MacroStrTest.run): Likewise.
4317 (HeaderTests.__init__): Set self.num_tests.
4318 (HeaderTests.handle_test_line): Set test.num. Increment
4319 self.num_tests.
4320
4321 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4322
4323 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4324 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4325 SEEK_SET.
4326
4327 2018-11-19 Mao Han <han_mao@c-sky.com>
4328
4329 * scripts/config.guess: Update to version 2018-08-29.
4330 * scripts/config.sub: Update to version 2018-08-29.
4331
4332 2018-11-19 Florian Weimer <fweimer@redhat.com>
4333
4334 support: Print timestamps in timeout handler.
4335 * support/support_test_main.c (print_timestamp): New function.
4336 (signal_handler): Use it to print the termination time and the
4337 time of the last write to standard output.
4338
4339 2018-11-16 Zack Weinberg <zackw@panix.com>
4340 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4341
4342 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4343 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4344 argument.
4345 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4346 and add flags argument. Check flags instead of __ldbl_is_dbl when
4347 deciding whether to set is_long_double.
4348 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4349 passing zero for flags argument.
4350 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4351
4352 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4353 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4354 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4355 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4356 variable names. Remove libc_hidden_def/libc_hidden_proto from
4357 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4358 longer called from within the library.
4359 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4360 for __nldbl___vstrfmon_l, declare it explicitly.
4361
4362 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4363
4364 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4365
4366 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4367 macros
4368 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4369 F_SETLK64, F_SETLKW64, respectively.
4370 * sysdeps/mach/hurd/f_setlk.c: New file.
4371 * sysdeps/mach/hurd/f_setlk.h: New file.
4372 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4373 f_setlk.
4374 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4375 (__libc_fcntl): Move non-flock operations to...
4376 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4377 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4378
4379 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4380
4381 mktime: DEBUG_MKTIME cleanup
4382 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4383 And it’s no longer needed now that glibc and Gnulib both have
4384 their own testing mechanisms for mktime.
4385 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4386
4387 mktime: fix non-EOVERFLOW errno handling
4388 [BZ#23789]
4389 mktime was not properly reporting failures when the underlying
4390 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4391 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4392 The problem could happen on non-glibc platforms, with Gnulib.
4393 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4394 (tm_diff): ... this simpler function, which does not change errno.
4395 All callers changed to deal with errno themselves.
4396 (ranged_convert, __mktime_internal): Return failure immediately if
4397 the underlying function reports any failure other than EOVERFLOW.
4398 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4399 gap code fails.
4400
4401 mktime: fix bug with Y2038 DST transition
4402 [BZ#23789]
4403 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4404 mishandle a DST transition that jumps over the Y2038 boundary.
4405 No such DST transitions are known so this is only a theoretical
4406 bug, but we might as well do things right.
4407
4408 mktime: make more room for overflow
4409 [BZ#23789]
4410 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4411 This is so that we can add tm_diff results to a previous guess,
4412 which will be useful in a later patch.
4413
4414 mktime: simplify offset guess
4415 [BZ#23789]
4416 * time/mktime.c (__mktime_internal): Omit excess precision.
4417
4418 mktime: new test for mktime failure
4419 [BZ#23789]
4420 Based on a test suggested by Albert Aribaud in:
4421 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4422 * time/Makefile (tests): Add bug-mktime4.
4423 * time/bug-mktime4.c: New file.
4424
4425 mktime: fix EOVERFLOW bug
4426 [BZ#23789]
4427 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4428 Include libc-config.h, not config.h, for __set_errno.
4429 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4430
4431 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4432
4433 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4434 __attribute_copy__ to copy attributes from name. Drop static qualifier
4435 to avoid warnings about leaf attribute not having effect on static
4436 functions.
4437
4438 2018-11-13 Florian Weimer <fweimer@redhat.com>
4439
4440 * malloc/malloc.c (fastbin_push_entry): New function.
4441 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4442 (REMOVE_FB): Remove macro.
4443 (_int_malloc): Use fastbin_pop_entry and reindent.
4444 (_int_free): Use fastbin_push_entry.
4445 (malloc_consolidate): Use atomic_exchange_acquire.
4446
4447 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4448
4449 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4450 alias attribute, not with strong_alias.
4451
4452 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4453 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4454 with additional parameter thread.
4455 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4456 in terms of __hidden_ver2.
4457 (hidden_tls_def): New macro.
4458 (libc_hidden_tls_def): Likewise.
4459 (rtld_hidden_tls_def): Likewise.
4460 (libm_hidden_tls_def): Likewise.
4461 (libmvec_hidden_tls_def): Likewise.
4462 (libresolv_hidden_tls_def): Likewise.
4463 (librt_hidden_tls_def): Likewise.
4464 (libdl_hidden_tls_def): Likewise.
4465 (libnss_files_hidden_tls_def): Likewise.
4466 (libnsl_hidden_tls_def): Likewise.
4467 (libnss_nisplus_hidden_tls_def): Likewise.
4468 (libutil_hidden_tls_def): Likewise.
4469 (libutil_hidden_tls_def): Likweise.
4470 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4471 libc_hidden_tls_def.
4472 (__sim_disabled_exceptions_thread): Likewise.
4473 (__sim_round_mode_thread): Likewise.
4474
4475 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4476 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4477 copy attributes from name.
4478
4479 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4480
4481 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4482 Use __attribute_copy__ to copy attributes from name.
4483
4484 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4485 with __hidden_ver1 call.
4486 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4487 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4488 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4489 (__cosf): Do not declare here.
4490 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4491 (__sincosf): Do not declare here.
4492 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4493 (__sinf): Do not declare here.
4494
4495 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4496 (__BIG_ENDIAN): Likewise.
4497 (__BYTE_ORDER): Likewise.
4498 (strong_alias): Likewise.
4499 (_strong_alias): Likewise.
4500
4501 2018-11-12 Florian Weimer <fweimer@redhat.com>
4502
4503 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4504 function. Move after the definition of in_smallbin_range. Do not
4505 use __builtin_expect for paths that lead to a noreturn function.
4506 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4507 because it is unclear whether this is in fact an unlikely
4508 condition.
4509 (_int_malloc, _int_free): Adjust.
4510 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4511 variables.
4512 * malloc/arena.c (heap_trim): Likewise.
4513
4514 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4515
4516 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4517 it, free it if needed.
4518 (reauthenticate): Test and use ccwdir.
4519 (child_init_port): In non-resetids case, test and use ccwdir.
4520 (child_chdir): New nested function to set ccwdir.
4521 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4522 * hurd/hurd/port.h (_hurd_port_move): New function.
4523 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4524 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4525 * hurd/Versions (_hurd_port_move): Export function.
4526 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4527 symbol.
4528 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4529 of dtablesize for allocating dtable_cloexec.
4530
4531 2018-11-09 Martin Sebor <msebor@redhat.com>
4532
4533 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4534 it's already defined.
4535 (_strong_alias): Use __attribute_copy__.
4536 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4537 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4538 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4539 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4540 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4541 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4542 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4543 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4544 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4545 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4546 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4547 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4548 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4549 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4550 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4551 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4552 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4553 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4554 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4555
4556 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4557
4558 * misc/tst-efgcvt.c: Include support/check.h and
4559 support/test-driver.c. Do not include test-skeleton.c.
4560 (error_count): Remove.
4561 (output_error): Replace increments to error_count with calls to
4562 support_record_failure.
4563 (output_r_error): Likewise.
4564 (special): Likewise.
4565 (do_test): Unconditionally return zero.
4566 (TEST_FUNCTION): Remove.
4567
4568 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4569
4570 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4571 not $(@D)/scratch.
4572 ($(linknamespace-header-tests)): Likewise.
4573
4574 * conform/conformtest.py: New file.
4575 * conform/conformtest.pl: Remove.
4576 * conform/GlibcConform.pm: Likewise.
4577 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4578 (KEYWORDS_C99): Likewise.
4579 (KEYWORDS): Likewise.
4580 * conform/Makefile ($(conformtest-header-tests)): Use
4581 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4582 option. Use --header instead of --headers.
4583 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4584 function entries.
4585 * conform/data/spawn.h-data: Likewise.
4586 * conform/data/fcntl.h-data (openat): Add space after function
4587 name.
4588 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4589 (wcscasecmp_l): Likewise.
4590 * conform/data/termios.h-data (c_cc): Add space after element
4591 name.
4592
4593 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4594
4595 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4596 instead of manually comparing and reporting mismatching strings.
4597 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4598 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4599
4600 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4601
4602 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4603 __ASSUME_SOCKETCALL.
4604 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4605 (__ASSUME_SOCKETCALL): Remove.
4606 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4607 (__ASSUME_SOCKETCALL): Likewise.
4608 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4609 (__ASSUME_SOCKETCALL): Likewise.
4610 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4611 (__ASSUME_SOCKETCALL): Likewise.
4612 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4613 (__ASSUME_SOCKETCALL): Likewise.
4614 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4615 (__ASSUME_SOCKETCALL): Likewise.
4616 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4617 (__ASSUME_SOCKETCALL): Likewise.
4618
4619 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4620
4621 [BZ #23509]
4622 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4623 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4624 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4625 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4626 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4627 lc_unknown.
4628
4629 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4630
4631 [BZ #17630]
4632 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4633
4634 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4635
4636 [BZ #23867]
4637 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4638 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4639 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4640 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4641
4642 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4643
4644 * support/support_test_compare_string.c
4645 (support_test_compare_string): Fix printf format.
4646
4647 2018-11-07 Florian Weimer <fweimer@redhat.com>
4648
4649 Implement TEST_COMPARE_STRING.
4650 * support/check.h (TEST_COMPARE_STRING): Define.
4651 (support_test_compare_string): Declare.
4652 * support/Makefile (libsupport-routines): Add
4653 support_test_compare_string.
4654 (tests): Add tst-test_compare_string.
4655 * support/support_test_compare_string.c: New file.
4656 * support/tst-test_compare_string.c: Likewise.
4657
4658 2018-11-07 Andreas Schwab <schwab@suse.de>
4659
4660 [BZ #23864]
4661 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4662 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4663 Undef.
4664
4665 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4666
4667 [BZ #23862]
4668 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4669 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4670 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4671 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4672 Likewise.
4673
4674 2018-11-06 Florian Weimer <fweimer@redhat.com>
4675
4676 [BZ #17405]
4677 * posix/Makefile (routines): Add spawn_faction_addchdir.
4678 (tests): Add tst-spawn-chdir.
4679 * posix/Versions (GLIBC_2.29): Add
4680 posix_spawn_file_actions_addchdir_np.
4681 * posix/spawn_faction_addchdir.c: New file.
4682 * posix/spawn_faction_destroy.c
4683 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4684 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4685 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4686 chdir_action.
4687 * posix/tst-spawn-chdir.c: New file.
4688 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4689 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4690 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4691 posix_spawn_file_actions_addchdir_np.
4692 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4693 Likewise.
4694 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4695 Likewise.
4696 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4697 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4698 Likewise.
4699 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4700 Likewise.
4701 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4702 Likewise.
4703 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4704 Likewise.
4705 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4706 Likewise.
4707 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4708 Likewise.
4709 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4710 (GLIBC_2.29): Likewise.
4711 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4712 (GLIBC_2.29): Likewise.
4713 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4714 (GLIBC_2.29): Likewise.
4715 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4716 (GLIBC_2.29): Likewise.
4717 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4718 Likewise.
4719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4720 (GLIBC_2.29): Likewise.
4721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4722 (GLIBC_2.29): Likewise.
4723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4724 (GLIBC_2.29): Likewise.
4725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4726 (GLIBC_2.29): Likewise.
4727 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4728 Likewise.
4729 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4730 Likewise.
4731 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4732 Likewise.
4733 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4734 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4735 Likewise.
4736 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4737 Likewise.
4738 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4739 Likewise.
4740 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4741 Likewise.
4742
4743 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4744
4745 * misc/Makefile (tests): Add tst-ldbl-error.
4746 * misc/tst-ldbl-error.c: New file.
4747
4748 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4749
4750 * misc/Makefile (tests): Add tst-ldbl-warn.
4751 * misc/tst-ldbl-warn.c: New file.
4752
4753 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4754
4755 * argp/Makefile (tests): Add tst-ldbl-argp.
4756 * argp/tst-ldbl-argp.c: New file.
4757
4758 2018-11-05 Arjun Shankar <arjun@redhat.com>
4759
4760 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4761 __gconv_path_elem and call __gconv_get_path unconditionally.
4762
4763 2018-11-05 Andreas Schwab <schwab@suse.de>
4764
4765 [BZ #22927]
4766 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4767 creating the first helper thread failed.
4768
4769 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4770
4771 * sysdeps/mach/hurd/msync.c: New file.
4772
4773 2018-11-02 Florian Weimer <fweimer@redhat.com>
4774
4775 * support/shell-container.c (copy_func): Call
4776 support_copy_file_range instead of copy_file_range to support
4777 cross-device copies.
4778
4779 2018-11-02 Florian Weimer <fweimer@redhat.com>
4780
4781 * support/test-container.c: Include <libc-pointer-arith.h> for
4782 ALIGN_UP.
4783
4784 2018-11-01 Zong Li <zong@andestech.com>
4785
4786 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4787 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4788 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4789 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4790
4791 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4792 variable to avoid overlap arguments.
4793
4794 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4795
4796 * posix/bug-regex22.c (main): Use puts with distinct error
4797 messages for unexpected success of re_compile_pattern, not printf
4798 with NULL argument to %s.
4799
4800 * stdio-common/bug22.c: Include <libc-diag.h>.
4801 (do_test): Disable -Wformat-overflow= warnings around fprintf
4802 calls outputting more than INT_MAX characters.
4803 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4804 around printf call with NULL %s argument.
4805
4806 [BZ #23848]
4807 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4808 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4809 Undefine.
4810 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4811 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4812 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4813 (__ASSUME_SENDTO_SYSCALL): Likewise.
4814 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4815 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4816 [!__arch64__].
4817 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4818 (__ASSUME_CONNECT_SYSCALL): Likewise.
4819 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4820 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4821 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4822 Define.
4823 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4824 Likewise.
4825 [__LINUX_KERNEL_VERSION >= 0x040400]
4826 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4827 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4828 Remove.
4829 (listen): Likewise.
4830 (setsockopt): Likewise.
4831
4832 2018-11-01 Fredrik Noring <noring@nocrew.org>
4833
4834 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4835 with the ISA override.
4836
4837 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4838
4839 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4840 #endif.
4841
4842 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4843
4844 * manual/errno.texi (EIEIO): Document how translators should
4845 translate the error message.
4846 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4847 printing trailing whitespaces refused by git.
4848 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4849 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4850 * hurd/Makefile (user-interfaces): Add pci.
4851
4852 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4853
4854 * conform/linknamespace.py: New file.
4855 * conform/linknamespace.pl: Remove file.
4856 * conform/Makefile ($(linknamespace-header-tests)): Use
4857 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4858 option.
4859
4860 2018-10-30 Florian Weimer <fweimer@redhat.com>
4861
4862 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4863 memory leaks.
4864
4865 2018-10-30 Florian Weimer <fweimer@redhat.com>
4866
4867 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4868
4869 2018-10-30 Florian Weimer <fweimer@redhat.com>
4870
4871 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4872 support_blob_repeat.
4873
4874 2018-10-30 Florian Weimer <fweimer@redhat.com>
4875
4876 Avoid spurious test failures in stdlib/test-bz22786.
4877 * support/Makefile (libsupport-routines): Add blob_repeat.
4878 (tests): Add tst-support_blob_repeat.
4879 * support/blob_repeat.h: New file.
4880 * support/blob_repeat.c: Likewise.
4881 * support/tst-support_blob_repeat.c: Likewise.
4882 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4883 support_blob_repeat_allocate.
4884
4885 2018-10-30 Andreas Schwab <schwab@suse.de>
4886
4887 [BZ #23125]
4888 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4889 Don't use tail call.
4890 * elf/tst-unwind-main.c: New file.
4891 * elf/Makefile (tests): Add tst-unwind-main.
4892 (CFLAGS-tst-unwind-main.c): Define.
4893
4894 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4895
4896 [BZ #23791]
4897 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4898 n_cs_precedes to 0.
4899 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4900
4901 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4902
4903 * conform/glibcconform.py: Do not import shutil.
4904 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4905 of mkdtemp.
4906
4907 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4908 critic_missing for versions before 3.4.
4909 * configure: Regenerated.
4910 * manual/install.texi (Tools for Compilation): Document
4911 requirement for Python to build glibc.
4912 * INSTALL: Regenerated.
4913 * Rules [PYTHON]: Make code unconditional.
4914 * benchtests/Makefile [PYTHON]: Likewise.
4915 * conform/Makefile [PYTHON]: Likewise.
4916 * manual/Makefile [PYTHON]: Likewise.
4917 * math/Makefile [PYTHON]: Likewise.
4918
4919 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4920
4921 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
4922 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
4923 answer to interrupt_operation, return EIEIO instead of EINTR.
4924 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
4925 _hurd_intr_rpc_msg_about_to global point to start of controlled
4926 assembly snippet. Make it check canceled flag.
4927 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
4928 the _hurd_intr_rpc_msg_about_to point.
4929 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
4930 issue, remove cancel flag check.
4931
4932 2018-10-26 Joseph Myers <joseph@codesourcery.com>
4933
4934 * scripts/build-many-glibcs.py: Remove compatibility for missing
4935 os.cpu_count and re.fullmatch.
4936
4937 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
4938
4939 [BZ #23822]
4940 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
4941 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
4942 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
4943
4944 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4945
4946 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
4947 macro.
4948
4949 2018-10-25 Florian Weimer <fweimer@redhat.com>
4950
4951 [BZ #23562]
4952 [BZ #23821]
4953 XFAIL siginfo_t si_band conform test on sparc64.
4954 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
4955 (__SI_BAND_TYPE): Only override long int default type on sparc64.
4956 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4957 (conformtest-xfail-conds): Add sparc64-linux.
4958 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
4959 sparc64.
4960 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
4961
4962 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4963
4964 * elf/elf.h (NT_MIPS_DSP): New macro.
4965 (NT_MIPS_FP_MODE): Likewise.
4966
4967 2018-10-25 Zong Li <zong@andestech.com>
4968
4969 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
4970 name by adding the file extension (.so).
4971
4972 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
4973
4974 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
4975 (test-xfail-ISO11/threads.h/linknamespace,
4976 test-xfail-ISO11/threads.h/conform): Add.
4977
4978 2018-10-24 Joseph Myers <joseph@codesourcery.com>
4979
4980 * math/gen-libm-test.py: Import os.
4981 (ALL_FLOATS_MANUAL): New constant.
4982 (ALL_FLOATS_SUFFIX): Likewise.
4983 (Ulps.all_functions): New function.
4984 (real_all_ulps): Likewise.
4985 (generate_err_table_sub): Likewise.
4986 (generate_err_table): Likewise.
4987 (main): Handle -s and -m options.
4988 * manual/libm-err-tab.pl: Remove.
4989 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
4990 instead of libm-err-tab.pl.
4991 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
4992 != no].
4993 * manual/install.texi (Tools for Compilation): Document
4994 requirement for Python to build manual.
4995 * INSTALL: Regenerated.
4996
4997 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
4998
4999 * bits/time64.h: New file.
5000 * include/time.h: Replace internal_time_t with __time64_t.
5001 * posix/bits/types (__time64_t): Add.
5002 * stdlib/Makefile: Add bits/time64.h to includes.
5003 * time/tzfile.c: Replace internal_time_t with __time64_t.
5004
5005 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5006
5007 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5008 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5009 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5010 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5011 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5012 prototype.
5013 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5014 * posix/spawn_faction_addclose.c
5015 (__posix_spawn_file_actions_addclose): Add hidden definition.
5016 * posix/spawn_faction_adddup2.c
5017 (__posix_spawn_file_actions_adddup2): Likewise.
5018 * posix/spawn_faction_destroy.c
5019 (__posix_spawn_file_actions_destroy): Likewise.
5020 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5021 Likewise.
5022 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5023 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5024 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5025 Likewise.
5026 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5027 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5028 Likewise.
5029
5030 2018-10-24 Andreas Schwab <schwab@suse.de>
5031
5032 [BZ #18093]
5033 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5034 format cache.
5035 * elf/cache.c (print_cache): Likewise.
5036
5037 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5038
5039 * bits/timesize.h: New file.
5040 * stdlib/Makefile (headers): Add bits/timesize.h.
5041 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5042 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5043 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5044 (__SEM_PAD_AFTER_TIME): Likewise.
5045 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5046 (__SHM_PAD_AFTER_TIME): Likewise.
5047 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5048 (__MSQ_PAD_BEFORE_TIME): Likewise.
5049 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5050 (__SEM_PAD_BEFORE_TIME): Likewise.
5051 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5052 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5053 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5054 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5055 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5056 (__MSQ_PAD_BEFORE_TIME): Likewise.
5057 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5058 (__SEM_PAD_BEFORE_TIME): Likewise.
5059 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5060 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5061 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5062 (__MSQ_PAD_BEFORE_TIME): Likewise.
5063 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5064 (__SEM_PAD_BEFORE_TIME): Likewise.
5065 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5066 (__SHM_PAD_BEFORE_TIME): Likewise.
5067 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5068 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5069 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5070
5071 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5072
5073 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5074 USE_RDTSCP is defined.
5075 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5076 USE_RDTSCP is defined.
5077
5078 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5079
5080 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5081 defined.
5082
5083 [BZ #23709]
5084 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5085 independently of other flags.
5086
5087 2018-10-23 Florian Weimer <fweimer@redhat.com>
5088
5089 * time/tst-mktime2.c (N_STRINGS): Remove.
5090 (set_timezone): New function.
5091 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5092 (mktime_test1): Report localtime failure and check errno value.
5093 Use TEST_COMPARE.
5094 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5095 (do_test): Remove alarm call. Use set_timezone and array_length.
5096
5097 2018-10-23 Andreas Schwab <schwab@suse.de>
5098
5099 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5100 (__start_context): Use END instead of PSEUDO_END.
5101
5102 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5103
5104 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5105 version to 4.19.
5106
5107 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5108 version to 4.19.
5109
5110 [BZ #23793]
5111 * wcsmbs/c32rtomb.c: New file.
5112 * wcsmbs/mbrtoc32.c: Likewise.
5113 * wcsmbs/tst-c32-state.c: Likewise.
5114 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5115 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5116 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5117 (tests): Add tst-c32-state.
5118 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5119 $(gen-locales).
5120
5121 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5122
5123 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5124 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5125
5126 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5127
5128 [BZ #23794]
5129 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5130 pair and return 0 in that case, and use saved character to
5131 interpret following character.
5132 * wcsmbs/tst-c16-surrogate.c: New file.
5133 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5134 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5135 Depend on $(gen-locales)
5136
5137 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5138
5139 [BZ #23562]
5140 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5141 (struct siginfo_t): Use correct type for si_band.
5142
5143 2018-10-19 Florian Weimer <fweimer@redhat.com>
5144
5145 [BZ #23689]
5146 * resource/bits/types/struct_rusage.h (struct rusage): Update
5147 comment on struct. Remove extraneous field comment.
5148
5149 2018-10-18 David S. Miller <davem@davemloft.net>
5150
5151 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5152 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5153 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5154 sysdep_routines in subdir elf.
5155 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5156 version for __vdso_clock_gettime.
5157 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5158 Define.
5159 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5160 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5161
5162 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5163
5164 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5165
5166 * sysdeps/i386/init-arch.h: Removed.
5167 * sysdeps/i386/i586/init-arch.h: Likewise.
5168 * sysdeps/i386/i686/init-arch.h: Likewise.
5169 * sysdeps/i386/i686/hp-timing.h: Likewise.
5170 * sysdeps/x86_64/hp-timing.h: Likewise.
5171 * sysdeps/i386/isa.h: New file.
5172 * sysdeps/i386/i586/isa.h: Likewise.
5173 * sysdeps/i386/i686/isa.h: Likewise.
5174 * sysdeps/x86_64/isa.h: Likewise.
5175 * sysdeps/x86/hp-timing.h: New file.
5176 * sysdeps/x86/init-arch.h: Include <isa.h>.
5177
5178 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5179
5180 * math/libm-test-pow.inc (pow_test_data): Do not allow
5181 divide-by-zero exception for pow(+/- 0, -Inf).
5182
5183 2018-10-17 Zack Weinberg <zackw@panix.com>
5184
5185 * manual/job.texi (Job Control is Optional): Remove node, as
5186 job control has not been optional in quite some time.
5187 (Job Control): Mention briefly that systems older than
5188 POSIX.1-2001 might not support job control.
5189 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5190 defined on systems conforming to POSIX.1-2001.
5191
5192 2018-10-17 Arjun Shankar <arjun@redhat.com>
5193
5194 [BZ #22062]
5195 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5196 indentation.
5197 * (__gconv_read_conf): Mark function static.
5198 * (once): New static variable.
5199 * (__gconv_load_conf): New function.
5200 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5201 * iconv/gconv_db.c (once): Remove static variable.
5202 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5203 __gconv_read_conf.
5204 * (__gconv_find_transform): Likewise.
5205 * iconv/tst-iconv-mt.c: New test.
5206 * iconv/Makefile: Add tst-iconv_mt.
5207
5208 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5209
5210 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5211 bits/shm-pad.h.
5212 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5213 (shmatt_t): Define as __syscall_ulong_t.
5214 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5215 and [__SHM_PAD_AFTER_TIME].
5216 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5217 Define shm_segsz and associated padding based on
5218 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5219 Use __syscall_ulong_t instead of unsigned long int.
5220 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5221 unsigned long int.
5222 [__USE_MISC] (struct shm_info): Likewise.
5223 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5224 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5225 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5226 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5227 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5228 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5229 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5230 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5231 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5232 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5233 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5234
5235 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5236 bits/shmlba.h.
5237 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5238 (SHMLBA): Remove macro.
5239 (__getpagesize): Remove function declaration.
5240 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5241 <bits/shmlba.h>.
5242 (SHMLBA): Remove macro.
5243 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5244 <bits/shmlba.h>.
5245 (SHMLBA): Remove macro.
5246 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5247 <bits/shmlba.h>.
5248 (SHMLBA): Remove macro.
5249 (__getpagesize): Remove function declaration.
5250 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5251 <bits/shmlba.h>.
5252 (SHMLBA): Remove macro.
5253 (__getshmlba): Remove function declaration.
5254 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5255 (SHMLBA): Remove macro.
5256 (__getpagesize): Remove function declaration.
5257 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5258 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5259 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5260 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5261 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5262 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5263 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5264 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5265 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5266 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5267
5268 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5269
5270 [BZ #23275]
5271 * nptl/tst-mutex10.c: New File.
5272 * nptl/Makefile (tests): Add tst-mutex10.
5273 (tst-mutex10-ENV): New variable.
5274 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5275 Ensure that elision path is used if elision is available.
5276 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5277 Likewise.
5278 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5279 Likewise.
5280 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5281 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5282 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5283 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5284 Likewise.
5285 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5286 (__pthread_mutex_cond_lock_adjust): Likewise.
5287 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5288 Likewise.
5289 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5290 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5291 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5292 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5293 Add comments.
5294 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5295 Use atomic_load_relaxed and atomic_store_relaxed.
5296 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5297 Use atomic_store_relaxed.
5298
5299 2018-10-17 Andreas Schwab <schwab@suse.de>
5300
5301 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5302 * crypt/badsalttest.c (TIMEOUT): Likewise.
5303 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5304 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5305 * io/test-lfs.c (TIMEOUT): Likewise.
5306 * libio/tst-atime.c (TIMEOUT): Likewise.
5307 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5308 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5309 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5310 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5311 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5312 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5313 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5314 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5315 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5316 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5317 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5318 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5319 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5320 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5321 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5322 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5323 * nptl/tst-once2.c (TIMEOUT): Likewise.
5324 * nptl/tst-once3.c (TIMEOUT): Likewise.
5325 * nptl/tst-once4.c (TIMEOUT): Likewise.
5326 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5327 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5328 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5329 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5330 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5331 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5332 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5333 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5334 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5335 * posix/tst-chmod.c (TIMEOUT): Likewise.
5336 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5337 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5338 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5339 * posix/tst-regex2.c (TIMEOUT): Likewise.
5340 * posix/tst-waitid.c (TIMEOUT): Likewise.
5341 * rt/tst-aio.c (TIMEOUT): Likewise.
5342 * rt/tst-aio10.c (TIMEOUT): Likewise.
5343 * rt/tst-aio4.c (TIMEOUT): Likewise.
5344 * rt/tst-aio5.c (TIMEOUT): Likewise.
5345 * rt/tst-aio6.c (TIMEOUT): Likewise.
5346 * rt/tst-aio64.c (TIMEOUT): Likewise.
5347 * rt/tst-aio7.c (TIMEOUT): Likewise.
5348 * rt/tst-aio9.c (TIMEOUT): Likewise.
5349 * rt/tst-clock.c (TIMEOUT): Likewise.
5350 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5351 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5352 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5353 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5354 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5355 * rt/tst-timer4.c (TIMEOUT): Likewise.
5356 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5357 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5358 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5359 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5360 * time/tst-ftime.c (TIMEOUT): Likewise.
5361 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5362
5363 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5364
5365 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5366 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5367 for thunderX2.
5368
5369 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5370
5371 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5372 bits/sem-pad.h.
5373 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5374 instead of <bits/wordsize.h>.
5375 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5376 and [__SEM_PAD_AFTER_TIME].
5377 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5378 __syscall_ulong_t instead of unsigned long int.
5379 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5380 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5381 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5382 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5383 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5384 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5385 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5386 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5387 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5388 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5389 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5390
5391 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5392
5393 regex: simplify by using intprops.h
5394 [BZ#23744]
5395 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5396 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5397 intprops.h defines them.
5398
5399 regex: __builtin_expect → __glibc_unlikely
5400 [BZ#23744]
5401 This refactoring was prompted by a problem when the regex code is
5402 used as part of Gnulib and when the builder’s compiler does not grok
5403 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5404 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5405 Although this refactoring does not fix the problem directly,
5406 we might as well have Gawk use the now-preferred glibc style for when
5407 __builtin_expect is unavailable.
5408 * posix/regex_internal.h (BE): Remove.
5409 All uses replaced by __glibc_unlikely or __glibc_likely.
5410
5411 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5412
5413 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5414 bits/msq-pad.h.
5415 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5416 instead of <bits/wordsize.h>.
5417 (msgqnum_t): Define as __syscall_ulong_t.
5418 (msglen_t): Likewise.
5419 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5420 and [__MSQ_PAD_AFTER_TIME].
5421 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5422 __syscall_ulong_t instead of unsigned long int.
5423 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5424 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5425 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5426 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5427 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5428 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5429 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5430 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5431 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5432 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5433 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5434
5435 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5436
5437 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5438 (struct shmid_ds): Condition padding after time fields on
5439 [__WORDSIZE == 32].
5440 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5441 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5442 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5443
5444 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5445 (struct semid_ds): Condition padding after time fields on
5446 [__WORDSIZE == 32].
5447 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5448 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5449 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5450 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5451
5452 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5453 (struct msqid_ds): Condition padding after time fields on
5454 [__WORDSIZE == 32].
5455 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5456 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5457 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5458 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5459
5460 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5461
5462 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5463
5464 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5465
5466 * libio/tst-readline.c (TIMEOUT): Define.
5467
5468 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5469
5470 mktime fix for Gnulib + coreutils
5471 [BZ#23745]
5472 This fix affects only Gnulib. Problem discovered when
5473 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5474 * time/mktime.c:
5475 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5476 Do not define since it is not used. Defining an unused static
5477 function prompts a warning from GCC when Coreutils is configured
5478 with --enable-gcc-warnings.
5479
5480 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5481
5482 * benchtests/scripts/compare_bench.py (main): set float type on
5483 threshold argument.
5484
5485 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5486
5487 [BZ #23740]
5488 * localedata/locales/kl_GL (mon): Update, the relative case.
5489 (alt_mon): Add, fill with month names in the nominative case.
5490 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5491 (d_fmt): Set to "%b %d %Y".
5492
5493 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5494
5495 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5496 <bits/mman-linux.h>.
5497 (PROT_READ): Don't define here.
5498 (PROT_WRITE): Likewise.
5499 (PROT_EXEC): Likewise.
5500 (PROT_NONE): Likewise.
5501 (PROT_GROWSDOWN): Likewise.
5502 (PROT_GROWSUP): Likewise.
5503 (MAP_SHARED): Likewise.
5504 (MAP_PRIVATE): Likewise.
5505 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5506 [__USE_MISC] (MAP_FILE): Likewise.
5507 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5508 [__USE_MISC] (MAP_ANON): Likewise.
5509 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5510 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5511 (MCL_CURRENT): Likewise.
5512 (MCL_FUTURE): Likewise.
5513 (MCL_ONFAULT): Likewise.
5514 [__USE_MISC] (MADV_NORMAL): Likewise.
5515 [__USE_MISC] (MADV_RANDOM): Likewise.
5516 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5517 [__USE_MISC] (MADV_WILLNEED): Likewise.
5518 [__USE_MISC] (MADV_DONTNEED): Likewise.
5519 [__USE_MISC] (MADV_FREE): Likewise.
5520 [__USE_MISC] (MADV_REMOVE): Likewise.
5521 [__USE_MISC] (MADV_DONTFORK): Likewise.
5522 [__USE_MISC] (MADV_DOFORK): Likewise.
5523 [__USE_MISC] (MADV_HWPOISON): Likewise.
5524 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5525 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5526 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5527 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5528 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5529 (__MAP_ANONYMOUS): New macro.
5530 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5531 <bits/mman-linux.h> inclusion.
5532 (MAP_FIXED): Likewise.
5533 (MS_SYNC): Likewise.
5534 (MS_ASYNC): Likewise.
5535 (MS_INVALIDATE): Likewise.
5536 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5537 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5538 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5539 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5540 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5541 [__USE_MISC] (MADV_DODUMP): Likewise.
5542 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5543 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5544
5545 [BZ #23735]
5546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5547 Define.
5548 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5549 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5550 Add test-nldbl-redirect.
5551 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5552 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5553 $(objpfx)libnldbl_nonshared.a.
5554
5555 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5556
5557 * support/support.h (support_objdir_elf_ldso): New variable.
5558 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5559 * support/Makefile (CFLAGS-support_paths.c): Add definition
5560 for OBJDIR_ELF_LDSO_PATH.
5561 * support/test-container.c (main): Search for the ld.so
5562 which is also used by the testsuite.
5563
5564 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5565
5566 [BZ #20209]
5567 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5568 should be "sap" rather than "sab".
5569 (day): Fix spelling of Sunday, should be "sapaat" rather than
5570 "sabaat".
5571
5572 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5573
5574 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5575
5576 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5577
5578 [BZ #19444]
5579 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5580 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5581 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5582
5583 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5584
5585 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5586
5587 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5590 Add -mrtm.
5591 (CFLAGS-elision-unlock.c): Likewise.
5592 (CFLAGS-elision-timed.c): Likewise.
5593 (CFLAGS-elision-trylock.c): Likewise.
5594 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5595
5596 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5597
5598 [BZ #21037]
5599 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5600 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5601 new fd_to_filename interface.
5602 * libio/freopen64.c (freopen64): Likewise.
5603 * libio/tst-memstream.h: New file.
5604 * libio/tst-memstream4.c: Likewise.
5605 * libio/tst-wmemstream4.c: Likewise.
5606 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5607 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5608 and remove internal dynamic allocation.
5609
5610 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5611
5612 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5613 (MREMAP_MAYMOVE): Do not define here.
5614 [__USE_GNU] (MREMAP_FIXED): Likewise.
5615 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5616 (MREMAP_MAYMOVE): Define here instead.
5617 [__USE_GNU] (MREMAP_FIXED): Likewise.
5618 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5619 (MREMAP_MAYMOVE): Remove.
5620 [__USE_GNU] (MREMAP_FIXED): Likewise.
5621
5622 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5623
5624 * math/fromfp.h: Do not include <math_private.h>.
5625 * math/s_cacosh_template.c: Likewise.
5626 * math/s_casin_template.c: Likewise.
5627 * math/s_casinh_template.c: Likewise.
5628 * math/s_ccos_template.c: Likewise.
5629 * math/s_cproj_template.c: Likewise.
5630 * math/s_fdim_template.c: Likewise.
5631 * math/s_fmaxmag_template.c: Likewise.
5632 * math/s_fminmag_template.c: Likewise.
5633 * math/s_iseqsig_template.c: Likewise.
5634 * math/s_ldexp_template.c: Likewise.
5635 * math/s_nextdown_template.c: Likewise.
5636 * math/w_log1p_template.c: Likewise.
5637 * math/w_scalbln_template.c: Likewise.
5638 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5639 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5640 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5641 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5642 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5643 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5644 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5645 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5646 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5647 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5648 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5649 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5650 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5651 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5652 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5653 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5654 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5655 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5656 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5657 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5658 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5659 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5660 * sysdeps/ieee754/k_standardf.c: Likewise.
5661 * sysdeps/ieee754/k_standardl.c: Likewise.
5662 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5663 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5664 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5665 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5666 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5667 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5668 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5669 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5670 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5671 * sysdeps/ieee754/s_signgam.c: Likewise.
5672 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5673 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5674 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5675 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5676 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5677 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5678 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5679 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5680 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5681 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5682 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5683 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5684 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5685 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5686 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5687 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5688 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5689 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5690 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5691 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5692 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5693 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5694 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5695 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5696 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5697 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5698 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5699 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5700 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5701 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5702 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5703 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5704 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5705 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5706 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5707 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5708 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5709 <math_private.h>.
5710 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5711
5712 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5713
5714 [BZ #23716]
5715 * sysdeps/i386/dl-cet.c: Removed.
5716 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5717 prototype.
5718 (_dl_runtime_profile_shstk): Likewise.
5719 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5720 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5721
5722 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5723
5724 [BZ #23579]
5725 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5726 do_test_with_invalid_iov): New tests.
5727 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5728 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5729 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5730 errno is ENOSYS.
5731 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5732 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5733 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5734
5735 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5736
5737 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5738 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5739 (MATH_REDIRECT_BINARY_ARGS): New macro.
5740 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5741 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5742 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5743 header inclusion.
5744 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5745 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5746 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5747 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5748 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5749 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5750 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5751 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5752 Likewise.
5753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5754 Likewise.
5755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5757 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5758 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5760 Likewise.
5761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5762 Likewise.
5763 * sysdeps/generic/math_private_calls.h
5764 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5765 Do not declare and define as an inline function.
5766 * math/divtc3.c (__divtc3): Use copysign functions instead of
5767 __copysign variants.
5768 * math/multc3.c (__multc3): Likewise.
5769 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5770 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5771 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5772 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5773 Likewise.
5774 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5775 (__ieee754_yn): Likewise.
5776 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5777 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5778 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5779 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5780 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5781 (__sin): Likewise.
5782 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5783 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5784 Likewise.
5785 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5786 Likewise.
5787 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5788 Likewise.
5789 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5790 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5791 Likewise.
5792 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5793 (__ieee754_ynf): Likewise.
5794 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5795 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5796 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5797 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5798 Likewise.
5799 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5800 (__ieee754_ynl): Likewise.
5801 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5802 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5803 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5804 Likewise.
5805 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5806 (__ieee754_ynl): Likewise.
5807 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5808 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5809 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5810 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5811 Likewise.
5812 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5813 (__ieee754_ynl)
5814 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5815 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5816 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5817 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5818 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5819
5820 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5821 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5822 using MATH_REDIRECT.
5823 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5824 header inclusion.
5825 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5826 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5827 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5828 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5829 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5830 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5831 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5832 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5836 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5837 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5838 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5839 (round): Redirect to __round.
5840 (__roundl): Call round instead of __round.
5841 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5842 Remove macro.
5843 [_ARCH_PWR5X] (__roundf): Likewise.
5844 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5845 functions instead of __round variants.
5846 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5847 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5848 Likewise.
5849 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5850 Likewise.
5851 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5852 Likewise.
5853 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5854 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5855 __lroundl.
5856 (__ieee754_expl): Call roundl instead of __roundl.
5857
5858 2018-09-27 Andreas Schwab <schwab@suse.de>
5859
5860 [BZ #23717]
5861 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5862 (do_test): Make st1 static.
5863
5864 2018-09-26 Andreas Schwab <schwab@suse.de>
5865
5866 [BZ #23707]
5867 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5868 * elf/Makefile (tests): Add tst-unwind-ctor.
5869 (modules-names): Add tst-unwind-ctor-lib.
5870 ($(objpfx)tst-unwind-ctor): Depend on
5871 $(objpfx)tst-unwind-ctor-lib.so.
5872
5873 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5874
5875 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5876 file. Most contents moved from ....
5877 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5878 and include <bits/mman-map-flags-generic.h>.
5879 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5880 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5881 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5882 <bits/mman-map-flags-generic.h>.
5883 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5884 macros defined in <bits/mman-map-flags-generic.h>.
5885 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5886 <bits/mman-map-flags-generic.h>.
5887 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5888 defined in <bits/mman-map-flags-generic.h>.
5889
5890 2018-09-26 Andreas Schwab <schwab@suse.de>
5891
5892 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5893 output.
5894
5895 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5896 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5897 Fangrui Song <maskray@google.com>
5898
5899 [BZ #20480]
5900 * config.make.in (have-textrel_ifunc): New define.
5901 * configure.ac: Add check if linker supports textrel relocation with
5902 ifunc.
5903 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5904 tst-ifunc-textrel.
5905 (CFLAGS-tst-ifunc-textrel.c): New rule.
5906 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5907 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5908 * elf/tst-ifunc-textrel.c: New file.
5909
5910 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5911
5912 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5913 <bits/procfs-prregset.h>.
5914 (prgregset_t): Define using __prgregset_t.
5915 (prfpregset_t): Define using __prfpregset_t.
5916 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5917 (sysdep_headers): Add bits/procfs-prregset.h.
5918 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
5919 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
5920 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
5921 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
5922
5923 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5924 <bits/procfs-id.h> and <bits/procfs-extra.h>.
5925 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
5926 pr_uid and pr_gid.
5927 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5928 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
5929 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
5930 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
5931 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
5932 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
5933 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
5934 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
5935 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
5936 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
5937 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
5938 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
5939 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
5940 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
5941 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
5942 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
5943 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
5944 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
5945 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
5946 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
5947 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
5948 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
5949 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
5950 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
5951
5952 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
5953 AArch64 version. Include <bits/procfs.h>.
5954 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5955 (sysdep_headers): Add bits/procfs.h.
5956 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
5957 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
5958 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
5959 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
5960 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
5961 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
5962 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
5963 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
5964 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
5965 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
5966 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
5967 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
5968 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
5969 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
5970 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
5971 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
5972 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
5973
5974 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5975
5976 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
5977 Use libsupport.
5978
5979 2018-09-25 Arjun Shankar <arjun@redhat.com>
5980
5981 * iconv/gconv_int.h (__gconv_path_elem): Remove.
5982 (__gconv_max_path_elem_len): Likewise.
5983 (__gconv_nmodules): Likewise.
5984 (__gconv_get_path): Likewise.
5985 (path_elem): Move to ...
5986 * iconv/gconv_conf.c: ... here.
5987 (__gconv_get_path): Mark function static.
5988 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
5989 * iconv/gconv_open.c: ... here.
5990
5991 2018-09-24 Andreas Schwab <schwab@suse.de>
5992
5993 * scripts/haveversions.awk: New file.
5994 * Makerules ($(common-objpfx)Versions.def)
5995 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
5996 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
5997 Move rules ...
5998 * Makeconfig ($(common-objpfx)Versions.def)
5999 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6000 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6001 ... here.
6002 ($(common-objpfx)Versions.mk): New rule. Include it.
6003 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6004 Emit error if build-obsolete-nsl = yes.
6005 * manual/install.texi (Configuring and compiling): Describe
6006 --enable-obsolete-nsl as unavaiable after version 2.28.
6007 * INSTALL: Regenerate.
6008
6009 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6010
6011 * NEWS: Add note about new TLE support on powerpc64le.
6012 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6013 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6014 __ununsed1.
6015 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6016 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6017 * sysdeps/powerpc/powerpc32/sysdep.h,
6018 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6019 ABORT_TRANSACTION): Remove macros.
6020 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6021 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6022 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6024 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6025 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6026 usage.
6027 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6028
6029 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6030
6031 [BZ #10425]
6032 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6033 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6034 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6035 which is the same as in it_IT.
6036 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6037 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6038
6039 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6040
6041 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6042 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6043 using MATH_REDIRECT.
6044 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6045 header inclusion.
6046 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6047 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6048 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6049 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6050 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6051 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6056 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6057 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6058 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6059 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6060 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6061 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6062 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6063 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6064 (ceil): Redirect to __ceil.
6065 (floor): Redirect to __floor.
6066 (trunc): Redirect to __trunc.
6067 (__truncl): Call trunc instead of __trunc.
6068 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6069 Remove macro.
6070 [_ARCH_PWR5X] (__truncf): Likewise.
6071 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6072 trunc functions instead of __trunc variants.
6073 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6074 Likewise.
6075 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6076 Likewise.
6077 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6078 Likewise.
6079 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6080 Likewise.
6081
6082 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6083 [__i586__ || __pentium__].
6084 [__i486__]: Handle explicitly.
6085 (HAS_CPUID): Define to 1 if above macros are undefined.
6086 (HAS_I586): Likewise.
6087 (HAS_I686): Likewise.
6088
6089 2018-09-20 Florian Weimer <fweimer@redhat.com>
6090
6091 * misc/tst-gethostid.c: New file.
6092 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6093 (tst-gethostid): Link with -ldl.
6094
6095 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6096
6097 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6098 value from gethostbyname_r.
6099
6100 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6101
6102 * stdlib/tst-setcontext9.c (f1): Rename to...
6103 (f1a): ... this.
6104 (f1b): New function implementing lower half of f1 in alternate stack.
6105
6106 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6107
6108 Fix mktime localtime offset confusion
6109 [BZ #23603]
6110 * include/time.h (__mktime_internal): The localtime offset is now
6111 of type long int instead of time_t. This is the longstanding type
6112 in glibc, and it is more than enough to represent difference
6113 between localtime and gmtime even if it is 32 bits and time_t is
6114 64. Changing it now will let us avoid an unnecessary change when
6115 time_t is widened to 64 bits on 32-bit platforms.
6116 * time/mktime-internal.h (mktime_offset_t): Now long int.
6117
6118 Merge mktime, timegm from upstream Gnulib
6119 [BZ #23603][BZ #16346]
6120 This fixes some obscure problems with integer overflow.
6121 Although it looks scary, it is almost all a byte-for-byte copy
6122 from Gnulib, and the Gnulib code has been tested reasonably well.
6123 * include/intprops.h: New file, copied from Gnulib.
6124 * include/verify.h, time/mktime-internal.h:
6125 New tiny files, simplified from Gnulib.
6126 * time/mktime.c: Copy from Gnulib. This has the following changes:
6127 Do not include config.h if DEBUG_MKTIME is nonzero.
6128 Include stdbool.h, intprops.h, verify.h.
6129 Include string.h only if needed.
6130 Include stdlib.h on MS-Windows.
6131 Include mktime-internal.h.
6132 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6133 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6134 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6135 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6136 simplify later conditionals; default the others to zero. Use
6137 these conditionals to express only the code needed on the current
6138 platform. In uses of these conditionals, explicitly spell out how
6139 _LIBC affects things, so it’s easier to review from a glibc
6140 viewpoint.
6141 (WRAPV): Remove; no longer needed now that we have
6142 systematic overflow checking.
6143 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6144 compartmentalize tzset issues. Move system-dependent tzsettish
6145 code here from mktime.
6146 (verify): Remove; now done by verify.h. All uses changed.
6147 (long_int): Use a more-conservative definition, to avoid
6148 integer overflow.
6149 (SHR): Remove, replacing with ...
6150 (shr): New function, which means we needn’t worry about side
6151 effects in args, and conversion analysis is simpler.
6152 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6153 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6154 (time_t_avg, time_t_add_ok): Remove.
6155 (mktime_min, mktime_max): New constants.
6156 (leapyear, isdst_differ): Use bool for booleans.
6157 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6158 Use long_int, not time_t, for mktime differences.
6159 (long_int_avg): New function, replacing time_t_avg.
6160 INT_ADD_WRAPV replaces time_t_add_ok.
6161 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6162 All uses changed.
6163 (convert_time): New function.
6164 (ranged_convert): Use it.
6165 (__mktime_internal): Last arg now points to mktime_offset_t, not
6166 time_t. All uses changed. This is a no-op on glibc, where
6167 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6168 offset guess. Directly check for integer overflow instead of
6169 using a heuristic that works only 99.9...% of the time.
6170 Access *OFFSET only once, to avoid an unlikely race if the
6171 compiler delays a load and if this cascades into a signed integer
6172 overflow.
6173 (mktime): Move tzsettish code to my_tzset, and move
6174 localtime_offset to within mktime so that it doesn’t
6175 need a separate ifdef.
6176 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6177 instead of localtime.
6178 * time/timegm.c: Copy from Gnulib. This has the following changes:
6179 Include mktime-internal.h.
6180 [!_LIBC]: Include config.h and time.h. Do not include
6181 timegm.h or time_r.h. Make __mktime_internal a macro,
6182 and include mktime-internal.h to get its declaration.
6183 (timegm): Temporary is now mktime_offset_t, not time_t.
6184 This affects only Gnulib.
6185
6186 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6187
6188 [BZ #23637]
6189 * string/test-strstr.c (pr23637): New function.
6190 (test_main): Add tests with longer needles.
6191 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6192 * string/strstr.c (AVAILABLE): Likewise.
6193
6194 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6195
6196 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6197
6198 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6199
6200 * NEWS: Mention pow improvements.
6201 * math/Makefile (type-double-routines): Add e_pow_log_data.
6202 * sysdeps/generic/math_private.h (__exp1): Remove.
6203 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6204 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6205 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6206 contraction.
6207 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6208 (exp_inline): Remove.
6209 (__ieee754_exp): Only single double input is handled.
6210 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6211 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6212 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6213 (__pow_log_data): Define.
6214 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6215 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6216 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6217 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6218 contraction.
6219 (CFLAGS-e_pow-fma4.c): Likewise.
6220
6221 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6222
6223 Simplify tzfile fstat failure code
6224 [BZ #21716]
6225 * time/tzfile.c (__tzfile_read): Simplify slightly.
6226
6227 Fix tzfile low-memory assertion failure
6228 [BZ #21716]
6229 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6230 when registering time zone abbreviations.
6231
6232 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6233
6234 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6235 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6236 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6237 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6238 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6239 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6240 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6241 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6242 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6243
6244 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6245 __ceil.
6246 (__ceill): Call ceil instead of __ceil.
6247 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6248 __floor.
6249 (__floorl): Call floor instead of __floor.
6250
6251 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6252
6253 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6254 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6255 using MATH_REDIRECT.
6256 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6257 header inclusion.
6258 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6259 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6260 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6261 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6262 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6263 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6264 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6265 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6270 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6271 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6272 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6273 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6274 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6275 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6276 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6277 Remove macro.
6278 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6279 functions instead of __ceil variants.
6280 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6281 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6282 Likewise.
6283 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6284 Likewise.
6285 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6286 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6287 Likewise.
6288 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6289 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6290
6291 [BZ #21286]
6292 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6293 constant.
6294 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6295 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6296 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6297 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6298 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6299 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6300 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6301 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6302 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6303 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6304 (ILL_BADIADDR): Remove constant.
6305 (TRAP_BRANCH): Likewise.
6306 (TRAP_HWBKPT): Likewise.
6307
6308 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6309
6310 [BZ #23656]
6311 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6312 Remove [_MIPS_SIM = _ABIN32] conditional case.
6313 (struct elf_prpsinfo): Likewise.
6314
6315 [BZ #23649]
6316 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6317 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6318 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6319 Likewise.
6320 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6321 elf_prpsinfo): Likewise.
6322 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6323 elf_prpsinfo): Likewise.
6324 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6325 Likewise.
6326
6327 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6328 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6329 using MATH_REDIRECT.
6330 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6331 header inclusion.
6332 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6333 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6334 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6335 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6336 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6337 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6338 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6339 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6340 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6341 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6342 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6343 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6344 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6345 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6346 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6347 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6348 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6349 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6350 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6353 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6354 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6355 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6356 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6357 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6358 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6359 __rint variants.
6360 * math/e_scalbf.c (invalid_fn): Likewise.
6361 * math/e_scalbl.c (invalid_fn): Likewise.
6362 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6363 Likewise.
6364 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6365 Likewise.
6366 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6367 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6368 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6369 Likewise.
6370 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6371 Likewise.
6372 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6373 Likewise.
6374 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6375 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6376
6377 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6378 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6379 New macro.
6380 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6381 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6382 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6383 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6384 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6385 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6386 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6387 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6388 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6389 && !NO_MATH_REDIRECT] (floor): Likewise.
6390 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6391 header inclusion.
6392 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6393 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6394 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6395 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6396 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6397 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6398 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6399 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6404 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6405 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6406 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6407 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6408 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6409 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6410 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6411 Remove macro.
6412 [_ARCH_PWR5X] (__floorf): Likewise.
6413 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6414 inline function.
6415 [__SSE4_1__] (__floorf): Likewise.
6416 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6417 instead of __floor variants.
6418 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6419 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6420 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6421 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6422 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6423 * math/w_tgamma_compat.c (__tgamma): Likewise.
6424 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6425 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6426 * math/w_tgammal_compat.c (__tgammal): Likewise.
6427 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6428 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6429 Likewise.
6430 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6431 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6432 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6433 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6434 Likewise.
6435 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6436 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6437 Likewise.
6438 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6439 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6440 Likewise.
6441 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6442 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6443 Likewise.
6444 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6445 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6446 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6447 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6448 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6449 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6450
6451 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6452
6453 * elf/Makefile (modules-names-tests): New variable.
6454
6455 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6456
6457 * NEWS: Mention log2 improvements.
6458 * math/Makefile (type-double-routines): Add e_log2_data.
6459 * sysdeps/i386/fpu/e_log2_data.c: New file.
6460 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6461 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6462 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6463 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6464 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6465 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6466
6467 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6468
6469 * NEWS: Mention log improvement.
6470 * math/Makefile (type-double-routines): Add e_log_data.
6471 * sysdeps/i386/fpu/e_log_data.c: New file.
6472 * sysdeps/ia64/fpu/e_log_data.c: New file.
6473 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6474 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6475 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6476 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6477 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6478 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6479
6480 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6481 Xuepeng Guo <xuepeng.guo@intel.com>
6482
6483 [BZ #23606]
6484 * sysdeps/i386/start.S: Include <sysdep.h>
6485 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6486 enabled. Add cfi_undefined (eip).
6487
6488 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6489
6490 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6491 (MOVQ): Likewise.
6492 (EXTRACT_WORDS64): Likewise.
6493 (INSERT_WORDS64): Likewise.
6494 (GET_FLOAT_WORD): Likewise.
6495 (SET_FLOAT_WORD): Likewise.
6496
6497 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6498 argument.
6499 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6500 build, but not for second build if --full-gcc. Use
6501 --enable-languages=all for second build if --full-gcc.
6502 (get_parser): Add --full-gcc option.
6503 (main): Update call to Context.
6504
6505 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6506
6507 [BZ #10797]
6508 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6509 Single Quotation Mark).
6510 (thousands_sep): Likewise.
6511 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6512 * localedata/locales/it_IT (thousands_sep): Use ".".
6513 (grouping): Use "3;3".
6514
6515 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6516
6517 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6518 x86_64 and i686 configs using --enable-obsolete-rpc
6519 --enable-obsolete-nsl.
6520
6521 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6522
6523 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6524
6525 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6526
6527 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6528 Increment size of new_argv by one.
6529
6530 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6531
6532 [BZ #17426]
6533 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6534 * localedata/locales/ar_IN (d_fmt): Likewise.
6535 * localedata/locales/bhb_IN (d_fmt): Likewise.
6536 * localedata/locales/bho_IN (d_fmt): Likewise.
6537 * localedata/locales/bn_BD (d_fmt): Likewise.
6538 * localedata/locales/bn_IN (d_fmt): Likewise.
6539 * localedata/locales/doi_IN (d_fmt): Likewise.
6540 * localedata/locales/gu_IN (d_fmt): Likewise.
6541 * localedata/locales/hi_IN (d_fmt): Likewise.
6542 * localedata/locales/hne_IN (d_fmt): Likewise.
6543 * localedata/locales/kn_IN (d_fmt): Likewise.
6544 * localedata/locales/mag_IN (d_fmt): Likewise.
6545 * localedata/locales/mai_IN (d_fmt): Likewise.
6546 * localedata/locales/mjw_IN (d_fmt): Likewise.
6547 * localedata/locales/ml_IN (d_fmt): Likewise.
6548 * localedata/locales/mni_IN (d_fmt): Likewise.
6549 * localedata/locales/mr_IN (d_fmt): Likewise.
6550 * localedata/locales/pa_IN (d_fmt): Likewise.
6551 * localedata/locales/raj_IN (d_fmt): Likewise.
6552 * localedata/locales/sat_IN (d_fmt): Likewise.
6553 * localedata/locales/sd_IN (d_fmt): Likewise.
6554 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6555 * localedata/locales/ta_IN (d_fmt): Likewise.
6556 * localedata/locales/ta_LK (d_fmt): Likewise.
6557 * localedata/locales/tcy_IN (d_fmt): Likewise.
6558 * localedata/locales/ur_IN (d_fmt): Likewise.
6559
6560 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6561 * localedata/locales/ks_IN (d_fmt): Likewise.
6562 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6563
6564 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6565 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6566 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6567 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6568
6569 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6570
6571 * NEWS: Mention exp and exp2 improvements.
6572 * math/Makefile (libm-support): Remove t_exp.
6573 (type-double-routines): Add math_err and e_exp_data.
6574 * sysdeps/aarch64/libm-test-ulps: Update.
6575 * sysdeps/arm/libm-test-ulps: Update.
6576 * sysdeps/i386/fpu/e_exp_data.c: New file.
6577 * sysdeps/i386/fpu/math_err.c: New file.
6578 * sysdeps/i386/fpu/t_exp.c: Remove.
6579 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6580 * sysdeps/ia64/fpu/math_err.c: New file.
6581 * sysdeps/ia64/fpu/t_exp.c: Remove.
6582 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6583 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6584 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6585 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6586 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6587 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6588 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6589 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6590 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6591 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6592 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6593 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6594 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6595 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6596 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6597 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6598
6599 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6600
6601 * sysdeps/alpha/fpu/math_private.h: Remove.
6602
6603 * sysdeps/generic/math_private.h
6604 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6605 Move this inline function ....
6606 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6607 * include/math.h [!_ISOMAC]: To here....
6608
6609 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6610
6611 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6612 code ....
6613 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6614 * include/fenv.h [!_ISOMAC]: ... to here.
6615 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6616 (feraiseexcept): Likewise.
6617 * math/fromfp.h: Do not include <fenv_private.h>.
6618 * math/s_cexp_template.c: Likewise.
6619 * math/s_csin_template.c: Likewise.
6620 * math/s_csinh_template.c: Likewise.
6621 * math/s_ctan_template.c: Likewise.
6622 * math/s_ctanh_template.c: Likewise.
6623 * math/s_iseqsig_template.c: Likewise.
6624 * math/w_acos_compat.c: Likewise.
6625 * math/w_acosf_compat.c: Likewise.
6626 * math/w_acosl_compat.c: Likewise.
6627 * math/w_asin_compat.c: Likewise.
6628 * math/w_asinf_compat.c: Likewise.
6629 * math/w_asinl_compat.c: Likewise.
6630 * math/w_j0_compat.c: Likewise.
6631 * math/w_j0f_compat.c: Likewise.
6632 * math/w_j0l_compat.c: Likewise.
6633 * math/w_j1_compat.c: Likewise.
6634 * math/w_j1f_compat.c: Likewise.
6635 * math/w_j1l_compat.c: Likewise.
6636 * math/w_jn_compat.c: Likewise.
6637 * math/w_jnf_compat.c: Likewise.
6638 * math/w_log10_compat.c: Likewise.
6639 * math/w_log10f_compat.c: Likewise.
6640 * math/w_log10l_compat.c: Likewise.
6641 * math/w_log2_compat.c: Likewise.
6642 * math/w_log2f_compat.c: Likewise.
6643 * math/w_log2l_compat.c: Likewise.
6644 * math/w_log_compat.c: Likewise.
6645 * math/w_logf_compat.c: Likewise.
6646 * math/w_logl_compat.c: Likewise.
6647 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6648 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6649 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6650 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6651 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6652 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6653 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6654 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6655 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6656 * sysdeps/ieee754/k_standardl.c: Likewise.
6657 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6658 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6659 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6660 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6661 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6662 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6663 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6664 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6665 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6666 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6667 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6668 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6669 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6670 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6671 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6672 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6673 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6674 * math/w_ilogb_template.c: Include <fenv.h> instead of
6675 <fenv_private.h>.
6676 * math/w_llogb_template.c: Likewise.
6677 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6678 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6679
6680 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6681
6682 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6683 * math/fromfp.h: Include <fenv_private.h>.
6684 * math/math-narrow.h: Likewise.
6685 * math/s_cexp_template.c: Likewise.
6686 * math/s_csin_template.c: Likewise.
6687 * math/s_csinh_template.c: Likewise.
6688 * math/s_ctan_template.c: Likewise.
6689 * math/s_ctanh_template.c: Likewise.
6690 * math/s_iseqsig_template.c: Likewise.
6691 * math/w_acos_compat.c: Likewise.
6692 * math/w_acosf_compat.c: Likewise.
6693 * math/w_acosl_compat.c: Likewise.
6694 * math/w_asin_compat.c: Likewise.
6695 * math/w_asinf_compat.c: Likewise.
6696 * math/w_asinl_compat.c: Likewise.
6697 * math/w_ilogb_template.c: Likewise.
6698 * math/w_j0_compat.c: Likewise.
6699 * math/w_j0f_compat.c: Likewise.
6700 * math/w_j0l_compat.c: Likewise.
6701 * math/w_j1_compat.c: Likewise.
6702 * math/w_j1f_compat.c: Likewise.
6703 * math/w_j1l_compat.c: Likewise.
6704 * math/w_jn_compat.c: Likewise.
6705 * math/w_jnf_compat.c: Likewise.
6706 * math/w_llogb_template.c: Likewise.
6707 * math/w_log10_compat.c: Likewise.
6708 * math/w_log10f_compat.c: Likewise.
6709 * math/w_log10l_compat.c: Likewise.
6710 * math/w_log2_compat.c: Likewise.
6711 * math/w_log2f_compat.c: Likewise.
6712 * math/w_log2l_compat.c: Likewise.
6713 * math/w_log_compat.c: Likewise.
6714 * math/w_logf_compat.c: Likewise.
6715 * math/w_logl_compat.c: Likewise.
6716 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6717 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6718 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6719 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6720 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6721 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6722 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6723 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6724 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6725 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6726 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6727 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6728 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6729 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6730 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6731 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6732 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6733 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6734 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6735 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6736 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6737 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6738 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6739 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6740 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6741 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6742 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6743 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6744 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6745 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6746 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6747 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6748 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6749 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6750 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6751 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6752 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6753 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6754 * sysdeps/ieee754/k_standardl.c: Likewise.
6755 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6756 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6757 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6758 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6759 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6760 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6761 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6762 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6763 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6764 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6765 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6766 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6767 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6768 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6769 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6770 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6771 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6772 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6773 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6774 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6775 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6776 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6777 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6778 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6779 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6780 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6781 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6782 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6783 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6784 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6785 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6786 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6787 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6788 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6789 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6790 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6791 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6792 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6793 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6794 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6795 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6796 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6797 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6798 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6799 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6800 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6801 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6802 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6803 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6804 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6805 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6806 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6807 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6808 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6809 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6810 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6811 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6812 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6813 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6814 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6815 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6816 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6817 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6818 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6819 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6820 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6821 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6822 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6823 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6824 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6825 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6826
6827 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6828
6829 [BZ #20271]
6830 * include/stdio.h (__libc_fatal): Mention newline in comment.
6831 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6832 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6833 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6834 * nss/nsswitch.c (__nss_next2): Likewise.
6835 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6836 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6837 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6838 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6839 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6840 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6841 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6842 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6843 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6844 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6845 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6846 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6847 (__netlink_assert_response): Likewise.
6848
6849 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6850
6851 * conform/glibcconform.py: New file.
6852 * conform/list-header-symbols.py: Likewise.
6853 * conform/list-header-symbols.pl: Remove.
6854 * conform/Makefile (tests-special): Only add linknamespace tests
6855 if [PYTHON].
6856 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6857
6858 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6859
6860 [BZ #23597]
6861 * support/Makefile (libsupport-routines): Add
6862 support_copy_file_range and xcopy_file_range.
6863 * support/support.h: Include <sys/types.h>.
6864 (support_copy_file_range): New prototype.
6865 * support/support_copy_file_range.c: New file. Copied and
6866 modified from io/copy_file_range-compat.c.
6867 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6868 instead of copy_file_range.
6869 * support/xcopy_file_range.c: New file.
6870 * support/xunistd.h (xcopy_file_range): New prototype.
6871
6872 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6873
6874 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6875 xpthread_create and xpthread_join.
6876
6877 2018-08-30 Florian Weimer <fweimer@redhat.com>
6878
6879 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6880
6881 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6882
6883 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6884 if malloc fails.
6885
6886 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6887
6888 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6889 and minus_oflow as non-finite.
6890
6891 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6892
6893 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6894 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6895 moved to fenv_private.h except for ...
6896 (TOINT_INTRINSICS): Kept in math_private.h.
6897 (roundtoint): Likewise.
6898 (converttoint): Likewise.
6899 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6900 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6901 * sysdeps/arm/math_private.h: Remove.
6902 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6903 ....
6904 * sysdeps/generic/math_private.h: ... this file. Include
6905 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6906 Include <fenv_private.h>. Remove functions and macros moved to
6907 fenv_private.h.
6908 * sysdeps/i386/fpu/math_private.h: Remove.
6909 * sysdeps/mips/math_private.h: Move to ....
6910 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6911 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
6912 [__mips_hard_float] conditional. Include next <fenv_private.h>.
6913 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
6914 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6915 * sysdeps/powerpc/fpu/math_private.h: Do not include
6916 <fenv_private.h>.
6917 * sysdeps/riscv/rvf/math_private.h: Move to ....
6918 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
6919 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
6920 <fenv_private.h>.
6921 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
6922 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6923 * sysdeps/sparc/fpu/math_private.h: Remove.
6924 * sysdeps/i386/fpu/fenv_private.h: Move to ....
6925 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
6926 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
6927 <fenv_private.h>.
6928 * sysdeps/x86_64/fpu/math_private.h: Do not include
6929 <sysdeps/i386/fpu/fenv_private.h>.
6930
6931 2018-08-28 Florian Weimer <fweimer@redhat.com>
6932
6933 [BZ #23578]
6934 * posix/tst-regcomp-truncated.c: New file.
6935 * posix/Makefile (tests): Add it.
6936 (tst-regcomp-truncated.out): Depend on generated locales.
6937
6938 2018-08-28 Florian Weimer <fweimer@redhat.com>
6939
6940 * support/test-container.c (main): Treat unshare failure with
6941 EPERM as an unsupported test.
6942
6943 2018-08-28 Florian Weimer <fweimer@redhat.com>
6944
6945 [BZ #23520]
6946 nscd: Fix use-after-free in addgetnetgrentX and its callers.
6947 * nscd/netgroupcache.c
6948 (addgetnetgrentX): Add tofreep parameter. Do not free
6949 heap-allocated buffer.
6950 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
6951 (addgetnetgrentX_ignore): New function.
6952 (addgetnetgrent): Call it.
6953 (readdgetnetgrent): Likewise.
6954
6955 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6956
6957 * string/memmem.c: Use memcmp for first match.
6958
6959 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
6960
6961 [BZ #17426]
6962 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
6963
6964 2018-08-27 DJ Delorie <dj@redhat.com>
6965
6966 * support/Makefile (others): Don't list programs explicitly as a
6967 dependency of "others".
6968
6969 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6970
6971 * sysdeps/generic/math-tests-trap-force.h: New file.
6972 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
6973 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
6974 * sysdeps/powerpc/math-tests.h: Remove file.
6975 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
6976
6977 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
6978 Torvald Riegel <triegel@redhat.com>
6979
6980 [BZ #23538]
6981 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
6982 Update r to include the set wake-request flag if waiters are
6983 remaining after spinning.
6984
6985 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6986
6987 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
6988
6989 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
6990
6991 [BZ #23578]
6992 regex: fix uninitialized memory access
6993 I introduced this bug into gnulib in commit
6994 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
6995 eventually it was merged into glibc. The bug was found by
6996 project-repo <bugs@feusi.co> and reported here:
6997 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
6998 Diagnosis and draft fix reported by Assaf Gordon here:
6999 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7000 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7001 * posix/regex_internal.c (build_wcs_upper_buffer):
7002 Fix bug when mbrtowc returns 0.
7003
7004 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7005
7006 * po/be.po: Update translation.
7007
7008 2018-08-24 DJ Delorie <dj@delorie.com>
7009
7010 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7011 $(libunwind).
7012
7013 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7014
7015 [BZ #23400]
7016 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7017 create temporary files in source tree.
7018
7019 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7020
7021 * sysdeps/generic/math-tests-trap.h: New file.
7022 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7023 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7024 * sysdeps/aarch64/math-tests.h: Remove file.
7025 * sysdeps/arm/math-tests.h: Likewise.
7026 * sysdeps/riscv/math-tests.h: Likewise.
7027 * sysdeps/aarch64/math-tests-trap.h: New file.
7028 * sysdeps/arm/math-tests-trap.h: Likewise.
7029 * sysdeps/riscv/math-tests-trap.h: Likewise.
7030
7031 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7032
7033 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7034 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7035 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7036 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7037 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7038 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7039 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7040 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7041 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7042 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7043 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7044 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7045 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7046 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7047 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7048 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7049 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7050 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7051
7052 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7053
7054 * sysdeps/generic/math-tests-exceptions.h: New file.
7055 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7056 (EXCEPTION_TESTS_float): Do not define here.
7057 (EXCEPTION_TESTS_double): Likewise.
7058 (EXCEPTION_TESTS_long_double): Likewise.
7059 (EXCEPTION_TESTS_float128): Likewise.
7060 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7061 Likewise.
7062 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7063 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7064 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7065 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7066 * sysdeps/mips/math-tests.h: Likewise.
7067 * sysdeps/nios2/math-tests.h: Likewise.
7068 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7069 (EXCEPTION_TESTS_float): Do not define here.
7070 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7071 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7072 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7073
7074 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7075
7076 * NEWS: Move optimized sinf entry to 2.29.
7077
7078 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7079
7080 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7081
7082 2018-08-22 DJ Delorie <dj@redhat.com>
7083
7084 * Makefile (testroot.pristine): New rules to initialize the
7085 test-in-container "testroot".
7086 * Makerules (all-testsuite): Add tests-container.
7087 * Rules (tests-expected): Add tests-container.
7088 (binaries-all-tests): Likewise.
7089 (tests-container): New, run these tests in the testroot container.
7090 * support/Makefile (others): Add *-container, support_paths.c,
7091 xmkdirp, and links-dso-program.
7092 * support/links-dso-program-c.c: New.
7093 * support/links-dso-program.cc: New.
7094 * support/test-container.c: New.
7095 * support/shell-container.c: New.
7096 * support/echo-container.c: New.
7097 * support/true-container.c: New.
7098 * support/xmkdirp.c: New.
7099 * support/xsymlink.c: New.
7100 * support/support_paths.c: New.
7101 * support/support.h: Add support paths prototypes.
7102 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7103
7104 * nss/tst-nss-test3.c: Convert to test-in-container.
7105 * nss/tst-nss-test3.root/: New.
7106
7107 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7108
7109 regex: port Gnulib code to z/OS POSIX environment
7110 Problem reported by Arnold Robbins in:
7111 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7112 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7113 Undef.
7114
7115 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7116
7117 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7118 (ROUNDING_TESTS_double): Remove.
7119 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7120 (ROUNDING_TESTS_double): Remove.
7121 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7122 (ROUNDING_TESTS_double): Remove.
7123 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7124 (ROUNDING_TESTS_float): Remove.
7125 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7126 (ROUNDING_TESTS_float): Remove.
7127 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7128 (ROUNDING_TESTS_float): Remove.
7129 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7130 !TEST_MATHVEC here.
7131 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7132 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7133
7134 * sysdeps/generic/math-tests-rounding.h: New file.
7135 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7136 (ROUNDING_TESTS_float): Do not define here.
7137 (ROUNDING_TESTS_double): Likewise.
7138 (ROUNDING_TESTS_long_double): Likewise.
7139 (ROUNDING_TESTS_float128): Likewise.
7140 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7141 (ROUNDING_TESTS_double): Undefine before defining.
7142 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7143 (ROUNDING_TESTS_double): Undefine before defining.
7144 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7145 (ROUNDING_TESTS_double): Undefine before defining.
7146 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7147 (ROUNDING_TESTS_float): Undefine before defining.
7148 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7149 (ROUNDING_TESTS_float): Undefine before defining.
7150 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7151 (ROUNDING_TESTS_float): Undefine before defining.
7152 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7153 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7154 not define here.
7155 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7156 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7157 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7158 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7159 (ROUNDING_TESTS_float): Do not define here.
7160 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7161 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7162 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7163 (ROUNDING_TESTS_float): Likewise.
7164 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7165 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7166 * sysdeps/mips/math-tests.h [__mips_soft_float]
7167 (ROUNDING_TESTS_float): Likewise.
7168 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7169 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7170 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7171 (ROUNDING_TESTS_double): Likewise.
7172 (ROUNDING_TESTS_long_double): Likewise.
7173
7174 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7175
7176 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7177 (PF_XDP): New macro.
7178 (AF_XDP): New macro.
7179 (SOL_XDP): New macro.
7180
7181 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7182
7183 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7184 (TCP_INQ): Likewise.
7185 (TCP_CM_INQ): Likewise.
7186 (TCP_REPAIR_ON): Likewise.
7187 (TCP_REPAIR_OFF): Likewise.
7188 (TCP_REPAIR_OFF_NO_WP): Likewise.
7189 (struct tcp_zerocopy_receive): New type.
7190
7191 2018-08-21 Florian Weimer <fweimer@redhat.com>
7192
7193 * support/support.h (support_descriptor_supports_holes): Declare.
7194 * support/Makefile (libsupport-routines): Add
7195 support_descriptor_supports_holes.
7196 * support/support_descriptor_supports_holes.c: New file.
7197 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7198 and stop testing if holes are not supported.
7199 * io/test-lfs.c (do_prepare): Likewise.
7200 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7201 Likewise.
7202 * timezone/tst-tzset.c (create_tz_file): Likewise.
7203 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7204 variable.
7205 (do_prepare): Set it.
7206 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7207
7208 2018-08-21 Florian Weimer <fweimer@redhat.com>
7209
7210 [BZ #17248]
7211 * Makeconfig (+cflags): Do not sort (and deduplicate).
7212
7213 2018-08-21 Florian Weimer <fweimer@redhat.com>
7214
7215 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7216 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7217
7218 2018-08-20 Florian Weimer <fweimer@redhat.com>
7219
7220 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7221 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7222
7223 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7224
7225 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7226 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7227 and ssi_arch members.
7228
7229 * elf/elf.c (NT_VMCOREDD): New macro.
7230 (AT_MINSIGSTKSZ): Likewise.
7231
7232 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7233
7234 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7235 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7236 s_cosf-ppc64 and s_cosf-power8.
7237 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7238 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7239 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7240 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7247 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7248 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7249
7250 2018-08-17 Florian Weimer <fweimer@redhat.com>
7251
7252 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7253
7254 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7255
7256 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7257
7258 2018-08-16 Florian Weimer <fweimer@redhat.com>
7259
7260 * configure.ac: Add --with-nonshared-cflags option.
7261 * config.make.in (extra-nonshared-cflags): Set variable.
7262 * Makeconfig (CFLAGS-.oS): Use it.
7263 * manual/install.texi (Configuring and compiling): Document
7264 --with-nonshared-cflags.
7265 * configure: Regenerate.
7266 * INSTALL: Likewise.
7267
7268 2018-08-16 Florian Weimer <fweimer@redhat.com>
7269
7270 * Makeconfig (ASFLAGS): Always append required assembler flags.
7271
7272 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7273
7274 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7275 (malloc_consolidate): Likewise.
7276
7277 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7278
7279 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7280
7281 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7282
7283 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7284 every strlen call.
7285
7286 * benchtests/bench-strlen.c: Print performance numbers in json.
7287
7288 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7289
7290 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7291 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7292 only for little endian.
7293 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7294 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7295 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7296 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7297 Add check for little endian.
7298 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7299 (__strcmp_power9): Add check for little endian.
7300 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7301 Add check for little endian.
7302 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7303 (__strncmp_power9): Add check for little endian.
7304 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7305 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7306 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7307 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7308 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7309
7310 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7311
7312 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7313 [!STRLEN](STRLEN): Set to __strlen.
7314 * sysdeps/aarch64/multiarch/strlen.c: New file.
7315 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7316 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7317 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7318 (__libc_ifunc_impl_list): Add strlen.
7319 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7320 strlen_generic and strlen_asimd.
7321
7322 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7323
7324 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7325 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7326 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7327
7328 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7329
7330 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7331
7332 2018-08-14 Florian Weimer <fweimer@redhat.com>
7333
7334 [BZ #23519]
7335 * include/stdio.h (__vfxprintf): Declare.
7336 * stdio-common/fxprintf.c (__vfxprintf): New function.
7337 (__fxprintf): Call it.
7338 * misc/err.c (convert_and_print): Remove function.
7339 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7340 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7341 * misc/Makefile (tests): Add tst-warn-wide.
7342 * misc/tst-warn-wide.c: New file.
7343
7344 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7345 Szabolcs Nagy <szabolcs.nagy@arm.com>
7346
7347 * NEWS: Mention sinf, cosf, sincosf.
7348 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7349 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7350 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7351 constants rather than including generic sincosf.h.
7352 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7353 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7354 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7355 (reduced_cos): Remove.
7356 (sinf_poly): New function.
7357 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7358
7359 2018-08-14 Florian Weimer <fweimer@redhat.com>
7360
7361 [BZ #23521]
7362 [BZ #23522]
7363 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7364 processing, bail out if no room, and close the stream before
7365 returning ERANGE.
7366 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7367 (tst-nss-files-alias-leak): Link with libdl.
7368 (tst-nss-files-alias-leak.out): Depend on nss_files.
7369
7370 * nss/tst-nss-files-alias-leak.c: New file.
7371
7372 2018-08-14 Florian Weimer <fweimer@redhat.com>
7373
7374 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7375 server_user, stat_user.
7376
7377 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7378
7379 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7380 version to 4.18.
7381 (io_pgetevents): New syscall.
7382 (rseq): Likewise.
7383
7384 * manual/install.texi (Configuring and compiling): Do not list
7385 tools used for testing pretty printers here.
7386 (Tools for Compilation): List Python, PExpect and GDB here.
7387 Update descriptions of uses of Perl and Python.
7388 * INSTALL: Regenerate.
7389
7390 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7391 version to 4.18.
7392
7393 2018-08-13 Florian Weimer <fweimer@redhat.com>
7394
7395 * misc/error.c (error): Add missing va_end call.
7396 (error_at_line): Likewise.
7397
7398 2018-08-13 Florian Weimer <fweimer@redhat.com>
7399
7400 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7401
7402 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7403
7404 * benchtests/scripts/benchout.schema.json (properties): Add
7405 new properties.
7406
7407 * benchtests/bench-skeleton.c (main): Add duration and
7408 iterations attributes.
7409
7410 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7411
7412 regex: Gnulib unibyte RRI uses bytes not chars
7413 Adjust the non-glibc code to agree with what Gawk needs for
7414 rational range interpretation (RRI) for regular expression ranges.
7415 In unibyte locales, Gawk wants ranges to use the underlying byte
7416 rather than the character code point. This change does not affect
7417 glibc proper.
7418 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7419 In unibyte locales, use the byte value rather than
7420 running it through btowc.
7421
7422 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7423
7424 * sysdeps/generic/math-tests-snan.h: New file.
7425 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7426 (SNAN_TESTS_float): Do not define here.
7427 (SNAN_TESTS_double): Likewise.
7428 (SNAN_TESTS_long_double): Likewise.
7429 (SNAN_TESTS_float128): Likewise.
7430 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7431 * sysdeps/i386/fpu/math-tests.h: Remove file.
7432 * sysdeps/ia64/math-tests-snan.h: New file.
7433 * sysdeps/ia64/math-tests.h: Remove file.
7434 * sysdeps/x86/math-tests.h: Likewise.
7435 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7436
7437 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7438 Szabolcs Nagy <szabolcs.nagy@arm.com>
7439
7440 * math/Makefile: Add s_sincosf_data.c.
7441 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7442 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7443 (sincosf_poly): Likewise.
7444 (reduce_small): Likewise.
7445 (reduce_large): Likewise.
7446 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7447 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7448 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7449 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7450
7451 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7452 Szabolcs Nagy <szabolcs.nagy@arm.com>
7453
7454 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7455 (converttoint): Use lround.
7456 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7457 document the semantics when TOINT_INTRINSICS is set.
7458 (converttoint): Likewise.
7459 (TOINT_RINT): Remove.
7460 (TOINT_SHIFT): Remove.
7461 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7462 path.
7463
7464 2018-08-10 Florian Weimer <fweimer@redhat.com>
7465
7466 [BZ #23497]
7467 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7468 function.
7469 (__old_getdents64): Use getdents64. Convert entries without
7470 moving them.
7471 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7472 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7473 tst-readdir64-compat.
7474
7475 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7476
7477 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7478 Fix unwind.
7479
7480 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7481
7482 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7483 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7484 code to s390x-mcount.h and #include it.
7485 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7486 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7487 (__fentry__): Add.
7488
7489 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7490
7491 * stdlib/Versions: Remove __fentry__.
7492 * sysdeps/i386/Versions: Add __fentry__.
7493 * sysdeps/x86_64/Versions: Add __fentry__.
7494
7495 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7496
7497 * sysdeps/s390/Makefile: Register the new tests.
7498 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7499 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7500 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7501 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7502 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7503 * sysdeps/s390/tst-dl-runtime.c: New file.
7504
7505 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7506
7507 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7508 Do not clobber R0.
7509
7510 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7511
7512 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7513 Do not clobber R0.
7514
7515 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7516
7517 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7518 Do not clobber R0.
7519
7520 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7521
7522 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7523 Do not clobber R0.
7524
7525 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7526
7527 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7528 Use symbolic offsets for stack variables.
7529
7530 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7531
7532 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7533 Use symbolic offsets for stack variables.
7534
7535 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7536
7537 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7538 Use symbolic offsets for stack variables.
7539
7540 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7541
7542 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7543 Use symbolic offsets for stack variables.
7544
7545 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7546
7547 * math/gen-libm-test.py: New file.
7548 * math/gen-libm-test.pl: Remove.
7549 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7550 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7551 gen-libm-test.pl.
7552 ($(libm-test-c-noauto-obj)): Likewise.
7553 ($(libm-test-c-auto-obj)): Likewise.
7554 ($(libm-test-c-narrow-obj)): Likewise.
7555 (regen-ulps): Likewise.
7556 * math/README.libm-test: Update references to gen-libm-test.pl.
7557 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7558 referencing gen-libm-test.pl.
7559 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7560 * math/libm-test-support.c: Likewise.
7561 * math/libm-test-support.h: Likewise.
7562 * sysdeps/generic/libm-test-ulps: Likewise.
7563
7564 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7565
7566 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7567 Fix value.
7568
7569 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7570
7571 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7572 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7573
7574 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7575
7576 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7577 symbols.
7578 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7579 __pthread_setspecific): Add hidden proto.
7580 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7581 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7582
7583 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7584
7585 * benchtests/bench-string.h (buf1_size, buf2_size): New
7586 variables.
7587 (init_sizes): New function.
7588 (test_init): Use it.
7589 (alloc_buf, exit_error): New functions.
7590 (alloc_bufs): Use ALLOC_BUF.
7591 (realloc_bufs): Remove.
7592 * benchtests/bench-memcmp.c (do_test): Adjust.
7593 * benchtests/bench-memset-large.c (do_test): Likewise.
7594 * benchtests/bench-memset-walk.c (do_test): Likewise.
7595 * benchtests/bench-memset.c (do_test): Likewise.
7596 * benchtests/bench-strncmp.c (do_test): Likewise.
7597
7598 2018-08-06 Andreas Schwab <schwab@suse.de>
7599
7600 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7601 of CONST_THREAD_AREA.
7602
7603 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7604
7605 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7606 (STATE_SAVE_MASK): Likewise.
7607 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7608 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7609 (STATE_SAVE_MASK): Likewise.
7610 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7611 instead of <cpu-features.h>.
7612
7613 2018-08-03 DJ Delorie <dj@redhat.com>
7614
7615 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7616 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7617
7618 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7619
7620 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7621
7622 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7623 after TEST_* calls.
7624 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7625 * math/libm-test-logb.inc (logb_test_data): Likewise.
7626
7627 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7628
7629 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7630 * string/strstr.c (AVAILABLE): Likewise.
7631
7632 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7633
7634 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7635 <init-arch.h>.
7636 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7637 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7638 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7639
7640 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7641
7642 * po/be.po: Update translation.
7643
7644 * po/be.po: Update translation.
7645
7646 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7647
7648 * sysdeps/x86/cpu-features-offsets.sym
7649 (rtld_global_ro_offsetof): Removed.
7650 (CPU_FEATURES_SIZE): Likewise.
7651 (CPUID_OFFSET): Likewise.
7652 (CPUID_SIZE): Likewise.
7653 (CPUID_EAX_OFFSET): Likewise.
7654 (CPUID_EBX_OFFSET): Likewise.
7655 (CPUID_ECX_OFFSET): Likewise.
7656 (CPUID_EDX_OFFSET): Likewise.
7657 (FAMILY_OFFSET): Likewise.
7658 (MODEL_OFFSET): Likewise.
7659 (FEATURE_OFFSET): Likewise.
7660 (FEATURE_SIZ): Likewise.
7661 (COMMON_CPUID_INDEX_1): Likewise.
7662 (COMMON_CPUID_INDEX_7): Likewise.
7663 (FEATURE_INDEX_1): Likewise.
7664 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7665
7666 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7667
7668 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7669 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7670 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7671 (install-locales): Depend on install-locale-archive.
7672 (install-locale-archive): Define.
7673 (install-locale-files): Define.
7674 (build-one-locale): Define macro.
7675 * manual/install.texi (Running make install): Document.
7676 * manual/INSTALL: Regenerate.
7677
7678 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7679
7680 * benchtests/scripts/compare_strings.py: Import traceback.
7681 (parse_file): Pretty-print error.
7682
7683 * NEWS: Mention the change.
7684 * elf/dl-tunables.list: Rename tune namespace to cpu.
7685 * sysdeps/powerpc/dl-tunables.list: Likewise.
7686 * sysdeps/x86/dl-tunables.list: Likewise.
7687 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7688 cpu.name.
7689 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7690 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7691 * manual/README.tunables: Likewise.
7692 * manual/tunables.texi: Likewise.
7693 * sysdeps/powerpc/cpu-features.c: Likewise.
7694 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7695 (init_cpu_features): Likewise.
7696 * sysdeps/x86/cpu-features.c: Likewise.
7697 * sysdeps/x86/cpu-features.h: Likewise.
7698 * sysdeps/x86/cpu-tunables.c: Likewise.
7699 * sysdeps/x86_64/Makefile: Likewise.
7700 * sysdeps/x86/dl-cet.c: Likewise.
7701
7702 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7703
7704 [BZ #23479]
7705 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7706 [__mips_hard_float].
7707 (FE_UNDERFLOW): Likewise.
7708 (FE_OVERFLOW): Likewise.
7709 (FE_DIVBYZERO): Likewise.
7710 (FE_INVALID): Likewise.
7711 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7712 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7713 (FE_UPWARD): Likewise.
7714 (FE_DOWNWARD): Likewise.
7715 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7716 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7717 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7718 [__mips_hard_float].
7719 (FP_ROUNDMODE): Likewise.
7720 (FP_RND_NEAREST): Likewise.
7721 (FP_RND_ZERO): Likewise.
7722 (FP_RND_PINF): Likewise.
7723 (FP_RND_MINF): Likewise.
7724 (FP_EX_INVALID): Likewise.
7725 (FP_EX_OVERFLOW): Likewise.
7726 (FP_EX_UNDERFLOW): Likewise.
7727 (FP_EX_DIVZERO): Likewise.
7728 (FP_EX_INEXACT): Likewise.
7729 (FP_INIT_ROUNDMODE): Likewise.
7730 * sysdeps/mips/nofpu/fesetenv.c: New file.
7731 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7732
7733 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7734
7735 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7736 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7737 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7738 conditional on [FE_UPWARD].
7739
7740 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7741
7742 regex: fix memory leak in Gnulib
7743 Problem and fix reported by Assaf Gordon in:
7744 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7745 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7746 range_ends members too, as they are defined in 'struct
7747 re_charset_t' even if not _LIBC. This affects only Gnulib.
7748
7749 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7750
7751 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7752 ...
7753 (get_common_indices): This.
7754 (init_cpu_features): Updated.
7755
7756 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7757
7758 * sysdeps/generic/math-tests-snan-payload.h: New file.
7759 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7760 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7761 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7762 * sysdeps/generic/math-tests.h: Include
7763 <math-tests-snan-payload.h>.
7764 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7765 * sysdeps/hppa/math-tests.h: Remove file.
7766 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7767 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7768 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7769 Likewise.
7770
7771 * sysdeps/generic/math-tests-snan-cast.h: New file.
7772 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7773 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7774 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7775 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7776
7777 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7778
7779 * version.h (RELEASE): Set to "development".
7780 (VERSION): Set to "2.28.9000".
7781 * NEWS (2.29): New section.
7782
7783 * version.h (RELEASE): Set to "stable".
7784 (VERSION): Set to "2.28".
7785 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7786 * NEWS: Add the list of bugs fixed in 2.28.
7787
7788 * po/ca.po: Update to latest version.
7789 * po/cs.po: Likewise
7790 * po/da.po: Likewise
7791 * po/el.po: Likewise
7792 * po/eo.po: Likewise
7793 * po/es.po: Likewise
7794 * po/fi.po: Likewise
7795 * po/fr.po: Likewise
7796 * po/gl.po: Likewise
7797 * po/hu.po: Likewise
7798 * po/ia.po: Likewise
7799 * po/id.po: Likewise
7800 * po/it.po: Likewise
7801 * po/ja.po: Likewise
7802 * po/ko.po: Likewise
7803 * po/lt.po: Likewise
7804 * po/nb.po: Likewise
7805 * po/nl.po: Likewise
7806 * po/pt_BR.po: Likewise
7807 * po/ru.po: Likewise
7808 * po/rw.po: Likewise
7809 * po/sk.po: Likewise
7810 * po/sl.po: Likewise
7811 * po/tr.po: Likewise
7812 * po/zh_CN.po: Likewise
7813 * po/zh_TW.po: Likewise
7814
7815 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7816
7817 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7818 initialization...
7819 (init): ... before initializing libpthread.
7820
7821 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7822 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7823 (__mach_setup_tls): ... new function.
7824 (mach_setup_tls): New alias.
7825 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7826 __mach_setup_thread.
7827 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7828 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7829 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7830 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7831
7832 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7833
7834 * manual/install.texi: Update versions.
7835 * INSTALL: Regenerate.
7836
7837 * manual/contrib.texi (Contributors): Update contributions.
7838
7839 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7840
7841 * po/be.po: Update translations.
7842
7843 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7844
7845 * sysdeps/sh/libm-test-ulps: Update.
7846
7847 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7848
7849 * po/bg.po: Update translations.
7850 * po/de.po: Likewise.
7851 * po/hr.po: Likewise.
7852 * po/pt_BR.po: Likewise.
7853 * po/sv.po: Likewise.
7854 * po/vi.po: Likewise.
7855
7856 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7857
7858 [BZ #23467]
7859 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7860 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7861 (CFLAGS-tst-cet-property-1.o): New.
7862 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7863 ($(objpfx)tst-cet-property-2): Likewise.
7864 ($(objpfx)tst-cet-property-2.out): Likewise.
7865 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7866 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7867 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7868 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7869 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7870
7871 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7872
7873 [BZ #23458]
7874 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7875
7876 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7877
7878 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7879 __sbrk): Do not set attribute_hidden.
7880 * sysdeps/mach/hurd/not-errno.h: New file.
7881 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7882 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7883
7884 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7885
7886 * po/uk.po: Update translations.
7887 * po/cs.po: Likewise.
7888 * po/pl.po: Likewise.
7889
7890 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7891
7892 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7893 parse beyond the note end.
7894
7895 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7896
7897 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7898 kernel does not support OFD locks.
7899 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7900
7901 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7902
7903 * sysdeps/mach/hurd/Versions (libc): Make __access and
7904 __access_noerrno external so they can override the ld symbols.
7905 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7906 __writev, __open64, __access_noerrno extern so they can be overrided.
7907 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7908 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7909
7910 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7911
7912 * po/libc.pot: Regenerate.
7913
7914 2018-07-26 Joseph Myers <joseph@codesourcery.com>
7915
7916 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7917
7918 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7919
7920 [BZ #23459]
7921 * sysdeps/x86/cpu-features.c (get_extended_indices): New
7922 function.
7923 (init_cpu_features): Call get_extended_indices for both Intel
7924 and AMD CPUs.
7925 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
7926 Remove "for AMD" comment.
7927
7928 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7929
7930 [BZ # 23456]
7931 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
7932 COMMON_CPUID_INDEX_80000001.
7933
7934 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
7935
7936 * string/tst-xbzero-opt.c (use_test_buffer): New function.
7937 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
7938
7939 2018-07-26 Florian Weimer <fweimer@redhat.com>
7940
7941 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
7942 aliases for symbols not in the implementation namespace.
7943
7944 2018-07-25 Carlos O'Donell <carlos@redhat.com>
7945
7946 [BZ #23393]
7947 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
7948 lowercase in LATIN script.
7949 * localedata/Makefile (test-input): Add en_US.UTF-8.
7950 * localedata/en_US.UTF-8.in: New file.
7951 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
7952 and restore old tests.
7953 * posix/tst-regexloc.c (do_test): Add back range expression test.
7954
7955 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7956
7957 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
7958
7959 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7960
7961 * nptl/threads.h: Move to ...
7962 * sysdeps/nptl/threads.h: ... here.
7963 * sysdeps/hurd/stdc-predef.h: New file.
7964
7965 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7966
7967 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7968 tst-cet-setcontext-1 if CET is enabled.
7969 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
7970 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
7971
7972 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7973
7974 * include/threads.h: Move to ...
7975 * sysdeps/nptl/threads.h: ... here.
7976 * sysdeps/htl/threads.h: New file.
7977 * conform/Makefile (linknamespace-libs-ISO11): Use
7978 static-thread-library instead of linking libpthread.
7979 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
7980
7981 2018-07-25 Florian Weimer <fweimer@redhat.com>
7982
7983 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
7984 nanoseconds into seconds.
7985 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
7986 (do_test): Likewise.
7987 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
7988 (do_test): Likewise. Avoid nanosecond overflow and spurious
7989 timeouts due to system load.
7990 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
7991 (child_wait): Increment it.
7992 (do_test): Wait as long as necessary until all expected threads
7993 have arrived.
7994
7995 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
7996 H.J. Lu <hongjiu.lu@intel.com>
7997
7998 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
7999 __ssp.
8000 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8001 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8002 (__push___start_context): New.
8003 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8004 <asm/prctl.h>.
8005 (__getcontext): Record the current shadow stack base. Save the
8006 caller's shadow stack pointer and base.
8007 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8008 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8009 (__push___start_context): New prototype.
8010 (__makecontext): Call __push___start_context to allocate a new
8011 shadow stack, push __start_context onto the new stack as well
8012 as the new shadow stack.
8013 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8014 <asm/prctl.h>.
8015 (__setcontext): Restore the target shadow stack.
8016 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8017 <asm/prctl.h>.
8018 (__swapcontext): Record the current shadow stack base. Save
8019 the caller's shadow stack pointer and base. Restore the target
8020 shadow stack.
8021 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8022 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8023 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8024
8025 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8026
8027 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8028 tst-setcontext8 and tst-setcontext9.
8029 * stdlib/tst-setcontext6.c: New file.
8030 * stdlib/tst-setcontext7.c: Likewise.
8031 * stdlib/tst-setcontext8.c: Likewise.
8032 * stdlib/tst-setcontext9.c: Likewise.
8033
8034 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8035
8036 * stdlib/Makefile ((tests): Add tst-setcontext5.
8037 * stdlib/tst-setcontext5.c: New file.
8038
8039 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8040
8041 * stdlib/Makefile (tests): Add tst-setcontext4.
8042 * stdlib/tst-setcontext4.c: New file.
8043
8044 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8045
8046 * stdlib/Makefile (tests): Add tst-swapcontext1.
8047 * stdlib/tst-swapcontext1.c: New test.
8048
8049 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8050
8051 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8052 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8053 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8054 and tst-cet-legacy-4c.
8055 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8056 and tst-cet-legacy-mod-4.
8057 (CFLAGS-tst-cet-legacy-2.c): New.
8058 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8059 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8060 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8061 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8062 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8063 ($(objpfx)tst-cet-legacy-1): Likewise.
8064 ($(objpfx)tst-cet-legacy-2): Likewise.
8065 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8066 ($(objpfx)tst-cet-legacy-2a): Likewise.
8067 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8068 ($(objpfx)tst-cet-legacy-4): Likewise.
8069 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8070 ($(objpfx)tst-cet-legacy-4a): Likewise.
8071 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8072 (tst-cet-legacy-4a-ENV): Likewise.
8073 ($(objpfx)tst-cet-legacy-4b): Likewise.
8074 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8075 (tst-cet-legacy-4b-ENV): Likewise.
8076 ($(objpfx)tst-cet-legacy-4c): Likewise.
8077 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8078 (tst-cet-legacy-4c-ENV): Likewise.
8079 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8080 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8081 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8082 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8083 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8084 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8085 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8086 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8087 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8088 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8089 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8090
8091 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8092
8093 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8094 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8095 with ssp_base.
8096 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8097 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8098 with ssp_base.
8099
8100 2018-07-25 Andreas Schwab <schwab@suse.de>
8101
8102 [BZ #23442]
8103 * locale/weightwc.h (findidx): Handle the case where usrc is a
8104 prefix of cp but one character too short.
8105
8106 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8107
8108 * NEWS: Add ISO C threads addition.
8109
8110 2018-07-24 Florian Weimer <fweimer@redhat.com>
8111
8112 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8113 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8114 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8115 4.13.
8116
8117 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8118
8119 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8120 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8121 <sys/prctl.h> and <asm/prctl.h>.
8122 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8123 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8124 and <asm/prctl.h>.
8125 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8126 ARCH_CET_LEGACY_BITMAP.
8127 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8128 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8129 * sysdeps/x86/libc-start.c: Include <startup.h>.
8130
8131 2018-07-24 Florian Weimer <fweimer@redhat.com>
8132
8133 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8134 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8135
8136 2018-07-24 Rical Jasan <rj@2c3t.io>
8137 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8138 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8139
8140 [BZ #14092]
8141 * manual/debug.texi: Update adjacent chapter name.
8142 * manual/probes.texi: Likewise.
8143 * manual/threads.texi (ISO C Threads): New section.
8144 (POSIX Threads): Convert to a section.
8145
8146 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8147 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8148
8149 [BZ# 14092]
8150 * nptl/Makefile (tests): Add new test files.
8151 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8152 * nptl/tst-cnd-basic.c: Likewise.
8153 * nptl/tst-cnd-broadcast.c: Likewise.
8154 * nptl/tst-cnd-timedwait.c: Likewise.
8155 * nptl/tst-mtx-basic.c: Likewise.
8156 * nptl/tst-mtx-recursive.c: Likewise.
8157 * nptl/tst-mtx-timedlock.c: Likewise.
8158 * nptl/tst-mtx-trylock.c: Likewise.
8159 * nptl/tst-thrd-basic.c: Likewise.
8160 * nptl/tst-thrd-detach.c: Likewise.
8161 * nptl/tst-thrd-sleep.c: Likewise.
8162 * nptl/tst-tss-basic.c: Likewise.
8163
8164 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8165
8166 [BZ #14092]
8167 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8168 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8169 symbols.
8170 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8171 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8172 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8173 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8174 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8175 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8176 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8177 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8178 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8179 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8180 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8181 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8183 Likewise.
8184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8185 Likewise.
8186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8187 Likewise.
8188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8189 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8190 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8191 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8192 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8193 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8194 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8195 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8196 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8197 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8198 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8199 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8200 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8201 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8202 Likewise.
8203 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8204 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8205 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8206 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8207 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8208 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8209 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8210 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8211 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8212 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8213 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8214 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8215 ikewise.
8216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8218 Likewise.
8219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8220 Likewise.
8221 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8222 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8223 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8224 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8225 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8226 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8227 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8228 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8229
8230 [BZ #14092]
8231 * conform/data/threads.h-data (thread_local): New macro.
8232 (TSS_DTOR_ITERATIONS): Likewise.
8233 (tss_t): New type.
8234 (tss_dtor_t): Likewise.
8235 (tss_create): New function.
8236 (tss_get): Likewise.
8237 (tss_set): Likewise.
8238 (tss_delete): Likewise.
8239 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8240 tss_get, and tss_set objects.
8241 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8242 * nptl/tss_create.c: New file.
8243 * nptl/tss_delete.c: Likewise.
8244 * nptl/tss_get.c: Likewise.
8245 * nptl/tss_set.c: Likewise.
8246 * sysdeps/nptl/threads.h (thread_local): New define.
8247 (TSS_DTOR_ITERATIONS): Likewise.
8248 (tss_t): New typedef.
8249 (tss_dtor_t): Likewise.
8250 (tss_create): New prototype.
8251 (tss_get): Likewise.
8252 (tss_set): Likewise.
8253 (tss_delete): Likewise.
8254
8255 [BZ #14092]
8256 * conform/data/threads.h-data (cnd_t): New type.
8257 (cnd_init): New function.
8258 (cnd_signal): Likewise.
8259 (cnd_broadcast): Likewise.
8260 (cnd_wait): Likewise.
8261 (cnd_timedwait): Likewise.
8262 (cnd_destroy): Likewise.
8263 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8264 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8265 object.
8266 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8267 * nptl/cnd_broadcast.c: New file.
8268 * nptl/cnd_destroy.c: Likewise.
8269 * nptl/cnd_init.c: Likewise.
8270 * nptl/cnd_signal.c: Likewise.
8271 * nptl/cnd_timedwait.c: Likewise.
8272 * nptl/cnd_wait.c: Likewise.
8273 * sysdeps/nptl/threads.h (cnd_t): New type.
8274 (cnd_init): New prototype.
8275 (cnd_signa): Likewise.
8276 (cnd_broadcast): Likewise.
8277 (cnd_wait): Likewise.
8278 (cnd_timedwait): Likewise.
8279 (cnd_destroy): Likewise.
8280
8281 [BZ #14092]
8282 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8283 (once_flag): New type.
8284 (call_once): New function.
8285 * nptl/Makefile (libpthread-routines): Add call_once object.
8286 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8287 * nptl/call_once.c: New file.
8288 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8289 (once_flag): New type.
8290 (call_once): New prototype.
8291
8292 [BZ #14092]
8293 * conform/data/threads.h-data (mtx_plain): New constant.
8294 (mtx_recursive): Likewise.
8295 (mtx_timed): Likewise.
8296 (mtx_t): New type.
8297 (mtx_init): New function.
8298 (mtx_lock): Likewise.
8299 (mtx_timedlock): Likewise.
8300 (mtx_trylock): Likewise.
8301 (mtx_unlock): Likewise.
8302 (mtx_destroy): Likewise.
8303 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8304 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8305 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8306 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8307 * nptl/mtx_destroy.c: New file.
8308 * nptl/mtx_init.c: Likewise.
8309 * nptl/mtx_lock.c: Likewise.
8310 * nptl/mtx_timedlock.c: Likewise.
8311 * nptl/mtx_trylock.c: Likewise.
8312 * nptl/mtx_unlock.c: Likewise.
8313 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8314 (mtx_recursive): Likewise.
8315 (mtx_timed): Likewise.
8316 (mtx_t): New type.
8317 (mtx_init): New prototype.
8318 (mtx_lock): Likewise.
8319 (mtx_timedlock): Likewise.
8320 (mtx_trylock): Likewise.
8321 (mtx_unlock): Likewise.
8322 (mtx_destroy): Likewise.
8323
8324 [BZ #14092]
8325 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8326 (linknamespace-libs-ISO11): Add libpthread.a.
8327 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8328 functions.
8329 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8330 * nptl/Makefile (headers): Add threads.h.
8331 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8332 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8333 thrd_yield.
8334 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8335 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8336 thrd_join, thrd_sleep, and thrd_yield symbols.
8337 * nptl/descr.h (struct pthread): Add c11 field.
8338 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8339 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8340 routine with expected function prototype.
8341 (__pthread_create_2_1): Add C11 threads check based on attribute
8342 value.
8343 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8344 * nptl/thrd_create.c: New file.
8345 * nptl/thrd_current.c: Likewise.
8346 * nptl/thrd_detach.c: Likewise.
8347 * nptl/thrd_equal.c: Likewise.
8348 * nptl/thrd_exit.c: Likewise.
8349 * nptl/thrd_join.c: Likewise.
8350 * nptl/thrd_priv.h: Likewise.
8351 * nptl/thrd_sleep.c: Likewise.
8352 * nptl/thrd_yield.c: Likewise.
8353 * include/threads.h: Likewise.
8354
8355 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8356
8357 * bits/indirect-return.h: New file.
8358 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8359 * sysdeps/x86/bits/indirect-return.h: Likewise.
8360 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8361 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8362 (swapcontext): Add __INDIRECT_RETURN.
8363 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8364 (prepare_test_buffer): Use it.
8365
8366 2018-07-24 Andreas Schwab <schwab@suse.de>
8367
8368 [BZ #23448]
8369 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8370 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8371
8372 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8373
8374 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8375 Redefine if shadow stack is enabled.
8376 (SYSCALL_ERROR_LABEL): Likewise.
8377 (__vfork): Pop shadow stack and jump back to to caller directly
8378 when shadow stack is in use.
8379 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8380 Redefine if shadow stack is enabled.
8381 (SYSCALL_ERROR_LABEL): Likewise.
8382 (__vfork): Pop shadow stack and jump back to to caller directly
8383 when shadow stack is in use.
8384
8385 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8386
8387 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8388 enabled.
8389 (foo): Likewise.
8390 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8391 (foo): Likewise.
8392
8393 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8394
8395 * scripts/build-many-glibcs.py (Context.checkout): Default
8396 binutils version to 2.31 branch.
8397
8398 2018-07-20 Zong Li <zong@andestech.com>
8399
8400 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8401 URL of gcc's tarball.
8402
8403 2018-07-20 Florian Weimer <fweimer@redhat.com>
8404
8405 [BZ #23396]
8406 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8407 not compare an extra byte after the end of the weights.
8408
8409 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8410
8411 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8412 to 1.
8413 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8414 hidden prototypes.
8415 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8416 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8417 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8418 list of libraries whose stack executability is expected.
8419 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8420 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8421 variable.
8422 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8423 libc.so libpthread.so.
8424
8425 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8426
8427 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8428 SOCK_NONBLOCK.
8429 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8430 and SOCK_NONBLOCK.
8431 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8432 implement __pipe2.
8433 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8434
8435 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8436
8437 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8438 library to improve command line parsing.
8439 (__main__): make schema file as optional parameter (--schema),
8440 defaulting to benchtests/scripts/benchout.schema.json.
8441 (main): move out of the parsing stuff to __main_  and leave it
8442 only as caller of main comparison functions.
8443
8444 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8445
8446 * NEWS: Add a note for Intel CET status.
8447 * manual/install.texi: Likewise.
8448 * INSTALL: Regenerated.
8449
8450 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8451
8452 [BZ #23140]
8453 * localedata/locales/oc_FR (mon): Rename to...
8454 (alt_mon): This, then update October (typo fix).
8455 (mon): New content (genitive case, month names preceded by
8456 "de" or "d’").
8457
8458 [BZ #23422]
8459 * localedata/locales/oc_FR (abday): Update all items.
8460 (day): Update Wednesday and Saturday (typo fixes).
8461 (abmon): Update all items, except May.
8462 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8463 (LC_IDENTIFICATION): Bump the revision number and date.
8464 Keep the "category" entries in alphabetic order.
8465 (LC_ADDRESS): Remove no longer needed comment.
8466 (LC_COLLATE): Use “copy "ca_ES"”.
8467 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8468 "name_mrs".
8469
8470 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8471
8472 * grp/tst_fgetgrent.c: Include <unistd.h>.
8473 (main): Use mkstemp instead of tmpnam.
8474 * io/test-utime.c (main): Likewise.
8475 * posix/annexc.c (macrofile): Change to modifiable array.
8476 (main): Remove macrofile here.
8477 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8478 macrofile here.
8479 (check_header): Do not remove macrofile here.
8480 * posix/bug-getopt1.c: Include <stdlib.h>.
8481 (do_test): Use mkstemp instead of tmpnam.
8482 * posix/bug-getopt2.c: Include <stdlib.h>.
8483 (do_test): Use mkstemp instead of tmpnam.
8484 * posix/bug-getopt3.c: Include <stdlib.h>.
8485 (do_test): Use mkstemp instead of tmpnam.
8486 * posix/bug-getopt4.c: Include <stdlib.h>.
8487 (do_test): Use mkstemp instead of tmpnam.
8488 * posix/bug-getopt5.c: Include <stdlib.h>.
8489 (do_test): Use mkstemp instead of tmpnam.
8490 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8491 (main): Use mkstemp instead of tmpnam.
8492 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8493 (main): Use mkstemp instead of tmpnam.
8494 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8495 (main): use mkstemp instead of tmpnam.
8496 * stdlib/isomac.c (macrofile): Change to modifiable array.
8497 (main): Remove macrofile here.
8498 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8499 macrofile here.
8500 (check_header): Do not remove macrofile here.
8501
8502 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8503
8504 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8505 glibc.tune.x86_shstk.
8506
8507 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8508
8509 * NEWS: Mention --enable-cet.
8510 * manual/install.texi: Document --enable-cet.
8511 * INSTALL: Regenerated.
8512
8513 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8514
8515 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8516 Add _CET_NOTRACK before indirect jump to jump table.
8517
8518 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8519
8520 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8521 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8522 to jump table.
8523
8524 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8525
8526 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8527 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8528 to jump table.
8529
8530 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8531
8532 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8533 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8534 to jump table.
8535
8536 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8537
8538 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8539 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8540 to jump table.
8541
8542 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8543
8544 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8545 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8546 to jump table.
8547 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8548
8549 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8550
8551 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8552 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8553 to jump table.
8554
8555 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8556
8557 * sysdeps/i386/i686/multiarch/memset-sse2.S
8558 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8559 to jump table.
8560
8561 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8562
8563 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8564 indirect jump to jump table.
8565
8566 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8569 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8570 to jump table.
8571 (MEMCPY): Likewise.
8572
8573 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8574
8575 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8576 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8577 to jump table.
8578 (MEMCPY): Likewise.
8579
8580 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8581
8582 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8583 _CET_NOTRACK before indirect jump to jump table.
8584
8585 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8586
8587 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8588 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8589 to jump table.
8590
8591 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8592
8593 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8594 indirect jump to jump table.
8595
8596 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8597
8598 [BZ #22241]
8599 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8600 (LOCALES): Likewise.
8601 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8602 * localedata/locales/sah_RU: New file.
8603 * localedata/sah_RU.UTF-8.in: New file.
8604
8605 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8608 "sysdep.h".
8609 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8610 _CET_ENDBR to indirect jump targets and adjust jump destination
8611 for _CET_ENDBR.
8612 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8613 "sysdep.h".
8614 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8615 _CET_ENDBR to indirect jump targets and adjust jump destination
8616 for _CET_ENDBR.
8617 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8618 "sysdep.h".
8619 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8620 _CET_ENDBR to indirect jump targets and adjust jump destination
8621 for _CET_ENDBR.
8622
8623 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8624
8625 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8626 _CET_ENDBR.
8627
8628 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8629
8630 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8631 _CET_ENDBR.
8632 (_dl_tlsdesc_undefweak): Likewise.
8633 (_dl_tlsdesc_dynamic): Likewise.
8634 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8635 (_dl_tlsdesc_resolve_rel): Likewise.
8636 (_dl_tlsdesc_resolve_rela): Likewise.
8637 (_dl_tlsdesc_resolve_hold): Likewise.
8638 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8639 (_dl_tlsdesc_undefweak): Likewise.
8640 (_dl_tlsdesc_dynamic): Likewise.
8641 (_dl_tlsdesc_resolve_rela): Likewise.
8642 (_dl_tlsdesc_resolve_hold): Likewise.
8643
8644 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8645
8646 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8647 (_fini): Likewise.
8648 * sysdeps/x86_64/crti.S (_init): Likewise.
8649 (_fini): Likewise.
8650
8651 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8652
8653 [BZ #23140]
8654 * localedata/locales/os_RU (mon): Rename to...
8655 (alt_mon): This.
8656 (mon): Import from CLDR (genitive case).
8657
8658 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8659
8660 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8661 cet-tunables.h> when CET is enabled.
8662
8663 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8664
8665 [BZ #21598]
8666 * configure.ac: Add --enable-cet.
8667 * configure: Regenerated.
8668 * elf/Makefille (all-built-dso): Add a comment.
8669 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8670 Include <dl-prop.h>.
8671 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8672 segment.
8673 * elf/dl-open.c: Include <dl-prop.h>.
8674 (dl_open_worker): Call _dl_open_check.
8675 * elf/rtld.c: Include <dl-prop.h>.
8676 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8677 _rtld_main_check.
8678 * sysdeps/generic/dl-prop.h: New file.
8679 * sysdeps/i386/dl-cet.c: Likewise.
8680 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8681 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8682 * sysdeps/x86/cet-tunables.h: Likewise.
8683 * sysdeps/x86/check-cet.awk: Likewise.
8684 * sysdeps/x86/configure: Likewise.
8685 * sysdeps/x86/configure.ac: Likewise.
8686 * sysdeps/x86/dl-cet.c: Likewise.
8687 * sysdeps/x86/dl-procruntime.c: Likewise.
8688 * sysdeps/x86/dl-prop.h: Likewise.
8689 * sysdeps/x86/libc-start.h: Likewise.
8690 * sysdeps/x86/link_map.h: Likewise.
8691 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8692 _CET_ENDBR.
8693 (_dl_runtime_profile): Likewise.
8694 (_dl_runtime_resolve_shstk): New.
8695 (_dl_runtime_profile_shstk): Likewise.
8696 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8697 if CET is enabled.
8698 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8699 (CFLAGS-.os): Likewise.
8700 (CFLAGS-.op): Likewise.
8701 (CFLAGS-.oS): Likewise.
8702 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8703 is enabled.
8704 (tests-special): Add $(objpfx)check-cet.out.
8705 (cet-built-dso): New.
8706 (+$(cet-built-dso:=.note)): Likewise.
8707 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8708 ($(objpfx)check-cet.out): New.
8709 (generated): Add check-cet.out.
8710 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8711 <cet-tunables.h>.
8712 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8713 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8714 (init_cpu_features): Call get_cet_status to check CET status
8715 and update dl_x86_feature_1 with CET status. Call
8716 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8717 (set_x86_shstk). Disable and lock CET in libc.a.
8718 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8719 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8720 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8721 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8722 (_CET_ENDBR): Define if not defined.
8723 (ENTRY): Add _CET_ENDBR.
8724 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8725 x86_shstk.
8726 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8727 _CET_ENDBR.
8728 (_dl_runtime_profile): Likewise.
8729
8730 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8731
8732 [BZ #21895]
8733 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8734 restore r2 on longjmp.
8735 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8736 test list.
8737 Added rules to build test tst-setjmp-bug21895-static.
8738 Added module setjmp-bug21895 and rules to build a shared object from it.
8739 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8740 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8741
8742 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8743
8744 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8745 * benchtests/bench-strstr.c: Likewise.
8746 * string/memmem.c (FASTSEARCH): Define.
8747 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8748 Add support for FASTSEARCH.
8749 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8750 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8751 (FASTSEARCH): Define.
8752 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8753 * string/test-strstr.c: Likewise.
8754
8755 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8758 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8759
8760 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8761 H.J. Lu <hongjiu.lu@intel.com>
8762
8763 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8764 (__longjmp): Restore shadow stack pointer if shadow stack is
8765 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8766 isn't defined for __longjmp_cancel.
8767 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8768 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8769 and SHADOW_STACK_POINTER_OFFSET is defined.
8770 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8771 (setjmp): Save shadow stack pointer if shadow stack is enabled
8772 and SHADOW_STACK_POINTER_OFFSET is defined.
8773 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8774 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8775 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8776 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8777 <jmp_buf-ssp.h>.
8778 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8779 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8780 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8781 Remove jmp_buf-ssp.sym.
8782 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8783 <jmp_buf-ssp.h>.
8784 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8785 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8786 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8787 jmp_buf-ssp.sym.
8788 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8789 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8790 (__longjmp): Restore shadow stack pointer if shadow stack is
8791 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8792 isn't defined for __longjmp_cancel.
8793 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8794 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8795 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8796
8797 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8798
8799 [BZ #22563]
8800 * nptl/pthread_create.c: Include <tls-setup.h>.
8801 (__pthread_create_2_1): Call tls_setup_tcbhead.
8802 * sysdeps/generic/tls-setup.h: New file.
8803 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8804 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8805 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8806 Likewise.
8807 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8808 to feature_1.
8809 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8810 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8811 (X86_FEATURE_1_SHSTK): Likewise.
8812 (CET_ENABLED): Likewise.
8813 (IBT_ENABLED): Likewise.
8814 (SHSTK_ENABLED): Likewise.
8815
8816 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8817
8818 [BZ #23208]
8819 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8820 (LOCALES): Likewise.
8821 * localedata/dsb_DE.UTF-8.in: New file.
8822 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8823
8824 2018-07-12 Florian Weimer <fweimer@redhat.com>
8825
8826 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8827 __mprotect, not mprotect.
8828
8829 2018-07-11 Florian Weimer <fweimer@redhat.com>
8830
8831 * io/Makefile (headers): Add bits/statx.h.
8832
8833 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8834
8835 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8836 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8837 and headers.
8838 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8839 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8840 for utf8_gen.py
8841
8842 2018-07-10 Florian Weimer <fweimer@redhat.com>
8843
8844 * io/Makefile (routines): Add statx.
8845 (tests-internal): Add tst-statx.
8846 * io/Versions (GLIBC_2.28): Export statx.
8847 * io/bits/statx.h: New file.
8848 * io/sys/stat.h [__USE_GNU]: Include it.
8849 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8850 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8851 Define.
8852 * io/statx.c: New file.
8853 * io/statx_generic.: Likewise.
8854 * io/tst-statx.: Likewise.
8855 * include/bits/statx.h: Likewise.
8856 * sysdeps/unix/sysv/linux/kernel-features.h
8857 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8858 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8859 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8860 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8861 Undefine.
8862 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8863 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8864 * sysdeps/unix/sysv/linux/statx.c: New file.
8865 * manual/filesys.texi: Note that statx is undocumented.
8866 * sysdeps/**/libc*.abilist: Update.
8867
8868 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8869
8870 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8871 a kernel issue which lead to test failure in some cases.
8872
8873 2018-07-10 Florian Weimer <fweimer@redhat.com>
8874
8875 [BZ #23036]
8876 * posix/regexec.c (check_node_accept_bytes): When comparing
8877 weights, do not compare an extra byte after the end of the
8878 weights.
8879
8880 2018-07-10 Florian Weimer <fweimer@redhat.com>
8881
8882 * libio/readline.c: Fix copyright year.
8883 * libio/tst-readline.c Likewise.
8884 * nss/tst-nss-files-hosts-getent.c: Likewise.
8885
8886 2018-07-06 Florian Weimer <fweimer@redhat.com>
8887
8888 [BZ #18991]
8889 * nss/nss_files/files-XXX.c (internal_getent): Use
8890 __libc_readline_unlocked. Seek back to the start of the line if
8891 parsing failes with ERANGE.
8892 (get_contents_ret, get_contents): Remove.
8893 * nss/tst-nss-files-hosts-getent.c: New file.
8894 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8895 (tst-nss-files-hosts-getent): Link with -ldl.
8896
8897 2018-07-06 Florian Weimer <fweimer@redhat.com>
8898
8899 * include/stdio.h (__libc_readline_unlocked): Declare.
8900 (__ftello64, __fseeko64): Declare aliases.
8901 * libio/readline.c: New file.
8902 * libio/tst-readline.c: Likewise.
8903 (routines): Add readline.
8904 (tests-internal): Add tst-readlime.
8905 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8906 __libc_readline_unlocked.
8907 * libio/fseeko.c (__fseeko): Rename from fseeko.
8908 (fseeko): Add alias.
8909 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8910 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8911 (fseeko64): Add alias.
8912 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
8913 * libio/ftello64.c (__ftello64): Rename from ftello64.
8914 (ftello64): Add alias.
8915
8916 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8917
8918 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
8919 HWCAP_ATOMICS.
8920
8921 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8922
8923 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
8924 Use dl_hwcap without masking.
8925 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
8926 Remove HWCAP_CPUID.
8927
8928 2018-07-06 Florian Weimer <fweimer@redhat.com>
8929
8930 * conform/conformtest.pl (checknamespace): Escape literal braces
8931 in regular expressions.
8932
8933 2018-07-06 Amit Pawar <amit.pawar@amd.com>
8934
8935 * sysdeps/x86/cpu-features.c (get_common_indeces):
8936 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
8937 * sysdeps/x86/cpu-features.c (init_cpu_features):
8938 AVX_Fast_Unaligned_Load is disabled for Excavator core.
8939
8940 2018-07-05 Florian Weimer <fweimer@redhat.com>
8941
8942 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
8943 protector.
8944 (CFLAGS-elf-init.oS): Likewise.
8945
8946 2018-07-05 Florian Weimer <fweimer@redhat.com>
8947 Carlos O'Donell <carlos@redhat.com>
8948
8949 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
8950 $(no-stack-protector). stack_chk_fail_local.c can be compiled
8951 with stack protector enabled because there is no risk of infinite
8952 recursion.
8953
8954 2018-07-05 Maciej W. Rozycki <macro@mips.com>
8955
8956 [BZ #19818]
8957 [BZ #23307]
8958 * libc-abis (ABSOLUTE): New ABI.
8959 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
8960 * NEWS: Mention the new ABI.
8961
8962 2018-07-05 Florian Weimer <fweimer@redhat.com>
8963
8964 [BZ # 17662]
8965 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
8966 (RENAME_WHITEOUT): Define.
8967 [__USE_GNU] (renameat2): Declare.
8968 * stdio-common/Makefile (routines): Add renameat2.
8969 (tests): Add tst-renameat2.
8970 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
8971 * stdio-common/renameat2.c: New file.
8972 * stdio-common/tst-renameat2.c: Likewise.
8973 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
8974 * manual/filesys.texi (Temporary Files): Note that renameat2 is
8975 undocumented.
8976 * sysdeps/unix/sysv/linux/kernel-features.h
8977 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
8978 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8979 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8980 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8981 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8982 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8983 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
8984 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8985 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
8986 * include/stdio.h (__renameat): Add alias for renameat.
8987 * stdio-common/renameat.c (__renameat): Rename from renameat.
8988 Add hidden definition and alias.
8989 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
8990 * sysdeps/mach/hurd/renameat.c: Likewise.
8991 * sysdeps/**/libc*.abilist: Add renameat2.
8992
8993 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8994
8995 * posix/bug-regex33.c: Fix build after regex sync.
8996
8997 2018-07-04 Carlos O'Donell <carlos@redhat.com>
8998
8999 [BZ #23164]
9000 * localedata/tst-langinfo-setlocale.c: New file.
9001 * localedata/tst-langinfo-setlocale-static.c: New file.
9002 * localedata/tst-langinfo-newlocale.c: New file.
9003 * localedata/tst-langinfo-newlocale-static.c: New file.
9004 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9005 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9006 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9007 (tests-static): Remove tst-langinfo-static. Add
9008 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9009 (tests-special): Remove $(objpfx)tst-langinfo.out,
9010 $(objpfx)tst-langinfo-static.out. Add
9011 $(objpfx)tst-langinfo-setlocale.out,
9012 $(objpfx)tst-langinfo-newlocale.out,
9013 $(objpfx)tst-langinfo-setlocale-static.out,
9014 $(objpfx)tst-langinfo-newlocale-static.out.
9015 ($(objpfx)tst-langinfo.out): Remove.
9016 ($(objpfx)tst-langinfo-static.out): Remove.
9017 ($(objpfx)tst-langinfo-newlocale.out): New target.
9018 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9019 (test-xfail-tst-langinfo-newlocale-static): Add.
9020 ($(objpfx)tst-langinfo-setlocale.out): New target.
9021 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9022 * localedata/tst-langinfo.c: Call test_locale.
9023 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9024 data.
9025
9026 2018-07-04 Florian Weimer <fweimer@redhat.com>
9027
9028 testrun.sh: Implement --tool=strace, --tool=valgrind
9029 * Makefile (testrun-script): Define variable.
9030 (testrun.sh): Use variable.
9031 * manual/install.texi (Tools for Compilation): make 4.0 or later
9032 is required.
9033 * configure.ac: Check for make 4.0 or later.
9034 * INSTALL: Regenerate.
9035 * configure: Likewise.
9036
9037 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9038
9039 [BZ #23233]
9040 [BZ #21163]
9041 [BZ #18986]
9042 [BZ #13762]
9043 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9044 * posix/PCRE.tests: Remove invalid test.
9045 * posix/bug-regex28.c: Fix expected values for used syntax.
9046 * posix/bug-regex37.c: New file.
9047 * posix/bug-regex38.c: Likewise.
9048 * posix/regcomp.c: Sync with gnulib.
9049 * posix/regex.c: Likewise.
9050 * posix/regex.h: Likewise.
9051 * posix/regex_internal.c: Likewise.
9052 * posix/regex_internal.h: Likewise.
9053 * posix/regexec.c: Likewise.
9054
9055 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9056
9057 [BZ #23308]
9058 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9059 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9060 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9061 * localedata/unicode-gen/PropList.txt: likewise.
9062 * localedata/unicode-gen/UnicodeData.txt: likewise.
9063 * localedata/charmaps/UTF-8: Regenerate.
9064 * localedata/locales/i18n_ctype: likewise.
9065 * localedata/locales/tr_TR: likewise.
9066 * localedata/locales/translit_circle: likewise.
9067 * localedata/locales/translit_cjk_compat: likewise.
9068 * localedata/locales/translit_combining: likewise.
9069 * localedata/locales/translit_compat: likewise.
9070 * localedata/locales/translit_font: likewise.
9071 * localedata/locales/translit_fraction: likewise.
9072
9073 2018-07-03 Florian Weimer <fweimer@redhat.com>
9074
9075 [BZ #23363]
9076 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9077 * stdio-common/tst-printf.sh: Adjust expected output.
9078 * LICENSES: Update.
9079
9080 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9081
9082 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9083 symbol.
9084
9085 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9086
9087 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9088 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9089 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9090 * stdio-common/tst-printfsz-islongdouble.c: New file.
9091 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9092 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9093 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9094 [subdir == stdio-common] (tests-internal): Add
9095 test-printf-size-ieee128, and test-printf-size-ibm128.
9096 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9097 (CFLAGS-test-printf-size-ibm128.c): New variables.
9098 [subdir == stdio-common] (tests-special): Add
9099 $(objpfx)test-printf-size-ieee128.out and
9100 $(objpfx)test-printf-size-ibm128.out.
9101 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9102 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9103 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9104 __printf_sizeieee128.
9105 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9106 New file.
9107 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9108 Likewise.
9109 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9110 Likewise.
9111
9112 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9113
9114 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9115 (exp2f_inline): Likewise.
9116 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9117 (__math_uflowf): Likewise.
9118 (__math_may_uflowf): Likewise.
9119 (__math_divzerof): Likewise.
9120 (__math_invalidf): Likewise.
9121 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9122 (__math_oflowf): Likewise.
9123 (__math_uflowf): Likewise.
9124 (__math_may_uflowf): Likewise.
9125 (__math_divzerof): Likewise.
9126 (__math_invalidf): Likewise.
9127
9128 2018-06-29 DJ Delorie <dj@redhat.com>
9129 Carlos O'Donell <carlos@redhat.com>
9130
9131 [BZ #23329]
9132 * include/libc-symbols.h: Comment the freeres framework.
9133 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9134 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9135 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9136 * dlfcn/dlerror.c: Include libc-symbols.h
9137 (__dlerror_main_freeres): New function.
9138 * dlfcn/dlfreeres.c: New file.
9139 * dlfcn/sdlfreeres.c: New file.
9140 * include/dlfcn.h: Declare __dlerror_main_freeres.
9141 * malloc/set-freeres.c: Declare __libdl_freeres, and
9142 __libpthread_freeres.
9143 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9144 the releavant libraries are loaded.
9145 * malloc/thread-freeres.c: Add comments.
9146 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9147 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9148 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9149 (__free_stacks): Rename to...
9150 (free_stacks): ...this. Mark static.
9151 (queue_stack): Call free_stacks.
9152 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9153 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9154 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9155 ptr_freeres element from struct.
9156 (pthread_functions): Remove .ptr_freeres from struct initializer.
9157 [SHARED] (nptl_freeres): Remove.
9158 * nptl/nptlfreeres.c: New file.
9159 * nptl/pthreadP.h
9160 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9161 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9162 attribute_hidden.
9163 (__free_stacks): Rename to...
9164 (__nptl_stacks_freeres): ...this.
9165 (__shm_directory_freeres): Declare.
9166 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9167 (__nptl_unwind_freeres): ...this.
9168 * resolv/res-close.c: Add comment.
9169 * resolv/resolv_conf.c: Include libc-symbols.h.
9170 * string/strerror_l.c: Include libc-symbols.h.
9171 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9172 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9173 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9174 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9175
9176 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9177
9178 * stdlib/tst-strfmon_l.c: Add tests for long double.
9179
9180 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9181
9182 [BZ #23208]
9183 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9184 * localedata/locales/dsb_DE: New file.
9185
9186 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9187
9188 [BZ #23140]
9189 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9190 genitive case).
9191 (alt_mon): New entry, import from CLDR (nominative case).
9192
9193 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9194
9195 [BZ #22996]
9196 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9197
9198 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9199
9200 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9201 Use vector registers.
9202
9203 * sysdeps/aarch64/multiarch/memmove_falkor.S
9204 (__memcpy_falkor): Use vector registers.
9205
9206 2018-06-29 Martin Sebor <msebor@redhat.com>
9207
9208 * manual/stdio.texi (Customizing Printf): Mention interaction
9209 with GCC built-ins.
9210
9211 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9212
9213 [BZ #23307]
9214 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9215 `st_value' is 0 if `st_shndx' is SHN_ABS.
9216 * elf/tst-absolute-zero.c: New file.
9217 * elf/tst-absolute-zero-lib.c: New file.
9218 * elf/tst-absolute-zero-lib.lds: New file.
9219 * elf/Makefile (tests): Add `tst-absolute-zero'.
9220 (modules-names): Add `tst-absolute-zero-lib'.
9221 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9222 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9223 ($(objpfx)tst-absolute-zero: New dependency.
9224
9225 2018-06-29 Zack Weinberg <zackw@panix.com>
9226
9227 * configure.ac: New command-line option --disable-crypt.
9228 Force --disable-nss-crypt when --disable-crypt is given, with a
9229 warning if it was explicitly enabled.
9230 * configure: Regenerate.
9231 * config.make.in: New boolean substitution variable $(build-crypt).
9232 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9233 when $(build-crypt).
9234 * manual/install.texi: Document --disable-crypt.
9235 * INSTALL: Regenerate.
9236
9237 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9238 which is never set.
9239 * conform/Makefile: Only include libcrypt.a in
9240 linknamespace-libs-xsi and linknamespace-libs-XPG4
9241 when $(build-crypt).
9242 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9243 USE_CRYPT to 1 when $(build-crypt).
9244 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9245 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9246 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9247
9248 2018-06-29 Zack Weinberg <zackw@panix.com>
9249
9250 * crypt/crypt.h, posix/unistd.h: Update comments and
9251 prototypes for crypt and crypt_r.
9252
9253 * manual/crypt.texi (Cryptographic Functions): New initial
9254 exposition.
9255 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9256 (Unpredictable Bytes): Improve initial exposition. Clarify error
9257 behavior of getentropy and getrandom.
9258 * manual/examples/genpass.c: Generate a salt using getentropy
9259 instead of the current time. Use hash $5$ (SHA-2-256).
9260 * manual/examples/testpass.c: Demonstrate validation against
9261 hashes generated with three different one-way functions.
9262
9263 * manual/intro.texi: crypt.texi does not need an overview
9264 anymore.
9265
9266 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9267 * manual/terminal.texi: Consistently refer to "passphrases"
9268 * instead of "passwords", and to the "user database" instead
9269 * of the "password database".
9270 * manual/users.texi: Similarly. Add notes about how actual
9271 passphrase hashes are now stored in the shadow database.
9272 Remove 20-year-old junk todo note.
9273
9274 2018-06-29 Zack Weinberg <zackw@panix.com>
9275
9276 * manual/crypt.texi: Use a normal top-level @node declaration.
9277 Move most of the introductory text to the 'crypt' section.
9278 Move the example programs below the @deftypefun for 'crypt_r'.
9279 Move the 'getpass' section...
9280 * manual/terminal.texi: ...here.
9281
9282 2018-06-29 Zack Weinberg <zackw@panix.com>
9283 Florian Weimer <fweimer@redhat.com>
9284
9285 * posix/unistd.h: Do not declare encrypt.
9286 (_XOPEN_CRYPT): Remove macro definition.
9287 (crypt): Declare only for _USE_MISC.
9288 * stdlib/stdlib.h: Do not declare setkey.
9289 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9290 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9291
9292 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9293 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9294 into compat symbols. Don't define initial_perm if it's not
9295 going to be used.
9296 * crypt/cert.c: Link explicitly with the expected versions for
9297 setkey and encrypt. If they are not available at all, mark
9298 the test as unsupported.
9299
9300 * sunrpc/des_crypt.c: Unconditionally block linkage with
9301 cbc_crypt and ecb_crypt for new binaries.
9302 * sunrpc/des_soft.c: Unconditionally block linkage with
9303 des_setparity for new binaries.
9304
9305 * manual/crypt.texi: Remove the entire "DES Encryption"
9306 section. Also remove the paragraph talking about FIPS 140-2
9307 from the introduction.
9308 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9309 of libgcrypt for "real" encryption, not DES.
9310 * manual/conf.texi (Constants for Sysconf): Mention that
9311 _XOPEN_CRYPT is no longer impelemented.
9312
9313 * conform/data/unistd.h-data: Remove crypt function declaration.
9314
9315 2018-06-29 Florian Weimer <fweimer@redhat.com>
9316
9317 [BZ #23351]
9318 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9319 (disallow_malloc_check): Remove variable.
9320 (__malloc_check_init): Adjust.
9321 (malloc_set_state): Update comment.
9322 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9323 declarations.
9324
9325 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9326
9327 [BZ #23140]
9328 * localedata/locales/ast_ES (mon): Rename to...
9329 (alt_mon): This.
9330 (mon): Import from CLDR (genitive case).
9331
9332 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9333 Jakub Sitnicki <jkbs@redhat.com>
9334
9335 [BZ #21812]
9336 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9337 on NLM_F_DUMP_INTR.
9338
9339 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9340
9341 * manual/llio.texi: Remove spurious space.
9342
9343 2018-06-28 Florian Weimer <fweimer@redhat.com>
9344
9345 [BZ #23349]
9346 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9347 _STRUCT_TIMESPEC.
9348
9349 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9350
9351 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9352 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9353 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9354 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9355 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9356 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9357 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9358
9359 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9360
9361 [BZ #23266]
9362 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9363 Copy and null-terminate entries that are not terminated, in
9364 addition to empty ones.
9365
9366 2018-06-27 Florian Weimer <fweimer@redhat.com>
9367
9368 [BZ #18023]
9369 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9370 (extend_alloca_account): Remove.
9371 * manual/stdio.texi (Variable Arguments Output): Update comment.
9372
9373 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9374
9375 * nptl/sockperf.c: Remove file.
9376
9377 2018-06-27 Florian Weimer <fweimer@redhat.com>
9378
9379 [BZ #18023]
9380 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9381 scratch_buffer instead of extend_alloca.
9382
9383 2018-06-27 Florian Weimer <fweimer@redhat.com>
9384
9385 [BZ #18023]
9386 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9387 scratch_buffer instead of extend_alloca. Update comments.
9388
9389 2018-06-27 Florian Weimer <fweimer@redhat.com>
9390
9391 [BZ #18023]
9392 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9393 instead of extend_alloca.
9394
9395 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9396
9397 [BZ #13888]
9398 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9399 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9400 /tmp.
9401 * scripts/test-installation.pl: Put temporary files in build
9402 directory, not /tmp.
9403 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9404 (CFLAGS-bug4.c): Likewise.
9405 (CFLAGS-bug5.c): Likewise.
9406 (CFLAGS-test-fseek.c): Likewise.
9407 (CFLAGS-test-popen.c): Likewise.
9408 (CFLAGS-test_rdwr.c): Likewise.
9409 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9410 /tmp.
9411 * stdio-common/bug4.c (main): Likewise.
9412 * stdio-common/bug5.c (main): Likewise.
9413 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9414 * stdio-common/test-popen.c (do_test): Likewise.
9415 * stdio-common/test_rdwr.c (main): Likewise.
9416
9417 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9418
9419 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9420 (sem_open): Set sem.newsem.pad to zero for valgrind.
9421
9422 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9423
9424 [BZ #20251]
9425 * NEWS: Mention fcntl64 addition.
9426 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9427 * login/utmp_file.c: Likewise.
9428 * sysdeps/posix/fdopendir.c: Likewise.
9429 * sysdeps/posix/opendir.c: Likewise.
9430 * sysdeps/unix/pt-fcntl.c: Likewise.
9431 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9432 __fcntl64_nocancel_adjusted): New prototype.
9433 (__fcntl_nocancel_adjusted): Remove prototype.
9434 * io/Makefile (routines): Add fcntl64.
9435 (CFLAGS-fcntl64.c): New rule.
9436 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9437 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9438 * io/fcntl.h (fcntl64): Add prototype and redirect if
9439 __USE_FILE_OFFSET64 is defined.
9440 * io/fcntl64.c: New file.
9441 * manual/llio.text: Add a note for which commands fcntl acts a
9442 cancellation point.
9443 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9444 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9445 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9446 New symbols.
9447 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9448 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9449 non-LFS case.
9450 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9451 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9452 to __fcntl64_nocancel.
9453 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9454 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9455 to __fcntl64_nocancel.
9456 * sysdeps/generic/not-cancel.h: Likewise.
9457 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9458 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9459 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9460 (fcntl64): New symbol.
9461 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9462 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9463 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9466 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9467 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9468 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9469 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9472 fcntl64): Likewise.
9473 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9474 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9475 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9476 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9477 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9479 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9480 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9481 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9483 Likewise.
9484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9485 Likewise.
9486 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9487 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9488 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9489
9490 2018-06-26 Florian Weimer <fweimer@redhat.com>
9491
9492 Run thread shutdown functions in an explicit order.
9493 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9494 definition.
9495 (__libc_thread_freeres): Call thread shutdown functions
9496 explicitly.
9497 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9498 * include/string.h (__strerror_thread_freeres): Declare.
9499 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9500 arena_thread_freeres. No longer static. Remove thread shutdown
9501 hook registration.
9502 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9503 Declare.
9504 * resolv/res-close.c (__res_thread_freeres): Renamed from
9505 res_thread_freeres. No longer static. Remove thread shutdown
9506 hook registration.
9507 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9508 * resolv/resolv_conf.c (freeres): Remove incorrect section
9509 attribute and use libc_freeres_fn.
9510 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9511 strerror_thread_freeres. No longer static. Remove thread
9512 shutdown hook registration.
9513 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9514 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9515 shutdown hook registration.
9516 * Makerules (shlib.lds): Do not provide section boundary symbols
9517 for __libc_thread_subfreeres.
9518 * manual/memory.texi (Basic Allocation): Update comment.
9519
9520 2018-06-26 Florian Weimer <fweimer@redhat.com>
9521
9522 Remove always-defined _RPC_THREAD_SAFE_ macro.
9523 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9524 Do not define _RPC_THREAD_SAFE_.
9525 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9526 conditional.
9527 * sunrpc/clnt_perr.c: Likewise.
9528 * sunrpc/clnt_raw.c: Likewise.
9529 * sunrpc/clnt_simp.c: Likewise.
9530 * sunrpc/key_call.c: Likewise.
9531 * sunrpc/rpc_common.c: Likewise.
9532 * sunrpc/rpc_main.c: Likewise.
9533 * sunrpc/rpc_thread.c: Likewise.
9534 * sunrpc/svc.c: Likewise.
9535 * sunrpc/svc_raw.c: Likewise.
9536 * sunrpc/svc_simple.c: Likewise.
9537 * sumrpc/svcauth_des.c: Likewise.
9538
9539 2018-06-26 Florian Weimer <fweimer@redhat.com>
9540
9541 * libio/Makefile (tests-internal): Add tst-vtables,
9542 tst-vtables-interposed.
9543 * libio/tst-vtables.c: New file.
9544 * libio/tst-vtables-common.c: Likewise.
9545 * libio/tst-vtables-interposed.c: Likewise.
9546
9547 2018-06-26 Florian Weimer <fweimer@redhat.com>
9548
9549 * support/support_test_main.c (support_test_main): Only call
9550 setvbuf if not disables.
9551 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9552 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9553
9554 2018-06-26 Florian Weimer <fweimer@redhat.com>
9555
9556 [BZ #23313]
9557 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9558
9559 2018-06-25 Florian Weimer <fweimer@redhat.com>
9560
9561 [BZ #18023]
9562 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9563 Use struct scratch_buffer instead of extend_alloca.
9564
9565 2018-06-25 Florian Weimer <fweimer@redhat.com>
9566
9567 [BZ #18023]
9568 * nss/getent.c (initgroups_keys): Use dynarray instead of
9569 extend_alloca.
9570
9571 2018-06-25 Florian Weimer <fweimer@redhat.com>
9572
9573 [BZ #18023]
9574 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9575 Use struct scratch_buffer instead of extend_alloca.
9576
9577 2018-06-25 Florian Weimer <fweimer@redhat.com>
9578
9579 [BZ #18023]
9580 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9581 back to malloc directly, without stack allocations.
9582
9583 2018-06-25 Florian Weimer <fweimer@redhat.com>
9584
9585 [BZ #18023]
9586 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9587 of extend_alloca.
9588
9589 2018-06-25 Florian Weimer <fweimer@redhat.com>
9590
9591 [BZ #18023]
9592 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9593 of extend_alloca.
9594 * nscd/hstcache.c (addhstbyX): Likewise.
9595 * nscd/pwdcache.c (addpwbyX): Likewise.
9596 * nscd/servicescache.c (addservbyX): Likewise.
9597
9598 2018-06-25 Florian Weimer <fweimer@redhat.com>
9599
9600 [BZ #18023]
9601 * nscd/connections.c (read_cmdline): New function.
9602 (restart): Use it. Update comment.
9603
9604 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9605
9606 [BZ #23140]
9607 * localedata/locales/csb_PL (mon): Rename to...
9608 (alt_mon): This.
9609 (abmon): Rename to...
9610 (ab_alt_mon): This.
9611 (mon): Add with proper genitive forms, copy from Wikipedia.
9612 (abmon): Likewise.
9613
9614 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9615
9616 [BZ #19485]
9617 * localedata/locales/csb_PL (mon): Fix typos:
9618 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9619 (yesstr): Add, value is "jo".
9620 (nostr): Add, value is "nié".
9621
9622 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9623
9624 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9625 all log1p and significand functions on m680x0.
9626 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9627 of s_significand.c..
9628 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9629 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9630 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9631 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9632 s_log1p.c and include it..
9633
9634 2018-06-21 Vincent Chen <vincentc@andestech.com>
9635
9636 * elf/elf.h (R_NDS32_NONE): New define.
9637 (R_NDS32_32_RELA): Likewise.
9638 (R_NDS32_COPY): Likewise.
9639 (R_NDS32_GLOB_DAT): Likewise.
9640 (R_NDS32_JUMP_SLOT): Likewise.
9641 (R_NDS32_RELATIVE): Likewise.
9642 (R_NDS32_TLS_TPOFF): Likewise.
9643 (R_NDS32_TLS_DESC): Likewise.
9644
9645 2018-06-21 Mark Wielaard <mark@klomp.org>
9646
9647 * elf/elf.h (R_BPF_MAP_FD): Removed.
9648 (R_BPF_64_64, R_BPF_64_32): New.
9649
9650 2018-06-21 Florian Weimer <fweimer@redhat.com>
9651
9652 [BZ #23253]
9653 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9654 Renamed from libc_feholdsetround_ctx.
9655 (default_libc_feresetround_ctx): Renamed from
9656 libc_feresetround_ctx.
9657 (default_libc_feholdsetround_noex_ctx): Renamed from
9658 libc_feholdsetround_noex_ctx.
9659 (default_libc_feresetround_noex_ctx): Renamed from
9660 libc_feresetround_noex_ctx.
9661 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9662 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9663 forwardning to the old implementations under the new names.
9664 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9665 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9666 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9667 (libc_feresetround_ctx): Forward to default implements for i386
9668 and MATH_SET_BOTH_ROUNDING_MODES.
9669 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9670 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9671
9672 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9673
9674 * string/tst-cmp.c: Include <libc-diag.h>.
9675 (strncmp_max): Disable -Wstringop-overflow= around call to
9676 strncmp.
9677 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9678 strncasecmp.
9679
9680 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9681 (main): Disable -Wunused-value around call to strpbrk.
9682 * string/bug-strspn1.c: Include <libc-diag.h>.
9683 (main): Disable -Wunused-value around call to strspn.
9684
9685 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9686 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9687
9688 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9689 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9690
9691 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9692
9693 * math/Makefile (libm-calls): Move s_significandF to...
9694 (gen-libm-calls): ... here.
9695 * math/s_significand_template.c: New file.
9696 * math/s_significand.c: Removed.
9697 * math/s_significandf.c: Removed.
9698 * math/s_significandl.c: Removed.
9699 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9700 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9701
9702 * math/e_exp2_template.c (declare_mgen_finite_alias,
9703 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9704 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9705 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9706
9707 2018-06-20 Florian Weimer <fweimer@redhat.com>
9708
9709 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9710
9711 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9712
9713 [BZ #23280]
9714 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9715 floating-point number to strtod functions rather than possibly
9716 negating result of those functions.
9717 * stdio-common/tst-scanf-round.c: New file.
9718 * stdio-common/Makefile (tests): Add tst-scanf-round.
9719 ($(objpfx)tst-scanf-round): Depend on $(libm).
9720
9721 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9722
9723 * sysdeps/mach/hurd/localplt.data: Move to...
9724 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9725 R_386_GLOB_DAT like on Linux i386.
9726
9727 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9728
9729 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9730 (SHM_STAT_ANY): New macro.
9731 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9732 (SHM_STAT_ANY): Likewise.
9733 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9734 (SHM_STAT_ANY): Likewise.
9735 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9736 (SHM_STAT_ANY): Likewise.
9737 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9738 (SHM_STAT_ANY): Likewise.
9739 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9740 (SHM_STAT_ANY): Likewise.
9741 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9742 (SHM_STAT_ANY): Likewise.
9743 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9744 (SHM_STAT_ANY): Likewise.
9745 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9746 (SHM_STAT_ANY): Likewise.
9747 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9748 (SHM_STAT_ANY): Likewise.
9749 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9750 (SHM_STAT_ANY): Likewise.
9751 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9752 (SHM_STAT_ANY): Likewise.
9753
9754 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9755 (SEM_STAT_ANY): New macro.
9756 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9757 (SEM_STAT_ANY): Likewise.
9758 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9759 (SEM_STAT_ANY): Likewise.
9760 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9761 (SEM_STAT_ANY): Likewise.
9762 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9763 (SEM_STAT_ANY): Likewise.
9764 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9765 (SEM_STAT_ANY): Likewise.
9766 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9767 (SEM_STAT_ANY): Likewise.
9768 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9769 (SEM_STAT_ANY): Likewise.
9770 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9771 (SEM_STAT_ANY): Likewise.
9772 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9773 (SEM_STAT_ANY): Likewise.
9774
9775 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9776 (MSG_STAT_ANY): New macro.
9777 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9778 (MSG_STAT_ANY): Likewise.
9779 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9780 (MSG_STAT_ANY): Likewise.
9781 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9782 (MSG_STAT_ANY): Likewise.
9783 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9784 (MSG_STAT_ANY): Likewise.
9785 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9786 (MSG_STAT_ANY): Likewise.
9787 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9788 (MSG_STAT_ANY): Likewise.
9789 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9790 (MSG_STAT_ANY): Likewise.
9791 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9792 (MSG_STAT_ANY): Likewise.
9793 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9794 (MSG_STAT_ANY): Likewise.
9795
9796 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9797 (MAP_TYPE): Change value to 0x2b.
9798
9799 2018-06-18 Florian Weimer <fweimer@redhat.com>
9800
9801 [BZ #15722]
9802 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9803 socket with SOCK_CLOEXEC.
9804
9805 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9806
9807 [BZ #23303]
9808 * sysdeps/powerpc/powerpc64/le/Makefile
9809 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9810 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9811 (gnulib-tests): Also add $(f128-loader-link) for
9812 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9813
9814 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9815
9816 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9817 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9818 of sendfile.
9819 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9820 (sendfile64): New strong alias.
9821 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9822 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9823 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9824 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9825 attribute.
9826 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9827 ___pthread_get_cleanup_stack.
9828 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9829 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9830 * mach/shortcut.awk: Make syscall stubs include
9831 <mach-shortcuts-hidden.h> and add hidden definition.
9832 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9833 (__mach_msg): Add hidden prototype.
9834 * mach/msg.c: Include <mach.h>.
9835 (__mach_msg): Add hidden definition.
9836 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9837 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9838 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9839 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9840 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9841 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9842 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9843 prototype and definition.
9844 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9845 hidden target for _hurd_self_sigstate.
9846
9847 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9848
9849 [BZ #23007]
9850 * stdlib/tst-strtod-nan-sign-main.c: New file.
9851 * stdlib/tst-strtod-nan-sign.c: Likewise.
9852 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9853 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9854 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9855 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9856 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9857
9858 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9859
9860 [BZ #23007]
9861 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9862 appropriate sign.
9863
9864 2018-06-14 Florian Weimer <fweimer@redhat.com>
9865
9866 [BZ #23290]
9867 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9868 that the result stays within the ISO-8859-1 range.
9869 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9870 characters are defined in IBM273.
9871
9872 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9873
9874 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9875 __mach_task_self): Remove attribute_hidden.
9876
9877 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9878
9879 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9880 ignore -Wrestrict for one test.
9881
9882 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9883 Szabolcs Nagy <szabolcs.nagy@arm.com>
9884
9885 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9886
9887 2018-06-14 Florian Weimer <fweimer@redhat.com>
9888
9889 * scripts/update-abilist.sh: Accept empty list of files to patch.
9890
9891 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9892
9893 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9894 test-xfail-check-abi-libmachuser): Add.
9895 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9896 __libc_read and __libc_write to __read and __write.
9897 * sysdeps/hurd/include/hurd/port.h: New file.
9898 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9899 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9900 __thread_switch, __evc_wait): Move declarations to...
9901 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9902 attribute_hidden.
9903 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9904 use PLT to call _hurd_self_sigstate.
9905
9906 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9907
9908 [BZ #23279]
9909 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9910 MAX_EXP as overflowing.
9911 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
9912 overflow flag.
9913 (round_str): Output also whether result overflows in each rounding
9914 mode.
9915 * stdlib/tst-strtod-round-data: Add more tests.
9916 * stdlib/tst-strtod-round-data.h: Regenerated.
9917 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
9918 (TEST): Handle extra arguments for overflow flags.
9919 (struct test_overflow): New type.
9920 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
9921 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
9922 (test_in_one_mode): Take argument with overflow information.
9923 (do_test): Update calls to test_in_one_mode.
9924
9925 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9926
9927 * elf/dl-load (_dl_dst_substitute): Correct comment.
9928 (_dl_dst_count): Likewise.
9929
9930 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
9931 lll_futex_timed_wait.
9932
9933 2018-06-12 Joseph Myers <joseph@codesourcery.com>
9934
9935 [BZ #23277]
9936 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
9937 attribute.
9938 * math/test-nan-const.c: New file.
9939 * math/Makefile (tests): Add test-nan-const.
9940 (CFLAGS-test-nan-const.c): New variable.
9941
9942 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9943
9944 * benchtests/scripts/compare_strings.py (process_results): Add
9945 funcs argument. Compare only functions which are selected.
9946 (main): Check if base function is among selected functions.
9947 Pass selected functions to process_results.
9948 (__main__): Add -f/--functions argument.
9949
9950 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
9951 Hongbo Zhang <hongbo.zhang@linaro.org>
9952
9953 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
9954 __memcpy_falkor for phecda core.
9955 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
9956 __memmove_falkor for phecda core.
9957 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
9958 __memset_falkor for phecda core.
9959 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
9960 for phecda core.
9961 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
9962 macro to identify phecda core.
9963
9964 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9965 Andreas Schwab <schwab@suse.de>
9966 Dmitry V. Levin <ldv@altlinux.org>
9967 Florian Weimer <fweimer@redhat.com>
9968
9969 [BZ #23102]
9970 [BZ #21942]
9971 [BZ #18018]
9972 [BZ #23259]
9973 CVE-2011-0536
9974 * elf/dl-dst.h: Remove DL_DST_COUNT.
9975 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
9976 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
9977 (is_dst): Comment. Support ELF gABI.
9978 (_dl_dst_count): Comment. Simplify and count DSTs.
9979 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
9980 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
9981 locals.
9982
9983 2018-06-12 Zack Weinberg <zackw@panix.com>
9984
9985 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
9986 * sysdeps/unix/sysv/linux/dl-sysdep.c
9987 Include not-cancel.h. Use __close_nocancel instead of __close,
9988 __open64_nocancel instead of __open, __read_nocancel instead of
9989 __libc_read, and __write_nocancel instead of __libc_write.
9990
9991 * csu/check_fds.c (check_one_fd)
9992 * sysdeps/posix/fdopendir.c (__fdopendir)
9993 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
9994 instead of __fcntl and/or __libc_fcntl.
9995
9996 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
9997 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
9998 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
9999 Use __open64_nocancel instead of __open_nocancel.
10000
10001 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10002 hidden_proto declarations to the end and issue them if either
10003 IS_IN(libc) or IS_IN(rtld).
10004 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10005 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10006 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10007 read_nocancel, waitpid_nocancel, write_nocancel.
10008
10009 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10010 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10011 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10012
10013 * nptl/pt-fcntl.c: New file.
10014 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10015 (libpthread-routines): Add pt-fcntl.
10016 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10017 (__libc_fcntl): Remove attribute_hidden.
10018 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10019 __fcntl_nocancel_adjusted, not fcntl_common.
10020 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10021 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10022 to fcntl_nocancel.c.
10023 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10026 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10027
10028 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10029 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10030 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10031 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10032 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10033 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10034 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10035 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10036 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10037 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10038 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10039 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10040 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10041 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10042 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10043 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10044 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10045 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10046 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10047 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10048
10049 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10050 libpthread-routines.
10051 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10052 defines nothing.
10053
10054 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10055 __libc_read, and __write instead of __libc_write. Define
10056 __open64 in addition to __open.
10057
10058 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10059
10060 [BZ #23250]
10061 [BZ #10686]
10062 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10063 to _private_tm[3] and add __glibc_reserved2.
10064 Add _Static_assert of offset of __private_ss == 0x30.
10065 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10066 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10067
10068 2018-06-12 Florian Weimer <fweimer@redhat.com>
10069
10070 x86: Make strncmp usable from rtld.
10071 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10072 __strncmp_ia32 if in libc (and not in rtld).
10073 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10074 strncmp if not in libc (and not to __strncmp_sse2).
10075
10076 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10077
10078 [BZ #23140]
10079 * localedata/locales/gd_GB (mon): Rename to...
10080 (alt_mon): This.
10081 (mon): Import from CLDR (genitive case).
10082 * localedata/locales/hsb_DE (mon): Rename to...
10083 (alt_mon): This.
10084 (mon): Import from CLDR (genitive case).
10085 * localedata/locales/wa_BE (mon): Rename to...
10086 (alt_mon): This.
10087 (mon): Add, fill with the proper genitive forms, but CLDR data
10088 is incomplete; completed according to the comments in this file.
10089 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10090
10091 * localedata/locales/wa_BE (country_name): Reword
10092 "Beljike" -> "Beldjike".
10093
10094 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10095
10096 [BZ #23272]
10097 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10098 cases of non-finite arguments.
10099 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10100
10101 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10102
10103 [BZ #23174]
10104 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10105
10106 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10107
10108 [BZ #23264]
10109 * include/unistd.h (__execvpex): New prototype.
10110 * posix/Makefile (tests): Add tst-spawn4.
10111 (tests-internal): Add tst-spawn4-compat.
10112 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10113 * posix/tst-spawn4-compat.c: New file.
10114 * posix/tst-spawn4.c: Likewise.
10115 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10116 binaries as shell scripts.
10117 * sysdeps/posix/spawni.c (__spawni): Likewise.
10118
10119 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10120
10121 [BZ #23145]
10122 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10123 ($(all-built-dso:=.dynsym): New target.
10124 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10125 ($(objpfx)check-initfini.out): New target.
10126 (generated): Add check-initfini.out.
10127 * scripts/check-initfini.awk: New file.
10128 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10129 (_fini): Likewise.
10130 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10131 (_fini): Likewise.
10132 * sysdeps/arm/crti.S (_init): Mark as hidden.
10133 (_fini): Likewise.
10134 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10135 (_fini): Likewise.
10136 * sysdeps/i386/crti.S (_init): Mark as hidden.
10137 (_fini): Likewise.
10138 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10139 (_fini): Likewise.
10140 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10141 (_fini): Likewise.
10142 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10143 (_fini): Likewise.
10144 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10145 (_fini): Likewise.
10146 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10147 (_fini): Likewise.
10148 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10149 (_fini): Likewise.
10150 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10151 (_fini): Likewise.
10152 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10153 (_fini): Likewise.
10154 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10155 (_fini): Likewise.
10156 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10157 (_fini): Likewise.
10158 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10159 (_fini): Likewise.
10160 * sysdeps/sh/crti.S (_init): Mark as hidden.
10161 (_fini): Likewise.
10162 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10163 (_fini): Likewise.
10164 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10165 (_fini): Likewise.
10166
10167 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10168
10169 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10170 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10171 and TF redirection to KFtype and KF only when the default
10172 long double type is not the IEEE 128-bit floating point type.
10173
10174 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10175
10176 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10177 macro.
10178 (HWCAP_USCAT): Likewise.
10179 (HWCAP_ILRCPC): Likewise.
10180 (HWCAP_FLAGM): Likewise.
10181 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10182 Increase to 28.
10183 (_dl_aarch64_cap_flags): Add new flag names.
10184
10185 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10186 (MAP_FIXED_NOREPLACE): New macro.
10187 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10188 (MAP_FIXED_NOREPLACE): Likewise.
10189 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10190 (MAP_FIXED_NOREPLACE): Likewise.
10191 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10192 (MAP_FIXED_NOREPLACE): Likewise.
10193 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10194 (MAP_FIXED_NOREPLACE): Likewise.
10195 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10196 (MAP_FIXED_NOREPLACE): Likewise.
10197 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10198 (MAP_FIXED_NOREPLACE): Likewise.
10199 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10200 (MAP_FIXED_NOREPLACE): Likewise.
10201 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10202 (MAP_FIXED_NOREPLACE): Likewise.
10203 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10204 (MAP_FIXED_NOREPLACE): Likewise.
10205 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10206 (MAP_FIXED_NOREPLACE): Likewise.
10207 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10208 (MAP_FIXED_NOREPLACE): Likewise.
10209 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10210 (MAP_FIXED_NOREPLACE): Likewise.
10211 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10212 (MAP_FIXED_NOREPLACE): Likewise.
10213 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10214 (MAP_FIXED_NOREPLACE): Likewise.
10215
10216 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10217 version to 4.17.
10218
10219 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10220
10221 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10222 version to 4.17
10223
10224 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10225
10226 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10227 int.
10228 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10229
10230 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10231
10232 * benchtests/scripts/compare_string.py: (process_results) Catch
10233 exception in non-existent base_func and catch exception in
10234 non-existent attribute.
10235 (parse_file) Catch exception if input file does not exist.
10236
10237 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10238
10239 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10240 options to avoid diff calculation and omit header, respectively.
10241 (main): process --no-diff and --no-header
10242
10243 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10244 H.J. Lu <hongjiu.lu@intel.com>
10245
10246 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10247 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10248 wcsncmp-sse2.
10249 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10250 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10251 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10252 and __wcsncmp_sse2.
10253 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10254 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10255 AVX unaligned load is fast and vzeroupper is preferred.
10256 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10257 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10258 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10259 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10260 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10261 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10262 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10263 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10264 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10265 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10266 is undefined.
10267
10268 2018-06-01 Florian Weimer <fweimer@redhat.com>
10269
10270 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10271 configuring with --disable-multi-arch, building with
10272 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10273 Haswell-era CPU.
10274
10275 2018-06-01 Florian Weimer <fweimer@redhat.com>
10276
10277 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10278 results from building with “-march=x86-64 -mtune=generic
10279 -mfpmath=sse” and running on a Haswell-era CPU.
10280
10281 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10282
10283 [BZ #18473]
10284 * soft-fp/sqrttf2.c: Remove file.
10285 * soft-fp/sqrtdf2.c: Move to ....
10286 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10287 <shlib-compat.h>.
10288 (__sqrtdf2): Make conditional on
10289 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10290 symbol.
10291 * soft-fp/sqrtsf2.c: Move to ....
10292 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10293 <shlib-compat.h>.
10294 (__sqrtsf2): Make conditional on
10295 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10296 symbol.
10297 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10298 (gcc-double-routines): Remove sqrtdf2.
10299 (gcc-quad-routines): Remove sqrttf2.
10300 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10301 Do not filter out sqrtsf2 and sqrtdf2.
10302 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10303 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10304
10305 2018-06-01 Florian Weimer <fweimer@redhat.com>
10306
10307 * sysdeps/generic/libcidn.abilist: Remove file.
10308
10309 2018-06-01 Florian Weimer <fweimer@redhat.com>
10310
10311 [BZ #23236]
10312 * libio/strfile.h (struct _IO_str_fields): Rename members to
10313 discourage their use and add comment.
10314 (_IO_STR_DYNAMIC): Remove unused macro.
10315 * libio/strops.c (_IO_str_init_static_internal): Do not use
10316 callback pointers. Call malloc and free.
10317 (_IO_str_overflow): Do not use callback pointers. Call malloc
10318 and free.
10319 (enlarge_userbuf): Likewise.
10320 (_IO_str_finish): Call free.
10321 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10322 _allocate_buffer_unused.
10323 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10324 and free.
10325 (enlarge_userbuf): Likewise.
10326 (_IO_wstr_finish): Call free.
10327 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10328 _allocate_buffer_unused, _free_buffer_unused.
10329 * libio/memstream.c (__open_memstream): Likewise.
10330 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10331 * libio/wmemstream.c (open_wmemstream): Likewise.
10332
10333 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10334
10335 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10336 AMD Ryzen 7 1800X.
10337
10338 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10339
10340 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10341 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10342 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10343 New file.
10344 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10345 Likewise.
10346 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10347
10348 2018-05-29 Florian Weimer <fweimer@redhat.com>
10349
10350 * support/Makefile (libsupport-routines): Add
10351 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10352 xpthread_barrierattr_setpshared.
10353 * support/xpthread_barrierattr_destroy.c: New file.
10354 * support/xpthread_barrierattr_init.c: Likewise.
10355 * support/xpthread_barrierattr_setpshared.c: Likewise.
10356
10357 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10358
10359 [BZ #23206]
10360 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10361 _r_debug and update DT_DEBUG for debugger.
10362
10363 2018-05-29 Florian Weimer <fweimer@redhat.com>
10364
10365 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10366 (tst-strtod5i.out): Likewise.
10367
10368 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10369
10370 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10371 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10372 (sparc64-quad-routines): New variable. Moved from ....
10373 [$(subdir) = soft-fp] (sysdep_routines): Add
10374 $(sparc64-quad-routines). Moved from ....
10375 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10376 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10377 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10378 moved from ....
10379 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10380 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10381 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10382 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10383 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10384 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10385 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10386 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10387 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10388 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10389 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10390 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10391 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10392 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10393 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10394 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10395 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10396 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10397 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10398 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10399 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10400 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10401 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10402 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10403 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10404 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10405 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10406 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10407 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10408 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10409 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10410 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10411 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10412 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10413 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10414 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10415 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10416 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10417 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10418 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10419 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10420 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10421 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10422 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10423 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10424 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10425 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10426 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10427 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10428 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10429 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10430 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10431 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10432 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10433 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10434 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10435 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10436 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10437
10438 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10439 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10440 (sparc32-quad-routines): New variable. Moved from ....
10441 [$(subdir) = soft-fp] (sysdep_routines): Add
10442 $(sparc32-quad-routines). Moved from ....
10443 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10444 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10445 moved from ....
10446 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10447 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10448 * sysdeps/sparc/sparc32/q_add.c: ... here.
10449 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10450 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10451 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10452 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10453 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10454 * sysdeps/sparc/sparc32/q_div.c: ... here.
10455 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10456 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10457 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10458 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10459 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10460 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10461 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10462 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10463 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10464 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10465 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10466 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10467 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10468 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10469 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10470 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10471 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10472 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10473 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10474 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10475 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10476 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10477 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10478 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10479 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10480 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10481 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10482 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10483 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10484 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10485 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10486 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10487 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10488 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10489 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10490 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10491 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10492 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10493 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10494 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10495 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10496 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10497 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10498 * sysdeps/sparc/sparc32/q_util.c: ... here.
10499 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10500 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10501 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10502 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10503
10504 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10505 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10506
10507 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10508 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10509 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10510 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10511
10512 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10513
10514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10515 powerpc/soft-fp.
10516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10517 Likewise.
10518 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10519 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10520
10521 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10522
10523 [BZ #23171]
10524 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10525 double version.
10526
10527 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10528
10529 * sysdeps/sh/Implies: Remove sh/soft-fp.
10530 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10531 * sysdeps/sh/sfp-machine.h: ... here.
10532
10533 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10534
10535 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10536 (__mempcpy_erms): Skip zero length.
10537 (__memmove_erms): Likewise.
10538 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10539 (__memset_erms): Likewise.
10540
10541 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10542
10543 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10544 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10545 Add functions moved from ....
10546 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10547 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10548 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10549 from ....
10550 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10551 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10552 * sysdeps/alpha/e_sqrtl.c: ... here.
10553 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10554 * sysdeps/alpha/local-soft-fp.h: ... here.
10555 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10556 * sysdeps/alpha/ots_add.c: ... here.
10557 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10558 * sysdeps/alpha/ots_cmp.c: ... here.
10559 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10560 * sysdeps/alpha/ots_cmpe.c: ... here.
10561 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10562 * sysdeps/alpha/ots_cvtqux.c: ... here.
10563 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10564 * sysdeps/alpha/ots_cvtqx.c: ... here.
10565 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10566 * sysdeps/alpha/ots_cvttx.c: ... here.
10567 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10568 * sysdeps/alpha/ots_cvtxq.c: ... here.
10569 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10570 * sysdeps/alpha/ots_cvtxt.c: ... here.
10571 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10572 * sysdeps/alpha/ots_div.c: ... here.
10573 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10574 * sysdeps/alpha/ots_mul.c: ... here.
10575 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10576 * sysdeps/alpha/ots_nintxq.c: ... here.
10577 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10578 * sysdeps/alpha/ots_sub.c: ... here.
10579 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10580 * sysdeps/alpha/sfp-machine.h: ... here.
10581
10582 2018-05-23 Florian Weimer <fweimer@redhat.com>
10583
10584 [BZ #19728]
10585 [BZ #19729]
10586 [BZ #22247]
10587 CVE-2016-6261
10588 CVE-2016-6263
10589 CVE-2017-14062
10590 Switch to extern IDNA implementation (libidn2).
10591 * libidn: Remove subdirectory.
10592 * LICENSES: Do not mention licensing conditions for the removed
10593 libidn code.
10594 * config.h.in (HAVE_LIBIDN): Remove.
10595 * include/dlfcn.h (__libc_dlopen): Update comment.
10596 * include/idna.h: Remove file.
10597 * inet/Makefile (routines): Add idna.
10598 (tests-static, tests-internal): Add tst-idna_name_classify.
10599 (LOCALES): Generate locales for tests.
10600 (tst-idna_name_classify.out): Depend on generated locales.
10601 * inet/idna_name_classify.c: New file.
10602 * inet/tst-idna_name_classify.c: Likewise.
10603 * inet/net-internal.h (__idna_to_dns_encoding)
10604 (__idna_from_dns_encoding): Declare.
10605 * inet/net-internal.h (enum idna_name_classification): Define.
10606 (__idna_name_classify): Declare.
10607 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10608 __idna_from_dns_encoding.
10609 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10610 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10611 name as a fallback in case of encoding errors.
10612 (getnameinfo): Use DEPRECATED_NI_IDN.
10613 * inet/idna.c: New file.
10614 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10615 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10616 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10617 (modules-names): Add tst-no-libidn2.
10618 (extra-test-objs): Add tst-no-libidn2.os.
10619 (LDFLAGS-tst-no-libidn2.so): Set soname.
10620 (LOCALES): Set, and generate locales.
10621 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10622 (tst-resolv-ai_idn-latin1): Likewise.
10623 (tst-resolv-ai_idn-nolibidn2): Likewise.
10624 (tst-resolv-ai_idn.out): Depend on locales.
10625 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10626 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10627 tst-no-libidn2.so.
10628 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10629 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10630 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10631 * resolv/tst-resolv-ai_idn.c: New file.
10632 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10633 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10634 * resolv/tst-no-libidn2.c: Likewise.
10635 * support/support_format_addrinfo.c (format_ai_flags): Do not
10636 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10637 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10638 (gaih_inet): Call __idna_to_dns_encoding and
10639 __idna_from_dns_encoding, and use the original (punycode) name if
10640 __idna_from_dns_encoding fails due to an encoding error.
10641 (getaddrinfo): Use DEPRECATED_AI_IDN.
10642 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10643 * sysdeps/unix/inet/configure: Remove file.
10644 * sysdeps/unix/inet/configure.ac: Likewise.
10645
10646 2018-05-23 Florian Weimer <fweimer@redhat.com>
10647
10648 Implement allocate_once.
10649 * include/allocate_once.h: New file.
10650 * misc/allocate_once.c: Likewise.
10651 * misc/tst-allocate_once.c: Likewise.
10652 * misc/Makefile (routines): Add allocate_once.
10653 (tests-internal): Add tst-allocate_once.
10654 (generated): Add tst-allocate_once.mtrace,
10655 tst-allocate_once-mem.out.
10656 (tests-special): Add tst-allocate_once-mem.out.
10657 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10658 (tst-allocate_once-mem.out): Call mtrace.
10659 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10660
10661 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10662
10663 [BZ #23196]
10664 * string/test-memcpy.c (do_test1): New function.
10665 (test_main): Call it.
10666
10667 2018-05-23 Andreas Schwab <schwab@suse.de>
10668
10669 [BZ #23196]
10670 CVE-2018-11237
10671 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10672 (L(preloop_large)): Save initial destination pointer in %r11 and
10673 use it instead of %rax after the loop.
10674 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10675
10676 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10677
10678 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10679 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10680 -I../soft-fp. Moved from ....
10681 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10682 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10683 * sysdeps/aarch64/e_sqrtl.c: ... here.
10684 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10685 * sysdeps/aarch64/sfp-machine.h: ... here.
10686
10687 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10688 -Wmaybe-uninitialized around access to fq[0].
10689 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10690 Likewise.
10691
10692 [BZ #18471]
10693 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10694 aliases for non-libc case of versioned symbols.
10695 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10696 (llseek): Define as compat symbol if
10697 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10698 with link warning.
10699 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10700 Make into a compat symbol, disabled for minimum symbol version
10701 GLIBC_2.28 and later.
10702 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10703
10704 2018-05-22 Florian Weimer <fweimer@redhat.com>
10705
10706 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10707 not add -mpreferred-stack-boundary=4.
10708 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10709 (stack-align-test-flags): Likewise.
10710 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10711 Likewise.
10712 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10713 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10714 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10715 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10716 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10717 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10718 (CFLAGS-tst-align2.c): Likewise.
10719
10720 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10721
10722 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10723 (index_arch_Prefer_FSRM): Likewise.
10724 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10725 Also check Prefer_FSRM.
10726 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10727 Also return OPTIMIZE (erms) for Prefer_FSRM.
10728
10729 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10730
10731 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10732 (index_cpu_FSRM): Likewise.
10733 (reg_FSRM): Likewise.
10734
10735 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10736
10737 * math/gen-tgmath-tests.py: Import sys.
10738 (Tests.__init__): Initialize macros_seen.
10739 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10740 if requested to do so for this macro.
10741 (Tests.add_all_tests): Take argument for macro for which to
10742 generate tests.
10743 (Tests.check_macro_list): New function.
10744 (main): Handle check-list argument and argument specifying macro
10745 for which to generate tests.
10746 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10747 [PYTHON] (tgmath3-macro-tests): Likewise.
10748 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10749 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10750 not test-tgmath3.c.
10751 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10752 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10753 to CFLAGS.
10754 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10755 [PYTHON] ($(foreach
10756 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10757 rule.
10758 [PYTHON] (tests-special): Add
10759 $(objpfx)test-tgmath3-macro-list.out.
10760 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10761
10762 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10763 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10764 later.
10765
10766 [BZ #22639]
10767 * time/tzset.c (SECSPERDAY): Cast to time_t.
10768 * time/tst-y2039.c: New file.
10769 * time/Makefile (tests): Add tst-y2039.
10770
10771 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10772
10773 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10774 (PREFETCH_ONE_SET): Remove duplicate line.
10775
10776 2018-05-17 Florian Weimer <fweimer@redhat.com>
10777
10778 * sysdeps/generic/math-type-macros-double.h: Include
10779 <math-nan-payload-double.h> after <libm-alias-double.h>.
10780 * sysdeps/generic/math-type-macros-float.h: Include
10781 <math-nan-payload-float.h> after <libm-alias-float.h>.
10782 * sysdeps/generic/math-type-macros-float128.h: Include
10783 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10784 * sysdeps/generic/math-type-macros-ldouble.h: Include
10785 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10786
10787 2018-05-17 Andreas Schwab <schwab@suse.de>
10788
10789 * resolv/res_send.c (__res_context_send): Don't set errno when
10790 returing error after malloc failure.
10791
10792 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10793
10794 * nptl/allocatestack.c (allocate_stack): Remove the
10795 !__ASSUME_PRIVATE_FUTEX paths.
10796 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10797 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10798 Likewise.
10799 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10800 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10801 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10802 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10803 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10804 !__ASSUME_PRIVATE_FUTEX path.
10805 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10806 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10807 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10808 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10809 !__ASSUME_PRIVATE_FUTEX macros.
10810 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10811 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10812 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10813 * sysdeps/unix/sysv/linux/kernel-features.h
10814 (__ASSUME_PRIVATE_FUTEX): Removed.
10815
10816 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10817
10818 * math/Makefile (libm-narrow-fns): Add div.
10819 (libm-test-funcs-narrow): Likewise.
10820 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10821 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10822 * math/gen-auto-libm-tests.c (test_functions): Add div.
10823 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10824 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10825 (NARROW_DIV_TRIVIAL): Likewise.
10826 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10827 macro.
10828 (__ddivl): Likewise.
10829 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10830 ddiv.
10831 (CFLAGS-nldbl-ddiv.c): New variable.
10832 (CFLAGS-nldbl-fdiv.c): Likewise.
10833 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10834 __nldbl_ddivl.
10835 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10836 prototype.
10837 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10838 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10839 * math/auto-libm-test-in: Add tests of div.
10840 * math/auto-libm-test-out-narrow-div: New generated file.
10841 * math/libm-test-narrow-div.inc: New file.
10842 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10843 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10844 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10845 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10846 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10847 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10848 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10849 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10850 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10851 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10852 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10853 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10854 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10855 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10856 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10857 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10858 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10859 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10860 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10861 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10862 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10863 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10864 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10865 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10866 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10867 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10868 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10869 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10870 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10871 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10872 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10873 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10878 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10879 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10880 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10881 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10882 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10883 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10884 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10885 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10886
10887 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10888
10889 [BZ #23178]
10890 * nscd/nscd-client.h (sendfileall): Remove prototype.
10891 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10892 (handle_request): Use writeall instead of sendfileall.
10893 * nscd/aicache.c (addhstaiX): Likewise.
10894 * nscd/grpcache.c (cache_addgr): Likewise.
10895 * nscd/hstcache.c (cache_addhst): Likewise.
10896 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10897 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10898 * nscd/pwdcache.c (cache_addpw): Likewise.
10899 * nscd/servicescache.c (cache_addserv): Likewise.
10900 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10901 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10902 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10903 Remove define.
10904
10905 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10906
10907 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10908 Include <string/strncat.c>.
10909 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10910 alias.
10911 (__GI___strncat): New hidden alias.
10912
10913 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10914
10915 * sysdeps/mips/mips32/libm-test-ulps: Update.
10916 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10917
10918 2018-05-16 Florian Weimer <fweimer@redhat.com>
10919
10920 * support/Makefile (libsupport-routines): Add support_quote_blob,
10921 support_test_compare_blob.
10922 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
10923 * support/check.h (TEST_COMPARE_BLOB): Define.
10924 (support_test_compare_blob): Declare.
10925 * support/support.h (support_quote_blob): Declare.
10926 * support/support_quote_blob.c: New file.
10927 * support/support_test_compare_blob.c: Likewise.
10928 * support/tst-support_quote_blob.c: Likewise.
10929 * support/tst-test_compare_blob.c: Likewise.
10930
10931 2018-05-16 Florian Weimer <fweimer@redhat.com>
10932
10933 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
10934 of <strtod_nan_double.h>.
10935 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
10936 instead of SET_MANTISSA.
10937 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
10938 of include <strtod_nan_float.h>.
10939 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
10940 instead of <strtod_nan_ldouble.h>.
10941 * stdlib/strtod_nan_double.h: Move to ...
10942 * sysdeps/generic/math-nan-payload-double.h: ... here.
10943 (FLOAT): Remove definition.
10944 (SET_MANTISSA): Rename to ...
10945 (SET_NAN_PAYLOAD): ... this.
10946 * stdlib/strtod_nan_float.h: Move to ...
10947 * sysdeps/generic/math-nan-payload-float.h: ... here.
10948 (FLOAT): Remove definition.
10949 (SET_MANTISSA): Rename to ...
10950 (SET_NAN_PAYLOAD): ... this.
10951 * sysdeps/generic/math-type-macros-double.h: Include
10952 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
10953 instead of <math-svid-compat.h>.
10954 * sysdeps/generic/math-type-macros-float.h: Include
10955 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
10956 instead of <math-svid-compat.h>.
10957 * sysdeps/generic/math-type-macros-float128.h: Include
10958 <math-nan-payload-float128.h>.
10959 * sysdeps/generic/math-type-macros-ldouble.h: Include
10960 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
10961 instead of <math-svid-compat.h>.
10962 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
10963 check for definition.
10964 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
10965 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
10966 Include <ieee754_float128.h>.
10967 (FLOAT): Remove definition.
10968 (SET_MANTISSA): Rename to ...
10969 (SET_NAN_PAYLOAD): ... this.
10970 * sysdeps/ieee754/float128/strtof128_nan.c: Include
10971 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
10972 Do not include <float128_private.h>.
10973 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
10974 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
10975 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
10976 (FLOAT): Remove definition.
10977 (SET_MANTISSA): Rename to ...
10978 (SET_NAN_PAYLOAD): ... this.
10979 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
10980 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
10981 (FLOAT): Remove definition.
10982 (SET_MANTISSA): Rename to ...
10983 (SET_NAN_PAYLOAD): ... this.
10984 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
10985 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
10986 (FLOAT): Remove definition.
10987 (SET_MANTISSA): Rename to ...
10988 (SET_NAN_PAYLOAD): ... this.
10989 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
10990 of "../stdlib/strtod_nan_double.h".
10991 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
10992 of "../stdlib/strtod_nan_float.h".
10993 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
10994 instead of "../stdlib/strtod_nan_ldouble.h".
10995 * manual/arith.texi (Parsing of Floats): Adjust comment.
10996
10997 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10998
10999 * math/Makefile (libm-narrow-fns): Add mul.
11000 (libm-test-funcs-narrow): Likewise.
11001 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11002 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11003 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11004 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11005 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11006 (NARROW_MUL_TRIVIAL): Likewise.
11007 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11008 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11009 macro.
11010 (__dmull): Likewise.
11011 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11012 dmul.
11013 (CFLAGS-nldbl-dmul.c): New variable.
11014 (CFLAGS-nldbl-fmul.c): Likewise.
11015 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11016 __nldbl_dmull.
11017 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11018 prototype.
11019 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11020 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11021 * math/auto-libm-test-in: Add tests of mul.
11022 * math/auto-libm-test-out-narrow-mul: New generated file.
11023 * math/libm-test-narrow-mul.inc: New file.
11024 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11025 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11026 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11027 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11028 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11029 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11030 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11031 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11032 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11033 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11034 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11035 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11036 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11037 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11038 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11039 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11040 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11041 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11042 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11043 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11044 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11045 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11046 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11047 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11048 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11049 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11050 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11051 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11052 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11053 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11054 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11055 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11060 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11061 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11068
11069 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11070
11071 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11072 with *%eax in call.
11073
11074 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11075
11076 * sysdeps/i386/ldsodefs.h: Removed.
11077 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11078 * sysdeps/x86/ldsodefs.h: This.
11079 (La_i86_regs): New.
11080 (La_i86_retval): Likewise.
11081 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11082 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11083
11084 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11085
11086 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11087 unnecessary testl.
11088
11089 2018-05-13 Alan Modra <amodra@gmail.com>
11090
11091 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11092 R_PARISC_TLS_DTPOFF32 reloc addend.
11093
11094 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11095
11096 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11097 * math/math.h: Restrict the prototype definition for the functions
11098 issignaling(_Float128) and iszero(_Float128); and template
11099 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11100 __HAVE_FLOAT128_UNLIKE_LDBL.
11101 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11102 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11103 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11104 __f128() constants; define the type _Float128 as long double;
11105 and reuse long double in __CFLOAT128.
11106
11107 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11108
11109 * sysdeps/generic/math_private.h: Do not include
11110 <math-barriers.h>.
11111 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11112 <math_private.h>.
11113 * math/fromfp.h: Include <math-barriers.h>.
11114 * math/math-narrow.h: Likewise.
11115 * math/s_nextafter.c: Likewise.
11116 * math/s_nexttowardf.c: Likewise.
11117 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11118 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11119 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11120 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11121 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11122 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11123 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11124 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11125 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11126 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11127 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11128 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11129 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11130 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11131 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11132 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11133 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11134 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11135 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11136 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11137 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11138 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11139 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11140 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11141 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11142 * sysdeps/ieee754/k_standardl.c: Likewise.
11143 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11144 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11145 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11146 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11147 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11148 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11149 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11150 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11151 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11152 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11153 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11154 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11155 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11156 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11157 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11158 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11159 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11160 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11161 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11162 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11163 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11164 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11165
11166 2018-05-11 Florian Weimer <fweimer@redhat.com>
11167
11168 Use 64-bit epoch values in the time zone file parser.
11169 * include/time.h (internal_time_t): Define.
11170 (__tzfile_compute): Use it.
11171 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11172 member.
11173 (transitions): Switch to internal_time_t.
11174 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11175 types.
11176 (__tzfile_compute): Use internal_time_t for timer argument. Check
11177 for truncation before calling __offtime.
11178
11179 2018-05-11 Florian Weimer <fweimer@redhat.com>
11180
11181 [BZ #23166]
11182 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11183 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11184 Likewise.
11185 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11186 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11187 export without --enable-obsolete-rpc.
11188 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11189 symbol. This should not have been exported, ever.
11190
11191 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11192
11193 [BZ #23152]
11194 * localedata/locales/gd_GB (abmon): Fix typo in May:
11195 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11196
11197 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11198
11199 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11200 Use multiple registers to copy data in loop tail.
11201
11202 * sysdeps/aarch64/multiarch/memmove_falkor.S
11203 (__memmove_falkor): Use multiple registers to move data in
11204 loop tail.
11205
11206 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11207
11208 * math/math-underflow.h: New file.
11209 * sysdeps/generic/math_private.h: Do not include <float.h>.
11210 (fabs_tg): Remove macro. Moved to math-underflow.h.
11211 (min_of_type_f): Likewise.
11212 (min_of_type_): Likewise.
11213 (min_of_type_l): Likewise.
11214 (min_of_type_f128): Likewise.
11215 (min_of_type): Likewise.
11216 (math_check_force_underflow): Likewise.
11217 (math_check_force_underflow_nonneg): Likewise.
11218 (math_check_force_underflow_complex): Likewise.
11219 * math/e_exp2_template.c: Include <math-underflow.h>.
11220 * math/k_casinh_template.c: Likewise.
11221 * math/s_catan_template.c: Likewise.
11222 * math/s_catanh_template.c: Likewise.
11223 * math/s_ccosh_template.c: Likewise.
11224 * math/s_cexp_template.c: Likewise.
11225 * math/s_clog10_template.c: Likewise.
11226 * math/s_clog_template.c: Likewise.
11227 * math/s_csin_template.c: Likewise.
11228 * math/s_csinh_template.c: Likewise.
11229 * math/s_csqrt_template.c: Likewise.
11230 * math/s_ctan_template.c: Likewise.
11231 * math/s_ctanh_template.c: Likewise.
11232 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11233 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11234 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11235 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11236 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11237 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11238 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11239 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11240 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11241 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11242 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11243 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11244 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11245 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11246 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11247 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11248 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11249 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11250 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11251 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11252 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11253 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11254 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11255 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11256 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11257 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11258 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11259 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11260 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11261 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11262 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11263 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11264 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11265 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11266 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11267 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11268 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11269 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11270 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11271 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11272 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11273 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11274 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11275 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11276 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11277 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11278 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11279 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11280 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11281 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11282 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11283 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11284 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11285 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11286 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11287 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11288 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11289 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11290 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11291 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11292 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11293 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11294 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11295 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11296 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11297 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11298 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11299 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11300 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11301 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11302 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11303 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11304 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11305 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11306 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11307 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11308 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11309 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11310 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11311 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11312 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11313 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11314 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11315 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11316
11317 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11318
11319 * sysdeps/generic/math-barriers.h: New file.
11320 * sysdeps/generic/math_private.h [!math_opt_barrier]
11321 (math_opt_barrier): Move to math-barriers.h.
11322 [!math_opt_barrier] (math_force_eval): Likewise.
11323 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11324 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11325 math-barriers.h.
11326 (math_force_eval): Likewise.
11327 * sysdeps/alpha/fpu/math-barriers.h: New file.
11328 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11329 math-barriers.h.
11330 (math_force_eval): Likewise.
11331 * sysdeps/x86/fpu/math-barriers.h: New file.
11332 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11333 math-barriers.h.
11334 (math_force_eval): Likewise.
11335 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11336 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11337 multiple-include guard for rename.
11338 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11339 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11340 math-barriers.h.
11341 (math_force_eval): Likewise.
11342
11343 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11344
11345 [BZ #22786]
11346 CVE-2018-11236
11347 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11348 computation.
11349 * stdlib/Makefile (test-bz22786): New test.
11350 * stdlib/test-bz22786.c: New test.
11351
11352 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11353
11354 * include/math-narrow-eval.h: New file. Contents moved from ....
11355 * sysdeps/generic/math_private.h: ... here.
11356 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11357 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11358 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11359 * stdlib/strtod_l.c: Likewise.
11360 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11361 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11362 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11363 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11364 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11365 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11366 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11367 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11368 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11369 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11370 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11371 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11372 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11373 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11374 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11375 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11376 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11377 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11378 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11379 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11380 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11381 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11382 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11383 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11384 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11385 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11386 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11387 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11388 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11389
11390 2018-05-08 Andreas Schwab <schwab@suse.de>
11391
11392 * sysdeps/nptl/internaltypes.h: Fix comment.
11393
11394 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11395
11396 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11397 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11398 hidden.
11399
11400 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11401
11402 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11403 of I into loop header.
11404 * benchtests/bench-memmove-walk.c
11405 (test_main): Likewise.
11406
11407 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11408
11409 Revert:
11410 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11411 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11412
11413 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11414
11415 [BZ #20419]
11416 * elf/dl-load.c (open_verify): Fix stack overflow.
11417 * elf/Makefile (tst-big-note): New test.
11418 * elf/tst-big-note-lib.S: New.
11419 * elf/tst-big-note.c: New.
11420
11421 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11422
11423 * scripts/abilist.awk: Ignore absolute symbols.
11424 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11425 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11426 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11427 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11428 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11429 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11430 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11431 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11432 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11433 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11434 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11435 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11436 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11437 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11438 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11439 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11440 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11441 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11442 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11443 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11444 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11445 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11446 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11447 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11448 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11449 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11450 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11457 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11458 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11459 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11460 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11461 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11462 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11472 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11473 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11474 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11475 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11478 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11479 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11480 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11481 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11487 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11488 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11489 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11490 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11491 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11492 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11493 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11494 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11506 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11507 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11508 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11509 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11516 Likewise.
11517 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11521 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11522 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11530 Likewise.
11531 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11558 Likewise.
11559 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11579 Likewise.
11580 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11612 Likewise.
11613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11618 Likewise.
11619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11620 Likewise.
11621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11623 Likewise.
11624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11626 Likewise.
11627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11628 Likewise.
11629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11632 Likewise.
11633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11634 Likewise.
11635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11636 Likewise.
11637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11641 Likewise.
11642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11648 Likewise.
11649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11651 Likewise.
11652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11653 Likewise.
11654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11655 Likewise.
11656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11657 Likewise.
11658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11661 Likewise.
11662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11663 Likewise.
11664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11665 Likewise.
11666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11669 Likewise.
11670 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11684 Likewise.
11685 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11697 Likewise.
11698 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11723 Likewise.
11724 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11737 Likewise.
11738 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11776
11777 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11778
11779 [BZ #23137]
11780 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11781 Use atomic_load_acquire to load __tid.
11782
11783 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11784
11785 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11786 Restore the pointer into %rdx, after syscall and use %rdx,
11787 instead of %rsi, to restore context.
11788
11789 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11790
11791 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11792 Pop the pointer into %rdx after syscall and use %rdx, instead
11793 of %rsi, to restore context.
11794
11795 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11796
11797 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11798 handlers after setjmp.
11799 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11800 defined.
11801 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11802 <libc-pointer-arith.h>.
11803 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11804 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11805 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11806 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11807 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11808 * sysdeps/x86/__longjmp_cancel.S: New file.
11809 * sysdeps/x86/longjmp.c: Likewise.
11810 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11811
11812 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11813
11814 * NEWS: Add ustat.h deprecation entry.
11815 * bits/ustat.h: Remove file.
11816 * misc/sys/ustat.h: Likewise.
11817 * misc/ustat.h: Likewise.
11818 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11819 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11820 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11821 compatibility mode.
11822 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11823 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11824 generic Linux implementation.
11825
11826 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11827
11828 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11829 * math/w_expl_compat.c: Likewise.
11830 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11831
11832 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11833
11834 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11835
11836 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11837
11838 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11839 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11840 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11841 Remove.
11842 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11844 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11845 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11846 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11847 and SYSCALL_LL64.
11848
11849 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11850
11851 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11852
11853 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11854 * math/w_asin_template.c: Likewise.
11855 * math/w_atanh_template.c: Likewise.
11856
11857 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11858
11859 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11860 to powerpc/powerpc64/be for big-endian.
11861 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11862 little-endian.
11863
11864 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11865 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11866 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11867 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11868 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11869 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11870 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11871 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11872 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11873 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11874 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11875 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11876 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11877 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11878 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11879 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11880 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11881 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11882 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11883 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11884 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11885 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11886 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11887 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11888 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11889 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11890 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11891 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11892 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11893 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11894 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11895 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11896
11897 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11898 adjusted to imply powerpc64 and older processors on powerpc64/be.
11899 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11900 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11901 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11902 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11903 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11904 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11905 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11906 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11907 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11908 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11909 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11910 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11911 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
11912 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
11913 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
11914 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
11915 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
11916 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
11917 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
11918 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
11919 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
11920 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
11921 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
11922 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
11923 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
11924 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
11925 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
11926 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
11927 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
11928 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
11929 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
11930
11931 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
11932 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
11933 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
11934 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
11935
11936 * sysdeps/powerpc/powerpc64/be/Implies: New file.
11937 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
11938 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
11939 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
11940
11941 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
11942 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
11943 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
11944 * sysdeps/powerpc/powerpc64le/configure: Likewise.
11945 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
11946 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
11947 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
11948 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
11949 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
11950 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
11951 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
11952
11953 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
11954 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
11955 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
11956 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
11957 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
11958 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
11959 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
11960 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
11961 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
11962 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
11963 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
11964
11965 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
11966 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
11967 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
11968 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
11969 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
11970 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
11971 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
11972 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
11973 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
11974 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
11975 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
11976 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
11977
11978 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
11979 and adjusted to imply olders processors.
11980 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
11981 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
11983 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
11984 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
11985 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
11986 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
11987 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
11988 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
11989 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
11991
11992 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
11993 powerpc64/le.
11994 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
11995 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
11996
11997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
11998 powerpc64le.
11999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12001
12002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12003 powerpc64/be.
12004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12007
12008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12009 powerpc64 and adjusted.
12010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12013 Likewise.
12014
12015 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12016
12017 * sysdeps/tile: Remove.
12018 * sysdeps/unix/sysv/linux/tile: Likewise.
12019 * README (tilegx-*-linux-gnu): Remove from list of supported
12020 configurations.
12021 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12022 contribution of support for generic Linux kernel syscall
12023 interface.
12024 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12025 tilegx configurations.
12026 (Config.install_linux_headers): Do not handle tile.
12027 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12028 in comment.
12029 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12030 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12031 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12032 conditional undefine and redefine.
12033 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12034 in comment.
12035 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12036 conditional undefine and redefine.
12037
12038 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12039
12040 * signal/tst-sigaction.c: New file to test BZ #23069.
12041 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12042
12043 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12044
12045 [BZ #22766]
12046 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12047 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12048 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12049 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12050
12051 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12052
12053 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12054 _DIRENT_MATCHES_DIRENT64 is not defined.
12055 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12056 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12057 is defined.
12058 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12059 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12060
12061 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12062
12063 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12064 version to GCC 8 branch.
12065
12066 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12067
12068 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12069 (check_no_hidden): Use type of original function when declaring
12070 alias.
12071
12072 * sysdeps/unix/sysv/linux/sys/ptrace.h
12073 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12074 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12075 (struct __ptrace_seccomp_metadata): New type.
12076 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12077 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12078 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12079 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12080 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12081 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12082 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12083 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12084 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12085 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12086 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12087 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12088 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12089 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12090 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12091 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12092
12093 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12094
12095 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12096 defined.
12097 * dirent/versionsort.c (versionsort): Likewise.
12098 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12099 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12100 * dirent/versionsort64.c (versionsort64): Likewise.
12101 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12102 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12103 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12104 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12105 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12106 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12107 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12108 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12109 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12110 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12113 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12114 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12115
12116 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12117
12118 * elf/elf.h (NT_PPC_PKEY): New macro.
12119
12120 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12121
12122 [BZ #23094]
12123 * localedata/locales/hr_HR: fix thousands_sep and
12124 mon_thousands_sep
12125
12126 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12127
12128 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12129 (XTABS): Define to TAB3.
12130
12131 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12132
12133 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12134
12135 * dirent/scandir-tail-common.c: New file.
12136 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12137 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12138 * dirent/scandir.c: Use scandir-tail-common.c.
12139 * dirent/scandirat.c: Likewise.
12140 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12141 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12142 if _DIRENT_MATCHES_DIRENT64 is defined.
12143 * dirent/scandirat64.c (scandirat64): Likewise.
12144 * include/dirent.h (__scandir_tail): Only define iff
12145 _DIRENT_MATCHES_DIRENT64 is not defined.
12146 (__scandir64_tail): Define regardless.
12147 (__scandirat, scandirat64): Remove libc_hidden_proto.
12148 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12149 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12151 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12152 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12153 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12154 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12155
12156 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12157
12158 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12159 New macro.
12160 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12161 Increase to 24.
12162 (_dl_aarch64_cap_flags): Add asimdfhm.
12163
12164 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12165
12166 * sysdeps/nios2/libm-test-ulps: Update.
12167
12168 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12169
12170 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12171 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12172
12173 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12174 requirements.
12175 (_DIRENT_MATCHES_DIRENT64): Undef
12176 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12177 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12178 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12179 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12180 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12181 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12182 use getdents64 syscalls as base.
12183 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12184 symbol if required.
12185 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12186 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12187 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12188 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12189 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12190 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12191 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12192 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12193 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12194 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12195 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12196
12197 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12198
12199 * scripts/test_printers_common.py (init_test): Disable lock elision.
12200
12201 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12202
12203 * math/test-tgmath.c (count_double, count_float,
12204 count_ldouble, count_cdouble, count_cfloat,
12205 count_cldouble): Use volatile int.
12206
12207 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12208
12209 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12210 (conformtest-xfail-conds): Add i386-gnu.
12211 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12212 i386-gnu.
12213 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12214 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12215 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12216 msqid_ds.msg_lrpid): Likewise.
12217 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12218 Likewise.
12219 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12220 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12221 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12222 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12223 unsigned int.
12224 (struct statvfs64): Likewise.
12225 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12226 Likewise.
12227 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12228 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12229 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12230 instead of wait_queue.
12231 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12232 instead of vm_area_struct.
12233 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12234 struct sched_param definition to it.
12235 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12236 * bits/types/struct_sched_param.h: New file.
12237 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12238 <bits/types/struct_sched_param.h> instead of <sched.h>.
12239 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12240 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12241 generic version but include <bits/pthreadtypes.h> to make struct
12242 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12243 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12244 non-compliant.
12245 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12246 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12247 [__USE_XOPEN] (OFDEL): New macro.
12248 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12249 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12250 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12251 prototypes.
12252 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12253 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12254 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12255 non-compliant.
12256 * sysdeps/i386/sys/ucontext.h: Likewise.
12257 * sysdeps/m68k/sys/ucontext.h: Likewise.
12258 * sysdeps/mips/sys/ucontext.h: Likewise.
12259 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12260 * sysdeps/mach/hurd/i386/Makefile
12261 (test-xfail-POSIX/fcntl.h/conform): Add.
12262 (test-xfail-POSIX/signal.h/conform): Add.
12263 (test-xfail-POSIX/semaphore.h/conform): Add.
12264 (test-xfail-POSIX/regex.h/conform): Add.
12265 (test-xfail-POSIX/aio.h/conform): Add.
12266 (test-xfail-POSIX/mqueue.h/conform): Add.
12267 (test-xfail-POSIX/sys/types.h/conform): Add.
12268 (test-xfail-UNIX98/fcntl.h/conform): Add.
12269 (test-xfail-UNIX98/netdb.h/conform): Add.
12270 (test-xfail-UNIX98/signal.h/conform): Add.
12271 (test-xfail-UNIX98/semaphore.h/conform): Add.
12272 (test-xfail-UNIX98/regex.h/conform): Add.
12273 (test-xfail-UNIX98/aio.h/conform): Add.
12274 (test-xfail-UNIX98/ftw.h/conform): Add.
12275 (test-xfail-UNIX98/mqueue.h/conform): Add.
12276 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12277 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12278 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12279 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12280 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12281 (test-xfail-UNIX98/sys/types.h/conform): Add.
12282 (test-xfail-UNIX98/stdlib.h/conform): Add.
12283 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12284 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12285 (test-xfail-POSIX2008/netdb.h/conform): Add.
12286 (test-xfail-POSIX2008/signal.h/conform): Add.
12287 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12288 (test-xfail-POSIX2008/regex.h/conform): Add.
12289 (test-xfail-POSIX2008/aio.h/conform): Add.
12290 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12291 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12292 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12293 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12294 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12295 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12296 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12297 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12298 (test-xfail-XOPEN2K/signal.h/conform): Add.
12299 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12300 (test-xfail-XOPEN2K/regex.h/conform): Add.
12301 (test-xfail-XOPEN2K/aio.h/conform): Add.
12302 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12303 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12304 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12305 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12306 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12307 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12308 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12309 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12310 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12311 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12312 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12313 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12314 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12315 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12316 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12317 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12318 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12319 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12320 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12321 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12322 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12323 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12324 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12325 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12326 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12327 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12328 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12329 i386-gnu.
12330 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12331 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12332
12333 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12334
12335 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12336 --enable-obsolete for powerpc-linux-gnuspe.
12337
12338 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12339
12340 * conform/data/sys/un.h-data: Allow sun_ prefix.
12341 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12342 prototypes.
12343 * sysdeps/mach/include/mach.h: Likewise.
12344 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12345 * sysdeps/mach/include/mach_error.h: Likewise.
12346
12347 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12348
12349 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12350 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12351 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12352 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12353
12354 2018-04-16 Andreas Schwab <schwab@suse.de>
12355
12356 [BZ #19527]
12357 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12358
12359 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12360
12361 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12362 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12363
12364 2018-04-12 DJ Delorie <dj@redhat.com>
12365
12366 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12367 version to 4.16.
12368
12369 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12370
12371 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12372 (struct kernel_sigaction): Use the same definition on 31bit as is used
12373 on 64bit.
12374
12375 2018-04-09 Florian Weimer <fweimer@redhat.com>
12376
12377 [BZ #23037]
12378 * resolv/res_send.c (send_dg): Use designated initializers instead
12379 of assignment to zero-initialize other fields of struct mmsghdr.
12380
12381 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12382
12383 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12384 __READDIR_ALIAS): Undefine after usage.
12385 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12386 __READDIR_R_ALIAS): Likewise.
12387 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12388 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12389 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12390 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12391 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12392 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12393 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12394 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12395 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12396 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12397 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12398 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12399 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12400 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12401 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12402 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12403 * sysdeps/unix/sysv/linux/readdir.c: New file.
12404 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12405 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12406 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12407
12408 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12409
12410 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12411
12412 * manual/charset.texi (Converting a Character): Fix typo.
12413
12414 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12415
12416 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12417
12418 * sysdeps/arm/libm-test-ulps: Update.
12419
12420 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12421 as base implementation.
12422 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12423 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12424 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12425 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12426 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12427 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12428 remove unrequired definitions and update comments.
12429 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12430 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12431 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12432 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12433 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12435 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12436 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12437 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12438 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12439 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12440 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12441 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12442 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12443 and RESET_SA_RESTORER hooks.
12444
12445 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12446
12447 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12448
12449 2018-04-05 Florian Weimer <fweimer@redhat.com>
12450
12451 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12452 integer overflow, memory leak on error, and indeterminate errno
12453 value. Add a null wide character to terminate the result string.
12454 * manual/charset.texi (Converting a Character): Mention embedded
12455 null bytes in the mbrtowc input string. Explain what happens in
12456 the -2 result case. Do not claim that mbrtowc is simple or
12457 obvious to use. Adjust the description of the code example. Use
12458 @code, not @var, for concrete variables.
12459
12460 2018-04-05 Florian Weimer <fweimer@redhat.com>
12461
12462 * manual/examples/mbstouwcs.c: New file.
12463 * manual/charset.texi (Converting a Character): Include it.
12464
12465 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12466
12467 * include/dirent.h (dirfd): Add hidden proto.
12468 * dirent/dirfd.c (dirfd): Add hidden def.
12469 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12470 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12471
12472 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12473
12474 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12475 sin, cos and sincos to 1 ULP.
12476
12477 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12478
12479 [BZ #19818]
12480 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12481 symbols.
12482 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12483 * elf/tst-absolute-sym.c: New file.
12484 * elf/tst-absolute-sym-lib.c: New file.
12485 * elf/tst-absolute-sym-lib.lds: New file.
12486 * elf/Makefile (tests): Add `tst-absolute-sym'.
12487 (modules-names): Add `tst-absolute-sym-lib'.
12488 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12489 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12490 ($(objpfx)tst-absolute-sym): New dependency.
12491
12492 [BZ #19818]
12493 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12494 parameter.
12495 (SYMBOL_ADDRESS): New macro.
12496 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12497 SYMBOL_ADDRESS for symbol address calculation.
12498 * elf/dl-runtime.c (_dl_fixup): Likewise.
12499 (_dl_profile_fixup): Likewise.
12500 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12501 * elf/rtld.c (dl_main): Likewise.
12502 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12503 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12504 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12505 (elf_machine_rela): Likewise.
12506 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12507 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12508 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12509 (elf_machine_rela): Likewise.
12510 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12511 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12512 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12513 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12514 Likewise.
12515 (elf_machine_reloc): Likewise.
12516 (elf_machine_got_rel): Likewise.
12517 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12518 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12519 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12520 Likewise.
12521 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12522 Likewise.
12523 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12524 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12525 Likewise.
12526 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12527 Likewise.
12528 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12529 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12530 Likewise.
12531 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12532 Likewise.
12533 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12534 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12535
12536 2018-04-04 Zack Weinberg <zackw@panix.com>
12537
12538 * sysdeps/generic/internal-signals.h: Include signal.h,
12539 sigsetops.h, and stdbool.h.
12540 (__libc_signal_block_all): Actually block all signals.
12541 (__libc_signal_block_app): Likewise.
12542 (__libc_signal_restore_set): Actually restore the signal mask.
12543
12544 2018-04-04 Florian Weimer <fweimer@redhat.com>
12545
12546 inet: Actually build and run tst-deadline.
12547 * inet/Makefile (tests-internal): Add tst-deadline and do not
12548 overwrite the variable.
12549 (tests-static-internal): Remove variable.
12550
12551 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12552
12553 [BZ #22947]
12554 * bits/uio-ext.h (RWF_APPEND): New.
12555 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12556 * manual/llio.texi: Document RWF_APPEND.
12557 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12558 (RWF_SUPPORTED): Add RWF_APPEND.
12559
12560 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12561
12562 [BZ #22391]
12563 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12564 check for internal nptl signals.
12565 * nptl/sigaction.c (__sigaction): Likewise.
12566 * signal/sigaddset.c (sigaddset): Likewise.
12567 * signal/sigdelset.c (sigdelset): Likewise.
12568 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12569 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12570 value.
12571 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12572 to filter out internal nptl signals.
12573 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12574 also check realtime signals using standard macros.
12575 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12576 __is_internal_signal, __libc_signal_block_all,
12577 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12578 * sysdeps/nptl/sigfillset.c: Remove file.
12579 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12580 Change return to bool.
12581 (__clear_internal_signals): Remove SIGTIMER clean since it is
12582 equal to SIGCANEL on Linux.
12583 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12584 signal set was constructed using standard functions.
12585
12586 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12587
12588 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12589 ifname is too long.
12590 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12591 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12592 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12593 hidden def.
12594 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12595 * signal/sigaddset.c: Include <sigsetopts.h>.
12596 * signal/sigdelset.c: Likewise.
12597
12598 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12599
12600 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12601 (__cos): Likewise.
12602 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12603 logic as sin and cos.
12604
12605 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12606
12607 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12608 inputs. Return correct sign.
12609 (do_sincos): Remove small input check before do_sin, let do_sin set
12610 the sign.
12611 (__sin): Likewise.
12612 (__cos): Likewise.
12613
12614 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12615
12616 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12617 (do_cos_slow): Likewise.
12618 (do_sin_slow): Likewise.
12619 (reduce_and_compute): Likewise.
12620 (slow): Likewise.
12621 (slow1): Likewise.
12622 (slow2): Likewise.
12623 (sloww): Likewise.
12624 (sloww1): Likewise.
12625 (sloww2): Likewise.
12626 (bslow): Likewise.
12627 (bslow1): Likewise.
12628 (bslow2): Likewise.
12629 (cslow2): Likewise.
12630
12631 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12632
12633 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12634 (do_cos): Remove corp parameter and calculations.
12635 (do_sin): Likewise.
12636 (do_sincos): Remove cor variable.
12637 (__sin): Use do_sincos for huge inputs.
12638 (__cos): Likewise.
12639 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12640 (reduce_and_compute_sincos): Remove unused function.
12641
12642 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12643
12644 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12645 reduce_sincos, improve accuracy to 136 bits.
12646 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12647 (__sin): Use improved reduction and simplified do_sincos calculation.
12648 (__cos): Likewise.
12649 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12650
12651 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12652
12653 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12654 (do_sincos_2): Likewise.
12655 (__sin): Remove middle range reduction case.
12656 (__cos): Likewise.
12657 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12658 reduction case.
12659
12660 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12661
12662 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12663 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12664 inputs.
12665 (__cos): Likewise.
12666 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12667
12668 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12669
12670 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12671 version to 4.16
12672
12673 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12674
12675 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12676 Remove definitions.
12677 (opendir_oflags): Use O_DIRECTORY regardless.
12678 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12679 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12680
12681 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12682
12683 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12684 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12685 macros.
12686 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12687 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12688 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12689 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12690 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12691 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12692
12693 * htl/Makefile: Bump licence to LGPL 2.1+.
12694 * htl/alloca_cutoff.c: Likewise.
12695 * htl/cthreads-compat.c: Likewise.
12696 * htl/lockfile.c: Likewise.
12697 * htl/pt-alloc.c: Likewise.
12698 * htl/pt-cancel.c: Likewise.
12699 * htl/pt-cleanup.c: Likewise.
12700 * htl/pt-create.c: Likewise.
12701 * htl/pt-dealloc.c: Likewise.
12702 * htl/pt-detach.c: Likewise.
12703 * htl/pt-exit.c: Likewise.
12704 * htl/pt-getattr.c: Likewise.
12705 * htl/pt-initialize.c: Likewise.
12706 * htl/pt-internal.h: Likewise.
12707 * htl/pt-join.c: Likewise.
12708 * htl/pt-self.c: Likewise.
12709 * htl/pt-setcancelstate.c: Likewise.
12710 * htl/pt-setcanceltype.c: Likewise.
12711 * htl/pt-sigmask.c: Likewise.
12712 * htl/pt-spin-inlines.c: Likewise.
12713 * htl/pt-testcancel.c: Likewise.
12714 * htl/pt-yield.c: Likewise.
12715 * htl/tests/test-1.c: Likewise.
12716 * htl/tests/test-10.c: Likewise.
12717 * htl/tests/test-11.c: Likewise.
12718 * htl/tests/test-12.c: Likewise.
12719 * htl/tests/test-13.c: Likewise.
12720 * htl/tests/test-14.c: Likewise.
12721 * htl/tests/test-15.c: Likewise.
12722 * htl/tests/test-16.c: Likewise.
12723 * htl/tests/test-17.c: Likewise.
12724 * htl/tests/test-2.c: Likewise.
12725 * htl/tests/test-3.c: Likewise.
12726 * htl/tests/test-4.c: Likewise.
12727 * htl/tests/test-5.c: Likewise.
12728 * htl/tests/test-6.c: Likewise.
12729 * htl/tests/test-7.c: Likewise.
12730 * htl/tests/test-8.c: Likewise.
12731 * htl/tests/test-9.c: Likewise.
12732 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12733 * sysdeps/htl/bits/cancelation.h: Likewise.
12734 * sysdeps/htl/bits/pthread-np.h: Likewise.
12735 * sysdeps/htl/bits/pthread.h: Likewise.
12736 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12737 * sysdeps/htl/bits/semaphore.h: Likewise.
12738 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12739 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12740 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12741 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12742 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12743 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12744 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12745 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12746 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12747 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12748 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12749 * sysdeps/htl/old_pt-atfork.c: Likewise.
12750 * sysdeps/htl/pt-atfork.c: Likewise.
12751 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12752 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12753 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12754 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12755 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12756 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12757 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12758 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12759 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12760 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12761 * sysdeps/htl/pt-attr-init.c: Likewise.
12762 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12763 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12764 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12765 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12766 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12767 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12768 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12769 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12770 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12771 * sysdeps/htl/pt-attr.c: Likewise.
12772 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12773 * sysdeps/htl/pt-barrier-init.c: Likewise.
12774 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12775 * sysdeps/htl/pt-barrier.c: Likewise.
12776 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12777 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12778 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12779 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12780 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12781 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12782 * sysdeps/htl/pt-cond-init.c: Likewise.
12783 * sysdeps/htl/pt-cond-signal.c: Likewise.
12784 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12785 * sysdeps/htl/pt-cond-wait.c: Likewise.
12786 * sysdeps/htl/pt-cond.c: Likewise.
12787 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12788 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12789 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12790 * sysdeps/htl/pt-condattr-init.c: Likewise.
12791 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12792 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12793 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12794 * sysdeps/htl/pt-equal.c: Likewise.
12795 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12796 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12797 * sysdeps/htl/pt-getschedparam.c: Likewise.
12798 * sysdeps/htl/pt-getspecific.c: Likewise.
12799 * sysdeps/htl/pt-init-specific.c: Likewise.
12800 * sysdeps/htl/pt-key-create.c: Likewise.
12801 * sysdeps/htl/pt-key-delete.c: Likewise.
12802 * sysdeps/htl/pt-key.h: Likewise.
12803 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12804 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12805 * sysdeps/htl/pt-mutex-init.c: Likewise.
12806 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12807 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12808 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12809 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12810 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12811 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12812 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12813 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12814 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12815 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12816 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12817 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12818 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12819 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12820 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12821 * sysdeps/htl/pt-mutexattr.c: Likewise.
12822 * sysdeps/htl/pt-once.c: Likewise.
12823 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12824 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12825 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12826 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12827 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12828 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12829 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12830 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12831 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12832 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12833 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12834 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12835 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12836 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12837 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12838 * sysdeps/htl/pt-setschedparam.c: Likewise.
12839 * sysdeps/htl/pt-setschedprio.c: Likewise.
12840 * sysdeps/htl/pt-setspecific.c: Likewise.
12841 * sysdeps/htl/pt-spin.c: Likewise.
12842 * sysdeps/htl/pt-startup.c: Likewise.
12843 * sysdeps/htl/pthread.h: Likewise.
12844 * sysdeps/htl/sem-close.c: Likewise.
12845 * sysdeps/htl/sem-destroy.c: Likewise.
12846 * sysdeps/htl/sem-getvalue.c: Likewise.
12847 * sysdeps/htl/sem-init.c: Likewise.
12848 * sysdeps/htl/sem-open.c: Likewise.
12849 * sysdeps/htl/sem-post.c: Likewise.
12850 * sysdeps/htl/sem-timedwait.c: Likewise.
12851 * sysdeps/htl/sem-trywait.c: Likewise.
12852 * sysdeps/htl/sem-unlink.c: Likewise.
12853 * sysdeps/htl/sem-wait.c: Likewise.
12854 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12855 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12856 * sysdeps/mach/htl/pt-block.c: Likewise.
12857 * sysdeps/mach/htl/pt-spin.c: Likewise.
12858 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12859 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12860 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12861 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12862 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12863 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12864 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12865 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12866 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12867 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12868 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12869 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12870 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12871 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12872 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12873 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12874 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12875 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12876 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12877 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12878 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12879 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12880 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12881 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12882 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12883 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12884 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12885 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12886 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12887 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12888 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12889 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12890 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12891 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12892 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12893 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12894 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12895 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12896 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12897 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12898 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12899 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12900 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12901
12902 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12903 * README: Remove the mention of out-of-tree patches needed for
12904 GNU/Hurd.
12905
12906 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12907 (UTIME_NOW, UTIME_OMIT): Define macros.
12908
12909 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12910 instead of pthread_detach.
12911 (__cthread_fork): Call __pthread_create instead of pthread_create.
12912 (__cthread_keycreate): Call __pthread_key_create instead of
12913 pthread_key_create.
12914 (__cthread_getspecific): Call __pthread_getspecific instead of
12915 pthread_getspecific.
12916 (__cthread_setspecific): Call __pthread_setspecific instead of
12917 pthread_setspecific.
12918 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
12919 __pthread_mutex_unlock instead of pthread_mutex_lock and
12920 pthread_mutex_unlock.
12921 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
12922 ___pthread_get_cleanup_stack.
12923 (__pthread_get_cleanup_stack): New strong alias.
12924 * htl/pt-create.c: Include <pthreadP.h>.
12925 (entry_point): Call __pthread_exit instead of pthread_exit.
12926 (pthread_create): Rename to __pthread_create.
12927 (pthread_create): New strong alias.
12928 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
12929 (pthread_detach): New strong alias.
12930 (__pthread_detach): Call __pthread_cond_broadcast instead of
12931 pthread_cond_broadcast.
12932 * htl/pt-exit.c: Include <pthreadP.h>.
12933 (__pthread_exit): Call __pthread_setcancelstate and
12934 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
12935 __pthread_get_cleanup_stack.
12936 * htl/pt-testcancel.c: Include <pthreadP.h>.
12937 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
12938 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
12939 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
12940 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
12941 pthread_attr_getstacksize.
12942 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
12943 Rename to __pthread_attr_getstackaddr.
12944 (pthread_attr_getstackaddr): New strong alias.
12945 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
12946 Rename to __pthread_attr_getstacksize.
12947 (pthread_attr_getstacksize): New strong alias.
12948 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
12949 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
12950 (pthread_attr_setstack): New strong alias.
12951 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
12952 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
12953 pthread_attr_getstacksize, pthread_attr_setstacksize and
12954 pthread_attr_setstackaddr.
12955 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
12956 Rename to __pthread_attr_setstackaddr.
12957 (pthread_attr_setstackaddr): New strong alias.
12958 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
12959 Rename to __pthread_attr_setstacksize.
12960 (pthread_attr_setstacksize): New strong alias.
12961 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
12962 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
12963 pthread_exit.
12964 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
12965 (__pthread_key_create): New hidden def.
12966 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
12967 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
12968 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
12969 __pthread_exit, __pthread_key_create, __pthread_getspecific,
12970 __pthread_setspecific, __pthread_setcancelstate,
12971 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
12972 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
12973 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
12974 declarations.
12975 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
12976 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
12977 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
12978 (pthread_attr_setstackaddr): New strong alias.
12979 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
12980 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
12981 (pthread_attr_setstacksize): New strong alias.
12982 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
12983 (call_exit): Call __pthread_exit instead of pthread_exit.
12984 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
12985 (_pthread_mutex_init): New hidden definition.
12986 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
12987 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
12988 instead of pthread_attr_init and pthread_attr_setstack.
12989
12990 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
12991 __vm_deallocate instead of vm_allocate and vm_deallocate.
12992 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
12993 setenv.
12994 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
12995 of geteuid.
12996 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
12997 strdup.
12998 * hurd/siginfo.c: Include <libioP.h>.
12999 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13000 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13001 munmap.
13002 * mach/devstream.c: Include <libioP.h>.
13003 (dealloc_ref): Call __mach_port_deallocate instead of
13004 mach_port_deallocate.
13005 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13006 Call __mach_port_deallocate instead of mach_port_deallocate.
13007 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13008 pathconf.
13009 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13010 munmap.
13011 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13012 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13013 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13014 of munmap.
13015 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13016 of close.
13017 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13018 instead of sysconf.
13019 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13020 __clock_gettime instead of clock_gettime.
13021 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13022 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13023 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13024 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13025 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13026 tcgetattr.
13027 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13028 __clock_gettime and __nanosleep instead of clock_gettime and
13029 nanosleep.
13030 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13031 __hurd_catch_signal.
13032 (hurd_catch_signal): New strong alias.
13033 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13034 __hurd_catch_signal instead of hurd_catch_signal.
13035 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13036 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13037 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13038 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13039 (_hurd_thread_sigstate): Add hidden def.
13040 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13041 mutex_unlock.
13042 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13043 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13044 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13045 __hurd_file_name_path_lookup.
13046 (hurd_file_name_path_lookup): New strong alias.
13047 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13048 hurd_file_name_path_lookup.
13049 * mach/errstring.c (mach_error_type): Add hidden def.
13050 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13051 * mach/mutex-init.c (__mutex_init): Add hidden def.
13052 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13053 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13054 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13055 * sysdeps/mach/hurd/getcwd.c
13056 (_hurd_canonicalize_directory_name_internal): Rename to
13057 __hurd_canonicalize_directory_name_internal.
13058 (_hurd_canonicalize_directory_name_internal): New strong alias.
13059 (__canonicalize_directory_name_internal, __getcwd): Call
13060 __hurd_canonicalize_directory_name_internal instead of
13061 _hurd_canonicalize_directory_name_internal.
13062 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13063 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13064 hidden defs.
13065 * sysdeps/hurd/include/hurd.h: New file.
13066 * sysdeps/hurd/include/hurd/fd.h: New file.
13067 * sysdeps/hurd/include/hurd/signal.h: New file.
13068 * sysdeps/mach/include/lock-intern.h: New file.
13069 * sysdeps/mach/include/mach.h: New file.
13070 * sysdeps/mach/include/mach/mig_support.h: New file.
13071 * sysdeps/mach/include/mach_error.h: New file.
13072 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13073 prototype.
13074 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13075 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13076 _HEADER_H_HIDDEN_DEF macro.
13077 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13078 _hurd_fd_error_signal): Add hidden prototype.
13079 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13080 hidden def.
13081 * libio/iolibio.h (_IO_puts): New hidden prototype.
13082 * libio/ioputs.c (_IO_puts): New hidden def.
13083 * sysdeps/mach/hurd/localplt.data: New file.
13084
13085 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13086 Amos Jeffries <squid3@treenet.co.nz>
13087 David Michael <fedora.dm0@gmail.com>
13088 Marco Gerards <marco@gnu.org>
13089 Marcus Brinkmann <marcus@gnu.org>
13090 Neal H. Walfield <neal@gnu.org>
13091 Pino Toscano <toscano.pino@tiscali.it>
13092 Richard Braun <rbraun@sceen.net>
13093 Roland McGrath <roland@gnu.org>
13094 Samuel Thibault <samuel.thibault@ens-lyon.org>
13095 Thomas DiModica <ricinwich@yahoo.com>
13096 Thomas Schwinge <tschwinge@gnu.org>
13097
13098 * htl: New directory.
13099 * sysdeps/htl: New directory.
13100 * sysdeps/hurd/htl: New directory.
13101 * sysdeps/i386/htl: New directory.
13102 * sysdeps/mach/htl: New directory.
13103 * sysdeps/mach/hurd/htl: New directory.
13104 * sysdeps/mach/hurd/i386/htl: New directory.
13105 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13106 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13107 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13108
13109 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13110
13111 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13112 signals in thread created for runing timers.
13113
13114 2018-04-01 Florian Weimer <fweimer@redhat.com>
13115
13116 * support/support_format_addrinfo.c (support_format_addrinfo):
13117 Include unknown error number in formatted result.
13118
13119 2018-03-29 Florian Weimer <fweimer@redhat.com>
13120
13121 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13122 capture SIGBUS.
13123
13124 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13125
13126 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13127 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13128 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13129 (__ASSUME_CLONE_BACKWARDS): Define.
13130
13131 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13132
13133 [BZ #23024]
13134 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13135 early when linux sentinel value is set.
13136
13137 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13138
13139 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13140
13141 2018-03-27 Andreas Schwab <schwab@suse.de>
13142
13143 [BZ #23005]
13144 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13145 allocation of private copy of nsaddr_list fails.
13146
13147 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13148
13149 [BZ #16552]
13150 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13151 * sysdeps/unix/sysv/linux/umount.c: ... here.
13152 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13153 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13154 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13155 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13157 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13158 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13159
13160 2018-03-26 Andreas Schwab <schwab@suse.de>
13161
13162 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13163 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13164 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13165 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13166 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13167 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13168 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13169 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13170 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13171 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13172 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13173 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13174 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13175 (R_RISCV_NUM): Define.
13176
13177 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13178
13179 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13180 TLS declaration of errno.
13181 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13182 __libc_setup_tls.
13183 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13184 (ARCH_SETUP_TLS): Likewise.
13185 * sysdeps/mach/hurd/libc-start.h: New file copied from
13186 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13187 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13188 instead of __libc_setup_tls.
13189 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13190 __libc_setup_tls before initializing libpthread and running _hurd_init
13191 which starts the signal thread.
13192 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13193 Declare function.
13194 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13195
13196 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13197
13198 [BZ #22998]
13199 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13200 after it is defined.
13201
13202 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13203 Max Horn <max@quendi.de>
13204
13205 [BZ #22644]
13206 CVE-2017-18269
13207 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13208 branch conditions.
13209 * string/test-memmove.c (do_test2): New testcase.
13210
13211 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13212
13213 * sysdeps/generic/frame.h: Remove file.
13214 * sysdeps/arm/frame.h: Likewise.
13215 * sysdeps/hppa/frame.h: Likewise.
13216 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13217 macro.
13218 (GET_FRAME): Likewise.
13219 (GET_STACK): Likewise.
13220 (CALL_SIGHANDLER): Likewise.
13221 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13222 Likewise.
13223 (GET_FRAME): Likewise.
13224 (GET_STACK): Likewise.
13225 (CALL_SIGHANDLER): Likewise.
13226 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13227 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13228 (GET_FRAME): Likewise.
13229 (GET_STACK): Likewise.
13230 (CALL_SIGHANDLER): Likewise.
13231 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13232 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13233 (GET_FRAME): Likewise.
13234 (GET_STACK): Likewise.
13235 (ADVANCE_STACK_FRAME): Likewise.
13236 (CALL_SIGHANDLER): Likewise.
13237 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13238 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13239 (GET_FRAME): Likewise.
13240 (GET_STACK): Likewise.
13241 (CALL_SIGHANDLER): Likewise.
13242 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13243 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13244 (GET_FRAME): Likewise.
13245 (GET_STACK): Likewise.
13246 (CALL_SIGHANDLER): Likewise.
13247 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13248 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13249 (GET_FRAME): Likewise.
13250 (GET_STACK): Likewise.
13251 (CALL_SIGHANDLER): Likewise.
13252 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13253 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13254 (GET_FRAME): Likewise.
13255 (GET_STACK): Likewise.
13256 (CALL_SIGHANDLER): Likewise.
13257 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13258 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13259 (GET_FRAME): Likewise.
13260 (GET_STACK): Likewise.
13261 (CALL_SIGHANDLER): Likewise.
13262 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13263 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13264 (GET_FRAME): Likewise.
13265 (GET_STACK): Likewise.
13266 (CALL_SIGHANDLER): Likewise.
13267 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13268 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13269 (GET_FRAME): Likewise.
13270 (GET_STACK): Likewise.
13271 (CALL_SIGHANDLER): Likewise.
13272 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13273 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13274 (GET_FRAME): Likewise.
13275 (GET_STACK): Likewise.
13276 (CALL_SIGHANDLER): Likewise.
13277 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13278 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13279 (GET_FRAME): Likewise.
13280 (GET_STACK): Likewise.
13281 (CALL_SIGHANDLER): Likewise.
13282 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13283 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13284 (FIRST_FRAME_POINTER): Likewise.
13285 (ADVANCE_STACK_FRAME): Likewise.
13286 (GET_STACK): Likewise.
13287 (GET_FRAME): Likewise.
13288 (CALL_SIGHANDLER): Likewise.
13289 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13290 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13291 (ADVANCE_STACK_FRAME): Likewise.
13292 (GET_STACK): Likewise.
13293 (GET_FRAME): Likewise.
13294 (CALL_SIGHANDLER): Likewise.
13295 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13296 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13297 (GET_FRAME): Likewise.
13298 (GET_STACK): Likewise.
13299 (CALL_SIGHANDLER): Likewise.
13300 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13301 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13302 (GET_FRAME): Likewise.
13303 (GET_STACK): Likewise.
13304 (CALL_SIGHANDLER): Likewise.
13305
13306 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13307
13308 * sysdeps/x86_64/backtrace.c: Move to ....
13309 * debug/backtrace.c: ... here.
13310 * sysdeps/aarch64/backtrace.c: Remove file.
13311 * sysdeps/alpha/backtrace.c: Likewise.
13312 * sysdeps/hppa/backtrace.c: Likewise.
13313 * sysdeps/ia64/backtrace.c: Likewise.
13314 * sysdeps/mips/backtrace.c: Likewise.
13315 * sysdeps/nios2/backtrace.c: Likewise.
13316 * sysdeps/riscv/backtrace.c: Likewise.
13317 * sysdeps/sh/backtrace.c: Likewise.
13318 * sysdeps/tile/backtrace.c: Likewise.
13319
13320 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13321
13322 [BZ #22987]
13323 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13324 function.
13325 (fdimf): Likewise.
13326 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13327
13328 [BZ #17343]
13329 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13330 possibly overflowing computations.
13331
13332 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13333
13334 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13335 values from Linux-specific section now that it is in the GNU section.
13336 * sysdeps/gnu/errlist.c: Regenerate.
13337
13338 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13339
13340 * math/Makefile (libm-narrow-fns): Add sub.
13341 (libm-test-funcs-narrow): Likewise.
13342 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13343 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13344 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13345 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13346 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13347 (NARROW_SUB_TRIVIAL): Likewise.
13348 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13349 macro.
13350 (__dsubl): Likewise.
13351 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13352 dsub.
13353 (CFLAGS-nldbl-dsub.c): New variable.
13354 (CFLAGS-nldbl-fsub.c): Likewise.
13355 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13356 __nldbl_dsubl.
13357 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13358 prototype.
13359 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13360 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13361 * math/auto-libm-test-in: Add tests of sub.
13362 * math/auto-libm-test-out-narrow-sub: New generated file.
13363 * math/libm-test-narrow-sub.inc: New file.
13364 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13365 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13366 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13367 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13368 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13369 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13370 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13371 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13372 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13373 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13374 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13375 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13376 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13377 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13378 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13379 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13380 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13381 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13382 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13383 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13384 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13385 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13386 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13387 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13388 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13389 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13390 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13391 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13392 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13393 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13394 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13395 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13400 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13401 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13402 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13403 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13404 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13405 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13406 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13407 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13408 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13409 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13410
13411 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13412
13413 [BZ #20079]
13414 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13415
13416 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13417
13418 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13419
13420 2018-03-18 Richard Braun <rbraun@sceen.net>
13421
13422 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13423 thread reference.
13424
13425 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13426
13427 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13428 (__libc_cleanup_fct): Define function.
13429 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13430 __libc_cleanup_end): Rewrite implementation using
13431 __attribute__ ((__cleanup__)).
13432 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13433 * hurd/Makefile (routines): Add hurdlock.
13434 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13435 interface.
13436 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13437 * hurd/hurdpid.c: Include <lowlevellock.h>
13438 (_S_msg_proc_newids): Use lll_wait to synchronize.
13439 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13440 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13441 * mach/Makefile (lock-headers): Remove machine-lock.h.
13442 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13443 <machine-lock.h>.
13444 (__spin_lock_t): New type.
13445 (__SPIN_LOCK_INITIALIZER): New macro.
13446 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13447 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13448 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13449 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13450 (__mutex_init): Initialize with lll.
13451 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13452 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13453 needing lll.
13454 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13455 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13456 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13457 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13458 (__setpgid): Use lll for synchronization.
13459 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13460 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13461 instead of <cthreads.h>.
13462 (_IO_lock_inexpensive): New macro
13463 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13464 (__libc_lock_self0): New declaration.
13465 (__libc_lock_owner_self): New macro.
13466 (__libc_key_t): Remove type.
13467 (_LIBC_LOCK_INITIALIZER): New macro.
13468 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13469 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13470 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13471 __libc_lock_define_initialized_recursive,
13472 __rtld_lock_define_initialized_recursive,
13473 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13474 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13475 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13476 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13477 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13478 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13479 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13480 New macros.
13481 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13482 * hurd/hurdlock.c: New file.
13483 * hurd/hurdlock.h: New file.
13484 * mach/lowlevellock.h: New file
13485
13486 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13487
13488 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13489 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13490 when opening a symlink with O_NOFOLLOW.
13491 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13492 path when flags contains O_NOFOLLOW.
13493 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13494 if flags contains O_DIRECTORY and the result is a directory.
13495 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13496 oneself when the pointer given in D is nul (as set by ext2fs).
13497 * sysdeps/mach/hurd/mlockall.c: New file.
13498 * sysdeps/mach/hurd/munlockall.c: New file.
13499
13500 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13501
13502 * hurd/hurdsig.c: Include <pthread.h>.
13503 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13504 get the signal thread stack layout.
13505 * hurd/Makefile (headers): Remove threadvar.h.
13506 (inline-headers): Remove threadvar.h.
13507 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13508 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13509 __hurd_threadvar_max, __hurd_errno_location.
13510 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13511 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13512 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13513 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13514 unless TLS is not initialized yet, in which case we do not need a
13515 critical section yet anyway.
13516 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13517 <machine-sp.h>.
13518 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13519 declarations.
13520 (__hurd_threadvar_index): Remove enum.
13521 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13522 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13523 inlines.
13524 (__hurd_reply_port0): New variable declaration.
13525 (__hurd_local_reply_port): New macro.
13526 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13527 (interrupted_reply_port_location): Add thread_t parameter. Use it
13528 with THREAD_TCB to access thread-local variables.
13529 (_hurdsig_abort_rpcs): Pass ss->thread to
13530 interrupted_reply_port_location.
13531 (_hurd_internal_post_signal): Likewise.
13532 (_hurdsig_init): Use presence of cthread_fork instead of
13533 __hurd_threadvar_stack_mask to start signal thread by hand.
13534 Remove signal thread threadvar initialization.
13535 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13536 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13537 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13538 of threadvar.
13539 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13540 __libc_lock_self0.
13541 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13542 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13543 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13544 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13545 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13546 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13547 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13548 define variables.
13549 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13550 <hurd/threadvar.h>.
13551 [IS_IN(rtld)] (rtld_errno): New variable.
13552 [IS_IN(rtld)] (__errno_location): New weak function.
13553 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13554 * sysdeps/mach/hurd/errno.c: Remove file.
13555 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13556 (__fork): Remove THREADVAR_SPACE macro and its use.
13557 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13558 variable.
13559 (init): Do not initialize threadvar.
13560 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13561 symbol.
13562 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13563 __hurd_local_reply_port instead of threadvar.
13564 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13565 _hurd_sigstate fields.
13566 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13567 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13568 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13569 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13570 instead of threadvar.
13571 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13572 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13573 (use_threadvar, global_reply_port): Remove variables.
13574 (__hurd_reply_port0): New variable.
13575 (__mig_get_reply_port): Use __hurd_local_reply_port and
13576 __hurd_reply_port0 instead of threadvar.
13577 (__mig_dealloc_reply_port): Likewise.
13578 (__mig_init): Do not initialize threadvar.
13579 * sysdeps/mach/hurd/profil.c: Fix comment.
13580 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13581 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13582 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13583 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13584 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13585 __cthread_setspecific.
13586 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13587 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13588 __cthread_t instead of cthread_fork, cthread_detach,
13589 pthread_getattr_np, pthread_attr_getstack.
13590 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13591 __cthread_keycreate.
13592 (cthread_getspecific): Rename to __cthread_getspecific.
13593 (cthread_setspecific): Rename to __cthread_setspecific.
13594 (__libc_getspecific): Use __cthread_getspecific instead of
13595 cthread_getspecific.
13596 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13597 __cthread_keycreate instead of cthread_keycreate.
13598 (__libc_setspecific): Use __cthread_setspecific instead of
13599 cthread_setspecific.
13600 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13601 Likewise.
13602 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13603 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13604 testing whether it is defined.
13605
13606 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13607
13608 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13609 Define macro.
13610 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13611 * sysdeps/mach/i386/thread_state.h
13612 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13613 i386_THREAD_STATE.
13614 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13615 i386_THREAD_STATE.
13616 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13617
13618 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13619 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13620
13621 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13622 macros.
13623 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13624 descriptor instead of creating a new one.
13625 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13626
13627 * mach/setup-thread.c: Include <ldsodefs.h>.
13628 (__mach_setup_thread): Call _dl_allocate_tls, pass
13629 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13630 MACHINE_THREAD_STATE_FLAVOR, before getting
13631 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13632 MACHINE_THREAD_STATE_FLAVOR with the result.
13633 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13634 MACHINE_THREAD_STATE_FIX_NEW.
13635 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13636 too. Add original thread parameter.
13637
13638 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13639
13640 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13641 Remove inline function.
13642
13643 * sysdeps/i386/fpu/libm-test-ulps: Update.
13644 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13645
13646 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13647
13648 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13649 commit.
13650
13651 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13652
13653 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13654 (__sincos_code): Remove define and undefine.
13655 [__FAST_MATH__] (__sincos): Remove inline function.
13656 [__FAST_MATH__] (__sincosf): Remove inline function.
13657 [__FAST_MATH__] (__sincosl): Remove inline function.
13658 (__atan2l): Remove inline functions.
13659 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13660 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13661 function.
13662 (floor): Remove inline function.
13663 (ceil): Likewise.
13664 [__FAST_MATH__] (__ldexp_code): Remove macro.
13665 [__FAST_MATH__] (ldexp): Remove inline function.
13666 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13667 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13668 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13669 [__USE_ISOC99] (__lrint_code): Remove macro.
13670 [__USE_ISOC99] (__llrint_code): Likewise.
13671 [__USE_ISOC99] (lrintf): Remove inline function.
13672 [__USE_ISOC99] (lrint): Likewise.
13673 [__USE_ISOC99] (lrintl): Likewise.
13674 [__USE_ISOC99] (llrint): Likewise.
13675 [__USE_ISOC99] (llrintf): Likewise.
13676 [__USE_ISOC99] (llrintl): Likewise.
13677
13678 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13679
13680 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13681 (__ieee754_sqrtf): Remove.
13682 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13683 (__ieee754_sqrtf): Remove.
13684 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13685 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13686 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13687 (__ieee754_sqrtf): Remove.
13688 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13689 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13690 (sqrtf): Remove.
13691 (sqrtl): Remove.
13692 (__ieee754_sqrt): Remove.
13693 (__ieee754_sqrtf): Remove.
13694 (__ieee754_sqrtl): Remove.
13695 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13696 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13697 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13698 (__ieee754_sqrtf): Remove.
13699 (__ieee754_sqrtl): Remove.
13700
13701 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13702
13703 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13704 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13705 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13706 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13707 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13708 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13709 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13710 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13711 Likewise.
13712 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13713 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13714 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13715 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13716 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13717 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13718 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13719 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13720 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13721 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13722 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13723 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13724 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13725 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13726 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13727 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13728 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13729 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13730 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13731 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13732 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13733 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13734 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13735 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13736 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13737 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13738 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13739 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13740 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13741 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13742 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13743 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13744 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13745 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13746 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13747 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13748 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13749 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13750 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13751 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13752
13753 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13754
13755 * include/math.h (sqrt): Declare with asm redirect.
13756 (sqrtf): Likewise.
13757 (sqrtl): Likewise.
13758 (sqrtf128): Likewise.
13759 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13760 nonlib and libnldbl with -fmath-errno.
13761 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13762 * math/w_sqrt_template.c: Likewise.
13763 * math/w_sqrtf_compat.c: Likewise.
13764 * math/w_sqrtl_compat.c: Likewise.
13765 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13766 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13767 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13768 complex.h.
13769
13770 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13771
13772 * benchtests/Makefile: Define _ISOMAC.
13773 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13774 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13775 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13776 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13777 * benchtests/bench-timing.h: Define attribute_hidden.
13778
13779 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13780
13781 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13782 mov + lsr.
13783
13784 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13785
13786 [BZ #22963]
13787 * localedata/locales/cs_CZ (mon): Rename to...
13788 (alt_mon): This.
13789 (mon): Import from CLDR (genitive case).
13790
13791 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13792
13793 [BZ #22937]
13794 * localedata/locales/el_CY (abmon): Rename to...
13795 (ab_alt_mon): This.
13796 (abmon): Import from CLDR (abbreviated genitive case).
13797 * localedata/locales/el_GR (abmon): Rename to...
13798 (ab_alt_mon): This.
13799 (abmon): Import from CLDR (abbreviated genitive case).
13800
13801 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13802
13803 [BZ #22932]
13804 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13805
13806 2018-03-15 Robert Buj <robert.buj@gmail.com>
13807
13808 [BZ #22848]
13809 * localedata/locales/ca_ES (abmon): Rename to...
13810 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13811 (mon): Rename to...
13812 (alt_mon): This.
13813 (abmon): Import from CLDR (genitive case, month names preceded by
13814 "de" or "d’").
13815 (mon): Likewise.
13816 (abday): Synchronize with CLDR.
13817 (d_t_fmt): Likewise.
13818 (d_fmt): Likewise.
13819 (am_pm): Likewise.
13820
13821 (LC_TIME): Improve indentation.
13822 (LC_TELEPHONE): Likewise.
13823 (LC_NAME): Likewise.
13824 (LC_ADDRESS): Likewise.
13825
13826 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13827
13828 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13829 (lrintf): Remove definitions used only with old GCC.
13830 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13831 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13832 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13833 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13834 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13835 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13836 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13837 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13838 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13839 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13840 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13841 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13842 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13843 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13844 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13845 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13846 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13847 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13848 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13849 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13850 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13851 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13852 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13853 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13854 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13855 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13856 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13857 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13858
13859 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13860
13861 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13862 instruction to unbreak builds with binutils 2.26 and older.
13863
13864 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13865
13866 * sysdeps/aarch64/strncmp.S (count): New macro.
13867 (strncmp): Store misaligned length in SRC1 in COUNT.
13868 (mutual_align): Adjust.
13869 (misaligned8): Load dword at a time when it is safe.
13870
13871 2018-03-12 Zack Weinberg <zackw@panix.com>
13872
13873 [BZ #1190]
13874 [BZ #19476]
13875 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13876 if the _IO_EOF_SEEN bit is already set; update commentary.
13877 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13878 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13879
13880 * support/support_openpty.c, support/tty.h: New files.
13881 * support/Makefile (libsupport-routines): Add support_openpty.
13882
13883 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13884 New test cases.
13885 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13886 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13887
13888 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13889
13890 * po/pt_BR.po: Update translations.
13891
13892 2018-03-12 David Michael <fedora.dm0@gmail.com>
13893
13894 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13895 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13896 get a port to the startup server.
13897
13898 2018-03-11 Zack Weinberg <zackw@panix.com>
13899
13900 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13901 before nldbl-compat.h.
13902
13903 2018-03-10 Zack Weinberg <zackw@panix.com>
13904
13905 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13906 math.h or math_private.h.
13907
13908 * sysdeps/alpha/fpu/s_isnan.c
13909 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13910 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13911 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
13912 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
13913 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
13914 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
13915 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
13916 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
13917 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
13918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
13919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
13920 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
13921 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
13922 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
13923 Include math_private.h.
13924
13925 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
13926 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
13927 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
13928 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
13929 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
13930 * sysdeps/powerpc/power7/fpu/s_logb.c:
13931 Include math.h and math_private.h.
13932
13933 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
13934 uses of $at in .set noat / .set at.
13935
13936 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
13937
13938 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
13939 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
13940 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
13941 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
13942 Likewise.
13943
13944 2018-03-09 Florian Weimer <fweimer@redhat.com>
13945
13946 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
13947 in comment.
13948
13949 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
13950
13951 [BZ #22919]
13952 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
13953 Add nop before __startcontext, add explaining comments.
13954
13955 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13956
13957 [BZ #22926]
13958 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
13959 empty for __SPE__.
13960 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13961 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
13962 Do not build hardware transactional code for __SPE__.
13963 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13964 (__lll_trylock_elision): Likewise.
13965 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13966 (__lll_unlock_elision): Likewise.
13967
13968 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
13969 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
13970 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13971 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
13972 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
13973 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
13974 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
13975 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
13976 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
13977 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
13978 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
13979 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
13980 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
13981 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
13982 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
13983 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
13984 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
13985 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
13986 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
13987 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
13988 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
13989 * sysdeps/unix/sysv/linux/arm/kernel-features.h
13990 (__ASSUME_CLONE_BACKWARDS): Define.
13991 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
13992 __clone2 if __NR_clone2 is defined.
13993 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13994 (__ASSUME_CLONE_BACKWARDS): Likewise.
13995 * sysdeps/unix/sysv/linux/i386/kernel-features.h
13996 (__ASSUME_CLONE_BACKWARDS): Likewise.
13997 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
13998 (__ASSUME_CLONE2): Likewise.
13999 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14000 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14001 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14002 variants and the define architecture can use.
14003 (__ASSUME_CLONE_DEFAULT): Define as default.
14004 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14005 (__ASSUME_CLONE_BACKWARDS): Likewise.
14006 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14007 (__ASSUME_CLONE_BACKWARDS): Likewise.
14008 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14009 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14010
14011 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14012
14013 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14014
14015 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14016 time.
14017
14018 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14019 (do_test_limit): Likewise.
14020
14021 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14022 for every implementation.
14023 (do_test): Likewise.
14024
14025 * benchtests/bench-strncmp.c: Convert output to json.
14026
14027 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14028
14029 * io/futimens.c: Add missing start-of-file descriptive comment.
14030 * io/utime.c: Likewise.
14031 * misc/futimesat.c: Likewise.
14032 * misc/utimes.c: Likewise.
14033 * sysdeps/mach/hurd/futimesat.c: Likewise.
14034 * sysdeps/mach/hurd/utimes.c: Likewise.
14035 * sysdeps/posix/utime.c: Likewise.
14036 * sysdeps/posix/utimes.c: Likewise.
14037 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14038 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14039 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14040 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14041
14042 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14043
14044 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14045 hurd_futimes.
14046 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14047 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14048 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14049 (__futimens): Move implementation to...
14050 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14051 utime_tvalue_from_tspec): ... new helper functions.
14052 (hurd_futimens): New function.
14053 * sysdeps/mach/hurd/futimesat.c: New file.
14054 * sysdeps/mach/hurd/utimensat.c: New file.
14055
14056 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14057
14058 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14059 UTIME_OMIT): New macros.
14060 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14061 before reverting to converting time spec to time value and calling
14062 __file_utimes.
14063 * sysdeps/mach/hurd/utime-helper.c: New file.
14064 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14065 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14066 reverting to utime_tvalue_from_tval and __file_utimes.
14067 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14068 (__lutimes): Just call hurd_futimens after lookup.
14069 * sysdeps/mach/hurd/utimes.c: Likewise.
14070
14071 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14072
14073 * bits/sigaction.h: Add include guard.
14074 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14075 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14076 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14077 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14078 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14079 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14080 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14081 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14082 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14083
14084 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14085
14086 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14087 -Wmaybe-uninitialized for -Os.
14088 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14089 this disabling.
14090
14091 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14092
14093 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14094 __INO_T_MATCHES_INO64_T is defined.
14095 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14096 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14097 of definition.
14098 * dirent/alphasort64.c: Likewise.
14099 * dirent/scandir.c: Likewise.
14100 * dirent/scandir64-tail.c: Likewise.
14101 * dirent/scandir64.c: Likewise.
14102 * dirent/scandirat.c: Likewise.
14103 * dirent/scandirat64.c: Likewise.
14104 * dirent/versionsort.c: Likewise.
14105 * dirent/versionsort64.c: Likewise.
14106 * include/dirent.h: Likewise.
14107
14108 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14109 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14110 for socketpair endpoint.
14111 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14112 WRITE_BUFFER_SIZE as buffer size for sending socket.
14113 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14114 issue on system where send is implemented with sendto syscall.
14115 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14116 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14117 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14118 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14119
14120 [BZ #21269]
14121 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14122 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14123 sa_restorer for vDSO case.
14124 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14125
14126 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14127
14128 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14129 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14130 * hurd/hurd/ioctl.h: Include <mach/port.h>
14131 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14132 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14133 <mach/mach_types.h> and <mach/message.h>.
14134 (headers): Move mach/param.h to bits/mach/param.h.
14135 * sysdeps/mach/i386/mach/param.h: Move file to ...
14136 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14137 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14138 of <mach/param.h>.
14139 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14140 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14141 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14142 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14143 trivial, for C++ conformity.
14144 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14145 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14146 Process mig output through $(migheadersed).
14147 * hurd/Makefile (migheadersed): Define variable.
14148 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14149 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14150 headers.
14151 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14152 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14153 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14154 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14155 <bits/types/sigset_t.h>.
14156 [!defined __USE_GNU]: Do not #error out.
14157 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14158 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14159 Include <stddef.h> and <bits/types/sigset_t.h>
14160 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14161 instead of sighandler_t.
14162 * stdlib/errno.h (error_t): Move definition to...
14163 * bits/types/error_t.h: ... new header.
14164 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14165 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14166 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14167 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14168 * hurd/hurd.h: Include <bits/types/error_t.h>
14169 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14170 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14171 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14172 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14173 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14174 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14175 * sysdeps/mach/hurd/futimens.c: New file.
14176
14177 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14178
14179 [BZ #22918]
14180 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14181 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14182 * nscd/gai.c (__nss_hosts_database): Readd definition.
14183 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14184 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14185 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14186
14187 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14188
14189 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14190 (ifunc_one): Likewise.
14191
14192 2018-03-01 DJ Delorie <dj@delorie.com>
14193
14194 [BZ #22342]
14195 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14196 key value.
14197
14198 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14199
14200 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14201 `match_pid' parameter.
14202 (td_ta_thr_iter): Update accordingly.
14203
14204 2018-03-01 Florian Weimer <fweimer@redhat.com>
14205
14206 * nptl/Makefile (install-lib-ldscripts): Remove.
14207 (install): Remove rule.
14208 ($(inst_libdir)/libpthread.so): Likewise.
14209
14210 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14211
14212 [BZ #22896]
14213 * localedata/locales/an_ES: update month and day names,
14214 improve d_fmt, improve postal_fmt, add country_post,
14215 add country_isbn
14216
14217 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14218
14219 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14220 Ukrainian instead of Bulgarian.
14221
14222 2018-03-01 Florian Weimer <fweimer@redhat.com>
14223
14224 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14225 reference.
14226
14227 2018-03-01 Florian Weimer <fweimer@redhat.com>
14228
14229 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14230 * nptl/Makefile (routines): Add pthread_atfork.
14231 (static-only-routines): Set to pthread_atfork.
14232 (libpthread-routines): Remove pthread_atfork.
14233 (libpthread-static-only-routines): Remove.
14234 (install): Update comment.
14235 (libpthread.so): Do not install libpthread_nonshared.a.
14236 (tests): Do not link with libpthread_nonshared.a.
14237 (generated): Remove libpthread_nonshared.a.
14238 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14239 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14240 with libpthread_nonshared.a.
14241
14242 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14243
14244 [BZ #22902]
14245 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14246 (libc_feholdexcept_setroundf128): New macro.
14247 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14248
14249 [BZ #15105]
14250 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14251 libc_hidden_def.
14252 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14253 * include/inttypes.h: New file.
14254
14255 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14256
14257 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14258 -Os in two more places.
14259
14260 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14261
14262 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14263 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14264 be sorted correctly at the moment because of a bug.
14265
14266 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14267
14268 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14269 treat ñ as a primary different character, sync the collation
14270 for Spanish with CLDR.
14271 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14272 * localedata/Makefile: Add new test files.
14273 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14274 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14275 collation order.
14276 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14277 * localedata/am_ET.UTF-8.in: New test file.
14278 * localedata/az_AZ.UTF-8.in: Likewise.
14279 * localedata/be_BY.UTF-8.in: Likewise.
14280 * localedata/ber_DZ.UTF-8.in: Likewise.
14281 * localedata/ber_MA.UTF-8.in: Likewise.
14282 * localedata/bg_BG.UTF-8.in: Likewise.
14283 * localedata/br_FR.UTF-8.in: Likewise.
14284 * localedata/cmn_TW.UTF-8.in: Likewise.
14285 * localedata/crh_UA.UTF-8.in: Likewise.
14286 * localedata/csb_PL.UTF-8.in: Likewise.
14287 * localedata/cv_RU.UTF-8.in: Likewise.
14288 * localedata/cy_GB.UTF-8.in: Likewise.
14289 * localedata/dz_BT.UTF-8.in: Likewise.
14290 * localedata/eo.UTF-8.in: Likewise.
14291 * localedata/es_ES.UTF-8.in: Likewise.
14292 * localedata/fa_IR.UTF-8.in: Likewise.
14293 * localedata/fi_FI.UTF-8.in: Likewise.
14294 * localedata/fil_PH.UTF-8.in: Likewise.
14295 * localedata/fur_IT.UTF-8.in: Likewise.
14296 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14297 * localedata/ha_NG.UTF-8.in: Likewise.
14298 * localedata/ig_NG.UTF-8.in: Likewise.
14299 * localedata/ik_CA.UTF-8.in: Likewise.
14300 * localedata/kk_KZ.UTF-8.in: Likewise.
14301 * localedata/ku_TR.UTF-8.in: Likewise.
14302 * localedata/ky_KG.UTF-8.in: Likewise.
14303 * localedata/ln_CD.UTF-8.in: Likewise.
14304 * localedata/mi_NZ.UTF-8.in: Likewise.
14305 * localedata/ml_IN.UTF-8.in: Likewise.
14306 * localedata/mn_MN.UTF-8.in: Likewise.
14307 * localedata/mr_IN.UTF-8.in: Likewise.
14308 * localedata/mt_MT.UTF-8.in: Likewise.
14309 * localedata/nb_NO.UTF-8.in: Likewise.
14310 * localedata/om_KE.UTF-8.in: Likewise.
14311 * localedata/os_RU.UTF-8.in: Likewise.
14312 * localedata/ps_AF.UTF-8.in: Likewise.
14313 * localedata/ro_RO.UTF-8.in: Likewise.
14314 * localedata/ru_RU.UTF-8.in: Likewise.
14315 * localedata/sc_IT.UTF-8.in: Likewise.
14316 * localedata/se_NO.UTF-8.in: Likewise.
14317 * localedata/sq_AL.UTF-8.in: Likewise.
14318 * localedata/sv_SE.UTF-8.in: Likewise.
14319 * localedata/szl_PL.UTF-8.in: Likewise.
14320 * localedata/tg_TJ.UTF-8.in: Likewise.
14321 * localedata/tk_TM.UTF-8.in: Likewise.
14322 * localedata/tt_RU.UTF-8.in: Likewise.
14323 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14324 * localedata/ug_CN.UTF-8.in: Likewise.
14325 * localedata/uz_UZ.UTF-8.in: Likewise.
14326 * localedata/vi_VN.UTF-8.in: Likewise.
14327 * localedata/yi_US.UTF-8.in: Likewise.
14328 * localedata/yo_NG.UTF-8.in: Likewise.
14329 * localedata/zh_CN.UTF-8.in: Likewise.
14330 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14331 file and fix bugs in the collation.
14332 * localedata/locales/az_AZ: Likewise.
14333 * localedata/locales/be_BY: Likewise.
14334 * localedata/locales/ber_DZ: Likewise.
14335 * localedata/locales/ber_MA: Likewise.
14336 * localedata/locales/bg_BG: Likewise.
14337 * localedata/locales/br_FR: Likewise.
14338 * localedata/locales/br_FR@euro: Likewise.
14339 * localedata/locales/ca_ES: Likewise.
14340 * localedata/locales/cns11643_stroke: Likewise.
14341 * localedata/locales/crh_UA: Likewise.
14342 * localedata/locales/cs_CZ: Likewise.
14343 * localedata/locales/csb_PL: Likewise.
14344 * localedata/locales/cv_RU: Likewise.
14345 * localedata/locales/cy_GB: Likewise.
14346 * localedata/locales/da_DK: Likewise.
14347 * localedata/locales/dz_BT: Likewise.
14348 * localedata/locales/en_CA: Likewise.
14349 * localedata/locales/eo: Likewise.
14350 * localedata/locales/es_CU: Likewise.
14351 * localedata/locales/es_EC: Likewise.
14352 * localedata/locales/es_ES: Likewise.
14353 * localedata/locales/es_US: Likewise.
14354 * localedata/locales/et_EE: Likewise.
14355 * localedata/locales/fa_IR: Likewise.
14356 * localedata/locales/fi_FI: Likewise.
14357 * localedata/locales/fil_PH: Likewise.
14358 * localedata/locales/fur_IT: Likewise.
14359 * localedata/locales/gez_ER@abegede: Likewise.
14360 * localedata/locales/ha_NG: Likewise.
14361 * localedata/locales/hr_HR: Likewise.
14362 * localedata/locales/hsb_DE: Likewise.
14363 * localedata/locales/hu_HU: Likewise.
14364 * localedata/locales/ig_NG: Likewise.
14365 * localedata/locales/ik_CA: Likewise.
14366 * localedata/locales/is_IS: Likewise.
14367 * localedata/locales/iso14651_t1_pinyin: Likewise.
14368 * localedata/locales/kk_KZ: Likewise.
14369 * localedata/locales/ku_TR: Likewise.
14370 * localedata/locales/ky_KG: Likewise.
14371 * localedata/locales/ln_CD: Likewise.
14372 * localedata/locales/lt_LT: Likewise.
14373 * localedata/locales/lv_LV: Likewise.
14374 * localedata/locales/mi_NZ: Likewise.
14375 * localedata/locales/ml_IN: Likewise.
14376 * localedata/locales/mn_MN: Likewise.
14377 * localedata/locales/mr_IN: Likewise.
14378 * localedata/locales/mt_MT: Likewise.
14379 * localedata/locales/nb_NO: Likewise.
14380 * localedata/locales/om_KE: Likewise.
14381 * localedata/locales/os_RU: Likewise.
14382 * localedata/locales/pl_PL: Likewise.
14383 * localedata/locales/ps_AF: Likewise.
14384 * localedata/locales/ro_RO: Likewise.
14385 * localedata/locales/ru_RU: Likewise.
14386 * localedata/locales/ru_UA: Likewise.
14387 * localedata/locales/sc_IT: Likewise.
14388 * localedata/locales/se_NO: Likewise.
14389 * localedata/locales/si_LK: Likewise.
14390 * localedata/locales/sq_AL: Likewise.
14391 * localedata/locales/sv_FI: Likewise.
14392 * localedata/locales/sv_FI@euro: Likewise.
14393 * localedata/locales/sv_SE: Likewise.
14394 * localedata/locales/szl_PL: Likewise.
14395 * localedata/locales/tg_TJ: Likewise.
14396 * localedata/locales/ti_ER: Likewise.
14397 * localedata/locales/tk_TM: Likewise.
14398 * localedata/locales/tl_PH: Likewise.
14399 * localedata/locales/tr_TR: Likewise.
14400 * localedata/locales/tt_RU: Likewise.
14401 * localedata/locales/tt_RU@iqtelif: Likewise.
14402 * localedata/locales/ug_CN: Likewise.
14403 * localedata/locales/uk_UA: Likewise.
14404 * localedata/locales/uz_UZ: Likewise.
14405 * localedata/locales/uz_UZ@cyrillic: Likewise.
14406 * localedata/locales/vi_VN: Likewise.
14407 * localedata/locales/yi_US: Likewise.
14408 * localedata/locales/yo_NG: Likewise.
14409
14410 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14411
14412 * gen-locales.mk: Make test files which contain @ modifiers in their
14413 name work.
14414 * localedata/gen-locale.sh: Likewise.
14415
14416 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14417
14418 * posix/tst-fnmatch.input: Fix results for range expressions
14419 for non C locales.
14420 * posix/tst-regexloc.c: Do not use a range expression for
14421 de_DE.ISO-8859-1 locale.
14422
14423 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14424
14425 * posix/bug-regex5.c: Fix test case because with the new
14426 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14427 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14428 file.
14429
14430 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14431
14432 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14433 downloaded from ISO, the collation order of @-. and space has changed.
14434 Therefore, this test file needed to be adapted.
14435 * localedata/fr_CA.UTF-8.in: Likewise.
14436 * localedata/fr_FR.UTF-8.in: Likewise.
14437 * localedata/uk_UA.UTF-8.in: Likewise.
14438
14439 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14440
14441 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14442 order of ȥ in the new iso14651_t1_common file.
14443 * localedata/pl_PL.UTF-8.in: Likewise.
14444
14445 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14446
14447 * localedata/locales/iso14651_t1_common: Add sections for various
14448 scripts to the iso14651_t1_common file.
14449
14450 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14451
14452 * localedata/locales/iso14651_t1_common: Use the code point of a
14453 character in the fourth collation level instead of IGNORE for all
14454 entries which have IGNORE on all 4 levels.
14455
14456 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14457
14458 * localedata/locales/iso14651_t1_common: Add some convenient collation
14459 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14460 rules similar to those in CLDR.
14461
14462 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14463
14464 * localedata/locales/iso14651_t1_common: The new version of this
14465 file downloaded from ISO contained several syntax errors which
14466 are fixed by this patch.
14467
14468 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14469
14470 * localedata/locales/iso14651_t1_common: replace all <U.....>
14471 with <U000.....> because glibc understands only 4 digit or 8 digit
14472
14473 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14474
14475 * localedata/locales/iso14651_t1_common: Necessary changes
14476 to make the file downloaded from ISO usable by glibc.
14477
14478 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14479
14480 [BZ #14095]
14481 * localedata/locales/iso14651_t1_common: Update file to
14482 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14483
14484 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14485
14486 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14487 of <nptl/pthreadP.h>
14488 (thread_attr_compare): Move function to...
14489 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14490 * sysdeps/nptl/timer_routines.h: ... new header.
14491 * sysdeps/mach/hurd/gai_misc.h: New file.
14492
14493 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14494
14495 * string/strcoll_l.c: Include <libc-diag.h>.
14496 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14497 declarations of seq1 and seq2.
14498
14499 [BZ #15105]
14500 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14501 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14502
14503 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14504
14505 [BZ #22433]
14506 [BZ #22807]
14507 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14508 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14509 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14510 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14511 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14512 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14513
14514 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14515
14516 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14517 macros used in __ptrace_request.
14518
14519 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14520
14521 [BZ #22792]
14522 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14523 to $(CC).
14524 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14525 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14526 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14527 <tcb-offsets.h>.
14528
14529 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14530
14531 [BZ #15105]
14532 * ctype/ctype.c (tolower): Use libc_hidden_def.
14533 (toupper): Likewise.
14534 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14535 [!_ISOMAC] (toupper): Likewise.
14536
14537 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14538
14539 * localedata/Makefile: Remove --quiet argument when
14540 installing locales
14541
14542 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14543
14544 [BZ #17438]
14545 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14546 in d_fmt.
14547 * localedata/locales/pt_PT (LC_TIME): likewise
14548
14549 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14550
14551 [BZ #22646]
14552 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14553 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14554 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14555
14556 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14557
14558 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14559
14560 * nptl/Makefile (routines): Remove unregister-atfork.
14561 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14562 (fork_handler_alloc): Remove function.
14563 (fork_handlers, fork_handler_init): New variables.
14564 (__fork_lock): Rename to atfork_lock.
14565 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14566 to use a dynamic array to add/remove atfork handlers.
14567 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14568 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14569 Remove declaration.
14570 (fork_handler): Remove next, refcntr, and need_signal member.
14571 (__run_fork_handler_type): New enum.
14572 (__run_fork_handlers): New prototype.
14573 * nptl/register-atfork.c: Remove file.
14574 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14575
14576 * sysdeps/nptl/nptl-signals.h: Move to ...
14577 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14578 comments.
14579 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14580 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14581 unnecessary check for SIGTIMER.
14582 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14583 remove unnecessary removal of SIGTIMER.
14584 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14585 include-signals.h rename.
14586 * nptl/pthreadP.h: Likewise.
14587 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14588 __is_internal_signal instead of __nptl_is_internal_signal.
14589
14590 2018-02-22 Andrew Waterman <andrew@sifive.com>
14591
14592 [BZ # 22884]
14593 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14594 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14595 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14596 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14597
14598 2018-02-22 DJ Delorie <dj@delorie.com>
14599
14600 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14601
14602 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14603
14604 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14605 do_misaligned, not misaligned8.
14606
14607 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14608
14609 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14610 Add memcpy_thunderx2.
14611 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14612 Increment to 4.
14613 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14614 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14615 and IS_THUNDERX2PA checks.
14616 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14617 Use macro to set name appropriately.
14618 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14619 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14620 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14621 New macro.
14622 (IS_THUNDERX2): New macro.
14623
14624 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14625
14626 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14627
14628 2018-02-21 Zack Weinberg <zackw@panix.com>
14629
14630 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14631 Define here, unconditionally.
14632 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14633 * libio/libioP.h: Remove #if 0 blocks.
14634 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14635 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14636 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14637
14638 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14639 Assume weak_alias is always defined.
14640
14641 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14642 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14643 Remove #if 0 and #ifdef TODO blocks.
14644 Assume text_set_element is always defined.
14645
14646 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14647 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14648 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14649
14650 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14651 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14652 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14653 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14654 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14655 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14656 Reformat bit flags for _flags field to make occupancy clearer.
14657 Update commentary.
14658 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14659 Keep definitions consistent with those in libio/libio.h.
14660
14661 * libio/libio.h (_IO_file_flags): Remove macro.
14662 All uses changed to _flags.
14663
14664 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14665 (__HAVE_COLUMN, _IO_BE): Don't define.
14666 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14667 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14668 * libio/libioP.h (EOF): Don't define.
14669 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14670 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14671 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14672 testing _IO_UNIFIED_JUMPTABLES.
14673
14674 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14675 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14676 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14677 (_IO_size_t): Delete; all uses changed to size_t.
14678 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14679 (_IO_off_t): Delete; all uses changed to off_t.
14680 (_IO_off64_t): Delete; all uses changed to off64_t.
14681 (_IO_pid_t): Delete; all uses changed to pid_t.
14682 (_IO_uid_t): Delete; all uses changed to uid_t.
14683 (_IO_wint_t): Delete; all uses changed to wint_t.
14684 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14685 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14686 (_IO_cookie_io_functions_t): Delete; all uses changed to
14687 cookie_io_functions_t.
14688 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14689 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14690 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14691 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14692
14693 * libio/iofopncook.c: Remove unnecessary forward declarations.
14694 * libio/iolibio.h: Correct outdated commentary.
14695 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14696 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14697 Remove unnecessary casts.
14698 * stdio-common/getline.c: Use _IO_getdelim directly.
14699 Don't redefine ssize_t.
14700 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14701 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14702 Remove outdated comments.
14703 * stdio-common/vfscanf.c: Don't redefine va_list.
14704
14705 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14706 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14707 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14708 which are always true, and __cplusplus, which is always false.
14709
14710 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14711
14712 [BZ #15105]
14713 [BZ #19463]
14714 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14715 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14716 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14717 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14718 libc_hidden_proto.
14719 [!_ISOMAC] (putc_unlocked): Likewise.
14720 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14721 define inline if [__USE_EXTERN_INLINES].
14722 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14723 putc_unlocked.
14724
14725 [BZ #15105]
14726 [BZ #19463]
14727 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14728 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14729 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14730 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14731 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14732 getc_unlocked.
14733 * time/tzfile.c (__tzfile_read): Likewise.
14734
14735 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14736
14737 [BZ #22517]
14738 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14739
14740 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14741
14742 * io/fcntl.h: Fix a typo in a comment.
14743
14744 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14745
14746 [BZ #22862]
14747 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14748 define _DEFAULT_SOURCE.
14749 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14750
14751 2018-02-21 Florian Weimer <fweimer@redhat.com>
14752
14753 [BZ #20890]
14754 * elf/cache.c (save_cache): Call fsync on temporary file before
14755 renaming it.
14756 (save_aux_cache): Call fdatasync on temporary file before renaming
14757 it.
14758
14759 2018-02-21 Florian Weimer <fweimer@redhat.com>
14760
14761 [BZ #22787]
14762 * include/caller.h: Remove file.
14763 * elf/dl-caller.c: Likewise.
14764 * elf/Makefile (dl-routines): Remove dl-caller.
14765 (shared-only-routines): Do not add dl-caller.
14766 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14767 __check_caller.
14768 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14769 member.
14770 (dl_open_worker): Do not call __check_caller.
14771 (_dl_open): Do not set caller_dl_open member.
14772 * elf/rtld.c (_rtld_global_ro): Do not initialize
14773 _dl_check_caller member.
14774 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14775 _dl_check_caller member.
14776 (_dl_check_caller): Remove declaration.
14777 * sysdeps/unix/sysv/linux/dl-execstack.c
14778 (_dl_make_stack_executable): Do not call __check_caller.
14779
14780 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14781
14782 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14783 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14784
14785 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14786
14787 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14788 description.
14789
14790 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14791
14792 [BZ #16335]
14793 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14794 of 199606L, 200112L, and 200809L.
14795 (_XOPEN_SOURCE): Document special values of 600 and 700.
14796 (_ISOC11_SOURCE): Document macro.
14797 (_ATFILE_SOURCE): Likewise.
14798 (_FORTIFY_SOURCE): Likewise.
14799
14800 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14801
14802 [BZ #15105]
14803 [BZ #19463]
14804 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14805 and define as weak alias of __ferror_unlocked. Use
14806 libc_hidden_weak.
14807 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14808 libc_hidden_proto.
14809 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14810 function if [__USE_EXTERN_INLINES].
14811 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14812 ferror_unlocked.
14813
14814 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14815
14816 [BZ #6889]
14817 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14818
14819 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14820
14821 [BZ #22818]
14822 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14823 the GLIBC_2.1 version.
14824
14825 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14826
14827 [BZ #21508]
14828 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14829 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14830 intl/tst-gettext-de.po from po/de.po by removing the
14831 POT-Creation-Date line.
14832 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14833 ../po/de.po.
14834 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14835 ../po/de.po.
14836
14837 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14838
14839 * mach/Makefile (headers): Add mach/param.h.
14840 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14841 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14842 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14843 (__ptsname_r): Move implementation to...
14844 (__ptsname_internal): ... new function. Add filling the STP
14845 structure.
14846
14847 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14848
14849 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14850 idouble to 1 ULP.
14851
14852 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14853
14854 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14855 syntax.
14856
14857 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14858
14859 * nptl/Makefile (tst-mutex8-ENV): Delete.
14860 * nptl/tst-mutex8.c (check_type):
14861 Add runtime check if mutex will be elided.
14862
14863 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14864
14865 [BZ #20980]
14866 [BZ #21234]
14867 * manual/install.texi (Configuring and compiling): Describe
14868 passing CC and CFLAGS on configure command line, not as
14869 environment variables. Use @code markup on those variables.
14870 Specify what options go in CC and what go in CFLAGS. Note the
14871 requirement to compile with optimization.
14872 * INSTALL: Regenerated.
14873
14874 [BZ #18124]
14875 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14876 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14877 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14878 __sigprocmask instead of sigprocmask.
14879 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14880 Likewise.
14881 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14882 __sigsetjmp and sigprocmask.
14883
14884 [BZ #15105]
14885 * include/argz.h (argz_next): Use libc_hidden_proto.
14886 (__argz_next): Likewise.
14887 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14888 (argz_next): Use libc_hidden_weak.
14889
14890 [BZ #15105]
14891 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14892 libc_hidden_proto.
14893 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14894 libc_hidden_def.
14895
14896 [BZ #15105]
14897 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14898 libc_hidden_proto.
14899 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14900
14901 [BZ #15105]
14902 [BZ #19463]
14903 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14904 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14905 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14906 (__feof_unlocked): New declaration, and inline function if
14907 [__USE_EXTERN_INLINES].
14908 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14909 instead of feof_unlocked.
14910 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14911 * nss/nsswitch.c (nss_parse_file): Likewise.
14912 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
14913 Likewise.
14914 * time/getdate.c (__getdate_r): Likewise.
14915 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
14916 Define as macro to call __feof_unlocked.
14917
14918 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14919
14920 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
14921
14922 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14923
14924 * math/Makefile: Remove mpexp.c and mplog.c
14925 * sysdeps/i386/fpu/mpexp.c: Delete file.
14926 * sysdeps/i386/fpu/mplog.c: Likewise.
14927 * sysdeps/ia64/fpu/mpexp.c: Likewise.
14928 * sysdeps/ia64/fpu/mplog.c: Likewise.
14929 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
14930 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
14931 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
14932 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14933 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
14934 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
14935 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
14936 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
14937 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14938 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14939 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
14940 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14941 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14942 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
14943 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14944 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14945
14946 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
14947
14948 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14949
14950 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14951
14952 * sysdeps/sh/libm-test-ulps: Update.
14953
14954 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14955
14956 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
14957 idouble to 1 ULP.
14958
14959 2018-02-12 Zack Weinberg <zackw@panix.com>
14960
14961 [BZ #19239]
14962 * posix/sys/types.h: Don't include sys/sysmacros.h.
14963 * misc/sys/sysmacros.h: Remove the conditional deprecation
14964 warnings for the macros defined by this header.
14965
14966 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14967
14968 * manual/probes.texi: Remove slowexp probes.
14969 * math/Makefile: Remove slowexp.
14970 * sysdeps/generic/math_private.h (__slowexp): Remove.
14971 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
14972 document error bounds.
14973 * sysdeps/i386/fpu/slowexp.c: Remove.
14974 * sysdeps/ia64/fpu/slowexp.c: Remove.
14975 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
14976 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
14977 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
14978 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
14979 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
14980 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
14981 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
14982 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
14983 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
14984 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
14985 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
14986
14987 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
14988
14989 [BZ #13932]
14990 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
14991 * benchtests/pow-inputs: Update comment for slow path cases.
14992 * manual/probes.texi (slowpow_p10): Delete removed probe.
14993 (slowpow_p10): Likewise.
14994 * math/Makefile: Remove halfulp.c and slowpow.c.
14995 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
14996 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
14997 (__halfulp): Remove.
14998 (__slowpow): Remove.
14999 * sysdeps/i386/fpu/halfulp.c: Delete file.
15000 * sysdeps/i386/fpu/slowpow.c: Likewise.
15001 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15002 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15003 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15004 improve comments and add error analysis.
15005 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15006 (power1): Remove function:
15007 (log1): Remove error argument, add error analysis.
15008 (my_log2): Remove function.
15009 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15010 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15011 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15012 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15013 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15014 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15015 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15016 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15017 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15018 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15019 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15020 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15021 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15022 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15023
15024 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15025
15026 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15027 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15028
15029 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15030
15031 [BZ #22433]
15032 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15033 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15034 and PTRACE_SETHBPREGS.
15035
15036 2018-02-10 Zack Weinberg <zackw@panix.com>
15037
15038 [BZ #22830]
15039 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15040 correctly.
15041 * malloc/tst-malloc-stats-cancellation.c: New test case.
15042 * malloc/Makefile: Add new test case.
15043
15044 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15045
15046 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15047
15048 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15049
15050 * math/Makefile (libm-narrow-fns): Add add.
15051 (libm-test-funcs-narrow): Likewise.
15052 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15053 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15054 * math/gen-auto-libm-tests.c (test_functions): Add add.
15055 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15056 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15057 (NARROW_ADD_TRIVIAL): Likewise.
15058 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15059 macro.
15060 (__daddl): Likewise.
15061 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15062 dadd.
15063 (CFLAGS-nldbl-dadd.c): New variable.
15064 (CFLAGS-nldbl-fadd.c): Likewise.
15065 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15066 __nldbl_daddl.
15067 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15068 prototype.
15069 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15070 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15071 * math/auto-libm-test-in: Add tests of add.
15072 * math/auto-libm-test-out-narrow-add: New generated file.
15073 * math/libm-test-narrow-add.inc: New file.
15074 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15075 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15076 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15077 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15078 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15079 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15080 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15081 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15082 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15083 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15084 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15085 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15086 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15087 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15088 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15089 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15090 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15091 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15092 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15093 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15094 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15096 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15097 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15098 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15099 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15101 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15102 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15103 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15104 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15105 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15110 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15113 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15115 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15116 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15117 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15118 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15119 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15120
15121 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15122 (f128-pairs): New variable.
15123 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15124 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15125 to CFLAGS.
15126 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15127 Also make tests add $(f128-loader-link) to gnulib-tests.
15128
15129 2018-02-09 DJ Delorie <dj@redhat.com>
15130
15131 [BZ #22827]
15132 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15133 64-bit ELF type for 64-bit ELF objects.
15134
15135 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15136
15137 * math/libm-test-driver.c (snan_tests_arg): New variable.
15138 * math/libm-test-support.h (snan_tests_arg): New declaration.
15139 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15140
15141 * math/Makefile (test-type-pairs): New variable.
15142 (test-type-pairs-f64xf128-yes): Likewise.
15143 (tests): Add test-narrow-macros.
15144 (libm-test-funcs-narrow): New variable.
15145 (libm-test-c-narrow): Likewise.
15146 (generated): Add $(libm-test-c-narrow).
15147 (libm-tests-base-narrow): New variable.
15148 (libm-tests-narrow): Likewise.
15149 (libm-tests): Add $(libm-tests-narrow).
15150 (libm-tests-for-type): Handle $(libm-tests-narrow).
15151 (libm-test-c-narrow-obj): New variable.
15152 ($(libm-test-c-narrow-obj)): New rule.
15153 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15154 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15155 $(o-iterator) to set dependencies and CFLAGS.
15156 * math/gen-auto-libm-tests.c: Document use for narrowing
15157 functions.
15158 (output_for_one_input_case): Take argument NARROW.
15159 (generate_output): Likewise. Update call to
15160 output_for_one_input_case.
15161 (main): Take --narrow option. Update call to generate_output.
15162 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15163 (apply_lit): Update call to _apply_lit.
15164 (apply_arglit): New function.
15165 (parse_args): Handle "a" arguments.
15166 (parse_auto_input): Handle format names using ":".
15167 * math/README.libm-test: Document "a" parameter type.
15168 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15169 (ARG_TYPE_TRUE_MIN): Likewise.
15170 (ARG_TYPE_MAX): Likwise.
15171 (ARG_MIN_EXP): Likewise.
15172 (ARG_MAX_EXP): Likewise.
15173 (ARG_MANT_DIG): Likewise.
15174 (TEST_COND_arg_ibm128): Likewise.
15175 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15176 (TEST_COND_arg_fmt): New macro.
15177 (init_max_error): Update prototype.
15178 * math/libm-test-support.c (test_ibm128): New variable.
15179 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15180 instead of using [TEST_COND_ibm128] conditional.
15181 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15182 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15183 [TEST_NARROW] (TEST_MSG): New definition.
15184 (arg_plus_zero): New macro.
15185 (arg_minus_zero): Likewise.
15186 (arg_plus_infty): Likewise.
15187 (arg_minus_infty): Likewise.
15188 (arg_qnan_value_pl): Likewise.
15189 (arg_qnan_value): Likewise.
15190 (arg_snan_value_pl): Likewise.
15191 (arg_snan_value): Likewise.
15192 (arg_max_value): Likewise.
15193 (arg_min_value): Likewise.
15194 (arg_min_subnorm_value): Likewise.
15195 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15196 (RUN_TEST_LOOP_aa_f): New macro.
15197 (TEST_SUFF): New macro.
15198 (TEST_SUFF_STR): Likewise.
15199 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15200 (TEST_COND_any_ibm128): New macro.
15201 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15202 this_func. Update call to init_max_error.
15203 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15204 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15205 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15206 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15207 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15208 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15209 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15210 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15211 * math/test-math-vector.h (TEST_NARROW): Likewise.
15212 * math/test-arg-double.h: New file.
15213 * math/test-arg-float128.h: Likewise.
15214 * math/test-arg-float32x.h: Likewise.
15215 * math/test-arg-float64.h: Likewise.
15216 * math/test-arg-float64x.h: Likewise.
15217 * math/test-arg-ldouble.h: Likewise.
15218 * math/test-math-narrow.h: Likewise.
15219 * math/test-narrow-macros.c: Likewise.
15220 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15221 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15222 test-narrow-macros-ldbl-64.
15223 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15224
15225 * math/bits/mathcalls-narrow.h: New file.
15226 * include/bits/mathcalls-narrow.h: Likewise.
15227 * math/math-narrow.h: Likewise.
15228 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15229 (__MATHCALL_NARROW_ARGS_2): Likewise.
15230 (__MATHCALL_NARROW_ARGS_3): Likewise.
15231 (__MATHCALL_NARROW_NORMAL): Likewise.
15232 (__MATHCALL_NARROW_REDIR): Likewise.
15233 (__MATHCALL_NARROW): Likewise.
15234 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15235 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15236 defined.
15237 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15238 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15239 (libm-narrow-fns): New variable.
15240 (libm-narrow-types-basic): Likewise.
15241 (libm-narrow-types-ldouble-yes): Likewise.
15242 (libm-narrow-types-float128-yes): Likewise.
15243 (libm-narrow-types-float128-alias-yes): Likewise.
15244 (libm-narrow-types): Likewise.
15245 (libm-routines): Add narrowing functions.
15246 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15247 (libc_feholdexcept_setroundf128): New macro.
15248 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15249 * sysdeps/ieee754/float128/float128_private.h: Include
15250 <math/math-narrow.h>.
15251 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15252 Undefine and redefine.
15253 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15254 (libm_alias_float_ldouble): Undefine and redefine.
15255 (libm_alias_double_ldouble): Likewise.
15256
15257 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15258
15259 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15260
15261 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15262 FPCR/FPSR.
15263
15264 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15265
15266 * manual/creature.texi: Convert references to gcc.info to gcc.
15267 * manual/stdio.texi: Likewise.
15268 * manual/string.texi: Likewise.
15269
15270 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15271
15272 [BZ #17979]
15273 * posix/bits/types.h (__int_least8_t): New typedef.
15274 (__uint_least8_t): Likewise.
15275 (__int_least16_t): Likewise.
15276 (__uint_least16_t): Likewise.
15277 (__int_least32_t): Likewise.
15278 (__uint_least32_t): Likewise.
15279 (__int_least64_t): Likewise.
15280 (__uint_least64_t): Likewise.
15281 * sysdeps/generic/stdint.h (int_least8_t): Define using
15282 __int_least8_t.
15283 (int_least16_t): Define using __int_least16_t.
15284 (int_least32_t): Define using __int_least32_t.
15285 (int_least64_t): Define using __int_least64_t.
15286 (uint_least8_t): Define using __uint_least8_t.
15287 (uint_least16_t): Define using __uint_least16_t.
15288 (uint_least32_t): Define using __uint_least32_t.
15289 (uint_least64_t): Define using __uint_least64_t.
15290 * wcsmbs/uchar.h: Include <bits/types.h>.
15291 (char16_t): Define using __uint_least16_t conditional only on
15292 [!__USE_ISOCXX11].
15293 (char32_t): Define using __uint_least32_t conditional only on
15294 [!__USE_ISOCXX11].
15295 * wcsmbs/test-char-types.c: New file.
15296 * wcsmbs/Makefile (tests): Add test-char-types.
15297
15298 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15299 version to 4.0.1.
15300
15301 2018-02-07 Zack Weinberg <zackw@panix.com>
15302
15303 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15304 Delete all contents except for definitions of _G_HAVE_MMAP and
15305 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15306 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15307 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15308 change as above.
15309
15310 * libio/libio.h: Don't include bits/_G_config.h here.
15311 Include stddef.h with __need_wchar_t defined. Include
15312 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15313 Define _IO_iconv_t here, directly.
15314 Don't define _IO_HAVE_ST_BLKSIZE.
15315 * libio/libioP.h: Include _G_config.h here. Move include of
15316 shlib-compat.h up with rest of includes. Simplify conditionals
15317 controlling definition of _IO_JUMPS_OFFSET.
15318
15319 * csu/init.c: Remove always-true #if around entire file.
15320 Don't include stdio.h. Set _IO_stdin_used to hardwired
15321 constant 0x20001, and update commentary.
15322 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15323 Replace all uses of _G_va_list with __gnuc_va_list.
15324 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15325 instead of #if _IO_HAVE_ST_BLKSIZE.
15326 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15327 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15328 not #ifdef.
15329
15330 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15331 multiple-include guard to match.
15332 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15333 into this file.
15334 Remove preprocessor conditionals that are always true and/or
15335 redundant to other preprocessor conditionals in the same nest.
15336 Include shlib-compat.h unconditionally.
15337 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15338 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15339 defined after including stdio.h.
15340 Use __BEGIN_DECLS/__END_DECLS.
15341
15342 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15343 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15344 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15345
15346 2018-02-07 Zack Weinberg <zackw@panix.com>
15347
15348 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15349 New single-type headers split from _G_config.h.
15350 * libio/bits/types/cookie_io_functions_t.h
15351 * libio/bits/types/struct_FILE.h
15352 New single-type headers split from libio.h.
15353
15354 * libio/Makefile: Install the above new headers. Don't install
15355 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15356 bits/libio-ldbl.h.
15357 * libio/_G_config.h, libio/libio.h: Delete file.
15358
15359 * libio/bits/libio.h: Remove improper-inclusion guard.
15360 Include stdio.h and don't repeat anything that it does.
15361 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15362 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15363 __io_read_fn as cookie_read_function_t,
15364 __io_write_fn as cookie_write_function_t,
15365 __io_seek_fn as cookie_seek_function_t,
15366 __io_close_fn as cookie_close_function_t,
15367 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15368 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15369 here, in the "compatibility defines" section. Remove an #if 0
15370 block. Use the "body" macros from bits/types/struct_FILE.h to
15371 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15372 and _IO_ferror_unlocked.
15373 Move prototypes of __uflow and __overflow...
15374
15375 * libio/stdio.h: ...here. Don't include bits/libio.h.
15376 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15377 directly from stdarg.h. Include bits/types/__fpos_t.h,
15378 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15379 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15380 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15381 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15382 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15383 __ssize_t, not _IO_ssize_t. Unconditionally define
15384 BUFSIZ as 8192 and EOF as (-1).
15385
15386 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15387 macros from bits/types/struct_FILE.h instead of _IO_* macros
15388 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15389 instead of _IO_ssize_t.
15390 * libio/bits/stdio2.h: Similarly.
15391
15392 * libio/iolibio.h: Add multiple-include guard.
15393 Include bits/libio.h after stdio.h.
15394 * libio/libioP.h: Add multiple-include guard.
15395 Include stdio.h and bits/libio.h before iolibio.h.
15396
15397 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15398 * include/bits/types/cookie_io_functions_t.h
15399 * include/bits/types/struct_FILE.h: New wrappers.
15400
15401 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15402 Get definitions of _G_fpos_t and _G_fpos64_t from
15403 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15404 respectively. Remove improper-inclusion guards.
15405
15406 * conform/data/stdio.h-data: Update expectations of va_list.
15407 * scripts/check-installed-headers.sh: Remove special case for
15408 libio.h and _G_config.h.
15409
15410 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15411
15412 [BZ #15105]
15413 [BZ #19463]
15414 * include/sys/sysmacros.h [!_ISOMAC]
15415 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15416 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15417 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15418 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15419 libc_hidden_proto.
15420 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15421 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15422 Likewise.
15423 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15424 Undefine and redefine to add use __gnu_dev_ prefix.
15425 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15426 Likewise.
15427 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15428 and define as hidden inline function.
15429 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15430 Likewise.
15431 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15432 Likewise.
15433 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15434 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15435 (gnu_dev_minor): Likewise.
15436 (gnu_dev_makedev): Likewise.
15437 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15438 makedev.
15439 * posix/wordexp.c (exec_comm_child): Likewise.
15440 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15441 instead of minor and __gnu_dev_major instead of major.
15442 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15443 __gnu_dev_major instead of major.
15444 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15445 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15446 instead of gnu_dev_minor.
15447 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15448 (SLAVE_P): Likewise.
15449 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15450 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15451 instead of major.
15452
15453 [BZ #21313]
15454 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15455 in another place.
15456 * locale/weightwc.h (findidx): Likewise.
15457
15458 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15459
15460 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15461 (slowlog_inexact): Likewise
15462 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15463 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15464
15465 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15466
15467 [BZ #22797]
15468 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15469 missing second underscore to parameter name.
15470
15471 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15472
15473 [BZ #14508]
15474 [BZ #15512]
15475 [BZ #17082]
15476 [BZ #20530]
15477 * bits/byteswap.h: Update file comment. Do not include
15478 <bits/byteswap-16.h>.
15479 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15480 constant.
15481 (__bswap_16): Define as inline function.
15482 (__bswap_constant_32): Reformat definition.
15483 (__bswap_32): Always define as inline function, not macro, using
15484 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15485 otherwise __bswap_constant_32.
15486 (__bswap_constant_64): Reformat definition. Do not use
15487 __extension__ here.
15488 (__bswap_64): Always define as inline function, not macro. Use
15489 __extension__ on function definition. Use __builtin_bswap64 if
15490 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15491 * string/test-endian-file-scope.c: New file.
15492 * string/test-endian-sign-conversion.c: Likewise.
15493 * string/Makefile (headers): Remove bits/byteswap-16.h.
15494 (tests): Add test-endian-file-scope and
15495 test-endian-sign-conversion.
15496 (CFLAGS-test-endian-sign-conversion.c): New variable.
15497 * bits/byteswap-16.h: Remove file.
15498 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15499 * sysdeps/ia64/bits/byteswap.h: Likewise.
15500 * sysdeps/m68k/bits/byteswap.h: Likewise.
15501 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15502 * sysdeps/s390/bits/byteswap.h: Likewise.
15503 * sysdeps/tile/bits/byteswap.h: Likewise.
15504 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15505 * sysdeps/x86/bits/byteswap.h: Likewise.
15506
15507 [BZ #17721]
15508 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15509 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15510 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15511 199901L] (__restrict): Define to restrict.
15512
15513 [BZ #19667]
15514 * string/testcopy.c: Include <support/support.h>. Do not include
15515 <malloc.h>. Use <support/test-driver.c>.
15516 (main): Rename to do_test. Make static. Use xmalloc instead of
15517 malloc.
15518
15519 [BZ #13575]
15520 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15521 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15522 (SSIZE_MAX): Define to INT_MAX.
15523 * posix/test-ssize-max.c: New file.
15524 * posix/Makefile (tests): Add test-ssize-max.
15525
15526 [BZ #19668]
15527 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15528 <support/support.h>. Do not include <malloc.h>.
15529 (query_auxv): Use xmalloc instead of malloc.
15530
15531 [BZ #14553]
15532 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15533 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15534 instead of loff_t.
15535
15536 2018-02-06 Florian Weimer <fweimer@redhat.com>
15537
15538 [BZ #18023]
15539 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15540 Use scratch_buffer instead of extend_alloca.
15541
15542 2018-02-06 Zack Weinberg <zackw@panix.com>
15543
15544 * libio/stdio.h: Don't define getc or putc as macros.
15545 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15546 not _IO_getc and _IO_putc.
15547
15548 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15549 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15550
15551 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15552
15553 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15554 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15555
15556 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15557
15558 [BZ #14890]
15559 * elf/elf.h (NT_PRFPREG): New macro.
15560 (NT_S390_VXRS_LOW): Likewise.
15561 (NT_S390_VXRS_HIGH): Likewise.
15562 (NT_S390_GS_CB): Likewise.
15563 (NT_S390_GS_BC): Likewise.
15564 (NT_S390_RI_CB): Likewise.
15565
15566 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15567 (MAP_SYNC): New macro.
15568 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15569 Likewise.
15570 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15571 (MAP_SYNC): Likewise.
15572 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15573 (MAP_SYNC): Likewise.
15574 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15575 (MAP_SYNC): Likewise.
15576 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15577 (MAP_SYNC): Likewise.
15578 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15579 (MAP_SYNC): Likewise.
15580 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15581 (MAP_SYNC): Likewise.
15582 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15583 Likewise.
15584 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15585 Likewise.
15586
15587 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15588 (MAP_SHARED_VALIDATE): New macro.
15589 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15590 (MAP_SHARED_VALIDATE): Likewise.
15591
15592 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15593
15594 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15595 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15596 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15597
15598 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15599
15600 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15601 (DT_NUM): Updated to 35.
15602
15603 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15604
15605 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15606 __builtin_expect with __glibc_likely and __glibc_unlikely.
15607 (elf_machine_rela): Likewise.
15608 (elf_machine_lazy_rel): Likewise.
15609
15610 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15611
15612 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15613 __builtin_expect with __glibc_likely and __glibc_unlikely.
15614 (elf_machine_lazy_rel): Likewise.
15615
15616 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15617
15618 [BZ #22638]
15619 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15620 SHARED.
15621 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15622
15623 2018-02-05 Andreas Schwab <schwab@suse.de>
15624
15625 [BZ #22761]
15626 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15627 string.
15628
15629 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15630
15631 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15632 not check against PTHREAD_STACK_MIN.
15633
15634 2018-02-02 Sean McKean <smckean83@gmail.com>
15635
15636 [BZ #22735]
15637 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15638
15639 2018-02-02 Florian Weimer <fweimer@redhat.com>
15640
15641 [BZ #22753]
15642 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15643 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15644 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15645 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15646 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15647 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15648 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15649 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15650 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15651 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15652 * misc/tst-preadvwritev2.c (do_test): Call it.
15653 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15654
15655 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15656
15657 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15658
15659 * benchtests/bench-memcmp.c: Print json instead of plain text.
15660
15661 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15662 every test run.
15663
15664 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15665
15666 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15667 version to 4.15.
15668 (s390_sthyi): New syscall.
15669
15670 * sysdeps/generic/ldbl-classify-compat.h: New file.
15671 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15672 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15673 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15674 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15675 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15676 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15677 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15678 <ldbl-classify-compat.h>.
15679 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15680 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15681 <ldbl-classify-compat.h>.
15682 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15683 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15684 <ldbl-classify-compat.h>.
15685 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15686 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15687 <ldbl-classify-compat.h>.
15688 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15689 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15690 <ldbl-classify-compat.h>.
15691 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15692 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15693 <ldbl-classify-compat.h>.
15694 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15695 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15696 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15697 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15698 * sysdeps/microblaze/math_private.h: Likewise.
15699 * sysdeps/nios2/math_private.h: Likewise.
15700 * sysdeps/sh/math_private.h: Likewise.
15701
15702 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15703 * sysdeps/m68k/coldfire/math_private.h: ... here.
15704 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15705 * sysdeps/tile/math_private.h: Likewise.
15706 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15707 Remove macro.
15708 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15709 Likewise.
15710
15711 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15712 Remove macro.
15713 (libc_fetestexcept): Likewise.
15714 (libc_feupdateenv_test): Likewise.
15715 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15716 (libc_fetestexcept): Likewise.
15717 (libc_feupdateenv_test): Likewise.
15718 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15719 (libc_fetestexcept): Likewise.
15720 (libc_feupdateenv_test): Likewise.
15721 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15722 (libc_fetestexcept): Likewise.
15723 (libc_feupdateenv_test): Likewise.
15724
15725 * sysdeps/generic/math_private.h
15726 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15727 New inline function.
15728 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15729 Likewise.
15730
15731 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15732 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15733 * sysdeps/generic/math_private.h
15734 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15735 inline function.
15736 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15737 Likewise.
15738 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15739 Likewise.
15740 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15741 Likewise.
15742 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15743 Likewise.
15744 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15745 Likewise.
15746 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15747 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15748 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15749 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15750 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15751 (__fegetenv): Likewise.
15752 (fesetenv): Likewise.
15753 (__fesetenv): Likewise.
15754 (feupdateenv): Likewise.
15755 (__feupdateenv): Likewise.
15756 (fegetround): Likewise.
15757 (__fegetround): Likewise.
15758 (fesetround): Likewise.
15759 (__fesetround): Likewise.
15760
15761 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15762 (feraiseexcept): New macro.
15763 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15764 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15765 Remove macro.
15766 (__feraiseexcept): Likewise.
15767 (feclearexcept): Likewise.
15768 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15769 (__feraiseexcept): Likewise.
15770 (feclearexcept): Likewise.
15771 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15772 (__feraiseexcept): Likewise.
15773 (feclearexcept): Likewise.
15774 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15775 (__feraiseexcept): Likewise.
15776 (feclearexcept): Likewise.
15777 (fetestexcept): Likewise.
15778
15779 * sysdeps/m68k/coldfire/math-tests.h: New file.
15780
15781 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15782 * sysdeps/m68k/bits/fenv.h: ... here.
15783 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15784 not define.
15785 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15786 Likewise.
15787 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15788 Likewise.
15789 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15790 Likewise.
15791 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15792 Likewise.
15793 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15794 Define to 0.
15795 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15796 (__FE_UNDEFINED): New enum constant.
15797 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15798 Do not define.
15799 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15800 Likewise.
15801 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15802 Likewise.
15803 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15804 to match generic bits/fenv.h.
15805 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15806 Do not define.
15807
15808 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15809 packed on bits.
15810 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15811 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15812 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15813 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15814
15815 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15816 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15817 Joseph Myers <joseph@codesourcery.com>
15818
15819 [BZ #21314]
15820 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15821 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15822 computation using c.
15823 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15824 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15825 computation using c.
15826
15827 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15828
15829 * version.h (RELEASE): Set to "development".
15830 (VERSION): Set to "2.27.9000".
15831 * NEWS (2.28): New section.
15832
15833 * version.h (RELEASE): Set to "stable".
15834 (VERSION): Set to "2.27".
15835 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15836
15837 * NEWS: Add the list of bugs fixed in 2.27.
15838
15839 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15840
15841 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15842 against PTHREAD_STACK_MIN.
15843
15844 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15845
15846 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15847 New entries.
15848 (Rafal Luzynski, Andreas Schwab): Update.
15849
15850 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15851
15852 [BZ #10871]
15853 * NEWS: List the languages which actually use the alternative
15854 months feature in this release. Also explain that "alt_mon" and
15855 "ab_alt_mon" are optional.
15856
15857 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15858
15859 [BZ #22765]
15860 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15861
15862 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15863
15864 * manual/install.texi (Tools for Compilation): Update the newest
15865 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15866 * INSTALL: Regenerated.
15867
15868 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15869
15870 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15871 instead of __builtin_expect.
15872
15873 2018-01-30 Florian Weimer <fweimer@redhat.com>
15874
15875 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15876 data.
15877 * nss/tst-nss-getpwent.c (do_test): Likewise.
15878
15879 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15880
15881 [BZ #10871]
15882 * localedata/locales/hr_HR (mon): Rename to...
15883 (alt_mon): This.
15884 (mon): Import from CLDR (genitive case).
15885 (d_t_fmt): Update the comment.
15886
15887 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15888
15889 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15890 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15891 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15892
15893 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15894
15895 * mach/Versions: Fix version when __mach_host_self_ was added.
15896 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15897 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15898 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15899 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15900 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15901 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15902 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15903 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15904 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15905 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15906 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15907 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15908 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15909 || to respect codestyle.
15910 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15911 (do_test_bz20181): Rename accordingly.
15912 * malloc/malloc.c: Include <assert.h>.
15913 (assert): Do not define.
15914 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
15915 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
15916 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
15917 * sysdeps/mach/hurd/hp-timing.h: New file.
15918 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
15919
15920 2018-01-29 Darius Rad <darius@bluespec.com>
15921
15922 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
15923
15924 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
15925
15926 * sysdeps/init_array/crti.S (.section .init_array): Add
15927 PREINIT_FUNCTION when defined.
15928 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
15929 * config.h.in: Regenerate.
15930 * manual/platform.texi: Add RISC-V documenation for
15931 __riscv_flush_icache.
15932 * sysdeps/riscv/__longjmp.S: New file.
15933 * sysdeps/riscv/backtrace.c: Likewise.
15934 * sysdeps/riscv/bits/endian.h: Likewise.
15935 * sysdeps/riscv/bits/setjmp.h: Likewise.
15936 * sysdeps/riscv/bits/wordsize.h: Likewise.
15937 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
15938 * sysdeps/riscv/bsd-setjmp.c: Likewise.
15939 * sysdeps/riscv/dl-trampoline.S: Likewise.
15940 * sysdeps/riscv/gccframe.h: Likewise.
15941 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
15942 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
15943 * sysdeps/riscv/machine-gmon.h: Likewise.
15944 * sysdeps/riscv/memusage.h: Likewise.
15945 * sysdeps/riscv/setjmp.S: Likewise.
15946 * sysdeps/riscv/sys/asm.h: Likewise.
15947 * sysdeps/riscv/tls-macros.h: Likewise.
15948 * sysdeps/riscv/dl-tls.h: New file.
15949 * sysdeps/riscv/libc-tls.c: Likewise.
15950 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
15951 * sysdeps/riscv/nptl/tls.h: Likewise.
15952 * sysdeps/riscv/stackinfo.h: Likewise.
15953 * sysdeps/riscv/bits/fenv.h: New file.
15954 * sysdeps/riscv/e_sqrtl.c: Likewise.
15955 * sysdeps/riscv/fpu_control.h: Likewise.
15956 * sysdeps/riscv/math-tests.h: Likewise.
15957 * sysdeps/riscv/nofpu/Implies: Likewise.
15958 * sysdeps/riscv/sfp-machine.h: Likewise.
15959 * sysdeps/riscv/tininess.h: Likewise.
15960 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
15961 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
15962 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
15963 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
15964 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
15965 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
15966 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
15967 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
15968 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
15969 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
15970 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
15971 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
15972 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
15973 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
15974 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
15975 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
15976 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
15977 * sysdeps/riscv/rvd/s_finite.c: Likewise.
15978 * sysdeps/riscv/rvd/s_fma.c: Likewise.
15979 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
15980 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
15981 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
15982 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
15983 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
15984 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
15985 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
15986 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
15987 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
15988 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
15989 * sysdeps/riscv/rvf/fegetround.c: Likewise.
15990 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
15991 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
15992 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
15993 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
15994 * sysdeps/riscv/rvf/fesetround.c: Likewise.
15995 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
15996 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
15997 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
15998 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
15999 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16000 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16001 * sysdeps/riscv/rvf/math_private.h: Likewise.
16002 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16003 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16004 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16005 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16006 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16007 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16008 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16009 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16010 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16011 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16012 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16013 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16014 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16015 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16016 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16017 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16018 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16019 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16020 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16021 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16022 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16023 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16024 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16025 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16026 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16027 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16028 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16029 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16030 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16031 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16032 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16033 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16034 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16035 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16036 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16037 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16038 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16039 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16040 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16041 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16042 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16043 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16044 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16045 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16046 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16047 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16048 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16049 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16050 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16051 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16052 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16053 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16054 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16055 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16056 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16057 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16058 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16059 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16060 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16061 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16062 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16063 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16064 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16065 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16066 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16067 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16068 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16069 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16070 * sysdeps/riscv/Implies: New file.
16071 * sysdeps/riscv/Makefile: Likewise.
16072 * sysdeps/riscv/configure: Likewise.
16073 * sysdeps/riscv/configure.ac: Likewise.
16074 * sysdeps/riscv/nptl/Makefile: Likewise.
16075 * sysdeps/riscv/preconfigure: Likewise.
16076 * sysdeps/riscv/rv64/Implies-after: Likewise.
16077 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16078 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16079 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16080 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16081 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16082 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16083 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16084 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16085 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16086 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16087 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16088 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16089 (Config): Likewise.
16090
16091 2018-01-29 Florian Weimer <fweimer@redhat.com>
16092
16093 [BZ #22701]
16094 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16095 libnsl_hidden_proto.
16096 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16097 libnsl_hidden_proto.
16098 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16099 * nis/Makefile (libnsl-routines): Add nss-default only for
16100 build-obsolete-nsl.
16101 * nis/nis_defaults.c (__nis_default_ttl): Add
16102 libnsl_hidden_nolink_def.
16103 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16104 declaration.
16105 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16106 * nis/ypclnt.c (yp_maplist): Likewise.
16107
16108 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16109
16110 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16111 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16112
16113 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16114
16115 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16116 clean -dxfq for git updates when replacing sources.
16117
16118 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16119 --disable-libcilkrts unconditionally, not just for the final GCC
16120 build for Hurd.
16121
16122 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16123 version to 4.15.
16124
16125 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16126
16127 [BZ #10871]
16128 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16129 case).
16130
16131 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16132
16133 [BZ #10871]
16134 * localedata/locales/be_BY (mon): Rename to...
16135 (alt_mon): This, then synchronize with CLDR (nominative case).
16136 (abmon): Rename to...
16137 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16138 (mon): Import from CLDR (genitive case).
16139 (abmon): Likewise.
16140 * localedata/locales/be_BY@latin (mon): Rename to...
16141 (alt_mon): This.
16142 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16143
16144 * localedata/locales/be_BY@latin (lang_name): Reworded to
16145 "biełaruskaja mova".
16146
16147 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16148
16149 [BZ #10871]
16150 * localedata/locales/el_CY (mon): Renamed to...
16151 (alt_mon): This.
16152 (mon): Import from CLDR (genitive case).
16153 * localedata/locales/el_GR: Likewise.
16154
16155 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16156
16157 [BZ #10871]
16158 * localedata/locales/ru_RU (mon): Rename to...
16159 (alt_mon): This.
16160 (abmon): Rename to...
16161 (ab_alt_mon): This.
16162 (mon): Import from CLDR (genitive case).
16163 (abmon): Copy from the old content except the 5th month which is
16164 now in the genitive case, even when abbreviated.
16165 * localedata/locales/ru_UA: Likewise.
16166 * time/tst-strptime.c (day_tests): Add an actual example of
16167 a difference between %b and %Ob in Russian.
16168
16169 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16170
16171 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16172 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16173 a `c' variable.
16174 * resolv/res-close.c: Include <stdlib.h>.
16175 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16176 <sys/wait.h>, <time.h>, <sys/uio.h>.
16177 (NOT_CANCEL_H): Add inclusion guard.
16178 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16179 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16180 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16181 return 0.
16182 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16183 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16184 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16185 instead of void *.
16186 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16187 timer_ptr2id to cast struct timer_node * to void *.
16188 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16189 --disable-libcilkrts to gcc configure.
16190 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16191 and make them the default for now.
16192 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16193 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16194 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16195 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16196 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16197 MACH_IPC_COMPAT.
16198 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16199 __task_terminate would ever return successfully.
16200 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16201 to global scope.
16202 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16203 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16204 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16205 critical section to make code simpler and avoid warning.
16206 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16207 critical section to make code simpler and avoid warning.
16208 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16209 const char * instead of char *.
16210 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16211 __hurd_file_name_split, hurd_file_name_split,
16212 __hurd_directory_name_split, hurd_directory_name_split,
16213 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16214 hurd_file_name_path_lookup): Make lookup function parameter take a
16215 const char *name instead of char *name.
16216 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16217 __hurd_directory_name_split): Likewise.
16218 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16219 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16220 * sysdeps/mach/hurd/check_native.c: New file.
16221 * sysdeps/mach/hurd/check_pf.c: New file.
16222 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16223 (__freeifaddrs): Define macro to freeifaddrs.
16224 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16225 * sysdeps/mach/libmachuser.abilist: New file.
16226 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16227 (do_test_bz20181): Rename accordingly.
16228 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16229 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16230 <sys/mount.h>.
16231 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16232 version only if __USE_EXTERN_INLINES is defined.
16233 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16234 __hurd_sockfail): Likewise.
16235 (_hurd_fd_get): Always declare functions, and provide inline versions
16236 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16237 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16238 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16239 _hurd_port_set): Always declare functions, and provide inline versions
16240 only if __USE_EXTERN_INLINES and _LIBC are defined and
16241 IS_IN(libc).
16242 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16243 _hurd_critical_section_unlock): Likewise.
16244 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16245 * __hurd_threadvar_location): Likewise.
16246 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16247 _hurd_userlink_clear): Likewise.
16248 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16249 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16250 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16251 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16252 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16253 __spin_lock_locked): Likewise.
16254 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16255 __spin_lock_locked): Likewise.
16256 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16257 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16258 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16259 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16260 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16261 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16262 _POSIX_NO_TRUNC): Define to 0.
16263 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16264 check size against PTHREAD_STACK_MIN.
16265 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16266 IS_IN(libpthread)]: Include <sigsetops.h>.
16267 * mach/Makefile (user-interfaces): Add mach/gnumach.
16268 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16269 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16270 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16271 instead of invalid -1.
16272 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16273 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16274 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16275 <net/ppp_defs.h>.
16276
16277 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16278
16279 * hurd/fcntl-internal.h: New file.
16280
16281 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16282
16283 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16284
16285 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16286
16287 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16288
16289 [BZ #22701]
16290 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16291 Build only shared objects.
16292
16293 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16294
16295 * README: Update for hppa.
16296
16297 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16298
16299 * sysdeps/sparc/fpu/libm-test-ulps: Update
16300 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16301
16302 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16303
16304 Revert:
16305
16306 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16307
16308 [BZ #22563]
16309 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16310 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16311 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16312 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16313 to feature_1.
16314
16315 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16316
16317 [BZ #22563]
16318 * bits/types/__cancel_jmp_buf_tag.h: New file.
16319 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16320 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16321 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16322 * nptl/Makefile (headers): Add
16323 bits/types/__cancel_jmp_buf_tag.h.
16324 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16325 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16326 * sysdeps/nptl/pthread.h: Include
16327 <bits/types/__cancel_jmp_buf_tag.h>.
16328 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16329 __cancel_jmp_buf.
16330 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16331
16332 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16333
16334 [BZ #10871]
16335 * localedata/locales/uk_UA (mon): Renamed to...
16336 (alt_mon): This.
16337 (alt_digits): "0" removed and then renamed to...
16338 (mon): This.
16339 (date_fmt): Definition changed not to use the alternative
16340 digits hack.
16341
16342 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16343
16344 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16345 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16346 * elf/elf.h (EF_RISCV_RVC): New define.
16347 (EF_RISCV_FLOAT_ABI): Likewise.
16348 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16349 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16350 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16351 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16352 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16353 define.
16354 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16355
16356 2018-01-25 Andreas Schwab <schwab@suse.de>
16357
16358 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16359 single quotes.
16360 * sysdeps/gnu/configure: Regenerate.
16361 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16362 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16364 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16365 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16366 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16367 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16368 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16369
16370 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16371
16372 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16373 URL, and run autoconf, make it the default for now.
16374
16375 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16376
16377 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16378 soft-float ColdFire configuration.
16379
16380 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16381 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16382 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16383
16384 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16385 MicroBlaze file.
16386
16387 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16388 ....
16389 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16390 ... here.
16391 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16392 New file.
16393
16394 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16395 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16396 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16397 file.
16398
16399 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16400
16401 [BZ #22742]
16402 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16403 Rename to __reserved and add comment.
16404 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16405 Rename to __reserved.
16406
16407 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16408
16409 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16410 i686-gnu configurations.
16411 (Context.run_builds): Include mig, gnumach and hurd in components
16412 considered.
16413 (Context.checkout): Add mig, gnumach and hurd to components.
16414 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16415 hurd.
16416 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16417 (Config.build): Install gnumach headers, build mig and install
16418 hurd headers for 'gnu' OS.
16419 (Config.install_gnumach_headers): New function.
16420 (Config.install_hurd_headers): Likewise.
16421 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16422 when building for 'gnu' OS.
16423
16424 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16425
16426 * manual/tunables.texi (Hardware Capability Tunables): Fix
16427 spelling.
16428
16429 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16430
16431 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16432 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16433 (ALTMON_11, ALTMON_12): Improve documentation.
16434 * manual/time.texi (strftime): Likewise.
16435
16436 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16437
16438 [BZ #10871]
16439 * localedata/locales/pl_PL: Alternative month names added,
16440 primary month names are genitive now.
16441 * time/tst-strptime.c (day_tests): Actually use a genitive case
16442 of a month name in Polish language.
16443
16444 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16445
16446 [BZ #10871]
16447 * manual/locale.texi: Document ALTMON_1..12 constants for
16448 nl_langinfo. Specify when to use ALTMON instead of MON.
16449 * manual/time.texi (strftime, strptime): Document GNU extension
16450 permitting O modifier with %B and %b. Specify when to use
16451 %OB instead of %B.
16452
16453 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16454
16455 [BZ #10871]
16456 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16457 names, define them as the same as abbreviated month names explicitly.
16458 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16459 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16460 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16461 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16462 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16463 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16464 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16465 _NL_WABALTMON_12): New enum constants.
16466 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16467 wab_alt_mon, and ab_alt_mon_defined members.
16468 (time_output): Output ab_alt_mon and wab_alt_mon members.
16469 (time_read): Read them, initialize them as copies of abmon and wabmon
16470 respectively if they are missing, initialize ab_alt_mon_defined.
16471 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16472 * locale/programs/locfile-kw.h: Regenerate.
16473 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16474 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16475 and ru_RU.UTF-8.
16476 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16477 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16478 (__strftime_internal): Handle %Ob and %Oh formats.
16479 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16480 (__strptime_internal): Handle %Ob and %Oh formats.
16481 * time/tst-strptime.c (day_tests): Add more tests to parse different
16482 forms of month names including the new %Ob format specifier.
16483
16484 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16485
16486 [BZ #10871]
16487 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16488 define them as the same as primary full month names explicitly.
16489 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16490 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16491 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16492 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16493 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16494 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16495 _NL_WALTMON_12): New enum constants.
16496 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16497 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16498 macros.
16499 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16500 walt_mon, and alt_mon_defined members.
16501 (time_output): Output alt_mon and walt_mon members.
16502 (time_read): Read them, initialize them as copies of mon and wmon
16503 respectively if they are missing, initialize alt_mon_defined.
16504 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16505 * locale/programs/locfile-kw.h: Regenerate.
16506 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16507 * localedata/tst-langinfo.c (map): Add tests for the new constants
16508 ALTMON_1 .. ALTMON_12.
16509 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16510 and pl_PL.UTF-8.
16511 * time/strftime_l.c (f_altmonth): New macro.
16512 (__strftime_internal): Handle %OB format.
16513 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16514 (__strptime_internal): Handle %OB format.
16515 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16516 of month names including the new %OB format specifier.
16517
16518 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16519
16520 [BZ #22685]
16521 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16522 from ABORT_TRANSACTION.
16523 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16524 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16525 ABORT_TRANSACTION_IMPL): Likewise.
16526 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16527 Linux code, but remove the code that aborts transactions.
16528
16529 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16530
16531 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16532
16533 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16534
16535 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16536 in date: "2004-14-09" should be "2004-09-14".
16537 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16538 "2003-15-09" should be "2003-09-15".
16539
16540 2018-01-18 Arjun Shankar <arjun@redhat.com>
16541
16542 [BZ #22343]
16543 [BZ #22774]
16544 CVE-2018-6485
16545 CVE-2018-6551
16546 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16547 after padding.
16548 (_int_memalign): check for integer overflow before calling
16549 _int_malloc.
16550 * malloc/tst-malloc-too-large.c: New test.
16551 * malloc/Makefile: Add tst-malloc-too-large.
16552
16553 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16554
16555 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16556 in date: "2017-24-07" should be "2017-07-24".
16557 * localedata/locales/mai_IN: Likewise.
16558 * localedata/locales/mai_NP: Likewise.
16559
16560 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16561
16562 * po/ru.po: Update translations.
16563
16564 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16565
16566 [BZ #22719]
16567 * sysdeps/hppa/backtrace.c: New file.
16568
16569 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16570
16571 [BZ #22715]
16572 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16573 align La_x86_64_retval to VEC_SIZE.
16574
16575 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16576
16577 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16578 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16579
16580 2018-01-16 Florian Weimer <fweimer@redhat.com>
16581
16582 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16583 Move tst-thread-exit-clobber ...
16584 [$(CXX)] (tests-unsupported): ... to here.
16585
16586 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16587
16588 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16589 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16590 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16591 (_dl_aarch64_cap_flags): Update.
16592 (_DL_HWCAP_COUNT): Update.
16593
16594 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16595
16596 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16597 (_DL_HWCAP_LAST): Remove.
16598 (_DL_HWCAP_COUNT): Move to ...
16599 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16600 (_DL_HWCAP_COUNT): ... here.
16601
16602 2018-01-16 Florian Weimer <fweimer@redhat.com>
16603
16604 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16605 mode with GNU extensions.
16606
16607 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16608
16609 * elf/elf.h (NT_ARM_SVE): Define.
16610
16611 2018-01-15 Florian Weimer <fweimer@redhat.com>
16612
16613 [BZ #22636]
16614 * nptl/tst-minstack-throw.cc: New file.
16615 * nptl/Makefile (tests): Add tst-minstack-throw.
16616 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16617 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16618
16619 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16620
16621 * scripts/build-many-glibcs.py (Context.checkout): Default
16622 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16623 version to 1.1.0.
16624
16625 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16626
16627 [BZ #22707]
16628 * elf/elf.h (DF_1_STUB): Define.
16629 (DF_1_PIE): Define.
16630
16631 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16632
16633 [BZ #22697]
16634 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16635 Do not add 0.5 to integer or out-of-range arguments.
16636
16637 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16638
16639 * po/bg.po: Update translations.
16640 * po/cs.po: Likewise.
16641 * po/de.po: Likewise.
16642 * po/ko.po: Likewise.
16643 * po/pl.po: Likewise.
16644 * po/sv.po: Likewise.
16645 * po/uk.po: Likewise.
16646 * po/vi.po: Likewise.
16647
16648 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16649
16650 * aarch64/start.S (_start): Use __wrap_main.
16651 (__wrap_main): New local symbol.
16652
16653 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16654
16655 [BZ #22679]
16656 CVE-2018-1000001
16657 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16658 generic_getcwd if the path returned by getcwd syscall is not absolute.
16659 * io/tst-getcwd-abspath.c: New test.
16660 * io/Makefile (tests): Add tst-getcwd-abspath.
16661
16662 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16663
16664 * malloc/malloc.c (malloc_consolidate): Add size check.
16665
16666 2018-01-12 Florian Weimer <fweimer@redhat.com>
16667
16668 * support/write_message.c (write_message): Preserve errno.
16669 * support/check.c (print_failure): Likewise.
16670 * support/support_test_verify_impl.c (support_test_verify_impl):
16671 Likewise.
16672 * support/support_test_compare_failure.c
16673 (support_test_compare_failure): Likewise.
16674
16675 2018-01-12 Florian Weimer <fweimer@redhat.com>
16676
16677 [BZ #22701]
16678 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16679 Prevent installation of libnsl.so.
16680 (libnsl-inhibit-o): Do not build (or install) static libraries.
16681
16682 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16683
16684 [BZ #22657]
16685 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16686 before the day number which may produce a double space.
16687 (date_fmt): Likewise.
16688
16689 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16690
16691 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16692 instead of fegetenv.
16693
16694 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16695
16696 [BZ #22702]
16697 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16698 comment to say exceptions are discarded.
16699 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16700 __fegetenv.
16701 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16702 be enabled.
16703
16704 2018-01-11 Florian Weimer <fweimer@redhat.com>
16705
16706 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16707 and error message.
16708
16709 2018-01-11 Florian Weimer <fweimer@redhat.com>
16710
16711 [BZ #22636]
16712 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16713 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16714
16715 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16716
16717 [BZ #22693]
16718 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16719 negative arguments in test for NaN or infinity argument.
16720
16721 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16722
16723 * po/libc.pot: Regenerate.
16724
16725 2018-01-10 Florian Weimer <fweimer@redhat.com>
16726
16727 [BZ #22636]
16728 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16729 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16730
16731 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16732
16733 * hurd/hurd/fd.h: Include <fcntl.h>
16734 (__hurd_at_flags): New function.
16735 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16736 with call to __hurd_at_flags.
16737 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16738 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16739 __faccessat
16740 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16741 (__access_noerrno): Use __faccessat_common instead of access_common.
16742 (__access): Likewise.
16743 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16744 with a call to __faccessat.
16745 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16746 (__faccessat_common): ... this. Move implementation of __access into it when
16747 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16748 reauthenticate_cwdir_at helper to implement AT mechanism.
16749 (__faccessat_noerrno): New function, just calls __faccessat_common.
16750 (__faccessat): New function, just calls __faccessat_common.
16751 (faccessat): Define weak alias.
16752
16753 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16754
16755 [BZ #22691]
16756 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16757 (CFLAGS-s_fmaxmagl.c): New variable.
16758 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16759
16760 [BZ #22690]
16761 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16762 long int for arguments of possibly overflowing addition or
16763 subtraction.
16764 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16765
16766 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16767
16768 [BZ #22688]
16769 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16770 (CFLAGS-e_remainderl.c): New variable.
16771
16772 [BZ #22687]
16773 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16774 variable.
16775 (CFLAGS-s_cacoshl.c): Likewise.
16776 (CFLAGS-s_casinhl.c): Likewise.
16777 (CFLAGS-s_catanl.c): Likewise.
16778 (CFLAGS-s_catanhl.c): Likewise.
16779 (CFLAGS-s_cexpl.c): Likewise.
16780 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16781 (CFLAGS-s_csinhl.c): Likewise.
16782 (CFLAGS-s_clogl.c): Likewise.
16783 (CFLAGS-s_clog10l.c): Likewise.
16784 (CFLAGS-s_csinl.c): Likewise.
16785 (CFLAGS-s_csqrtl.c): Likewise.
16786
16787 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16788 2017-01-09 Svante Signell <svante.signell@gmail.com>
16789
16790 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16791 (_hurd_exec_paths): New function.
16792 * hurd/hurd.h (_hurd_exec): Deprecate function.
16793 (_hurd_exec_paths): Declare function.
16794 * hurd/Versions: Export _hurd_exec_paths.
16795 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16796 (__execve): Use __getcwd to build absolute path, and use
16797 _hurd_exec_paths instead of _hurd_exec.
16798 * sysdeps/mach/hurd/spawni.c: Likewise.
16799 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16800 _hurd_exec.
16801
16802 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16803
16804 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16805 test instead of failing in case of ENOENT returned by posix_openpt.
16806
16807 2018-01-08 Florian Weimer <fweimer@redhat.com>
16808
16809 resolv: Support binary labels in test framework.
16810 * support/resolv_test.c (struct to_be_freed): Remove.
16811 (struct compressed_name): New.
16812 (allocate_compressed_name, ascii_tolower)
16813 (compare_compressed_name): New functions.
16814 (struct resolv_response_builder): Update type of
16815 compression_offsets for use with tsearch. Rempve to_be_freed.
16816 (response_push_pointer_to_free): Remove function.
16817 (resolv_response_add_name): Rewrite using struct compressed_name
16818 and tsearch instead of hsearch_r.
16819 (response_builder_allocate): Remove initialization of
16820 compression_offsets.
16821 (response_builder_free): Update for removal of to_be_freed. Use
16822 tdestroy instead of hdestroy_r.
16823 * resolv/Makefile (tests): Add tst-resolv-binary.
16824 (tst-resolv-binary): Link with -lresolv -lpthread.
16825
16826 2018-01-08 Florian Weimer <fweimer@redhat.com>
16827
16828 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16829 time. Pass positive flag instead of negative flag to
16830 support_test_compare_failure.
16831 (support_test_compare_failure): Change negative parameter to
16832 positive.
16833 * support/support_test_compare_failure.c (report)
16834 (support_test_compare_failure): Likewise.
16835 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16836 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16837
16838 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16839
16840 [BZ #22637]
16841 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16842 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16843 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16844 stacksize.
16845 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16846
16847 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16848
16849 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16850 Add s_sincosf-sse2 and s_sincosf-fma.
16851 (CFLAGS-s_sincosf-fma.c): New.
16852 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16853 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16854 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16855 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16856 __sincosf is defined.
16857
16858 2018-01-08 Florian Weimer <fweimer@redhat.com>
16859
16860 * nptl/tst-thread-exit-clobber.cc: New file.
16861 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16862 C++11 mode.
16863 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16864 (tests): Add tst-thread-exit-clobber.
16865 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16866
16867 2018-01-08 Florian Weimer <fweimer@redhat.com>
16868
16869 * support/check.h (support_static_assert): Define.
16870 (TEST_COMPARE): Use it.
16871
16872 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16873
16874 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16875 [!__RLIM_T_MATCHES_RLIM64_T]
16876 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16877 __getrlimit64. Add libc_hidden_weak.
16878
16879 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16880
16881 * elf/elf.h (R_RISCV_NONE): New define.
16882 (R_RISCV_32): Likewise.
16883 (R_RISCV_64): Likewise.
16884 (R_RISCV_RELATIVE): Likewise.
16885 (R_RISCV_COPY): Likewise.
16886 (R_RISCV_JUMP_SLOT): Likewise.
16887 (R_RISCV_TLS_DTPMOD32): Likewise.
16888 (R_RISCV_TLS_DTPMOD64): Likewise.
16889 (R_RISCV_TLS_DTPREL32): Likewise.
16890 (R_RISCV_TLS_DTPREL64): Likewise.
16891 (R_RISCV_TLS_TPREL32): Likewise.
16892 (R_RISCV_TLS_TPREL64): Likewise.
16893 * Makerules (make-link-multidir): Make directories before linking into
16894 them.
16895 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16896 define.
16897 (VDSO_HASH_LINUX_4_15): Likewise.
16898 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16899 in subdirectories of lib.
16900 * nptl/Makefile (/librt.so): Always depend on
16901 "$(shared-thread-library)".
16902
16903 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16904
16905 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16906 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16907 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16908 (___tls_get_addr).
16909 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16910 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16911 "-O2 -march=i686".
16912 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
16913 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
16914 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
16915 * sysdeps/gnu/glob-lstat-compat.c: New file.
16916 * sysdeps/gnu/glob64-lstat-compat.c: New file.
16917 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
16918
16919 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16920
16921 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
16922 Reserve 16 chars to reloc_addr before calling _itoa_word.
16923
16924 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16925
16926 [BZ #22678]
16927 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
16928 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
16929
16930 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
16931 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
16932
16933 * resource/tst-getrlimit.c: Add copyright header.
16934
16935 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16936 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16937
16938 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16939 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
16940 Define __GI_getrlimit64 as weak alias of __getrlimit64.
16941 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
16942 instead.
16943 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16944 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
16945 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
16946 RLIM64_INFINITY): Fix values to match the kernel ones.
16947 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
16948 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
16949 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
16950 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
16951 getrlimit64@@GLIBC_2_27.
16952 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
16953 and setrlimit64.
16954 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
16955 getrlimit, setrlimit, getrlimit64 and setrlimit64.
16956 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
16957 setrlimit, getrlimit64 and setrlimit64.
16958
16959 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16960
16961 [BZ #22648]
16962 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
16963 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
16964
16965 2018-01-04 Joseph Myers <joseph@codesourcery.com>
16966
16967 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
16968 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
16969 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
16970
16971 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16972
16973 [BZ #15479]
16974 [BZ #22666]
16975 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
16976 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
16977
16978 [BZ #15479]
16979 [BZ #22665]
16980 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
16981 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
16982 * sysdeps/alpha/fpu/s_floor.c: Likewise.
16983 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
16984
16985 2018-01-04 Florian Weimer <fweimer@redhat.com>
16986
16987 [BZ #22667]
16988 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
16989 Align the stack before calling exit.
16990 * stdlib/tst-makecontext-align.c: New file.
16991 * stdlib/Makefile (tests): Add tst-makecontext-align.
16992
16993 2018-01-04 Florian Weimer <fweimer@redhat.com>
16994
16995 Add support for calling dlvsym from libc.so.
16996 * include/dlfcn.h (__libc_dlvsym): Declare.
16997 * elf/Makefile (tests-static-internal): Add
16998 tst-libc_dlvsym-static.
16999 (tests-internal): Add tst-libc_dlvsym.
17000 (modules-names): Add tst-libc_dlvsym-dso.
17001 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17002 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17003 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17004 object tst-libc_dlvsym-dso.so needs to be built before running
17005 these tests.
17006 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17007 * elf/Versions: Export __libc_dlvsym.
17008 * elf/dl-libc.c (struct do_dlvsym_args): New.
17009 (do_dlvsym, __libc_dlvsym): New functions.
17010 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17011 (_dl_open_hook2): New variable.
17012 (__libc_register_dl_open_hook): Set it.
17013 * elf/tst-libc_dlvsym-dso.c: New file.
17014 * elf/tst-libc_dlvsym-static.c: Likewise.
17015 * elf/tst-libc_dlvsym.c: Likewise.
17016 * elf/tst-libc_dlvsym.h: Likewise.
17017
17018 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17019
17020 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17021 include <sys/mount.h>.
17022
17023 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17024
17025 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17026 Add __NO_MATH_ERRNO__ check.
17027
17028 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17029
17030 * sysdeps/mips/mips32/libm-test-ulps: Update.
17031 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17032
17033 2018-01-02 Florian Weimer <fweimer@redhat.com>
17034
17035 * misc/tst-pselect.c: Add copyright header.
17036
17037 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17038
17039 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17040 comment.
17041 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17042 comment.
17043 (settrlimit): Rename into setrlimit.
17044 (__sttrlimit): Rename into __setrlimit.
17045
17046 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17047 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17048 never defined in that case.
17049
17050 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17051
17052 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17053
17054 * sysdeps/arm/libm-test-ulps: Update.
17055
17056 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17057 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17058
17059 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17060
17061 * NEWS: Add cosf and sincosf to list of optimized functions.
17062
17063 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17064
17065 [BZ #22660]
17066 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17067 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17068 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17069 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17070
17071 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17072
17073 [BZ #22433]
17074 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17075
17076 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17077 making a copy of it.
17078
17079 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17080
17081 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17082 trailing whitespace removed.
17083 * scripts/config.guess: Update to version 2018-01-01.
17084 * scripts/config.sub: Update to version 2018-01-01.
17085 * scripts/move-if-change: Update from gnulib.
17086
17087 * NEWS: Update copyright dates.
17088 * catgets/gencat.c (print_version): Likewise.
17089 * csu/version.c (banner): Likewise.
17090 * debug/catchsegv.sh: Likewise.
17091 * debug/pcprofiledump.c (print_version): Likewise.
17092 * debug/xtrace.sh (do_version): Likewise.
17093 * elf/ldconfig.c (print_version): Likewise.
17094 * elf/ldd.bash.in: Likewise.
17095 * elf/pldd.c (print_version): Likewise.
17096 * elf/sotruss.sh: Likewise.
17097 * elf/sprof.c (print_version): Likewise.
17098 * iconv/iconv_prog.c (print_version): Likewise.
17099 * iconv/iconvconfig.c (print_version): Likewise.
17100 * locale/programs/locale.c (print_version): Likewise.
17101 * locale/programs/localedef.c (print_version): Likewise.
17102 * login/programs/pt_chown.c (print_version): Likewise.
17103 * malloc/memusage.sh (do_version): Likewise.
17104 * malloc/memusagestat.c (print_version): Likewise.
17105 * malloc/mtrace.pl: Likewise.
17106 * manual/libc.texinfo: Likewise.
17107 * nptl/version.c (banner): Likewise.
17108 * nscd/nscd.c (print_version): Likewise.
17109 * nss/getent.c (print_version): Likewise.
17110 * nss/makedb.c (print_version): Likewise.
17111 * posix/getconf.c (main): Likewise.
17112 * scripts/test-installation.pl: Likewise.
17113 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17114
17115 * All files with FSF copyright notices: Update copyright dates
17116 using scripts/update-copyrights.
17117 * locale/programs/charmap-kw.h: Regenerated.
17118 * locale/programs/locfile-kw.h: Likewise.
17119
17120 2017-12-31 Zack Weinberg <zackw@panix.com>
17121
17122 * libio/bits/libio-ldbl.h: Correct check for improper
17123 inclusion. Add own multiple include guard.
17124
17125 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17126 Dmitry V. Levin <ldv@altlinux.org>
17127
17128 [BZ #22625]
17129 CVE-2017-16997
17130 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17131 string token expansion. Check for NULL pointer or empty string possibly
17132 returned by expand_dynamic_string_token.
17133 (decompose_rpath): Check for empty path after dynamic string
17134 token expansion.
17135
17136 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17137
17138 [BZ #22433]
17139 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17140
17141 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17142 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17143 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17144 and PTRACE_SYSCALL.
17145 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17146 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17147 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17148 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17149 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17150 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17151
17152 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17153 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17154 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17155 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17156 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17157 bits/ptrace-shared.h.
17158 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17159 <bits/ptrace-shared.h>.
17160 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17161 __ptrace_peeksiginfo_flags, ptrace): Remove.
17162 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17163 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17164 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17165 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17166 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17167
17168 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17169
17170 [BZ #17804]
17171 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17172 end of the loop. Improve comments.
17173
17174 2017-12-29 Zack Weinberg <zackw@panix.com>
17175
17176 [BZ #22615]
17177 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17178 might be set on success.
17179
17180 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17181
17182 [BZ #22611]
17183 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17184 is unchanged on success.
17185
17186 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17187
17188 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17189 updated.
17190 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17191 expand_dynamic_string_token): Likewise.
17192 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17193 is_path argument.
17194
17195 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17196 contains ':'.
17197
17198 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17199 is set and name contains ':', and all code depending on these checks.
17200
17201 2017-12-24 Zack Weinberg <zackw@panix.com>
17202
17203 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17204 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17205 respectively.
17206 * libio/libio.h: Rename the original version of this file to
17207 libio/bits/libio.h. Error out if not included by stdio.h or the
17208 stub libio.h.
17209 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17210 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17211 if not included by bits/libio.h or the stub _G_config.h.
17212 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17213 sysdeps/unix/sysv/linux/bits. Error out if not included by
17214 bits/libio.h or the stub _G_config.h.
17215 * libio/stdio.h: Include bits/libio.h, not libio.h.
17216 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17217 well as libio.h and _G_config.h.
17218
17219 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17220 * libio/strfile.h, stdio-common/vfscanf.c
17221 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17222 Include stdio.h, not _G_config.h nor libio.h.
17223 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17224 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17225
17226 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17227
17228 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17229
17230 [BZ #22347]
17231 * stdlib/getrandom.c (getrandom): Fix comment.
17232 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17233
17234 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17235
17236 [BZ #21161]
17237 * manual/arith.texi (strtoul): Fix a typo.
17238
17239 [BZ #22596]
17240 * manual/arith.texi (finite): Fix the description of the return
17241 value.
17242
17243 2017-12-22 Eric Blake <ebb9@byu.net>
17244
17245 Avoid gcc warnings on cygwin
17246 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17247 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17248 Avoid unused variable.
17249
17250 2017-12-22 Florian Weimer <fweimer@redhat.com>
17251
17252 * io/Makefile (routines): Add copy_file_range.
17253 (tests): Add tst-copy_file_range.
17254 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17255 * io/Versions (GLIBC_2.27): Export copy_file_range.
17256 * io/copy_file_range-compat.c: New file.
17257 * io/copy_file_range.c: Likewise.
17258 * io/tst-copy_file_range-compat.c: Likewise.
17259 * io/tst-copy_file_range.c: Likewise.
17260 * manual/llio.texi (Copying File Data): New section.
17261 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17262 * support/Makefile (libsupport-routines): Add support-xfstat,
17263 xftruncate, xlseek.
17264 * support/support-xfstat.c: New file.
17265 * support/xftruncate.c: Likewise.
17266 * support/xlseek.c: Likewise.
17267 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17268 * sysdeps/unix/sysv/linux/**.abilist: Update.
17269 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17270
17271 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17272
17273 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17274 disable-multi-arch variant to aarch64-linux-gnu.
17275
17276 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17277
17278 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17279 trailing whitespace removed.
17280 * scripts/config.guess: Update to version 2017-12-17.
17281 * scripts/config.sub: Update to version 2017-11-23.
17282 * scripts/install-sh: Update to version 2017-09-23.17.
17283 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17284
17285 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17286
17287 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17288 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17289 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17290 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17291 * sysdeps/tile/crtn.S: Likewise.
17292 * sysdeps/tile/dl-start.S (_start): Likewise.
17293 * sysdeps/tile/dl-trampoline.S: Likewise.
17294 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17295 * sysdeps/tile/start.S (_start): Likewise.
17296 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17297 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17298 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17299 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17300 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17301 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17302 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17303
17304 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17305 comment.
17306 * sysdeps/tile/preconfigure: Remove tilegx folder.
17307 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17308 * sysdeps/tile/Implies: ... here.
17309 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17310 * sysdeps/tile/Makefile: ... here.
17311 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17312 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17313 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17314 * sysdeps/tile/bits/wordsize.h: ... here.
17315 * sysdeps/tile/tilegx/*: Move to ...
17316 * sysdeps/tile/*: ... here.
17317 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17318 * sysdeps/tile/tilegx32/Implies: ... here.
17319 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17320 * sysdeps/tile/tilegx64/Implies: ... here.
17321 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17322 to ...
17323 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17324 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17325 * sysdeps/unix/sysv/linux/tile/*: ... here.
17326 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17327 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17328 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17329 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17330
17331 * README: Remove tilepro-*-linux-gnu from supported architecture.
17332 * scripts/build-many-glibcs.py: Likewise.
17333 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17334 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17335 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17336 elf_machine_matches_host, elf_machine_dynamic,
17337 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17338 howto, elf_machine_rela): Likewise.
17339 * sysdeps/tile/dl-start.S (_start): Likewise.
17340 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17341 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17342 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17343 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17344 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17345 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17346 Likewise.
17347 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17348 * sysdeps/tile/preconfigure: Likewise.
17349 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17350 POINTER_CHK_GUARD): Likewise.
17351 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17352 * sysdeps/tile/start.S (_start): Likewise.
17353 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17354 Likewise.
17355 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17356 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17357 CMOVNEZ): Remove.
17358 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17359 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17360 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17361 Likewise.
17362 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17363 * sysdeps/tile/tilepro/Implies: Remove file.
17364 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17365 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17366 * sysdeps/tile/tilepro/memchr.c: Likewise.
17367 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17368 * sysdeps/tile/tilepro/memset.c: Likewise.
17369 * sysdeps/tile/tilepro/memusage.h: Likewise.
17370 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17371 * sysdeps/tile/tilepro/strchr.c: Likewise.
17372 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17373 * sysdeps/tile/tilepro/strlen.c: Likewise.
17374 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17375 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17376 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17377 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17378 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17379 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17380 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17381 Likewise.
17382 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17383 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17384 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17385 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17386 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17387 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17388 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17389 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17390 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17391 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17392 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17393 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17394 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17395 tilepro mention in comment.
17396
17397 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17398 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17399 * nptl/pthread_join_common.c: New file: common function used on
17400 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17401 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17402 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17403 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17404 (cleanup): Move definition to pthread_join_common.c.
17405 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17406 Remove superflous checks.
17407 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17408 Likewise.
17409
17410 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17411
17412 * sysdeps/aarch64/libm-test-ulps: Update.
17413
17414 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17415
17416 * sysdeps/aarch64/memset.S (MEMSET): Define.
17417
17418 2017-12-20 Florian Weimer <fweimer@redhat.com>
17419
17420 [BZ #22635]
17421 nptl: Provide full implementation of pthread_self in libc.so.
17422 * nptl/Makefile (routines): Add pthread_self.
17423 (libpthread-routines): Replace pthread_self with
17424 compat-pthread_self.
17425 * nptl/forward.c (pthread_self): Remove.
17426 * nptl/nptl-init.c (pthread_functions): Do not initialize
17427 ptr_pthread_self.
17428 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17429 * nptl/compat-pthread_self.c: New file.
17430 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17431 Remove ptr_pthread_self.
17432
17433 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17434
17435 * posix/regcomp.c: Fix spelling in comments.
17436 * posix/regex.h: Likewise.
17437 * posix/regex_internal.c: Likewise.
17438 * posix/regexec.c: Likewise.
17439
17440 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17441
17442 [BZ #22377]
17443 * math/Makefile [C++] (tests): Add test for iseqsig.
17444 * math/math.h [C++] (iseqsig): New implementation, which does
17445 not rely on __MATH_TG/__builtin_types_compatible_p.
17446 * math/test-math-iseqsig.cc: New file.
17447 * sysdeps/powerpc/powerpc64le/Makefile
17448 (CFLAGS-test-math-iseqsig.cc): New variable.
17449
17450 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17451
17452 * elf/dl-load.c (is_trusted_path): Remove.
17453 (fillin_rpath): Remove check_trusted argument and its use,
17454 all callers changed.
17455
17456 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17457
17458 [BZ #22630]
17459 * Makeconfig (link-pie-before-libc): Replace -pie with
17460 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17461 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17462 (tst-dlopen-aout-no-pie): New.
17463 (LDFLAGS-tst-prelink): Removed.
17464 (tst-prelink-no-pie): New.
17465 (LDFLAGS-tst-main1): Removed.
17466 (tst-main1-no-pie): New.
17467 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17468 (tst-gmon-no-pie): New.
17469
17470 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17471
17472 * manual/install.texi: Document that --enable-static-pie
17473 implies PIE.
17474 * INSTALL: Regenerated.
17475
17476 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17477
17478 [BZ #21309]
17479 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17480 unsigned.
17481
17482 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17483
17484 Revert:
17485
17486 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17487
17488 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17489
17490 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17491
17492 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17493 <errno.h>. Include "eexp.tbl".
17494 (half): New constant.
17495 (one): Likewise.
17496 (__ieee754_exp): Rewrite.
17497 (__slowexp): Remove prototype.
17498 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17499 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17500 * sysdeps/i386/fpu/slowexp.c: Likewise.
17501 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17502 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17503 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17504 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17505 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17506 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17507 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17508 comment.
17509 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17510 (CPPFLAGS-slowexp.c): Remove variable.
17511 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17512 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17513 (CFLAGS-slowexp-fma.c): Remove variable.
17514 (CFLAGS-slowexp-fma4.c): Likewise.
17515 (CFLAGS-slowexp-avx.c): Likewise.
17516 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17517 define as macro.
17518 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17519 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17520 * math/Makefile (type-double-routines): Remove slowexp.
17521 * manual/probes.texi (slowexp_p6): Remove.
17522 (slowexp_p32): Likewise.
17523
17524 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17525
17526 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17527 arithmetic.
17528
17529 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17530
17531 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17532
17533 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17534
17535 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17536
17537 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17538 <errno.h>. Include "eexp.tbl".
17539 (half): New constant.
17540 (one): Likewise.
17541 (__ieee754_exp): Rewrite.
17542 (__slowexp): Remove prototype.
17543 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17544 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17545 * sysdeps/i386/fpu/slowexp.c: Likewise.
17546 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17547 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17548 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17549 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17550 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17551 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17552 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17553 comment.
17554 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17555 (CPPFLAGS-slowexp.c): Remove variable.
17556 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17557 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17558 (CFLAGS-slowexp-fma.c): Remove variable.
17559 (CFLAGS-slowexp-fma4.c): Likewise.
17560 (CFLAGS-slowexp-avx.c): Likewise.
17561 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17562 define as macro.
17563 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17564 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17565 * math/Makefile (type-double-routines): Remove slowexp.
17566 * manual/probes.texi (slowexp_p6): Remove.
17567 (slowexp_p32): Likewise.
17568
17569 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17570 James Clarke <jrtc27@jrtc27.com>
17571
17572 [BZ #22603]
17573 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17574 addition.
17575
17576 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17577
17578 [BZ #22605]
17579 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17580 code.
17581
17582 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17583
17584 [BZ #22563]
17585 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17586 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17587 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17588 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17589 to feature_1.
17590
17591 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17592
17593 [BZ #22563]
17594 * bits/types/__cancel_jmp_buf_tag.h: New file.
17595 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17596 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17597 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17598 * nptl/Makefile (headers): Add
17599 bits/types/__cancel_jmp_buf_tag.h.
17600 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17601 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17602 * sysdeps/nptl/pthread.h: Include
17603 <bits/types/__cancel_jmp_buf_tag.h>.
17604 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17605 __cancel_jmp_buf.
17606 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17607
17608 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17609
17610 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17611 --enable-static-pie variants to x86_64, x32 and i686.
17612
17613 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17614
17615 [BZ #22631]
17616 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17617 argument for attrubutes. All callers changed.
17618 (__inline_mathop1): Likewise. All callers changed.
17619 (__inline_mathop): Likewise. All callers changed.
17620 [__USE_MISC] (scalbn): Use __inline_forward instead of
17621 __inline_forward_c.
17622 [__USE_ISOC99] (scalbln): Likewise.
17623 [__USE_ISOC99] (nearbyint): Likewise.
17624 [__USE_ISOC99] (lrint): Likewise.
17625 [__USE_MISC] (scalbnf): Likewise.
17626 [__USE_ISOC99] (scalblnf): Likewise.
17627 [__USE_ISOC99] (nearbyintf): Likewise.
17628 [__USE_ISOC99] (lrintf): Likewise.
17629 [__USE_MISC] (scalbnl): Likewise.
17630 [__USE_ISOC99] (scalblnl): Likewise.
17631 [__USE_ISOC99] (nearbyintl): Likewise.
17632 [__USE_ISOC99] (lrintl): Likewise.
17633 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17634 __inline_mathop and __m81_defun changed.
17635
17636 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17637 CPU or FPU for ARM hard-float configurations.
17638
17639 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17640
17641 * nptl/tst-attr3.c: Include <libc-diag.h>.
17642 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17643
17644 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17645
17646 * string/tester.c (test_strncat): Also disable -Warray-bounds
17647 warnings for two tests.
17648
17649 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17650
17651 [BZ #22614]
17652 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17653 $(cc-pie-default) == yes.
17654 * config.make.in (cc-pie-default): New.
17655 * configure.ac (libc_cv_pie_default): Renamed to ...
17656 (libc_cv_cc_pie_default): This.
17657 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17658 * configure: Regenerated.
17659
17660 2017-12-18 Florian Weimer <fweimer@redhat.com>
17661
17662 [BZ #20204]
17663 ld.so: Harden dl-libc/libdl hooks.
17664 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17665 (rtld_active): New function.
17666 * dlfcn/dladdr.c (__dladdr): Call it.
17667 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17668 * dlfcn/dlclose.c (__dlcose): Likewise.
17669 * dlfcn/dlerror.c (__dlerror): Likewise.
17670 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17671 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17672 * dlfcn/dlopen.c (__dlopen): Likewise.
17673 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17674 * dlfcn/dlsym.c (__dlsym): Likewise.
17675 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17676 * libio/vtables.c (_IO_vtable_check): Likewise.
17677 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17678 (__libc_dlclose): Likewise.
17679 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17680 assignment.
17681
17682 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17683
17684 [BZ #22446]
17685 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17686 buffers for readlink input and output.
17687
17688 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17689
17690 [BZ #22624]
17691 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17692 inhibit_stack_protector.
17693
17694 [BZ #22624]
17695 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17696 inhibit_stack_protector.
17697
17698 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17699
17700 [BZ #22627]
17701 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17702 code and invocation.
17703
17704 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17705
17706 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17707
17708 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17709
17710 [BZ #22505]
17711 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17712
17713 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17714
17715 * sysdeps/s390/fpu/libm-test-ulps: Update.
17716
17717 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17718
17719 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17720
17721 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17722
17723 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17724 constants to s_sincosf.h file.
17725 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17726 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17727 implementation.
17728 * sysdeps/ieee754/flt-32/s_sincosf.h:
17729 New file.
17730
17731 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17732
17733 [BZ #14681]
17734 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17735 before mtrace.
17736
17737 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17738
17739 [BZ #19574]
17740 * INSTALL: Regenerated.
17741 * Makeconfig (real-static-start-installed-name): New.
17742 (pic-default): Updated for --enable-static-pie.
17743 (pie-default): New for --enable-static-pie.
17744 (default-pie-ldflag): Likewise.
17745 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17746 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17747 Replace $(static-start-installed-name) with
17748 $(real-static-start-installed-name).
17749 (+prectorT): Updated for --enable-static-pie.
17750 (+postctorT): Likewise.
17751 (CFLAGS-.o): Add $(pie-default).
17752 (CFLAGS-.op): Likewise.
17753 * NEWS: Mention --enable-static-pie.
17754 * config.h.in (ENABLE_STATIC_PIE): New.
17755 * configure.ac (--enable-static-pie): New configure option.
17756 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17757 (have-static-pie): Likewise.
17758 Enable static PIE if linker supports --no-dynamic-linker.
17759 (ENABLE_STATIC_PIE): New AC_DEFINE.
17760 (enable-static-pie): New LIBC_CONFIG_VAR.
17761 * configure: Regenerated.
17762 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17763 gr$(start-installed-name) for --enable-static-pie.
17764 (extra-objs): Likewise.
17765 (install-lib): Likewise.
17766 (extra-objs): Add static-reloc.o and static-reloc.os
17767 ($(objpfx)$(start-installed-name)): Also depend on
17768 $(objpfx)static-reloc.o.
17769 ($(objpfx)r$(start-installed-name)): New.
17770 ($(objpfx)g$(start-installed-name)): Also depend on
17771 $(objpfx)static-reloc.os.
17772 ($(objpfx)gr$(start-installed-name)): New.
17773 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17774 in libc.a.
17775 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17776 initimage.
17777 * csu/static-reloc.c: New file.
17778 * elf/Makefile (routines): Add dl-reloc-static-pie.
17779 (elide-routines.os): Likewise.
17780 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17781 (tst-tls1-static-non-pie-no-pie): New.
17782 * elf/dl-reloc-static-pie.c: New file.
17783 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17784 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17785 STATIC_PIE_BOOTSTRAP.
17786 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17787 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17788 (tests-static): Likewise.
17789 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17790 (tst-gmon-static-no-pie): New.
17791 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17792 (CRT-tst-gmon-static-pie): Likewise.
17793 (tst-gmon-static-pie-ENV): Likewise.
17794 (tests-special): Likewise.
17795 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17796 (clean-tst-gmon-static-pie-data): Likewise.
17797 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17798 * gmon/tst-gmon-static-pie.c: New file.
17799 * manual/install.texi: Document --enable-static-pie.
17800 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17801 (_dl_get_dl_main_map): Likewise.
17802 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17803 * sysdeps/x86_64/configure.ac: Likewise.
17804 * sysdeps/i386/configure: Regenerated.
17805 * sysdeps/x86_64/configure: Likewise.
17806 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17807 (ASFLAGS-.op): Likewise.
17808
17809 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17810
17811 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17812 * posix/tst-mmap-offset.c (fname): Use /tmp.
17813 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17814
17815 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17816
17817 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17818
17819 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17820
17821 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17822 errno.
17823
17824 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17825
17826 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17827 --with-float=hard for arm-linux-gnueabihf configurations.
17828
17829 [BZ #14121]
17830 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17831 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17832 ($(mo-installed)): Use $(objpfx)%.mo.
17833 (realclean): Remove rule.
17834
17835 * po/Makefile (linguas): Remove rule and dependencies.
17836 (linguas.mo): Likewise.
17837 (.PHONY): Do not depend on linguas and linguas.mo.
17838 (podir): Remove variable.
17839 (pofiles): Likewise.
17840 [$(pofiles)] (%.po): Remove rule.
17841
17842 * sysdeps/sparc/sparc32/Makefile
17843 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17844 start-of-line whitespace in argument of echo.
17845 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17846 with whitespace. Generate __wrap_.udiv alias.
17847 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17848 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17849 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17850 * sysdeps/sparc/sparc32/urem.S: Likewise.
17851
17852 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17853
17854 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17855 for aligned inputs.
17856
17857 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17858
17859 * benchtests/bench-strcmp.c: Print output in JSON format.
17860
17861 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17862
17863 2017-12-14 Florian Weimer <fweimer@redhat.com>
17864
17865 [BZ #22607]
17866 CVE-2017-1000409
17867 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17868 the expanded path string.
17869
17870 2017-12-14 Florian Weimer <fweimer@redhat.com>
17871
17872 [BZ #22606]
17873 CVE-2017-1000408
17874 * elf/dl-load.c (system_dirs): Update comment.
17875 (nsystem_dirs_len): Use array_length.
17876 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17877
17878 2017-12-14 Florian Weimer <fweimer@redhat.com>
17879
17880 Simplify compiling most of support/ outside of glibc.
17881 * support/check_addrinfo.c: Include <string.h>.
17882 * support/check_dns_packet.c: Likewise.
17883 * support/check_hostent.c: Likewise.
17884 * support/support_can_chroot.c: Include <support/xunistd.h>.
17885 * support/support_format_addrinfo.c: Include <stdlib.h>
17886 * support/support_format_dns_packet.c: Include <stdbool.h>.
17887 * support/support_format_hostent.c: Include <stdlib.h>.
17888 * support/support_format_netent.c: Likewise.
17889 * support/support_write_string.c: Include <support/xunistd.h>.
17890 * support/xdlfcn.c: Include <stddef.h>.
17891
17892 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17893
17894 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17895
17896 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17897 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17898
17899 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17900 (sysdeps_routines): Add memset-niagara7.
17901 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17902 Likewise.
17903 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17904 file.
17905 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17906 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17907 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17908 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17909 Add niagara7 option.
17910 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17911 memset.
17912
17913 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17914 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
17915 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
17916 Likewise.
17917 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
17918 New file.
17919 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
17920 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
17921 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17922 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
17923 and __memmove_niagara7.
17924 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
17925 Add niagara7 option.
17926 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
17927 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
17928 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
17929 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
17930 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
17931
17932 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
17933
17934 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
17935 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
17936 * sysdeps/sparc/sparc64/memmove.S: Likewise.
17937 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
17938
17939 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
17940 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
17941 _dl_sparc_cap_flags array.
17942 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
17943
17944 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17945
17946 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
17947 time whenever possible.
17948
17949 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17950
17951 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
17952 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
17953
17954 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17955
17956 * soft-fp/fmadf4.c: Move to ....
17957 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
17958 * soft-fp/fmasf4.c: Move to ....
17959 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
17960 * soft-fp/fmatf4.c: Move to ....
17961 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
17962 * sysdeps/ieee754/soft-fp/Makefile: New file.
17963 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
17964 * sysdeps/arm/preconfigure: Regenerated.
17965 * sysdeps/arm/nofpu/Implies: New file.
17966 * sysdeps/arm/s_fma.c: Remove file.
17967 * sysdeps/arm/s_fmaf.c: Likewise.
17968 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
17969 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
17970 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17971 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
17972 * sysdeps/microblaze/s_fma.c: Remove file.
17973 * sysdeps/microblaze/s_fmaf.c: Likewise.
17974 * sysdeps/mips/mips32/nofpu/Implies: New file.
17975 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
17976 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
17977 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
17978 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
17979 * sysdeps/mips/ieee754/s_fma.c: Remove file.
17980 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
17981 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
17982 implementation.
17983 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
17984 * sysdeps/nios2/s_fma.c: Remove file.
17985 * sysdeps/nios2/s_fmaf.c: Likewise.
17986 * sysdeps/sh/nofpu/Implies: New file.
17987 * sysdeps/sh/s_fma.c: Remove file.
17988 * sysdeps/sh/s_fmaf.c: Likewise.
17989 * sysdeps/tile/Implies: Add ieee754/soft-fp.
17990 * sysdeps/tile/s_fma.c: Remove file.
17991 * sysdeps/tile/s_fmaf.c: Likewise.
17992
17993 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
17994
17995 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17996 Add s_cosf-sse2 and s_cosf-fma.
17997 (CFLAGS-s_cosf-fma.c): New.
17998 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
17999 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18000 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18001
18002 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18003
18004 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18005
18006 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18007
18008 * libio/Makefile (tests): Add tst-bz22415.
18009 (tst-bz22415-ENV): New rule.
18010 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18011 (tests-special): Add tst-bz22415-mem.out.
18012 ($(objpfx)tst-bz22415-mem.out): New rule.
18013 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18014 in case of a successful seek operation.
18015 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18016 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18017 buffer is required.
18018 * libio/tst-bz22415.c: New test.
18019
18020 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18021
18022 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18023
18024 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18025 __IPC_64 to 0 to avoid IPC_64 being set.
18026
18027 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18028
18029 [BZ #22593]
18030 * math/bits/mathcalls.h (nextafter): Remove const.
18031 (nexttoward): Likewise.
18032
18033 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18034
18035 * configure.ac (--with-fp): Remove configure option.
18036 (with_fp_cond): New variable.
18037 (libc_cv_with_fp): New configure test. Use this variable instead
18038 of with_fp.
18039 * configure: Regenerated.
18040 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18041 * manual/install.texi (Configuring and compiling): Remove
18042 --without-fp.
18043 * INSTALL: Regenerated.
18044 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18045 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18046 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18047 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18048 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18049 use --without-fp to configure glibc.
18050
18051 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18052
18053 * manual/locale.texi (nl_langinfo): Fix a typo.
18054
18055 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18056
18057 [BZ #22588]
18058 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18059
18060 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18061
18062 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18063 (CFLAGS-argp-parse.c): Likewise.
18064 (CFLAGS-argp-fmtstream.c): Likewise.
18065 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18066 (CPPFLAGS-sha512-crypt.c): Likewise.
18067 (CPPFLAGS-md5-crypt.c): Likewise.
18068 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18069 (CFLAGS-stack_chk_fail_local.c): Likewise.
18070 (CFLAGS-backtrace.c): Likewise.
18071 (CFLAGS-sprintf_chk.c): Likewise.
18072 (CFLAGS-snprintf_chk.c): Likewise.
18073 (CFLAGS-vsprintf_chk.c): Likewise.
18074 (CFLAGS-vsnprintf_chk.c): Likewise.
18075 (CFLAGS-asprintf_chk.c): Likewise.
18076 (CFLAGS-vasprintf_chk.c): Likewise.
18077 (CFLAGS-obprintf_chk.c): Likewise.
18078 (CFLAGS-dprintf_chk.c): Likewise.
18079 (CFLAGS-vdprintf_chk.c): Likewise.
18080 (CFLAGS-printf_chk.c): Likewise.
18081 (CFLAGS-fprintf_chk.c): Likewise.
18082 (CFLAGS-vprintf_chk.c): Likewise.
18083 (CFLAGS-vfprintf_chk.c): Likewise.
18084 (CFLAGS-gets_chk.c): Likewise.
18085 (CFLAGS-fgets_chk.c): Likewise.
18086 (CFLAGS-fgets_u_chk.c): Likewise.
18087 (CFLAGS-fread_chk.c): Likewise.
18088 (CFLAGS-fread_u_chk.c): Likewise.
18089 (CFLAGS-swprintf_chk.c): Likewise.
18090 (CFLAGS-vswprintf_chk.c): Likewise.
18091 (CFLAGS-wprintf_chk.c): Likewise.
18092 (CFLAGS-fwprintf_chk.c): Likewise.
18093 (CFLAGS-vwprintf_chk.c): Likewise.
18094 (CFLAGS-vfwprintf_chk.c): Likewise.
18095 (CFLAGS-fgetws_chk.c): Likewise.
18096 (CFLAGS-fgetws_u_chk.c): Likewise.
18097 (CFLAGS-read_chk.c): Likewise.
18098 (CFLAGS-pread_chk.c): Likewise.
18099 (CFLAGS-pread64_chk.c): Likewise.
18100 (CFLAGS-recv_chk.c): Likewise.
18101 (CFLAGS-recvfrom_chk.c): Likewise.
18102 (CFLAGS-tst-longjmp_chk.c): Likewise.
18103 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18104 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18105 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18106 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18107 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18108 (CFLAGS-tst-chk1.c): Likewise.
18109 (CFLAGS-tst-chk2.c): Likewise.
18110 (CFLAGS-tst-chk3.c): Likewise.
18111 (CFLAGS-tst-chk4.cc): Likewise.
18112 (CFLAGS-tst-chk5.cc): Likewise.
18113 (CFLAGS-tst-chk6.cc): Likewise.
18114 (CFLAGS-tst-lfschk1.c): Likewise.
18115 (CFLAGS-tst-lfschk2.c): Likewise.
18116 (CFLAGS-tst-lfschk3.c): Likewise.
18117 (CFLAGS-tst-lfschk4.cc): Likewise.
18118 (CFLAGS-tst-lfschk5.cc): Likewise.
18119 (CFLAGS-tst-lfschk6.cc): Likewise.
18120 (CFLAGS-tst-ssp-1.c): Likewise.
18121 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18122 (CFLAGS-scandir64.c): Likewise.
18123 (CFLAGS-scandir-tail.c): Likewise.
18124 (CFLAGS-scandir64-tail.c): Likewise.
18125 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18126 (CFLAGS-dl-tunables.c): Likewise.
18127 (CFLAGS-dl-runtime.c): Likewise.
18128 (CFLAGS-dl-lookup.c): Likewise.
18129 (CFLAGS-dl-iterate-phdr.c): Likewise.
18130 (CFLAGS-vismain.c): Likewise.
18131 (CFLAGS-tst-linkall-static.c): Likewise.
18132 (CFLAGS-tst-linkall-static.c): Likewise.
18133 (CPPFLAGS-dl-load.c): Likewise.
18134 (CFLAGS-ldconfig.c): Likewise.
18135 (CFLAGS-dl-cache.c): Likewise.
18136 (CFLAGS-cache.c): Likewise.
18137 (CFLAGS-rtld.c): Likewise.
18138 (CFLAGS-multiload.c): Likewise.
18139 (CFLAGS-filtmod1.c): Likewise.
18140 (CFLAGS-tst-align.c): Likewise.
18141 (CFLAGS-tst-align2.c): Likewise.
18142 (CFLAGS-tst-alignmod.c): Likewise.
18143 (CFLAGS-tst-alignmod2.c): Likewise.
18144 (CPPFLAGS-tst-execstack.c): Likewise.
18145 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18146 (CFLAGS-tst-latepthreadmod.c): Likewise.
18147 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18148 (CFLAGS-getgrnam_r.c): Likewise.
18149 (CFLAGS-getgrent_r.c): Likewise.
18150 (CFLAGS-getgrent.c): Likewise.
18151 (CFLAGS-fgetgrent.c): Likewise.
18152 (CFLAGS-fgetgrent_r.c): Likewise.
18153 (CFLAGS-putgrent.c): Likewise.
18154 (CFLAGS-initgroups.c): Likewise.
18155 (CFLAGS-getgrgid.c): Likewise.
18156 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18157 (CFLAGS-getsgent.c): Likewise.
18158 (CFLAGS-fgetsgent.c): Likewise.
18159 (CFLAGS-fgetsgent_r.c): Likewise.
18160 (CFLAGS-putsgent.c): Likewise.
18161 (CFLAGS-getsgnam.c): Likewise.
18162 (CFLAGS-getsgnam_r.c): Likewise.
18163 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18164 (CFLAGS-iconv_charmap.c): Likewise.
18165 (CFLAGS-dummy-repertoire.c): Likewise.
18166 (CFLAGS-charmap.c): Likewise.
18167 (CFLAGS-linereader.c): Likewise.
18168 (CFLAGS-simple-hash.c): Likewise.
18169 (CFLAGS-gconv_conf.c): Likewise.
18170 (CFLAGS-iconvconfig.c): Likewise.
18171 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18172 (CFLAGS-gethstbyad.c): Likewise.
18173 (CFLAGS-gethstbynm_r.c): Likewise.
18174 (CFLAGS-gethstbynm.c): Likewise.
18175 (CFLAGS-gethstbynm2_r.c): Likewise.
18176 (CFLAGS-gethstbynm2.c): Likewise.
18177 (CFLAGS-gethstent_r.c): Likewise.
18178 (CFLAGS-gethstent.c): Likewise.
18179 (CFLAGS-rcmd.c): Likewise.
18180 (CFLAGS-getnetbynm_r.c): Likewise.
18181 (CFLAGS-getnetbynm.c): Likewise.
18182 (CFLAGS-getnetbyad_r.c): Likewise.
18183 (CFLAGS-getnetbyad.c): Likewise.
18184 (CFLAGS-getnetent_r.c): Likewise.
18185 (CFLAGS-getnetent.c): Likewise.
18186 (CFLAGS-getaliasent_r.c): Likewise.
18187 (CFLAGS-getaliasent.c): Likewise.
18188 (CFLAGS-getrpcent_r.c): Likewise.
18189 (CFLAGS-getrpcent.c): Likewise.
18190 (CFLAGS-getservent_r.c): Likewise.
18191 (CFLAGS-getservent.c): Likewise.
18192 (CFLAGS-getprtent_r.c): Likewise.
18193 (CFLAGS-getprtent.c): Likewise.
18194 (CFLAGS-either_ntoh.c): Likewise.
18195 (CFLAGS-either_hton.c): Likewise.
18196 (CFLAGS-getnetgrent.c): Likewise.
18197 (CFLAGS-getnetgrent_r.c): Likewise.
18198 (CFLAGS-tst-checks-posix.c): Likewise.
18199 (CFLAGS-tst-sockaddr.c): Likewise.
18200 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18201 (CFLAGS-tst-translit.c): Likewise.
18202 (CFLAGS-tst-gettext2.c): Likewise.
18203 (CFLAGS-tst-codeset.c): Likewise.
18204 (CFLAGS-tst-gettext3.c): Likewise.
18205 (CFLAGS-tst-gettext4.c): Likewise.
18206 (CFLAGS-tst-gettext5.c): Likewise.
18207 (CFLAGS-tst-gettext6.c): Likewise.
18208 * io/Makefile (CFLAGS-open.c): Likewise.
18209 (CFLAGS-open64.c): Likewise.
18210 (CFLAGS-creat.c): Likewise.
18211 (CFLAGS-creat64.c): Likewise.
18212 (CFLAGS-fcntl.c): Likewise.
18213 (CFLAGS-poll.c): Likewise.
18214 (CFLAGS-ppoll.c): Likewise.
18215 (CFLAGS-lockf.c): Likewise.
18216 (CFLAGS-statfs.c): Likewise.
18217 (CFLAGS-fstatfs.c): Likewise.
18218 (CFLAGS-statvfs.c): Likewise.
18219 (CFLAGS-fstatvfs.c): Likewise.
18220 (CFLAGS-fts.c): Likewise.
18221 (CFLAGS-fts64.c): Likewise.
18222 (CFLAGS-ftw.c): Likewise.
18223 (CFLAGS-ftw64.c): Likewise.
18224 (CFLAGS-lockf.c): Likewise.
18225 (CFLAGS-posix_fallocate.c): Likewise.
18226 (CFLAGS-posix_fallocate64.c): Likewise.
18227 (CFLAGS-fallocate.c): Likewise.
18228 (CFLAGS-fallocate64.c): Likewise.
18229 (CFLAGS-read.c): Likewise.
18230 (CFLAGS-write.c): Likewise.
18231 (CFLAGS-test-stat.c): Likewise.
18232 (CFLAGS-test-lfs.c): Likewise.
18233 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18234 (CFLAGS-fputc.c): Likewise.
18235 (CFLAGS-fputwc.c): Likewise.
18236 (CFLAGS-freopen64.c): Likewise.
18237 (CFLAGS-freopen.c): Likewise.
18238 (CFLAGS-fseek.c): Likewise.
18239 (CFLAGS-fseeko64.c): Likewise.
18240 (CFLAGS-fseeko.c): Likewise.
18241 (CFLAGS-ftello64.c): Likewise.
18242 (CFLAGS-ftello.c): Likewise.
18243 (CFLAGS-fwide.c): Likewise.
18244 (CFLAGS-genops.c): Likewise.
18245 (CFLAGS-getc.c): Likewise.
18246 (CFLAGS-getchar.c): Likewise.
18247 (CFLAGS-getwc.c): Likewise.
18248 (CFLAGS-getwchar.c): Likewise.
18249 (CFLAGS-iofclose.c): Likewise.
18250 (CFLAGS-iofflush.c): Likewise.
18251 (CFLAGS-iofgetpos64.c): Likewise.
18252 (CFLAGS-iofgetpos.c): Likewise.
18253 (CFLAGS-iofgets.c): Likewise.
18254 (CFLAGS-iofgetws.c): Likewise.
18255 (CFLAGS-iofputs.c): Likewise.
18256 (CFLAGS-iofputws.c): Likewise.
18257 (CFLAGS-iofread.c): Likewise.
18258 (CFLAGS-iofsetpos64.c): Likewise.
18259 (CFLAGS-iofsetpos.c): Likewise.
18260 (CFLAGS-ioftell.c): Likewise.
18261 (CFLAGS-iofwrite.c): Likewise.
18262 (CFLAGS-iogetdelim.c): Likewise.
18263 (CFLAGS-iogetline.c): Likewise.
18264 (CFLAGS-iogets.c): Likewise.
18265 (CFLAGS-iogetwline.c): Likewise.
18266 (CFLAGS-ioputs.c): Likewise.
18267 (CFLAGS-ioseekoff.c): Likewise.
18268 (CFLAGS-ioseekpos.c): Likewise.
18269 (CFLAGS-iosetbuffer.c): Likewise.
18270 (CFLAGS-iosetvbuf.c): Likewise.
18271 (CFLAGS-ioungetc.c): Likewise.
18272 (CFLAGS-ioungetwc.c): Likewise.
18273 (CFLAGS-oldfileops.c): Likewise.
18274 (CFLAGS-oldiofclose.c): Likewise.
18275 (CFLAGS-oldiofgetpos64.c): Likewise.
18276 (CFLAGS-oldiofgetpos.c): Likewise.
18277 (CFLAGS-oldiofsetpos64.c): Likewise.
18278 (CFLAGS-oldiofsetpos.c): Likewise.
18279 (CFLAGS-peekc.c): Likewise.
18280 (CFLAGS-putc.c): Likewise.
18281 (CFLAGS-putchar.c): Likewise.
18282 (CFLAGS-putwc.c): Likewise.
18283 (CFLAGS-putwchar.c): Likewise.
18284 (CFLAGS-rewind.c): Likewise.
18285 (CFLAGS-wfileops.c): Likewise.
18286 (CFLAGS-wgenops.c): Likewise.
18287 (CFLAGS-oldiofopen.c): Likewise.
18288 (CFLAGS-iofopen.c): Likewise.
18289 (CFLAGS-iofopen64.c): Likewise.
18290 (CFLAGS-oldtmpfile.c): Likewise.
18291 (CFLAGS-tst_putwc.c): Likewise.
18292 * locale/Makefile (CFLAGS-md5.c): Likewise.
18293 (CFLAGS-charmap.c): Likewise.
18294 (CFLAGS-locfile.c): Likewise.
18295 (CFLAGS-charmap-dir.c): Likewise.
18296 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18297 (CFLAGS-getpt.c): Likewise.
18298 (CFLAGS-pt_chown.c): Likewise.
18299 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18300 (CFLAGS-obstack.c): Likewise.
18301 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18302 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18303 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18304 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18305 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18306 (CFLAGS-test-tgmath.c): Likewise.
18307 (CFLAGS-test-tgmath2.c): Likewise.
18308 (CFLAGS-test-tgmath-ret.c): Likewise.
18309 (CFLAGS-test-powl.c): Likewise.
18310 (CFLAGS-test-snan.c): Likewise.
18311 (CFLAGS-test-signgam-finite.c): Likewise.
18312 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18313 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18314 (CFLAGS-test-signgam-uchar.c): Likewise.
18315 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18316 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18317 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18318 (CFLAGS-test-signgam-uint.c): Likewise.
18319 (CFLAGS-test-signgam-uint-init.c): Likewise.
18320 (CFLAGS-test-signgam-uint-static.c): Likewise.
18321 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18322 (CFLAGS-test-signgam-ullong.c): Likewise.
18323 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18324 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18325 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18326 (CFLAGS-test-math-cxx11.cc): Likewise.
18327 (CFLAGS-test-math-isinff.cc): Likewise.
18328 (CFLAGS-test-math-iszero.cc): Likewise.
18329 (CFLAGS-test-math-issignaling.cc): Likewise.
18330 (CFLAGS-test-math-iscanonical.cc): Likewise.
18331 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18332 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18333 (CFLAGS-test-flt-eval-method.c): Likewise.
18334 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18335 (CFLAGS-test-finite-macros.c): Likewise.
18336 * misc/Makefile (CFLAGS-select.c): Likewise.
18337 (CFLAGS-tsearch.c): Likewise.
18338 (CFLAGS-lsearch.c): Likewise.
18339 (CFLAGS-pselect.c): Likewise.
18340 (CFLAGS-readv.c): Likewise.
18341 (CFLAGS-writev.c): Likewise.
18342 (CFLAGS-preadv.c): Likewise.
18343 (CFLAGS-preadv64.c): Likewise.
18344 (CFLAGS-pwritev.c): Likewise.
18345 (CFLAGS-pwritev64.c): Likewise.
18346 (CFLAGS-preadv2.c): Likewise.
18347 (CFLAGS-preadv64v2.c): Likewise.
18348 (CFLAGS-pwritev2.c): Likewise.
18349 (CFLAGS-pwritev64v2.c): Likewise.
18350 (CFLAGS-usleep.c): Likewise.
18351 (CFLAGS-syslog.c): Likewise.
18352 (CFLAGS-error.c): Likewise.
18353 (CFLAGS-getpass.c): Likewise.
18354 (CFLAGS-mkstemp.c): Likewise.
18355 (CFLAGS-mkstemp64.c): Likewise.
18356 (CFLAGS-getsysstats.c): Likewise.
18357 (CFLAGS-getusershell.c): Likewise.
18358 (CFLAGS-err.c): Likewise.
18359 (CFLAGS-tst-tsearch.c): Likewise.
18360 (CFLAGS-msync.c): Likewise.
18361 (CFLAGS-fdatasync.c): Likewise.
18362 (CFLAGS-fsync.c): Likewise.
18363 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18364 (CFLAGS-unwind.c): Likewise.
18365 (CFLAGS-unwind-forcedunwind.c): Likewise.
18366 (CFLAGS-pthread_cancel.c): Likewise.
18367 (CFLAGS-pthread_setcancelstate.c): Likewise.
18368 (CFLAGS-pthread_setcanceltype.c): Likewise.
18369 (CFLAGS-cancellation.c): Likewise.
18370 (CFLAGS-libc-cancellation.c): Likewise.
18371 (CFLAGS-pthread_exit.c): Likewise.
18372 (CFLAGS-forward.c): Likewise.
18373 (CFLAGS-pthread_testcancel.c): Likewise.
18374 (CFLAGS-pthread_join.c): Likewise.
18375 (CFLAGS-pthread_timedjoin.c): Likewise.
18376 (CFLAGS-pthread_once.c): Likewise.
18377 (CFLAGS-pthread_cond_wait.c): Likewise.
18378 (CFLAGS-sem_wait.c): Likewise.
18379 (CFLAGS-sem_timedwait.c): Likewise.
18380 (CFLAGS-fcntl.c): Likewise.
18381 (CFLAGS-lockf.c): Likewise.
18382 (CFLAGS-pread.c): Likewise.
18383 (CFLAGS-pread64.c): Likewise.
18384 (CFLAGS-pwrite.c): Likewise.
18385 (CFLAGS-pwrite64.c): Likewise.
18386 (CFLAGS-wait.c): Likewise.
18387 (CFLAGS-waitpid.c): Likewise.
18388 (CFLAGS-sigwait.c): Likewise.
18389 (CFLAGS-msgrcv.c): Likewise.
18390 (CFLAGS-msgsnd.c): Likewise.
18391 (CFLAGS-tcdrain.c): Likewise.
18392 (CFLAGS-open.c): Likewise.
18393 (CFLAGS-open64.c): Likewise.
18394 (CFLAGS-pause.c): Likewise.
18395 (CFLAGS-recv.c): Likewise.
18396 (CFLAGS-send.c): Likewise.
18397 (CFLAGS-accept.c): Likewise.
18398 (CFLAGS-sendto.c): Likewise.
18399 (CFLAGS-connect.c): Likewise.
18400 (CFLAGS-recvfrom.c): Likewise.
18401 (CFLAGS-recvmsg.c): Likewise.
18402 (CFLAGS-sendmsg.c): Likewise.
18403 (CFLAGS-close.c): Likewise.
18404 (CFLAGS-read.c): Likewise.
18405 (CFLAGS-write.c): Likewise.
18406 (CFLAGS-nanosleep.c): Likewise.
18407 (CFLAGS-sigsuspend.c): Likewise.
18408 (CFLAGS-msync.c): Likewise.
18409 (CFLAGS-fdatasync.c): Likewise.
18410 (CFLAGS-fsync.c): Likewise.
18411 (CFLAGS-pt-system.c): Likewise.
18412 (CFLAGS-tst-cleanup2.c): Likewise.
18413 (CFLAGS-tst-cleanupx2.c): Likewise.
18414 (CFLAGS-flockfile.c): Likewise.
18415 (CFLAGS-ftrylockfile.c): Likewise.
18416 (CFLAGS-funlockfile.c): Likewise.
18417 (CFLAGS-tst-initializers1.c): Likewise.
18418 (CFLAGS-tst-initializers1-c89.c): Likewise.
18419 (CFLAGS-tst-initializers1-c99.c): Likewise.
18420 (CFLAGS-tst-initializers1-c11.c): Likewise.
18421 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18422 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18423 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18424 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18425 (CFLAGS-nscd_getgr_r.c): Likewise.
18426 (CFLAGS-nscd_gethst_r.c): Likewise.
18427 (CFLAGS-nscd_getai.c): Likewise.
18428 (CFLAGS-nscd_initgroups.c): Likewise.
18429 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18430 (CFLAGS-pause.c): Likewise.
18431 (CFLAGS-pread.c): Likewise.
18432 (CFLAGS-pread64.c): Likewise.
18433 (CFLAGS-pwrite.c): Likewise.
18434 (CFLAGS-pwrite64.c): Likewise.
18435 (CFLAGS-sleep.c): Likewise.
18436 (CFLAGS-wait.c): Likewise.
18437 (CFLAGS-waitid.c): Likewise.
18438 (CFLAGS-waitpid.c): Likewise.
18439 (CFLAGS-getopt.c): Likewise.
18440 (CFLAGS-wordexp.c): Likewise.
18441 (CFLAGS-sysconf.c): Likewise.
18442 (CFLAGS-pathconf.c): Likewise.
18443 (CFLAGS-fpathconf.c): Likewise.
18444 (CFLAGS-spawn.c): Likewise.
18445 (CFLAGS-spawnp.c): Likewise.
18446 (CFLAGS-spawni.c): Likewise.
18447 (CFLAGS-glob.c): Likewise.
18448 (CFLAGS-glob64.c): Likewise.
18449 (CFLAGS-getconf.c): Likewise.
18450 (CFLAGS-nanosleep.c): Likewise.
18451 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18452 (CFLAGS-getpwent.c): Likewise.
18453 (CFLAGS-getpw.c): Likewise.
18454 (CFLAGS-fgetpwent_r.c): Likewise.
18455 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18456 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18457 (CFLAGS-mq_timedreceive.c): Likewise.
18458 (CFLAGS-mq_timedsend.c): Likewise.
18459 (CFLAGS-clock_nanosleep.c): Likewise.
18460 (CFLAGS-librt-cancellation.c): Likewise.
18461 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18462 (CFLAGS-getspent.c): Likewise.
18463 (CFLAGS-fgetspent.c): Likewise.
18464 (CFLAGS-fgetspent_r.c): Likewise.
18465 (CFLAGS-putspent.c): Likewise.
18466 (CFLAGS-getspnam.c): Likewise.
18467 (CFLAGS-getspnam_r.c): Likewise.
18468 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18469 (CFLAGS-sigsuspend.c): Likewise.
18470 (CFLAGS-sigtimedwait.c): Likewise.
18471 (CFLAGS-sigwait.c): Likewise.
18472 (CFLAGS-sigwaitinfo.c): Likewise.
18473 (CFLAGS-sigreturn.c): Likewise.
18474 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18475 (CFLAGS-vfwprintf.c): Likewise.
18476 (CFLAGS-tmpfile.c): Likewise.
18477 (CFLAGS-tmpfile64.c): Likewise.
18478 (CFLAGS-tempname.c): Likewise.
18479 (CFLAGS-psignal.c): Likewise.
18480 (CFLAGS-vprintf.c): Likewise.
18481 (CFLAGS-cuserid.c): Likewise.
18482 (CFLAGS-errlist.c): Likewise.
18483 (CFLAGS-siglist.c): Likewise.
18484 (CFLAGS-scanf15.c): Likewise.
18485 (CFLAGS-scanf17.c): Likewise.
18486 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18487 (CFLAGS-msort.c): Likewise.
18488 (CFLAGS-qsort.c): Likewise.
18489 (CFLAGS-system.c): Likewise.
18490 (CFLAGS-fmtmsg.c): Likewise.
18491 (CFLAGS-strfmon.c): Likewise.
18492 (CFLAGS-strfmon_l.c): Likewise.
18493 (CFLAGS-strfromd.c): Likewise.
18494 (CFLAGS-strfromf.c): Likewise.
18495 (CFLAGS-strfroml.c): Likewise.
18496 (CFLAGS-tst-bsearch.c): Likewise.
18497 (CFLAGS-tst-qsort.c): Likewise.
18498 (CFLAGS-tst-makecontext2.c): Likewise.
18499 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18500 (CFLAGS-xnlm_prot.c): Likewise.
18501 (CFLAGS-xrstat.c): Likewise.
18502 (CFLAGS-xyppasswd.c): Likewise.
18503 (CFLAGS-xklm_prot.c): Likewise.
18504 (CFLAGS-xrex.c): Likewise.
18505 (CFLAGS-xsm_inter.c): Likewise.
18506 (CFLAGS-xmount.c): Likewise.
18507 (CFLAGS-xrusers.c): Likewise.
18508 (CFLAGS-xspray.c): Likewise.
18509 (CFLAGS-xnfs_prot.c): Likewise.
18510 (CFLAGS-xrquota.c): Likewise.
18511 (CFLAGS-xkey_prot.c): Likewise.
18512 (CFLAGS-auth_unix.c): Likewise.
18513 (CFLAGS-key_call.c): Likewise.
18514 (CFLAGS-pmap_rmt.c): Likewise.
18515 (CFLAGS-clnt_perr.c): Likewise.
18516 (CFLAGS-openchild.c): Likewise.
18517 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18518 (CFLAGS-msgsnd.c): Likewise.
18519 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18520 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18521 (CFLAGS-tzset.c): Likewise.
18522 (CFLAGS-getdate.c): Likewise.
18523 (CFLAGS-test_time.c): Likewise.
18524 (CPPFLAGS-tst-tzname.c): Likewise.
18525 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18526 (CFLAGS-zic.c): Likewise.
18527 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18528 (CFLAGS-wcswidth.c): Likewise.
18529 (CFLAGS-wcstol.c): Likewise.
18530 (CFLAGS-wcstoul.c): Likewise.
18531 (CFLAGS-wcstoll.c): Likewise.
18532 (CFLAGS-wcstoull.c): Likewise.
18533 (CFLAGS-wcstod.c): Likewise.
18534 (CFLAGS-wcstold.c): Likewise.
18535 (CFLAGS-wcstof128.c): Likewise.
18536 (CFLAGS-wcstof.c): Likewise.
18537 (CFLAGS-wcstol_l.c): Likewise.
18538 (CFLAGS-wcstoul_l.c): Likewise.
18539 (CFLAGS-wcstoll_l.c): Likewise.
18540 (CFLAGS-wcstoull_l.c): Likewise.
18541 (CFLAGS-wcstod_l.c): Likewise.
18542 (CFLAGS-wcstold_l.c): Likewise.
18543 (CFLAGS-wcstof128_l.c): Likewise.
18544 (CFLAGS-wcstof_l.c): Likewise.
18545 (CPPFLAGS-tst-wchar-h.c): Likewise.
18546 (CPPFLAGS-wcstold_l.c): Likewise.
18547
18548 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18549
18550 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18551
18552 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18553 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18554
18555 * manual/tunables.texi (Hardware Capability Tunables): Document
18556 glibc.tune.cached_memopt.
18557 * sysdeps/powerpc/cpu-features.c: New file.
18558 * sysdeps/powerpc/cpu-features.h: New file.
18559 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18560 _dl_powerpc_cpu_features.
18561 * sysdeps/powerpc/dl-tunables.list: New file.
18562 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18563 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18564 (INIT_ARCH): Initialize use_aligned_memopt.
18565 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18566 IS_IN(rtld))]: Restrict dl_platform_init availability and
18567 initialize CPU features used by tunables.
18568 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18569 Add memcpy-power8-cached.
18570 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18571 __memcpy_power8_cached.
18572 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18573 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18574 New file.
18575
18576 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18577
18578 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18579 (CFLAGS-noinl-tester.c): Likewise.
18580 (CFLAGS-tst-strlen.c): Likewise.
18581 (CFLAGS-stratcliff.c): Likewise.
18582 (CFLAGS-test-ffs.c): Likewise.
18583 (CFLAGS-tst-inlcall.c): Likewise.
18584 (CFLAGS-tst-xbzero-opt.c): Likewise.
18585 (CFLAGS-memcpy.c): Likewise.
18586 (CFLAGS-wordcopy.c): Likewise.
18587
18588 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18589
18590 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18591 Store r15 on stack and add cfi rule.
18592 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18593 Likewise.
18594
18595 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18596
18597 [BZ #22577]
18598 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18599 call.
18600
18601 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18604 Add s_sinf-sse2 and s_sinf-fma.
18605 (CFLAGS-s_sinf-fma.c): New.
18606 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18607 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18608 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18609
18610 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18611
18612 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18613
18614 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18615
18616 [BZ #22568]
18617 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18618 part of result to imaginary part of argument if it is zero and the
18619 real part of the argument is not finite.
18620 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18621 of result to real part of argument if it is zero and the imaginary
18622 part of the argument is not finite.
18623
18624 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18625
18626 [BZ #22524]
18627 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18628 and to the list of locales to be built for testing.
18629 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18630 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18631 and build the collation rules upon that.
18632
18633 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18634
18635 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18636 * manual/math.texi (Mathematics): Document support for _Float32.
18637 * math/Makefile (test-types): Add float32.
18638 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18639 * stdlib/Versions (GLIBC_2.27): Likewise.
18640 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18641 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18642 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18643 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18644 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18645 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18646 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18647 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18648 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18649 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18650 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18651 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18652 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18653 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18654 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18655 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18656 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18662 Likewise.
18663 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18664 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18665 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18666 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18669 Likewise.
18670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18671 Likewise.
18672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18673 Likewise.
18674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18675 Likewise.
18676
18677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18678 Likewise.
18679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18680 Likewise.
18681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18682 Likewise.
18683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18684 Likewise.
18685 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18686 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18687 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18688 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18689 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18690 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18691 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18692 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18693 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18694 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18695 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18696 Likewise.
18697 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18698 Likewise.
18699 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18700 Likewise.
18701 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18702 Likewise.
18703 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18704 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18705 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18706 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18707 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18708 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18709 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18710 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18711
18712 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18713
18714 * stdlib/strtof.c: Include <bits/floatn.h>
18715 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18716 and later undefine as macro. Define as weak alias if
18717 [!USE_WIDE_CHAR].
18718 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18719 and later undefine as macro. Define as weak alias if
18720 [USE_WIDE_CHAR].
18721 * stdlib/strtof_l.c: Include <bits/floatn.h>
18722 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18723 and later undefine as macro. Define as weak alias if
18724 [!USE_WIDE_CHAR].
18725 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18726 and later undefine as macro. Define as weak alias if
18727 [USE_WIDE_CHAR].
18728
18729 * stdlib/strfromf.c: Include <bits/floatn.h>.
18730 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18731 and later undefine as macro and define as weak alias.
18732
18733 * math/test-float32.h: New file.
18734
18735 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18736 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18737 (libm_alias_float_other_r): Create f32 alias.
18738 (libm_alias_float_r): Use semicolon before call to
18739 libm_alias_float_other_r.
18740
18741 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18742 second argument to libm_alias_float_other.
18743 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18744 second argument to libm_alias_float_other.
18745 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18746 argument to libm_alias_float_other.
18747
18748 [BZ #22561]
18749 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18750 real part of result for argument 0 + i * NaN.
18751 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18752 results for tests of 0 + i * NaN.
18753
18754 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18755
18756 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18757
18758 2017-12-06 David S. Miller <davem@davemloft.net>
18759
18760 * sysdeps/sparc/fpu/libm-test-ulps: Update
18761 exp_{downward,towardzero,upward} ulps.
18762
18763 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18764
18765 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18766 variables static.
18767
18768 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18769 (Y0_2D): Likewise.
18770 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18771 (Y0_2D): Likewise.
18772 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18773 (Y0_2D): Likewise.
18774 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18775 (Y0_2D): Likewise.
18776
18777 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18778
18779 [BZ #22515]
18780 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18781 and to the list of locales to be built for testing.
18782 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18783 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18784 and build the collation rules upon that.
18785
18786 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18787
18788 * NEWS: Add sinf to list of optimized functions.
18789
18790 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18791
18792 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18793 (__HAVE_FLOAT32X): Likewise.
18794 * manual/math.texi (Mathematics): Document support for _Float64
18795 and _Float32x.
18796 * math/Makefile (test-types): Add float64 and float32x.
18797 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18798 functions.
18799 * stdlib/Versions (GLIBC_2.27): Likewise.
18800 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18801 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18802 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18803 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18804 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18812 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18821 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18822 Likewise.
18823 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18829 Likewise.
18830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18831 Likewise.
18832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18833 Likewise.
18834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18835 Likewise.
18836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18837 Likewise.
18838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18839 Likewise.
18840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18841 Likewise.
18842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18843 Likewise.
18844 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18850 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18851 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18855 Likewise.
18856 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18857 Likewise.
18858 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18859 Likewise.
18860 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18861 Likewise.
18862 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18868 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18869 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18870
18871 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18872
18873 * bits/floatn-common.h: Include <bits/long-double.h>.
18874 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18875 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18876 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18877 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18878 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18879 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18880 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18881 (__builtin_huge_valf64): Use __builtin_huge_vall.
18882 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18883 (__builtin_inff64): Use __builtin_infl.
18884 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18885 (__builtin_nanf64): Use __builtin_nanl.
18886 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18887 (__builtin_nansf64): Use __builtin_nansl.
18888
18889 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18890 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18891 Carlos O'Donnell <carlos@redhat.com>
18892
18893 * elf/dl-tunables.list: Add elision parameters.
18894 * manual/tunables.texi: Add entries about elision tunable.
18895 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18896 Add callback functions to dynamically enable/disable elision.
18897 Add multiple callbacks functions to set elision parameters.
18898 Deleted __libc_enable_secure check.
18899 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18900 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18901 * configure: Regenerated.
18902 * configure.ac: Option enable_lock_elision was deleted.
18903 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18904 * config.make.in: Remove references to enable_lock_elision.
18905 * manual/install.texi: Elision configure option was removed.
18906 * INSTALL: Regenerated to remove enable_lock_elision.
18907 * nptl/Makefile:
18908 Disable elision so it can verify error case for destroying a mutex.
18909 * sysdeps/powerpc/nptl/elide.h:
18910 Cleanup ENABLE_LOCK_ELISION check.
18911 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
18912 * sysdeps/s390/configure: Regenerated.
18913 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
18914 * nptl/tst-mutex8.c:
18915 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
18916 * sysdeps/powerpc/powerpc32/sysdep.h:
18917 Deleted all ENABLE_LOCK_ELISION checks.
18918 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18919 * sysdeps/powerpc/sysdep.h: Likewise.
18920 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
18921 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
18922 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
18923 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
18924 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
18925 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
18926 enable-lock-elision.
18927
18928 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18929
18930 * stdlib/strtod.c: Include <bits/floatn.h>.
18931 (BUILD_DOUBLE): New macro.
18932 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18933 (strtof64): Define and later undefine as macro. Define as weak
18934 alias if [!USE_WIDE_CHAR].
18935 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18936 (wcstof64): Define and later undefine as macro. Define as weak
18937 alias if [USE_WIDE_CHAR].
18938 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18939 (strtof32x): Define and later undefine as macro. Define as weak
18940 alias if [!USE_WIDE_CHAR].
18941 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18942 (wcstof32x): Define and later undefine as macro. Define as weak
18943 alias if [USE_WIDE_CHAR].
18944 * stdlib/strtod_l.c: Include <bits/floatn.h>.
18945 (BUILD_DOUBLE): New macro.
18946 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18947 (strtof64_l): Define and later undefine as macro. Define as weak
18948 alias if [!USE_WIDE_CHAR].
18949 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18950 (wcstof64_l): Define and later undefine as macro. Define as weak
18951 alias if [USE_WIDE_CHAR].
18952 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18953 (strtof32x_l): Define and later undefine as macro. Define as weak
18954 alias if [!USE_WIDE_CHAR].
18955 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18956 (wcstof32x_l): Define and later undefine as macro. Define as weak
18957 alias if [USE_WIDE_CHAR].
18958
18959 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18960
18961 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
18962 (reduced): Use ones as double instead of integer.
18963
18964 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
18965
18966 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
18967
18968 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18969
18970 * stdlib/strfromd.c: Include <bits/floatn.h>.
18971 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
18972 and later undefine as macro and define as weak alias.
18973 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
18974 Likewise.
18975
18976 * math/test-float32x.h: New file.
18977 * math/test-float64.h: Likewise.
18978
18979 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
18980 (libm_alias_double_other_r_f64): New macro.
18981 (libm_alias_double_other_r_f32x): Likewise.
18982 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18983 libm_alias_double_other_r_f32x.
18984 (libm_alias_double_r): Use semicolon before call to
18985 libm_alias_double_other_r.
18986 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
18987 <bits/floatn.h>.
18988 (libm_alias_double_other_r_f64): New macro.
18989 (libm_alias_double_other_r_f32x): Likewise.
18990 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18991 libm_alias_double_other_r_f32x.
18992
18993 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
18994
18995 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
18996 int.
18997 (SINF_FUNC): Likewise. Replace floor with simple casts.
18998
18999 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19000
19001 [BZ #22517]
19002 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19003 and to the list of locales to be built for testing.
19004 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19005 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19006 and build the collation rules upon that.
19007
19008 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19009
19010 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19011 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19012 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19013 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19014 instead of __insn__xxx.
19015 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19016 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19017 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19018 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19019 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19020 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19021
19022 2017-12-05 Florian Weimer <fweimer@redhat.com>
19023
19024 Linux: Implement interfaces for memory protection keys
19025 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19026 xsignal, xsysconf.
19027 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19028 * support/xunistd.h (xsysconf): Declare.
19029 * support/xraise.c: New file.
19030 * support/xsigaction.c: Likewise.
19031 * support/xsignal.c: Likewise.
19032 * support/xsysconf.c: Likewise.
19033 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19034 pkey_set, pkey_get, pkey_mprotect.
19035 [misc] (tests): Add tst-pkey.
19036 (tst-pkey): Link with -lpthread.
19037 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19038 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19039 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19040 (PKEY_DISABLE_WRITE): Define.
19041 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19042 Declare.
19043 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19044 (SEGV_PKUERR): Add.
19045 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19046 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19047 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19048 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19049 Add.
19050 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19051 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19052 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19053 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19054 * sysdeps/unix/sysv/linux/**.abilist: Update.
19055
19056 2017-12-05 Florian Weimer <fweimer@redhat.com>
19057
19058 * support/tst-test_compare.c (subprocess): Use long long instead
19059 of long argument for consistent type width across 32-bit and
19060 64-bit architectures.
19061 (do_test): Adjust expected output.
19062
19063 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19064
19065 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19066 (cosf): Define using libm_alias_float.
19067 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19068 (fabsf): Define using libm_alias_float.
19069 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19070 (fmaf): Define using libm_alias_float.
19071 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19072 (rintf): Define using libm_alias_float.
19073 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19074 (sinf): Define using libm_alias_float.
19075 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19076 <libm-alias-float.h>.
19077 (modff): Define using libm_alias_float.
19078 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19079 <libm-alias-float.h>.
19080 (logbf): Define using libm_alias_float.
19081 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19082 <libm-alias-float.h>.
19083 (ceilf): Define using libm_alias_float.
19084 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19085 <libm-alias-float.h>.
19086 (copysignf): Define using libm_alias_float.
19087 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19088 <libm-alias-float.h>.
19089 (floorf): Define using libm_alias_float.
19090 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19091 <libm-alias-float.h>.
19092 (llrintf): Define using libm_alias_float.
19093 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19094 <libm-alias-float.h>.
19095 (llroundf): Define using libm_alias_float.
19096 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19097 <libm-alias-float.h>.
19098 (lrintf): Define using libm_alias_float.
19099 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19100 <libm-alias-float.h>.
19101 (lroundf): Define using libm_alias_float.
19102 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19103 <libm-alias-float.h>.
19104 (nearbyintf): Define using libm_alias_float.
19105 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19106 <libm-alias-float.h>.
19107 (rintf): Define using libm_alias_float.
19108 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19109 <libm-alias-float.h>.
19110 (roundf): Define using libm_alias_float.
19111 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19112 <libm-alias-float.h>.
19113 (truncf): Define using libm_alias_float.
19114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19115 Include <libm-alias-float.h>.
19116 (ceilf): Define using libm_alias_float.
19117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19118 Include <libm-alias-float.h>.
19119 (copysignf): Define using libm_alias_float.
19120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19121 Include <libm-alias-float.h>.
19122 (floorf): Define using libm_alias_float.
19123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19124 Include <libm-alias-float.h>.
19125 (llrintf): Define using libm_alias_float.
19126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19127 Include <libm-alias-float.h>.
19128 (llroundf): Define using libm_alias_float.
19129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19130 Include <libm-alias-float.h>.
19131 (logbf): Define using libm_alias_float.
19132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19133 Include <libm-alias-float.h>.
19134 (lrintf): Define using libm_alias_float.
19135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19136 Include <libm-alias-float.h>.
19137 (lroundf): Define using libm_alias_float.
19138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19139 Include <libm-alias-float.h>.
19140 (modff): Define using libm_alias_float.
19141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19142 Include <libm-alias-float.h>.
19143 (roundf): Define using libm_alias_float.
19144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19145 Include <libm-alias-float.h>.
19146 (truncf): Define using libm_alias_float.
19147 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19148 <libm-alias-float.h>.
19149 (llrintf): Define using libm_alias_float.
19150 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19151 <libm-alias-float.h>.
19152 (llroundf): Define using libm_alias_float.
19153 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19154 <libm-alias-float.h>.
19155 (ceilf): Define using libm_alias_float.
19156 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19157 <libm-alias-float.h>.
19158 (floorf): Define using libm_alias_float.
19159 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19160 <libm-alias-float.h>.
19161 (llroundf): Define using libm_alias_float.
19162 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19163 <libm-alias-float.h>.
19164 (lroundf): Define using libm_alias_float.
19165 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19166 <libm-alias-float.h>.
19167 (roundf): Define using libm_alias_float.
19168 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19169 <libm-alias-float.h>.
19170 (truncf): Define using libm_alias_float.
19171 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19172 <libm-alias-float.h>.
19173 (copysignf): Define using libm_alias_float.
19174 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19175 <libm-alias-float.h>.
19176 (llrintf): Define using libm_alias_float.
19177 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19178 <libm-alias-float.h>.
19179 (llroundf): Define using libm_alias_float.
19180 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19181 <libm-alias-float.h>.
19182 (lrintf): Define using libm_alias_float.
19183 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19184 <libm-alias-float.h>.
19185 (lroundf): Define using libm_alias_float.
19186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19187 <libm-alias-float.h>.
19188 (ceilf): Define using libm_alias_float.
19189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19190 <libm-alias-float.h>.
19191 (copysignf): Define using libm_alias_float.
19192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19193 <libm-alias-float.h>.
19194 (cosf): Define using libm_alias_float.
19195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19196 <libm-alias-float.h>.
19197 (floorf): Define using libm_alias_float.
19198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19199 <libm-alias-float.h>.
19200 (llrintf): Define using libm_alias_float.
19201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19202 <libm-alias-float.h>.
19203 (llroundf): Define using libm_alias_float.
19204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19205 <libm-alias-float.h>.
19206 (logbf): Define using libm_alias_float.
19207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19208 <libm-alias-float.h>.
19209 (modff): Define using libm_alias_float.
19210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19211 <libm-alias-float.h>.
19212 (roundf): Define using libm_alias_float.
19213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19214 <libm-alias-float.h>.
19215 (sinf): Define using libm_alias_float.
19216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19217 <libm-alias-float.h>.
19218 (truncf): Define using libm_alias_float.
19219 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19220 <libm-alias-float.h>.
19221 (ceilf): Define using libm_alias_float.
19222 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19223 <libm-alias-float.h>.
19224 (copysignf): Define using libm_alias_float.
19225 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19226 <libm-alias-float.h>.
19227 (floorf): Define using libm_alias_float.
19228 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19229 <libm-alias-float.h>.
19230 (llrintf): Define using libm_alias_float.
19231 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19232 <libm-alias-float.h>.
19233 (llroundf): Define using libm_alias_float.
19234 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19235 <libm-alias-float.h>.
19236 (nearbyintf): Define using libm_alias_float.
19237 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19238 <libm-alias-float.h>.
19239 (rintf): Define using libm_alias_float.
19240 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19241 <libm-alias-float.h>.
19242 (roundf): Define using libm_alias_float.
19243 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19244 <libm-alias-float.h>.
19245 (truncf): Define using libm_alias_float.
19246 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19247 <libm-alias-float.h>.
19248 (ceilf): Define using libm_alias_float.
19249 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19250 <libm-alias-float.h>.
19251 (floorf): Define using libm_alias_float.
19252 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19253 <libm-alias-float.h>.
19254 (llroundf): Define using libm_alias_float.
19255 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19256 <libm-alias-float.h>.
19257 (roundf): Define using libm_alias_float.
19258 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19259 <libm-alias-float.h>.
19260 (truncf): Define using libm_alias_float.
19261 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19262 <libm-alias-float.h>.
19263 (copysignf): Define using libm_alias_float.
19264 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19265 <libm-alias-float.h>.
19266 (llrintf): Define using libm_alias_float.
19267 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19268 <libm-alias-float.h>.
19269 (llroundf): Define using libm_alias_float.
19270 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19271 <libm-alias-float.h>.
19272 (cosf): Define using libm_alias_float.
19273 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19274 <libm-alias-float.h>.
19275 (llrintf): Define using libm_alias_float.
19276 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19277 <libm-alias-float.h>.
19278 (llroundf): Define using libm_alias_float.
19279 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19280 <libm-alias-float.h>.
19281 (sinf): Define using libm_alias_float.
19282
19283 2017-12-04 Florian Weimer <fweimer@redhat.com>
19284
19285 * support/check.h (TEST_COMPARE): Define.
19286 (support_test_compare_failure): Declare.
19287 * support/Makefile (libsupport-routines): Add
19288 support_test_compare_failure.
19289 (tests): Add tst-test_compare.
19290 * support /support_test_compare_failure.c: New file.
19291 * support/tst-test_compare.c: Likewise.
19292
19293 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19294
19295 [BZ #22527]
19296 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19297 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19298 available, this rewrite of the collation rules does reproduce
19299 the test file in the same order.
19300
19301 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19302
19303 [BZ #10580]
19304 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19305 digraphs in the month and day names. Using single code points for
19306 digraphs is deprecated. While there are dedicated Unicode
19307 codepoints, for the digraphs, these are included for backwards
19308 compatibility and modern texts use a sequence of Basic Latin
19309 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19310 This makes the month and day names agree exactly with CLDR now,
19311 CLDR does not use the single code points for the digraphs either.
19312
19313 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19314
19315 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19316
19317 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19318
19319 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19320 of floor.
19321
19322 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19323
19324 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19325 Define only for libc.so.
19326
19327 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19328
19329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19330 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19331 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19332 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19333 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19334
19335 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19336
19337 [BZ #5997]
19338 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19339
19340 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19341
19342 [BZ libc/19170]
19343 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19344 PREINIT_FUNCTION_WEAK is nonzero.
19345 (gmon_initializer): New function. Put procedure label for it in
19346 .init_array section.
19347 (_init): Don't call PREINIT_FUNCTION.
19348 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19349 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19350 value when map argument is null.
19351
19352 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19353 depi instruction from PIC pc-relative sequence.
19354 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19355 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19356 (elf_machine_load_address): Likewise.
19357 (elf_machine_runtime_setup): Likewise.
19358
19359 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19360
19361 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19362 <libm-alias-double.h>.
19363 (logb): Define using libm_alias_double.
19364 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19365 <libm-alias-double.h>.
19366 (copysign): Define using libm_alias_double.
19367 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19368 <libm-alias-double.h>.
19369 (llrint): Define using libm_alias_double.
19370 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19371 <libm-alias-double.h>.
19372 (llround): Define using libm_alias_double.
19373 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19374 <libm-alias-double.h>.
19375 (lrint): Define using libm_alias_double.
19376 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19377 <libm-alias-double.h>.
19378 (lround): Define using libm_alias_double.
19379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19380 Include <libm-alias-double.h>.
19381 (copysign): Define using libm_alias_double.
19382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19383 Include <libm-alias-double.h>.
19384 (llrint): Define using libm_alias_double.
19385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19386 Include <libm-alias-double.h>.
19387 (llround): Define using libm_alias_double.
19388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19389 <libm-alias-double.h>.
19390 (logb): Define using libm_alias_double.
19391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19392 Include <libm-alias-double.h>.
19393 (lrint): Define using libm_alias_double.
19394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19395 Include <libm-alias-double.h>.
19396 (lround): Define using libm_alias_double.
19397 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19398 <libm-alias-double.h>.
19399 (llrint): Define using libm_alias_double.
19400 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19401 <libm-alias-double.h>.
19402 (llround): Define using libm_alias_double.
19403 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19404 <libm-alias-double.h>.
19405 (llround): Define using libm_alias_double.
19406 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19407 <libm-alias-double.h>.
19408 (lround): Define using libm_alias_double.
19409 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19410 <libm-alias-double.h>.
19411 (copysign): Define using libm_alias_double.
19412 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19413 <libm-alias-double.h>.
19414 (llrint): Define using libm_alias_double.
19415 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19416 <libm-alias-double.h>.
19417 (llround): Define using libm_alias_double.
19418 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19419 <libm-alias-double.h>.
19420 (lrint): Define using libm_alias_double.
19421 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19422 <libm-alias-double.h>.
19423 (lround): Define using libm_alias_double.
19424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19425 <libm-alias-double.h>.
19426 (copysign): Define using libm_alias_double.
19427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19428 <libm-alias-double.h>.
19429 (llrint): Define using libm_alias_double.
19430 (lrint): Likewise.
19431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19432 <libm-alias-double.h>.
19433 (llround): Define using libm_alias_double.
19434 (lround): Likewise.
19435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19436 <libm-alias-double.h>.
19437 (logb): Define using libm_alias_double.
19438 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19439 <libm-alias-double.h>.
19440 (copysign): Define using libm_alias_double.
19441 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19442 <libm-alias-double.h>.
19443 (llrint): Define using libm_alias_double.
19444 (lrint): Likewise.
19445 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19446 <libm-alias-double.h>.
19447 (llround): Define using libm_alias_double.
19448 (lround): Likewise.
19449 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19450 <libm-alias-double.h>.
19451 (llround): Define using libm_alias_double.
19452 (lround): Likewise.
19453 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19454 <libm-alias-double.h>.
19455 (copysign): Define using libm_alias_double.
19456 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19457 <libm-alias-double.h>.
19458 (llrint): Define using libm_alias_double.
19459 (lrint): Likewise.
19460 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19461 <libm-alias-double.h>.
19462 (llround): Define using libm_alias_double.
19463 (lround): Likewise.
19464 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19465 <libm-alias-double.h>.
19466 (llrint): Define using libm_alias_double.
19467 (lrint): Likewise.
19468 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19469 <libm-alias-double.h>.
19470 (llround): Define using libm_alias_double.
19471 (lround): Likewise.
19472
19473 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19474
19475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19476 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19477 compat symbol based on llround.
19478
19479 * sysdeps/powerpc/power7/fpu/s_logb.c
19480 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19481 symbol based on __logb, not on logb.
19482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19483 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19485 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19486
19487 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19488 (rint): Define using libm_alias_double.
19489 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19490 <libm-alias-double.h>.
19491 (modf): Define using libm_alias_double.
19492 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19493 <libm-alias-double.h>.
19494 (ceil): Define using libm_alias_double.
19495 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19496 <libm-alias-double.h>.
19497 (floor): Define using libm_alias_double.
19498 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19499 <libm-alias-double.h>.
19500 (nearbyint): Define using libm_alias_double.
19501 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19502 <libm-alias-double.h>.
19503 (rint): Define using libm_alias_double.
19504 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19505 <libm-alias-double.h>.
19506 (round): Define using libm_alias_double.
19507 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19508 <libm-alias-double.h>.
19509 (trunc): Define using libm_alias_double.
19510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19511 <libm-alias-double.h>.
19512 (ceil): Define using libm_alias_double.
19513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19514 Include <libm-alias-double.h>.
19515 (floor): Define using libm_alias_double.
19516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19517 <libm-alias-double.h>.
19518 (modf): Define using libm_alias_double.
19519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19520 Include <libm-alias-double.h>.
19521 (round): Define using libm_alias_double.
19522 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19523 Include <libm-alias-double.h>.
19524 (trunc): Define using libm_alias_double.
19525 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19526 <libm-alias-double.h>.
19527 (ceil): Define using libm_alias_double.
19528 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19529 <libm-alias-double.h>.
19530 (floor): Define using libm_alias_double.
19531 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19532 <libm-alias-double.h>.
19533 (round): Define using libm_alias_double.
19534 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19535 <libm-alias-double.h>.
19536 (trunc): Define using libm_alias_double.
19537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19538 <libm-alias-double.h>.
19539 (ceil): Define using libm_alias_double.
19540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19541 <libm-alias-double.h>.
19542 (floor): Define using libm_alias_double.
19543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19544 <libm-alias-double.h>.
19545 (modf): Define using libm_alias_double.
19546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19547 <libm-alias-double.h>.
19548 (round): Define using libm_alias_double.
19549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19550 <libm-alias-double.h>.
19551 (trunc): Define using libm_alias_double.
19552 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19553 <libm-alias-double.h>.
19554 (ceil): Define using libm_alias_double.
19555 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19556 <libm-alias-double.h>.
19557 (floor): Define using libm_alias_double.
19558 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19559 <libm-alias-double.h>.
19560 (nearbyint): Define using libm_alias_double.
19561 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19562 <libm-alias-double.h>.
19563 (rint): Define using libm_alias_double.
19564 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19565 <libm-alias-double.h>.
19566 (round): Define using libm_alias_double.
19567 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19568 <libm-alias-double.h>.
19569 (trunc): Define using libm_alias_double.
19570 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19571 <libm-alias-double.h>.
19572 (ceil): Define using libm_alias_double.
19573 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19574 <libm-alias-double.h>.
19575 (floor): Define using libm_alias_double.
19576 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19577 <libm-alias-double.h>.
19578 (round): Define using libm_alias_double.
19579 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19580 <libm-alias-double.h>.
19581 (trunc): Define using libm_alias_double.
19582
19583 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19584 (fabs): Define using libm_alias_double.
19585 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19586 (fma): Define using libm_alias_double.
19587 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19588 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19589 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19590 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19591
19592 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19593
19594 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19595
19596 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19597 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19598 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19599
19600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19601 due redirect macro.
19602
19603 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19604
19605 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19606
19607 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19608
19609 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19610 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19611 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19612 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19613
19614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19615 (libm-sysdep_routines): Add s_nearbyintf-generic and
19616 s_nearbyint-generic.
19617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19618 New file.
19619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19621 Likewise.
19622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19623 Likewise.
19624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19625 file.
19626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19627 Likewise.
19628
19629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19630 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19632 file.
19633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19635 Likewise.
19636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19639
19640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19641 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19643 file.
19644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19646 Likewise.
19647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19650
19651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19652 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19654 file.
19655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19657 Likewise.
19658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19661
19662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19663 (sysdep_calls): New rule.
19664 (sysdep_routines): Use sysdep_calls as base.
19665 (libm-sysdep_routines): Add generic rule for symbols shared with
19666 libc. Add s_copysign-generic and s_copysign-generic objects.
19667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19668 New file.
19669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19670 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19671 Likewise.
19672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19673 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19675
19676 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19677
19678 [BZ #22519]
19679 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19680 the list of locales to be built for testing.
19681 * localedata/is_IS.UTF-8.in: New file.
19682 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19683 on iso14651_t1.
19684
19685 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19686
19687 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19688 <libm-alias-float.h>.
19689 (fabsf): Define using libm_alias_float.
19690
19691 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19692
19693 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19694
19695 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19696
19697 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19698 <libm-alias-float.h>.
19699 (fabsf): Define using libm_alias_float.
19700 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19701 <libm-alias-float.h>.
19702 (lrintf): Define using libm_alias_float.
19703 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19704 <libm-alias-float.h>.
19705 (rintf): Define using libm_alias_float.
19706
19707 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19708 <libm-alias-double.h>.
19709 (fabs): Define using libm_alias_double.
19710 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19711 <libm-alias-double.h>.
19712 (lrint): Define using libm_alias_double.
19713 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19714 <libm-alias-double.h>.
19715 (rint): Define using libm_alias_double.
19716
19717 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19718 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19719 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19720 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19721 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19722 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19723 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19724 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19725 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19726 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19727 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19728 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19729 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19730 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19731 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19732 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19733 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19734 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19735 s_atan_template.c.
19736 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19737 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19738 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19739 s_ceil_template.c.
19740 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19741 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19742 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19743 s_cos_template.c.
19744 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19745 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19746 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19747 s_expm1_template.c.
19748 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19749 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19750 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19751 s_fabs_template.c.
19752 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19753 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19754 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19755 s_floor_template.c.
19756 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19757 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19758 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19759 s_frexp_template.c.
19760 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19761 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19762 s_lrint_template.c.
19763 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19764 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19765 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19766 s_modf_template.c.
19767 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19768 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19769 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19770 s_nearbyint_template.c.
19771 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19772 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19773 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19774 s_remquo_template.c.
19775 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19776 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19777 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19778 s_rint_template.c.
19779 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19780 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19781 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19782 s_sin_template.c.
19783 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19784 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19785 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19786 s_sincos_template.c.
19787 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19788 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19789 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19790 s_tan_template.c.
19791 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19792 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19793 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19794 s_tanh_template.c.
19795 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19796 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19797 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19798 s_trunc_template.c.
19799 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19800 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19801 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19802 s_atan.c instead of including s_atan.c.
19803 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19804 s_atanf.c instead of including s_atanf.c.
19805 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19806 s_atanl.c instead of including s_atanl.c.
19807 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19808 instead of s_atan.c.
19809 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19810 instead of s_atanf.c.
19811 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19812 instead of s_atanl.c.
19813
19814 * scripts/update-copyrights: Do not handle intl/plural.c
19815 specially.
19816
19817 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19818
19819 [BZ #22432]
19820 * configure.ac (BISON): Require to be present.
19821 * configure: Regenerated.
19822 * intl/Makefile (generated): Add plural.c.
19823 [$(BISON) != no]: Make code unconditional.
19824 (plural.c): Change rule to $(objpfx)plural.c.
19825 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19826 * intl/plural.c: Remove.
19827 * manual/install.texi (Tools for Compilation): Document bison as
19828 required.
19829 * INSTALL: Regenerated.
19830
19831 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19832
19833 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19834 <libm-alias-double.h>.
19835 (llrint): Define using libm_alias_double.
19836 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19837 <libm-alias-float.h>.
19838 (llrintf): Define using libm_alias_float.
19839 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19840 <libm-alias-ldouble.h>.
19841 (llrintl): Define using libm_alias_ldouble.
19842
19843 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19844 declare_mgen_alias instead of weak_alias.
19845 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19847 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19848
19849 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19850
19851 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19852 Add add_n-generic.
19853 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19854 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19855 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19856
19857 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19858 Add submul_1-generic.
19859 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19860 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19861 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19862
19863 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19864 Add addmul_1-generic.
19865 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19866 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19867 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19868
19869 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19870 Add sub_n-generic.
19871 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19872 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19873 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19874
19875 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19876 Add mul_1-generic.
19877 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19878 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19879 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19880
19881 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19882
19883 According to CLDR, collation rules for Serbian and Bosnian
19884 should be the same as for Croatian.
19885
19886 [BZ #22534]
19887 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19888 and to the list of locales to be built for testing.
19889 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19890 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19891 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19892 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19893
19894 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19895
19896 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19897 to make test case pass.
19898 * localedata/hr_HR.UTF-8.in: Add more test strings.
19899
19900 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19901
19902 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19903
19904 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19905
19906 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19907 the list of locales to built for testing.
19908 * localedata/hr_HR.UTF-8.in: New file.
19909
19910 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19911
19912 [BZ #10580]
19913 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
19914 iso14651_t1.
19915 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
19916 CLDR (except use ligatures for the digraphs, CLDR does not use
19917 the ligatures), add first_workday, some fixes in the date and time
19918 formats.
19919 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
19920 for Đ and đ.
19921 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
19922 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
19923 Add int_p_cs_precedes and int_n_cs_precedes.
19924 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
19925 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
19926 LC_MONETARY now).
19927 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
19928 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
19929 name_miss.
19930 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
19931 and lang_lib. Change postal_fmt.
19932
19933 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19934
19935 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
19936 <setjmp.h>.
19937 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19938 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
19939 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19940 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
19941 * sysdeps/generic/setjmpP.h: New file.
19942 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
19943 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
19944 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
19945 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
19946 Add jmp_buf-ssp.sym.
19947 (tests): Add tst-saved_mask-1.
19948
19949 2017-11-30 Arjun Shankar <arjun@redhat.com>
19950
19951 [BZ #22375]
19952 CVE-2017-17426
19953 * malloc/malloc.c (__libc_malloc): Use checked_request2size
19954 instead of request2size.
19955
19956 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19957
19958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
19959 (__lllrint): Remove alias.
19960 (lllrint): Likewise.
19961 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
19962 (__lllrintf): Likewise.
19963 (lllrintf): Likewise.
19964
19965 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
19966 <libm-alias-float.h>.
19967 (copysignf): Define using libm_alias_float.
19968 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
19969 <libm-alias-float.h>.
19970 (fabsf): Define using libm_alias_float.
19971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19972 Include <libm-alias-float.h>.
19973 (copysignf): Define using libm_alias_float.
19974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
19975 <libm-alias-float.h>.
19976 (fabsf): Define using libm_alias_float.
19977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
19978 <libm-alias-float.h>.
19979 (fdimf): Define using libm_alias_float.
19980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
19981 <libm-alias-float.h>.
19982 (fmaf): Define using libm_alias_float.
19983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
19984 <libm-alias-float.h>.
19985 (llrintf): Define using libm_alias_float.
19986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19987 Include <libm-alias-float.h>.
19988 (nearbyintf): Define using libm_alias_float.
19989 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
19990 <libm-alias-float.h>.
19991 (rintf): Define using libm_alias_float.
19992 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
19993 <libm-alias-float.h>.
19994 (llrintf): Define using libm_alias_float.
19995 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
19996 <libm-alias-float.h>.
19997 (lrintf): Define using libm_alias_float.
19998 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
19999 <libm-alias-float.h>.
20000 (nearbyintf): Define using libm_alias_float.
20001 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20002 <libm-alias-float.h>.
20003 (rintf): Define using libm_alias_float.
20004 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20005 <libm-alias-float.h>.
20006 (ceilf): Define using libm_alias_float.
20007 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20008 <libm-alias-float.h>.
20009 (floorf): Define using libm_alias_float.
20010 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20011 <libm-alias-float.h>.
20012 (fmaf): Define using libm_alias_float.
20013 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20014 <libm-alias-float.h>.
20015 (lrintf): Define using libm_alias_float.
20016 (llrintf): Likewise.
20017 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20018 <libm-alias-float.h>.
20019 (nearbyintf): Define using libm_alias_float.
20020 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20021 <libm-alias-float.h>.
20022 (rintf): Define using libm_alias_float.
20023 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20024 <libm-alias-float.h>.
20025 (truncf): Define using libm_alias_float.
20026 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20027 <libm-alias-float.h>.
20028 (copysignf): Define using libm_alias_float.
20029 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20030 <libm-alias-float.h>.
20031 (fabsf): Define using libm_alias_float.
20032 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20033 <libm-alias-float.h>.
20034 (lrintf): Define using libm_alias_float.
20035 (llrintf): Likewise.
20036 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20037 <libm-alias-float.h>.
20038 (nearbyintf): Define using libm_alias_float.
20039 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20040 <libm-alias-float.h>.
20041 (rintf): Define using libm_alias_float.
20042
20043 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20044
20045 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20046 <libm-alias-double.h>.
20047 (copysign): Define using libm_alias_double.
20048 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20049 <libm-alias-double.h>.
20050 (fabs): Define using libm_alias_double.
20051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20052 Include <libm-alias-double.h>.
20053 (copysign): Define using libm_alias_double.
20054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20055 <libm-alias-double.h>.
20056 (fabs): Define using libm_alias_double.
20057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20058 <libm-alias-double.h>.
20059 (fdim): Define using libm_alias_double.
20060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20061 <libm-alias-double.h>.
20062 (fma): Define using libm_alias_double.
20063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20064 <libm-alias-double.h>.
20065 (llrint): Define using libm_alias_double.
20066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20067 Include <libm-alias-double.h>.
20068 (nearbyint): Define using libm_alias_double.
20069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20070 <libm-alias-double.h>.
20071 (rint): Define using libm_alias_double.
20072 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20073 <libm-alias-double.h>.
20074 (fabs): Define using libm_alias_double.
20075 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20076 <libm-alias-double.h>.
20077 (llrint): Define using libm_alias_double.
20078 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20079 <libm-alias-double.h>.
20080 (nearbyint): Define using libm_alias_double.
20081 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20082 <libm-alias-double.h>.
20083 (rint): Define using libm_alias_double.
20084 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20085 <libm-alias-double.h>.
20086 (ceil): Define using libm_alias_double.
20087 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20088 <libm-alias-double.h>.
20089 (floor): Define using libm_alias_double.
20090 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20091 <libm-alias-double.h>.
20092 (fma): Define using libm_alias_double.
20093 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20094 <libm-alias-double.h>.
20095 (lrint): Define using libm_alias_double.
20096 (llrint): Likewise.
20097 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20098 <libm-alias-double.h>.
20099 (nearbyint): Define using libm_alias_double.
20100 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20101 <libm-alias-double.h>.
20102 (rint): Define using libm_alias_double.
20103 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20104 <libm-alias-double.h>.
20105 (trunc): Define using libm_alias_double.
20106 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20107 <libm-alias-double.h>.
20108 (copysign): Define using libm_alias_double.
20109 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20110 <libm-alias-double.h>.
20111 (fabs): Define using libm_alias_double.
20112 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20113 <libm-alias-double.h>.
20114 (lrint): Define using libm_alias_double.
20115 (llrint): Likewise.
20116 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20117 <libm-alias-double.h>.
20118 (nearbyint): Define using libm_alias_double.
20119 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20120 <libm-alias-double.h>.
20121 (rint): Define using libm_alias_double.
20122
20123 [BZ #22229]
20124 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20125 <math_ldbl_opt.h>.
20126 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20127
20128 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20129 SPARC --disable-multi-arch glibc variants.
20130
20131 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20132 <libm-alias-float.h>.
20133 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20134 if [SHARED].
20135 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20136 <libm-alias-float.h>.
20137 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20138 if [SHARED].
20139 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20140 <libm-alias-float.h>.
20141 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20142 if [SHARED].
20143 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20144 <libm-alias-float.h>.
20145 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20146 if [SHARED].
20147 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20148 <libm-alias-float.h>.
20149 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20150 if [SHARED].
20151 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20152 <libm-alias-float.h>.
20153 (ceilf): Define using libm_alias_float.
20154 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20155 <libm-alias-float.h>.
20156 (floorf): Define using libm_alias_float.
20157 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20158 <libm-alias-float.h>.
20159 (fmaf): Define using libm_alias_float.
20160 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20161 <libm-alias-float.h>.
20162 (nearbyintf): Define using libm_alias_float.
20163 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20164 <libm-alias-float.h>.
20165 (rintf): Define using libm_alias_float.
20166 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20167 <libm-alias-float.h>.
20168 (truncf): Define using libm_alias_float.
20169 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20170 (copysignf): Define using libm_alias_float.
20171 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20172 (cosf): Define using libm_alias_float.
20173 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20174 (fabsf): Define using libm_alias_float.
20175 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20176 (fmaxf): Define using libm_alias_float.
20177 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20178 (fminf): Define using libm_alias_float.
20179 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20180 (llrintf): Define using libm_alias_float.
20181 [!__ILP32__] (lrintf): Likewise.
20182 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20183 (sincosf): Define using libm_alias_float.
20184 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20185 (sinf): Define using libm_alias_float.
20186 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20187 (lrintf): Define using libm_alias_float.
20188
20189 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20190 <libm-alias-double.h>.
20191 (atan): Define using libm_alias_double.
20192 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20193 <libm-alias-double.h>.
20194 (ceil): Define using libm_alias_double.
20195 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20196 <libm-alias-double.h>.
20197 (floor): Define using libm_alias_double.
20198 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20199 <libm-alias-double.h>.
20200 (fma): Define using libm_alias_double.
20201 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20202 <libm-alias-double.h>.
20203 (nearbyint): Define using libm_alias_double.
20204 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20205 <libm-alias-double.h>.
20206 (rint): Define using libm_alias_double.
20207 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20208 <libm-alias-double.h>.
20209 (sin): Define using libm_alias_double.
20210 (cos): Likewise.
20211 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20212 <libm-alias-double.h>.
20213 (tan): Define using libm_alias_double.
20214 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20215 <libm-alias-double.h>.
20216 (trunc): Define using libm_alias_double.
20217 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20218 (copysign): Define using libm_alias_double.
20219 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20220 (fabs): Define using libm_alias_double.
20221 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20222 (fmax): Define using libm_alias_double.
20223 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20224 (fmin): Define using libm_alias_double.
20225 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20226 (llrint): Define using libm_alias_double.
20227 [!__ILP32__] (lrint): Likewise.
20228 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20229 (lrint): Define using libm_alias_double.
20230
20231 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20232
20233 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20234 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20235 objects.
20236 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20237 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20238 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20239 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20240 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20241 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20242
20243 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20244 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20245 objects.
20246 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20247 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20248 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20249 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20250 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20251 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20252
20253 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20254 (libm-sysdep_routines): Add s_nearbyint-generic and
20255 s_nearbyintf-generic objects.
20256 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20257 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20258 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20259 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20260 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20261 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20262
20263 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20264 Add s_finitef-generic and s_finite-generic objects.
20265 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20266 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20267 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20268 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20269 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20270 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20271
20272 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20273 Add s_isinff-generic and s_isinf-generic objects.
20274 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20275 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20276 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20277 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20278 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20279 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20280
20281 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20282 Add s_isnanf-generic and s_isnan-generic objects.
20283 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20284 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20285 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20286 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20287 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20288 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20289
20290 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20291 macro.
20292 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20293 rule.
20294 (sysdep_routines): Use sysdep_calls as base.
20295 (libm-sysdep_routines): Add generic rule for symbols shared with
20296 libc. Add s_signbit-generic and s_signbitf-generic objects.
20297 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20298 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20299 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20300 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20301 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20302 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20303
20304 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20305
20306 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20307 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20308 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20309 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20310 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20311 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20312 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20313 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20314 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20315 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20316 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20317 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20318 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20319 libm_alias_float_r.
20320 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20321 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20322 (logf): Likewise.
20323 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20324 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20325 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20326 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20327 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20328 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20329 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20330 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20331 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20332 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20333 libm_alias_float.
20334 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20335 (cosf): Likewise.
20336 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20337 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20338 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20339 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20340 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20341 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20342 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20343 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20344 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20345 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20346 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20347 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20348 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20349 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20350 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20351 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20352 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20353 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20354 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20355 libm_alias_float.
20356 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20357 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20358 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20359 * sysdeps/ia64/fpu/w_lgammaf_main.c
20360 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20361 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20362
20363 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20364 Alexandre Oliva <aoliva@redhat.com>
20365
20366 [BZ #17750]
20367 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20368 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20369 accents sorting.
20370 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20371 sorting.
20372 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20373 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20374 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20375 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20376 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20377 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20378 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20379 instead of “ifdef DIACRIT_BACKWARD”.
20380
20381 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20382
20383 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20384 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20385 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20386 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20387 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20388 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20390 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20391 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20392 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20393 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20394 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20395 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20396 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20397 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20398 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20399 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20400 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20401 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20402 ($(have-as-vis3) == yes): Remove conditional.
20403 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20404 Likewise.
20405 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20406 file.
20407 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20408 file.
20409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20410 file.
20411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20412 file.
20413 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20414 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20415 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20416 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20417 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20418 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20419 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20420 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20421
20422 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20423
20424 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20425 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20426 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20427 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20428 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20429 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20430 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20431 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20432 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20433 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20434 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20435 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20436 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20437 libm_alias_double_r.
20438 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20439 (log): Likewise.
20440 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20441 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20442 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20443 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20444 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20445 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20446 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20447 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20448 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20449 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20450 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20451 libm_alias_double.
20452 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20453 (cos): Likewise.
20454 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20455 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20456 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20457 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20458 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20459 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20460 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20461 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20462 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20463 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20464 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20465 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20466 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20467 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20468 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20469 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20470 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20471 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20472 libm_alias_double.
20473 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20474 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20475 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20476 * sysdeps/ia64/fpu/w_lgamma_main.c
20477 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20478 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20479
20480 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20481
20482 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20483 address of $global$ into %dp register earlier. Use pc-relative
20484 instruction sequence for PIC case.
20485
20486 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20487
20488 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20489 (asinhf): Define using libm_alias_float.
20490 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20491 (atanf): Define using libm_alias_float.
20492 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20493 (cbrtf): Define using libm_alias_float.
20494 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20495 (ceilf): Define using libm_alias_float.
20496 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20497 (copysignf): Define using libm_alias_float.
20498 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20499 (expm1f): Define using libm_alias_float.
20500 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20501 (fabsf): Define using libm_alias_float.
20502 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20503 (floorf): Define using libm_alias_float.
20504 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20505 (fmaxf): Define using libm_alias_float.
20506 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20507 (fminf): Define using libm_alias_float.
20508 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20509 (frexpf): Define using libm_alias_float.
20510 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20511 (llrintf): Define using libm_alias_float.
20512 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20513 (logbf): Define using libm_alias_float.
20514 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20515 (lrintf): Define using libm_alias_float.
20516 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20517 (nearbyintf): Define using libm_alias_float.
20518 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20519 (remquof): Define using libm_alias_float.
20520 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20521 (rintf): Define using libm_alias_float.
20522 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20523 (truncf): Define using libm_alias_float.
20524 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20525 <libm-alias-float.h>.
20526 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20527 if [SHARED].
20528 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20529 <libm-alias-float.h>.
20530 (expf): Define using libm_alias_float, or libm_alias_float_other
20531 if [SHARED].
20532 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20533 <libm-alias-float.h>.
20534 (log2f): Define using libm_alias_float, or libm_alias_float_other
20535 if [SHARED].
20536 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20537 <libm-alias-float.h>.
20538 (logf): Define using libm_alias_float, or libm_alias_float_other
20539 if [SHARED].
20540 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20541 <libm-alias-float.h>.
20542 (powf): Define using libm_alias_float, or libm_alias_float_other
20543 if [SHARED].
20544 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20545 <libm-alias-float.h>.
20546 (cosf): Define using libm_alias_float.
20547 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20548 <libm-alias-float.h>.
20549 (sincosf): Define using libm_alias_float.
20550 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20551 <libm-alias-float.h>.
20552 (sinf): Define using libm_alias_float.
20553 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20554 (fmaxf): Define using libm_alias_float.
20555 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20556 (fminf): Define using libm_alias_float.
20557 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20558 <libm-alias-float.h>.
20559 (fmaf): Define using libm_alias_float.
20560
20561 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20562 (asinh): Define using libm_alias_double.
20563 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20564 (atan): Define using libm_alias_double.
20565 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20566 (cbrt): Define using libm_alias_double.
20567 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20568 (ceil): Define using libm_alias_double.
20569 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20570 (copysign): Define using libm_alias_double.
20571 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20572 (expm1): Define using libm_alias_double.
20573 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20574 (fabs): Define using libm_alias_double.
20575 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20576 (fdim): Define using libm_alias_double.
20577 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20578 (floor): Define using libm_alias_double.
20579 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20580 (fmax): Define using libm_alias_double.
20581 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20582 (fmin): Define using libm_alias_double.
20583 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20584 (frexp): Define using libm_alias_double.
20585 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20586 (llrint): Define using libm_alias_double.
20587 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20588 (logb): Define using libm_alias_double.
20589 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20590 (lrint): Define using libm_alias_double.
20591 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20592 (nearbyint): Define using libm_alias_double.
20593 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20594 (remquo): Define using libm_alias_double.
20595 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20596 (rint): Define using libm_alias_double.
20597 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20598 (trunc): Define using libm_alias_double.
20599 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20600 (fmax): Define using libm_alias_double.
20601 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20602 (fmin): Define using libm_alias_double.
20603 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20604 (fma): Define using libm_alias_double.
20605
20606 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20607
20608 [BZ #22370]
20609 * elf/dl-hwcaps.c (ROUND): Removed.
20610 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20611 and ELF_NOTE_NEXT_OFFSET.
20612 * elf/dl-load.c (ROUND): Removed.
20613 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20614 * elf/readelflib.c (ROUND): Removed.
20615 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20616 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20617 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20618 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20619
20620 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20621
20622 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20623 [!__fmaf] (fmaf): Define using libm_alias_float.
20624
20625 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20626 [!__fma] (fma): Define using libm_alias_double.
20627 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20628
20629 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20630
20631 [BZ #22336]
20632 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20633 and implement the collation rules for cs from CLDR on top of that.
20634 * Makefile: Add cs_CZ.UTF-8 to test-input.
20635 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20636
20637 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20638
20639 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20640
20641 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20642 Icarus Sparry <icarus.w.sparry@intel.com>
20643
20644 * benchtests/Makefile:Add BENCHSET to allow subsets of
20645 benchmarks to be run.
20646 * benchtests/README: Add documentation for: Running subsets of
20647 benchmarks.
20648
20649 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20650
20651 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20652 range of tests names.
20653
20654 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20655 result from property and remove "max", min" and "mean" from
20656 required properties based on benchtests/bench-skeleton.c.
20657
20658 2017-11-28 Florian Weimer <fweimer@redhat.com>
20659
20660 [BZ #20826]
20661 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20662 due to Internet requirement.
20663 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20664 tst-getaddrinfo5.
20665 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20666
20667 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20668
20669 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20670 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20671 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20672 (sysdep_routines): Add memset-ultra1.
20673 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20674 file.
20675 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20676 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20677 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20678 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20679 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20680 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20681 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20682 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20683
20684 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20685 file.
20686 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20687 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20688 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20689 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20690 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20691 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20692 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20693 macro.
20694 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20695 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20696 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20697 (sysdep_routines): Add memcpy-ultra1.
20698 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20699 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20700
20701 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20702
20703 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20704 (cfloat_versions): Take function argument without trailing 'f'.
20705 Call libm_alias_float_other.
20706 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20707 * sysdeps/alpha/fpu/cargf.c: Likewise.
20708 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20709 * sysdeps/alpha/fpu/conjf.c: Likewise.
20710 * sysdeps/alpha/fpu/crealf.c: Likewise.
20711 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20712 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20713 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20714 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20715 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20716 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20717 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20718 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20719 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20720 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20721 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20722 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20723 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20724 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20725 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20726 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20727 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20728 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20729 (clog10f): Use libm_alias_float_other.
20730 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20731 (ceilf): Define using libm_alias_float.
20732 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20733 (copysignf): Define using libm_alias_float.
20734 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20735 (fabsf): Define using libm_alias_float.
20736 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20737 (floorf): Define using libm_alias_float.
20738 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20739 (fmaxf): Define using libm_alias_float.
20740 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20741 (fminf): Define using libm_alias_float.
20742 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20743 (lrintf): Define using libm_alias_float.
20744 (llrintf): Likewise.
20745 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20746 (lroundf): Define using libm_alias_float.
20747 (llroundf): Likewise.
20748 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20749 (rintf): Define using libm_alias_float.
20750 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20751 (truncf): Define using libm_alias_float.
20752
20753 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20754 (ceilf): Define using libm_alias_float.
20755 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20756 (floorf): Define using libm_alias_float.
20757 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20758 (fmaf): Define using libm_alias_float.
20759 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20760 (fmaxf): Define using libm_alias_float.
20761 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20762 (fminf): Define using libm_alias_float.
20763 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20764 (llrintf): Define using libm_alias_float.
20765 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20766 (llroundf): Define using libm_alias_float.
20767 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20768 (lrintf): Define using libm_alias_float.
20769 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20770 (lroundf): Define using libm_alias_float.
20771 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20772 <libm-alias-float.h>.
20773 (nearbyintf): Define using libm_alias_float.
20774 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20775 (rintf): Define using libm_alias_float.
20776 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20777 (roundf): Define using libm_alias_float.
20778 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20779 (truncf): Define using libm_alias_float.
20780
20781 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20782 (ceil): Define using libm_alias_double.
20783 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20784 (copysign): Define using libm_alias_double.
20785 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20786 (fabs): Define using libm_alias_double.
20787 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20788 (floor): Define using libm_alias_double.
20789 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20790 (fmax): Define using libm_alias_double.
20791 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20792 (fmin): Define using libm_alias_double.
20793 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20794 (lrint): Define using libm_alias_double.
20795 (llrint): Likewise.
20796 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20797 (lround): Define using libm_alias_double.
20798 (llround): Likewise.
20799 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20800 (rint): Define using libm_alias_double.
20801 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20802 (trunc): Define using libm_alias_double.
20803
20804 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20805 (libm_alias_double_r): Add semicolon after weak_alias call.
20806
20807 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20808
20809 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20810 (ceil): Define using libm_alias_double.
20811 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20812 (floor): Define using libm_alias_double.
20813 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20814 (fma): Define using libm_alias_double.
20815 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20816 (fmax): Define using libm_alias_double.
20817 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20818 (fmin): Define using libm_alias_double.
20819 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20820 (llrint): Define using libm_alias_double.
20821 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20822 (llround): Define using libm_alias_double.
20823 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20824 (lrint): Define using libm_alias_double.
20825 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20826 (lround): Define using libm_alias_double.
20827 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20828 (nearbyint): Define using libm_alias_double.
20829 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20830 (rint): Define using libm_alias_double.
20831 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20832 (round): Define using libm_alias_double.
20833 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20834 (trunc): Define using libm_alias_double.
20835
20836 2017-11-27 Florian Weimer <fweimer@redhat.com>
20837
20838 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20839 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20840 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20841 (tests): Add tst-mlock2.
20842 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20843 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20844 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20845 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20846 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20847 for mlock. Document mlock2.
20848
20849 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20850
20851 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20852 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20853 Likewise.
20854 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20855 Likewise.
20856 * sysdeps/x86/Makeconfig: New file.
20857 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20858 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20859 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20860 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20861 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20862 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20863 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20864 Likewise.
20865 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20866 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20867 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20868 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20869 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20870 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20871 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20872 * manual/math.texi (Mathematics): Document support for _Float64x.
20873 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20874 * stdlib/Versions (GLIBC_2.27): Likewise.
20875 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20876 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20877 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20878 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20879 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20880 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20881 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20882 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20883 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20884 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20885 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20886 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20888 Likewise.
20889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20890 Likewise.
20891 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20892 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20893 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20894 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20895 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20896 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20897 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20898 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20899 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20900 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20901 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20902 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20903 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20904 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20905
20906 2017-11-27 Andreas Schwab <schwab@suse.de>
20907
20908 * elf/Makefile (dl-routines): Add dl-sort-maps.
20909 * elf/dl-sort-maps.c: New file.
20910 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20911 (_dl_sort_maps): Declare.
20912 * elf/dl-fini.c (_dl_sort_fini): Remove.
20913 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
20914 * elf/dl-close.c (_dl_close_worker): Likewise.
20915 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
20916 open-coding it.
20917 * elf/dl-open.c (dl_open_worker): Likewise.
20918
20919 2017-11-24 Joseph Myers <joseph@codesourcery.com>
20920
20921 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
20922 using libm_alias_float128.
20923 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
20924 Likewise.
20925 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
20926 Likewise.
20927 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
20928 (setpayloadsigf128): Likewise.
20929 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
20930 Likewise.
20931 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
20932 Likewise.
20933
20934 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
20935 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
20936 -mfloat128 to CFLAGS.
20937 ($(foreach
20938 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
20939 Likewise.
20940 (CFLAGS-libm-test-support-float64x.c): New variable.
20941 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
20942 $(f128-loader-link) to gnulib-tests.
20943
20944 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
20945 (libm_alias_float128_other_r): If
20946 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
20947 alias.
20948 (libm_alias_float128_r): Add semicolon after weak_alias call.
20949 * sysdeps/generic/libm-alias-ldouble.h
20950 (libm_alias_ldouble_other_r_f128): New macro.
20951 (libm_alias_ldouble_other_r_f64x): Likewise.
20952 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20953 and libm_alias_ldouble_other_r_f64x.
20954 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
20955 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20956 (libm_alias_ldouble_other_r_f128): New macro.
20957 (libm_alias_ldouble_other_r_f64x): Likewise.
20958 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20959 and libm_alias_ldouble_other_r_f64x.
20960
20961 * stdlib/strfroml.c: Always include <stdlib.h>.
20962 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
20963 undefine as macro and define as weak alias.
20964 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
20965 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
20966 <stdlib.h>.
20967 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
20968 Define and later undefine as macro and define as weak alias.
20969
20970 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20971 Define and later undefine as macro. Define as weak alias if
20972 [!USE_WIDE_CHAR].
20973 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
20974 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20975 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
20976 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20977 Define and later undefine as macro. Define as weak alias if
20978 [!USE_WIDE_CHAR].
20979 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
20980 Define and later undefine as macro. Define as weak alias if
20981 [USE_WIDE_CHAR].
20982 * sysdeps/ieee754/float128/strtof128_l.c
20983 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
20984 Define and later undefine as macro. Define as weak alias if
20985 [!USE_WIDE_CHAR].
20986 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
20987 Define and later undefine as macro. Define as weak alias if
20988 [USE_WIDE_CHAR].
20989 * sysdeps/ieee754/ldbl-128/strtold_l.c
20990 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20991 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20992 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20993 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20994 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
20995 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20996 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20997 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20998 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20999 * sysdeps/ieee754/ldbl-96/strtold_l.c
21000 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21001 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21002 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21003 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21004
21005 * math/test-float64x.h: New file.
21006 * math/Makefile (type-float64x-yes): New variable.
21007 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21008
21009 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21010 function-like macro.
21011 (min_of_type_): Likewise.
21012 (min_of_type_l): Likewise.
21013 (min_of_type_f128): Likewise.
21014 (min_of_type): Pass () as last argument of __MATH_TG.
21015
21016 * stdlib/tst-strtod-round-skeleton.c
21017 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21018 headers.
21019
21020 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21021 for combinations of long double with _Float64 and _Float64x.
21022
21023 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21024 (__DECL_SIMD_cosf32): Likewise.
21025 (__DECL_SIMD_cosf64): Likewise.
21026 (__DECL_SIMD_cosf32x): Likewise.
21027 (__DECL_SIMD_cosf64x): Likewise.
21028 (__DECL_SIMD_cosf128x): Likewise.
21029 (__DECL_SIMD_sinf16): Likewise.
21030 (__DECL_SIMD_sinf32): Likewise.
21031 (__DECL_SIMD_sinf64): Likewise.
21032 (__DECL_SIMD_sinf32x): Likewise.
21033 (__DECL_SIMD_sinf64x): Likewise.
21034 (__DECL_SIMD_sinf128x): Likewise.
21035 (__DECL_SIMD_sincosf16): Likewise.
21036 (__DECL_SIMD_sincosf32): Likewise.
21037 (__DECL_SIMD_sincosf64): Likewise.
21038 (__DECL_SIMD_sincosf32x): Likewise.
21039 (__DECL_SIMD_sincosf64x): Likewise.
21040 (__DECL_SIMD_sincosf128x): Likewise.
21041 (__DECL_SIMD_logf16): Likewise.
21042 (__DECL_SIMD_logf32): Likewise.
21043 (__DECL_SIMD_logf64): Likewise.
21044 (__DECL_SIMD_logf32x): Likewise.
21045 (__DECL_SIMD_logf64x): Likewise.
21046 (__DECL_SIMD_logf128x): Likewise.
21047 (__DECL_SIMD_expf16): Likewise.
21048 (__DECL_SIMD_expf32): Likewise.
21049 (__DECL_SIMD_expf64): Likewise.
21050 (__DECL_SIMD_expf32x): Likewise.
21051 (__DECL_SIMD_expf64x): Likewise.
21052 (__DECL_SIMD_expf128x): Likewise.
21053 (__DECL_SIMD_powf16): Likewise.
21054 (__DECL_SIMD_powf32): Likewise.
21055 (__DECL_SIMD_powf64): Likewise.
21056 (__DECL_SIMD_powf32x): Likewise.
21057 (__DECL_SIMD_powf64x): Likewise.
21058 (__DECL_SIMD_powf128x): Likewise.
21059
21060 * stdlib/Versions (libc): Move entries for wcstof128 and
21061 wcstof128_l to ....
21062 * wcsmbs/Versions (libc): ... here.
21063 Include <float128-abi.h>.
21064
21065 2017-11-24 Florian Weimer <fweimer@redhat.com>
21066
21067 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21068 bits/mman-shared.h.
21069 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21070 <bits/mman-shared.h>.
21071 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21072 to ...
21073 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21074 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21075 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21076 <bits/mman-shared.h>.
21077
21078 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21079
21080 [BZ #22457]
21081 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21082 posix_memalign/free.
21083 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21084
21085 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21086
21087 [BZ #22469]
21088 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21089 and implement the collation rules for pl from CLDR on top of that.
21090 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21091 of locales to be built for testing.
21092 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21093
21094 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21095
21096 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21097 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21098 libm_alias_ldouble_other.
21099 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21100 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21101 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21102 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21103 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21104 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21105 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21106 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21107 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21108 libm_alias_ldouble_r.
21109 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21110 libm_alias_ldouble_other.
21111 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21112 (log10l): Likewise.
21113 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21114 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21115 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21116 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21117 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21118 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21119 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21120 (atan2l): Likewise.
21121 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21122 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21123 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21124 libm_alias_ldouble.
21125 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21126 (cosl): Likewise.
21127 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21128 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21129 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21130 (expl): Likewise.
21131 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21132 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21133 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21134 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21135 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21136 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21137 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21138 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21139 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21140 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21141 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21142 libm_alias_ldouble.
21143 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21144 libm_alias_ldouble_other.
21145 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21146 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21147 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21148 libm_alias_ldouble.
21149 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21150 libm_alias_ldouble_other.
21151 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21152 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21153 * sysdeps/ia64/fpu/w_lgammal_main.c
21154 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21155 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21156
21157 2017-11-23 Florian Weimer <fweimer@redhat.com>
21158
21159 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21160 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21161 alike. Remove freeres marker.
21162 * malloc/arena.c (arena_thread_freeres): Call
21163 tcache_thread_shutdown.
21164
21165 2017-11-23 Florian Weimer <fweimer@redhat.com>
21166
21167 [BZ #22459]
21168 Export nscd hash function as __nss_hash.
21169 * include/nss.h (__nss_hash): Declare.
21170 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21171 symbol.
21172 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21173 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21174 of __nscd_hash.
21175 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21176 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21177 * nss/Makefiles (routines): Add nss_hash.
21178 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21179 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21180 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21181 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21182
21183 2017-11-23 Florian Weimer <fweimer@redhat.com>
21184
21185 [BZ #22478]
21186 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21187 Return error code, not -1.
21188 * signal/tst-sigwait-eintr.c: New file.
21189 * signal/Makefile (tests): Add tst-sigwait-eintr.
21190
21191 2017-11-23 Florian Weimer <fweimer@redhat.com>
21192
21193 Linux: Add memfd_create system call wrapper
21194 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21195 tst-memfd_create.
21196 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21197 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21198 [__USE_GNU] (memfd_create): Declare.
21199 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21200 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21201 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21202 * sysdeps/unix/sysv/linux/**.abilist: Update.
21203 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21204
21205 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21206
21207 * localedata/gen-locale.sh: Fix typo in variable name.
21208
21209 * resolv/res_debug.c (p_secstodate): Condition definition on
21210 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21211 directly as __p_secstodate, and as a compat symbol. Do not use
21212 libresolv_hidden_def.
21213 * resolv/resolv.h (p_secstodate): Remove macro and function
21214 declaration.
21215 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21216 using p_secstodate.
21217 * include/resolv.h (__p_secstodate): Do not use
21218 libresolv_hidden_proto.
21219 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21220 (tests-internal): ... here.
21221 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21222 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21223 and declare and use __p_secstodate and use compat_symbol_reference
21224 in that case.
21225 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21226 implementation returning 77.
21227
21228 [BZ #22463]
21229 * resolv/res_debug.c: Include <libc-diag.h>.
21230 (p_secstodate): Assert time_t at least as wide as u_long. On
21231 overflow, use integer seconds since the epoch as output, or use
21232 "<overflow>" as output and set errno to EOVERFLOW if integer
21233 seconds since the epoch would be 14 or more characters.
21234 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21235 for sprintf call.
21236 * resolv/tst-p_secstodate.c: New file.
21237 * resolv/Makefile (tests): Add tst-p_secstodate.
21238 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21239
21240 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21241 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21242 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21243
21244 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21245
21246 * posix/regcomp.c (init_word_char): Add comments.
21247
21248 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21249
21250 [BZ #22447]
21251 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21252 strlen to compute length of ut_user and set trailing NUL byte of
21253 result explicitly.
21254
21255 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21256
21257 [BZ #15537]
21258 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21259 using “copy "iso14651_t1"” and then implementing the
21260 collation rules for lv from CLDR on top of that.
21261 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21262 of locales to be built for testing.
21263 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21264 sorting.
21265
21266 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21267
21268 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21269 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21270 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21271 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21272 [__USE_MISC] (MADV_HWPOISON): New macro.
21273 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21274
21275 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21276
21277 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21278 -Wmissing-braces on GCC 4.9.
21279
21280 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21281
21282 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21283 * sysdeps/s390/s390-32/start.S (_start): Likewise
21284 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21285 (thread_start): Likewise.
21286 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21287 (thread_start): Likewise.
21288 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21289 (__makecontext_ret): Likewise.
21290 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21291 (__makecontext_ret): Likewise.
21292
21293 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21294
21295 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21296 __wcschrnul): Remove attribute_hidden.
21297
21298 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21299
21300 regex: don't assume uint64_t or uint32_t
21301 This avoids -Werror=overflow errors for 32-bit systems in
21302 the 64-bit case. Problem reported by Joseph Myers in:
21303 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21304 Also, when this code is used in Gnulib it ports to platforms
21305 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21306 them, and on some 32-bit compilers there is no uint64_t.
21307 Problem reported by Gianluigi Tiesi in:
21308 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21309 * posix/regcomp.c (init_word_char): Don't assume that the types
21310 uint64_t and uint32_t exist. Adapted from Gnulib patch
21311 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21312 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21313
21314 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21315
21316 * sysdeps/aarch64/memset-reg.h: New file.
21317 * sysdeps/aarch64/memset.S: Use it.
21318 (__memset): Rename to MEMSET macro.
21319 [ZVA_MACRO]: Use zva_macro.
21320 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21321 Add memset_generic and memset_falkor.
21322 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21323 (__libc_ifunc_impl_list): Add memset ifuncs.
21324 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21325 local variable zva_size.
21326 * sysdeps/aarch64/multiarch/memset.c: New file.
21327 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21328 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21329 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21330 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21331 (DCZID_DZP_MASK): New macro.
21332 (DCZID_BS_MASK): Likewise.
21333 (init_cpu_features): Read and set zva_size.
21334 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21335 (struct cpu_features): New member zva_size.
21336
21337 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21338 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21339 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21340
21341 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21342 backwards. Fix timing computation.
21343 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21344 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21345 on memset by N at a time. Fix timing computation.
21346
21347 2017-11-20 Florian Weimer <fweimer@redhat.com>
21348
21349 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21350 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21351
21352 2017-11-19 Florian Weimer <fweimer@redhat.com>
21353
21354 manual: Document mprotect
21355 * manual/memory.texi (Memory Protection): New section.
21356 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21357 documentation of PROT_* flags and reference the Memory Protection
21358 section instead.
21359
21360 2017-11-19 Florian Weimer <fweimer@redhat.com>
21361
21362 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21363 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21364 (Scatter-Gather): ... to here. Remove misleading comment.
21365
21366 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21367
21368 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21369 style.
21370
21371 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21372 when /proc/<pid>/setgroups does not exist.
21373
21374 2017-11-18 Florian Weimer <fweimer@redhat.com>
21375
21376 * sysdeps/unix/sysv/linux/tst-ttyname.c
21377 (become_root_in_mount_ns): Remove.
21378 (do_in_chroot_1): Call support_enter_mount_namespace.
21379 (do_in_chroot_2): Likewise.
21380 (do_test): Call support_become_root early.
21381
21382 2017-11-18 Florian Weimer <fweimer@redhat.com>
21383
21384 * support/namespace.h (support_enter_mount_namespace): Declare.
21385 * support/support_enter_mount_namespace.c: New file.
21386 * support/Makefile (libsupport-routines): Add
21387 support_enter_mount_namespace.
21388
21389 2017-11-18 Florian Weimer <fweimer@redhat.com>
21390
21391 * support/temp_file.c (support_create_temp_directory): Use
21392 test_dir and do not rely on the presence of the XXXXXX suffix.
21393 * support/temp_file.h (support_create_temp_directory): Update
21394 comment.
21395 * support/tst-xreadlink.c (do_test): Adjust.
21396 * support/support_chroot.c (support_chroot_create): Likewise.
21397
21398 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21399
21400 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21401 macro.
21402 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21403 htm-no-suspend.
21404
21405 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21406
21407 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21408 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21409 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21410 (ceill): Define using libm_alias_ldouble.
21411 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21412 <libm-alias-ldouble.h>.
21413 (copysignl): Define using libm_alias_ldouble.
21414 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21415 (fabsl): Define using libm_alias_ldouble.
21416 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21417 (floorl): Define using libm_alias_ldouble.
21418 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21419 (fmaxl): Define using libm_alias_ldouble.
21420 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21421 (fminl): Define using libm_alias_ldouble.
21422 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21423 (llrintl): Define using libm_alias_ldouble.
21424 (lrintl): Likewise.
21425 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21426 <libm-alias-ldouble.h>.
21427 (nearbyintl): Define using libm_alias_ldouble.
21428 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21429 (truncl): Define using libm_alias_ldouble.
21430 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21431 <libm-alias-ldouble.h>.
21432 (lrintl): Define using libm_alias_ldouble.
21433
21434 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21435 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21436 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21437 (asinhl): Define using libm_alias_ldouble.
21438 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21439 (atanl): Define using libm_alias_ldouble.
21440 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21441 (cbrtl): Define using libm_alias_ldouble.
21442 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21443 (ceill): Define using libm_alias_ldouble.
21444 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21445 (copysignl): Define using libm_alias_ldouble.
21446 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21447 (fabsl): Define using libm_alias_ldouble.
21448 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21449 (floorl): Define using libm_alias_ldouble.
21450 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21451 (fmaxl): Define using libm_alias_ldouble.
21452 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21453 (fminl): Define using libm_alias_ldouble.
21454 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21455 (frexpl): Define using libm_alias_ldouble.
21456 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21457 (llrintl): Define using libm_alias_ldouble.
21458 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21459 (logbl): Define using libm_alias_ldouble.
21460 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21461 (lrintl): Define using libm_alias_ldouble.
21462 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21463 (nearbyintl): Define using libm_alias_ldouble.
21464 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21465 (nextafterl): Define using libm_alias_ldouble.
21466 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21467 (remquol): Define using libm_alias_ldouble.
21468 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21469 (rintl): Define using libm_alias_ldouble.
21470 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21471 (truncl): Define using libm_alias_ldouble.
21472 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21473 (fmaxl): Define using libm_alias_ldouble.
21474 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21475 (fminl): Define using libm_alias_ldouble.
21476
21477 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21478 to C syntax instead of availability and properties of types.
21479 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21480 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21481 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21482 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21483 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21484 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21485
21486 2017-11-17 Florian Weimer <fweimer@redhat.com>
21487
21488 support_become_root: Enable file creation in namespaces.
21489 * support/support_become_root.c (setup_mapping): New function.
21490 (support_become_root): Call it.
21491
21492 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21493
21494 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21495 macro.
21496
21497 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21498
21499 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21500 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21501
21502 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21503
21504 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21505
21506 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21507 version to 4.14.
21508
21509 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21510
21511 * INSTALL: Fix botched up regeneration.
21512
21513 * NEWS: Update sourceare link to https.
21514 * configure.ac: Likewise.
21515 * crypt/md5test-giant.c: Likewise.
21516 * dlfcn/bug-atexit1.c: Likewise.
21517 * dlfcn/bug-atexit2.c: Likewise.
21518 * localedata/README: Likewise.
21519 * malloc/tst-mallocfork.c: Likewise.
21520 * manual/install.texi: Likewise.
21521 * nptl/tst-pthread-getattr.c: Likewise.
21522 * stdio-common/tst-fgets.c: Likewise.
21523 * stdio-common/tst-fwrite.c: Likewise.
21524 * sunrpc/Makefile: Likewise.
21525 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21526 * wcsmbs/tst-mbrtowc2.c: Likewise.
21527 * configure: Regenerate.
21528 * INSTALL: Regenerate.
21529
21530 2017-11-15 Martin Sebor <msebor@redhat.com>
21531
21532 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21533 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21534 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21535
21536 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21537
21538 [BZ #22145]
21539 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21540 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21541
21542 [BZ #22145]
21543 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21544 Defer is_pty check until end of the function.
21545 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21546
21547 [BZ #22145]
21548 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21549 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21550 (ttyname): Likewise.
21551 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21552 (__ttyname_r): Likewise.
21553
21554 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21555 int to bool.
21556
21557 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21558
21559 * manual/terminal.texi (Is It a Terminal):
21560 Mention ENODEV for ttyname and ttyname_r.
21561
21562 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21563
21564 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21565 constant and macro.
21566
21567 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21568 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21569 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21570 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21571 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21572 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21573
21574 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21575
21576 * signal/sigrelse.c (sigrelse): Optimize implementation.
21577
21578 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21579 (__sigpause): Rely on __sigsuspend to implement single thread
21580 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21581
21582 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21583
21584 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21585 kernel version to 4.14.
21586
21587 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21588
21589 [BZ #22442]
21590 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21591 Check if ifname is too long.
21592
21593 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21594
21595 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21596
21597 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21598
21599 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21600 was accidentally lost.
21601
21602 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21603
21604 * localedata/locales/az_IR: Add standard copyright header.
21605
21606 2017-11-15 Florian Weimer <fweimer@redhat.com>
21607
21608 [BZ #22439]
21609 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21610 not just the top one. Output a new "subheaps" statistic.
21611
21612 2017-11-15 Florian Weimer <fweimer@redhat.com>
21613
21614 [BZ #22408]
21615 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21616 under the per-arena lock.
21617 * malloc/Makefile (tests): Add tst-malloc_info.
21618 (tst-malloc_info): Link with libpthread.
21619 * malloc/tst-malloc_info.c: New file.
21620
21621 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21622
21623 [BZ #21660]
21624 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21625 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21626 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21627 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21628 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21629 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21630 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21631 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21632 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21633 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21634 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21635 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21636 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21637 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21638 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21639 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21640 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21641 (__floating_type): Likewise.
21642 (__real_integer_type): Likewise.
21643 (__complex_integer_type): Likewise.
21644 (__expr_is_real): Likewise.
21645 (__tgmath_real_type_sub): Likewise.
21646 (__tgmath_real_type): Likewise.
21647 (__tgmath_complex_type_sub): Likewise.
21648 (__tgmath_complex_type): Likewise.
21649 (__TGMATH_F128): Likewise.
21650 (__TGMATH_CF128): Likewise.
21651 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21652 new macros.
21653 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21654 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21655 Likewise.
21656 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21657 Likewise.
21658 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21659 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21660 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21661 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21662 Likewise.
21663 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21664 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21665 Likewise.
21666 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21667 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21668 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21669 Likewise.
21670 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21671 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21672 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21673 (cimag): Likewise.
21674 (creal): Likewise.
21675
21676 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21677
21678 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21679 for stpncpy calls for GCC 8.
21680 (test_strncat): Disable -Wstringop-truncation warning for strncat
21681 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21682 strncat call for GCC 7.
21683 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21684 calls for GCC 8.
21685 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21686 trailing NUL.
21687
21688 * string/bug-strncat1.c: Include <libc-diag.h>.
21689 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21690
21691 2017-11-13 Claude Paroz <claude@2xlibre.net>
21692
21693 [BZ #22387]
21694 * localedata/locales/aa_DJ: Improved readibility by replacing
21695 <Uxxxx> sequences in the ASCII printable range by their ASCII
21696 character equivalents.
21697 * localedata/locales/aa_ER: Likewise.
21698 * localedata/locales/aa_ER@saaho: Likewise.
21699 * localedata/locales/aa_ET: Likewise.
21700 * localedata/locales/af_ZA: Likewise.
21701 * localedata/locales/agr_PE: Likewise.
21702 * localedata/locales/ak_GH: Likewise.
21703 * localedata/locales/am_ET: Likewise.
21704 * localedata/locales/anp_IN: Likewise.
21705 * localedata/locales/ar_AE: Likewise.
21706 * localedata/locales/ar_BH: Likewise.
21707 * localedata/locales/ar_DZ: Likewise.
21708 * localedata/locales/ar_EG: Likewise.
21709 * localedata/locales/ar_IN: Likewise.
21710 * localedata/locales/ar_IQ: Likewise.
21711 * localedata/locales/ar_JO: Likewise.
21712 * localedata/locales/ar_KW: Likewise.
21713 * localedata/locales/ar_LB: Likewise.
21714 * localedata/locales/ar_LY: Likewise.
21715 * localedata/locales/ar_MA: Likewise.
21716 * localedata/locales/ar_OM: Likewise.
21717 * localedata/locales/ar_QA: Likewise.
21718 * localedata/locales/ar_SA: Likewise.
21719 * localedata/locales/ar_SD: Likewise.
21720 * localedata/locales/ar_SS: Likewise.
21721 * localedata/locales/ar_SY: Likewise.
21722 * localedata/locales/ar_TN: Likewise.
21723 * localedata/locales/ar_YE: Likewise.
21724 * localedata/locales/as_IN: Likewise.
21725 * localedata/locales/ast_ES: Likewise.
21726 * localedata/locales/ayc_PE: Likewise.
21727 * localedata/locales/az_AZ: Likewise.
21728 * localedata/locales/az_IR: Likewise.
21729 * localedata/locales/be_BY: Likewise.
21730 * localedata/locales/be_BY@latin: Likewise.
21731 * localedata/locales/bem_ZM: Likewise.
21732 * localedata/locales/ber_DZ: Likewise.
21733 * localedata/locales/ber_MA: Likewise.
21734 * localedata/locales/bg_BG: Likewise.
21735 * localedata/locales/bhb_IN: Likewise.
21736 * localedata/locales/bho_IN: Likewise.
21737 * localedata/locales/bi_VU: Likewise.
21738 * localedata/locales/bn_BD: Likewise.
21739 * localedata/locales/bn_IN: Likewise.
21740 * localedata/locales/bo_CN: Likewise.
21741 * localedata/locales/bo_IN: Likewise.
21742 * localedata/locales/br_FR: Likewise.
21743 * localedata/locales/brx_IN: Likewise.
21744 * localedata/locales/bs_BA: Likewise.
21745 * localedata/locales/byn_ER: Likewise.
21746 * localedata/locales/ca_AD: Likewise.
21747 * localedata/locales/ca_ES: Likewise.
21748 * localedata/locales/ca_FR: Likewise.
21749 * localedata/locales/ca_IT: Likewise.
21750 * localedata/locales/ce_RU: Likewise.
21751 * localedata/locales/chr_US: Likewise.
21752 * localedata/locales/cmn_TW: Likewise.
21753 * localedata/locales/crh_UA: Likewise.
21754 * localedata/locales/cs_CZ: Likewise.
21755 * localedata/locales/csb_PL: Likewise.
21756 * localedata/locales/cv_RU: Likewise.
21757 * localedata/locales/cy_GB: Likewise.
21758 * localedata/locales/da_DK: Likewise.
21759 * localedata/locales/de_AT: Likewise.
21760 * localedata/locales/de_BE: Likewise.
21761 * localedata/locales/de_CH: Likewise.
21762 * localedata/locales/de_DE: Likewise.
21763 * localedata/locales/de_IT: Likewise.
21764 * localedata/locales/de_LI: Likewise.
21765 * localedata/locales/de_LU: Likewise.
21766 * localedata/locales/doi_IN: Likewise.
21767 * localedata/locales/dv_MV: Likewise.
21768 * localedata/locales/dz_BT: Likewise.
21769 * localedata/locales/el_CY: Likewise.
21770 * localedata/locales/el_GR: Likewise.
21771 * localedata/locales/en_AG: Likewise.
21772 * localedata/locales/en_AU: Likewise.
21773 * localedata/locales/en_BW: Likewise.
21774 * localedata/locales/en_CA: Likewise.
21775 * localedata/locales/en_DK: Likewise.
21776 * localedata/locales/en_GB: Likewise.
21777 * localedata/locales/en_HK: Likewise.
21778 * localedata/locales/en_IE: Likewise.
21779 * localedata/locales/en_IL: Likewise.
21780 * localedata/locales/en_IN: Likewise.
21781 * localedata/locales/en_NG: Likewise.
21782 * localedata/locales/en_NZ: Likewise.
21783 * localedata/locales/en_PH: Likewise.
21784 * localedata/locales/en_SG: Likewise.
21785 * localedata/locales/en_US: Likewise.
21786 * localedata/locales/en_ZA: Likewise.
21787 * localedata/locales/en_ZM: Likewise.
21788 * localedata/locales/en_ZW: Likewise.
21789 * localedata/locales/eo: Likewise.
21790 * localedata/locales/es_AR: Likewise.
21791 * localedata/locales/es_BO: Likewise.
21792 * localedata/locales/es_CL: Likewise.
21793 * localedata/locales/es_CO: Likewise.
21794 * localedata/locales/es_CR: Likewise.
21795 * localedata/locales/es_CU: Likewise.
21796 * localedata/locales/es_DO: Likewise.
21797 * localedata/locales/es_EC: Likewise.
21798 * localedata/locales/es_ES: Likewise.
21799 * localedata/locales/es_GT: Likewise.
21800 * localedata/locales/es_HN: Likewise.
21801 * localedata/locales/es_MX: Likewise.
21802 * localedata/locales/es_NI: Likewise.
21803 * localedata/locales/es_PA: Likewise.
21804 * localedata/locales/es_PE: Likewise.
21805 * localedata/locales/es_PR: Likewise.
21806 * localedata/locales/es_PY: Likewise.
21807 * localedata/locales/es_SV: Likewise.
21808 * localedata/locales/es_US: Likewise.
21809 * localedata/locales/es_UY: Likewise.
21810 * localedata/locales/es_VE: Likewise.
21811 * localedata/locales/et_EE: Likewise.
21812 * localedata/locales/eu_ES: Likewise.
21813 * localedata/locales/eu_ES@euro: Likewise.
21814 * localedata/locales/fa_IR: Likewise.
21815 * localedata/locales/ff_SN: Likewise.
21816 * localedata/locales/fi_FI: Likewise.
21817 * localedata/locales/fil_PH: Likewise.
21818 * localedata/locales/fo_FO: Likewise.
21819 * localedata/locales/fr_BE: Likewise.
21820 * localedata/locales/fr_CA: Likewise.
21821 * localedata/locales/fr_CH: Likewise.
21822 * localedata/locales/fr_FR: Likewise.
21823 * localedata/locales/fr_LU: Likewise.
21824 * localedata/locales/fur_IT: Likewise.
21825 * localedata/locales/fy_DE: Likewise.
21826 * localedata/locales/fy_NL: Likewise.
21827 * localedata/locales/ga_IE: Likewise.
21828 * localedata/locales/gd_GB: Likewise.
21829 * localedata/locales/gez_ER: Likewise.
21830 * localedata/locales/gez_ET: Likewise.
21831 * localedata/locales/gl_ES: Likewise.
21832 * localedata/locales/gu_IN: Likewise.
21833 * localedata/locales/gv_GB: Likewise.
21834 * localedata/locales/ha_NG: Likewise.
21835 * localedata/locales/hak_TW: Likewise.
21836 * localedata/locales/he_IL: Likewise.
21837 * localedata/locales/hi_IN: Likewise.
21838 * localedata/locales/hif_FJ: Likewise.
21839 * localedata/locales/hne_IN: Likewise.
21840 * localedata/locales/hr_HR: Likewise.
21841 * localedata/locales/hsb_DE: Likewise.
21842 * localedata/locales/ht_HT: Likewise.
21843 * localedata/locales/hu_HU: Likewise.
21844 * localedata/locales/hy_AM: Likewise.
21845 * localedata/locales/i18n: Likewise.
21846 * localedata/locales/ia_FR: Likewise.
21847 * localedata/locales/id_ID: Likewise.
21848 * localedata/locales/ig_NG: Likewise.
21849 * localedata/locales/ik_CA: Likewise.
21850 * localedata/locales/is_IS: Likewise.
21851 * localedata/locales/it_CH: Likewise.
21852 * localedata/locales/it_IT: Likewise.
21853 * localedata/locales/iu_CA: Likewise.
21854 * localedata/locales/ja_JP: Likewise.
21855 * localedata/locales/ka_GE: Likewise.
21856 * localedata/locales/kk_KZ: Likewise.
21857 * localedata/locales/kl_GL: Likewise.
21858 * localedata/locales/kn_IN: Likewise.
21859 * localedata/locales/ko_KR: Likewise.
21860 * localedata/locales/kok_IN: Likewise.
21861 * localedata/locales/ks_IN: Likewise.
21862 * localedata/locales/ks_IN@devanagari: Likewise.
21863 * localedata/locales/ku_TR: Likewise.
21864 * localedata/locales/kw_GB: Likewise.
21865 * localedata/locales/ky_KG: Likewise.
21866 * localedata/locales/lb_LU: Likewise.
21867 * localedata/locales/lg_UG: Likewise.
21868 * localedata/locales/li_BE: Likewise.
21869 * localedata/locales/li_NL: Likewise.
21870 * localedata/locales/lij_IT: Likewise.
21871 * localedata/locales/ln_CD: Likewise.
21872 * localedata/locales/lo_LA: Likewise.
21873 * localedata/locales/lt_LT: Likewise.
21874 * localedata/locales/lv_LV: Likewise.
21875 * localedata/locales/lzh_TW: Likewise.
21876 * localedata/locales/mag_IN: Likewise.
21877 * localedata/locales/mai_IN: Likewise.
21878 * localedata/locales/mg_MG: Likewise.
21879 * localedata/locales/mhr_RU: Likewise.
21880 * localedata/locales/mi_NZ: Likewise.
21881 * localedata/locales/mk_MK: Likewise.
21882 * localedata/locales/ml_IN: Likewise.
21883 * localedata/locales/mn_MN: Likewise.
21884 * localedata/locales/mni_IN: Likewise.
21885 * localedata/locales/mr_IN: Likewise.
21886 * localedata/locales/ms_MY: Likewise.
21887 * localedata/locales/mt_MT: Likewise.
21888 * localedata/locales/my_MM: Likewise.
21889 * localedata/locales/nan_TW: Likewise.
21890 * localedata/locales/nan_TW@latin: Likewise.
21891 * localedata/locales/nb_NO: Likewise.
21892 * localedata/locales/nds_DE: Likewise.
21893 * localedata/locales/nds_NL: Likewise.
21894 * localedata/locales/ne_NP: Likewise.
21895 * localedata/locales/nhn_MX: Likewise.
21896 * localedata/locales/niu_NU: Likewise.
21897 * localedata/locales/niu_NZ: Likewise.
21898 * localedata/locales/nl_AW: Likewise.
21899 * localedata/locales/nl_BE: Likewise.
21900 * localedata/locales/nl_NL: Likewise.
21901 * localedata/locales/nn_NO: Likewise.
21902 * localedata/locales/nr_ZA: Likewise.
21903 * localedata/locales/nso_ZA: Likewise.
21904 * localedata/locales/oc_FR: Likewise.
21905 * localedata/locales/om_ET: Likewise.
21906 * localedata/locales/om_KE: Likewise.
21907 * localedata/locales/or_IN: Likewise.
21908 * localedata/locales/os_RU: Likewise.
21909 * localedata/locales/pa_IN: Likewise.
21910 * localedata/locales/pa_PK: Likewise.
21911 * localedata/locales/pap_AW: Likewise.
21912 * localedata/locales/pap_CW: Likewise.
21913 * localedata/locales/pl_PL: Likewise.
21914 * localedata/locales/ps_AF: Likewise.
21915 * localedata/locales/pt_BR: Likewise.
21916 * localedata/locales/pt_PT: Likewise.
21917 * localedata/locales/quz_PE: Likewise.
21918 * localedata/locales/raj_IN: Likewise.
21919 * localedata/locales/ro_RO: Likewise.
21920 * localedata/locales/ru_RU: Likewise.
21921 * localedata/locales/ru_UA: Likewise.
21922 * localedata/locales/rw_RW: Likewise.
21923 * localedata/locales/sa_IN: Likewise.
21924 * localedata/locales/sat_IN: Likewise.
21925 * localedata/locales/sc_IT: Likewise.
21926 * localedata/locales/sd_IN: Likewise.
21927 * localedata/locales/sd_IN@devanagari: Likewise.
21928 * localedata/locales/se_NO: Likewise.
21929 * localedata/locales/sgs_LT: Likewise.
21930 * localedata/locales/shs_CA: Likewise.
21931 * localedata/locales/si_LK: Likewise.
21932 * localedata/locales/sid_ET: Likewise.
21933 * localedata/locales/sk_SK: Likewise.
21934 * localedata/locales/sl_SI: Likewise.
21935 * localedata/locales/sm_WS: Likewise.
21936 * localedata/locales/so_DJ: Likewise.
21937 * localedata/locales/so_ET: Likewise.
21938 * localedata/locales/so_KE: Likewise.
21939 * localedata/locales/so_SO: Likewise.
21940 * localedata/locales/sq_AL: Likewise.
21941 * localedata/locales/sq_MK: Likewise.
21942 * localedata/locales/sr_ME: Likewise.
21943 * localedata/locales/sr_RS: Likewise.
21944 * localedata/locales/sr_RS@latin: Likewise.
21945 * localedata/locales/ss_ZA: Likewise.
21946 * localedata/locales/st_ZA: Likewise.
21947 * localedata/locales/sv_FI: Likewise.
21948 * localedata/locales/sv_SE: Likewise.
21949 * localedata/locales/sw_KE: Likewise.
21950 * localedata/locales/sw_TZ: Likewise.
21951 * localedata/locales/szl_PL: Likewise.
21952 * localedata/locales/ta_IN: Likewise.
21953 * localedata/locales/ta_LK: Likewise.
21954 * localedata/locales/tcy_IN: Likewise.
21955 * localedata/locales/te_IN: Likewise.
21956 * localedata/locales/tg_TJ: Likewise.
21957 * localedata/locales/th_TH: Likewise.
21958 * localedata/locales/the_NP: Likewise.
21959 * localedata/locales/ti_ER: Likewise.
21960 * localedata/locales/ti_ET: Likewise.
21961 * localedata/locales/tig_ER: Likewise.
21962 * localedata/locales/tk_TM: Likewise.
21963 * localedata/locales/tl_PH: Likewise.
21964 * localedata/locales/tn_ZA: Likewise.
21965 * localedata/locales/to_TO: Likewise.
21966 * localedata/locales/tpi_PG: Likewise.
21967 * localedata/locales/tr_CY: Likewise.
21968 * localedata/locales/tr_TR: Likewise.
21969 * localedata/locales/ts_ZA: Likewise.
21970 * localedata/locales/tt_RU: Likewise.
21971 * localedata/locales/tt_RU@iqtelif: Likewise.
21972 * localedata/locales/ug_CN: Likewise.
21973 * localedata/locales/uk_UA: Likewise.
21974 * localedata/locales/unm_US: Likewise.
21975 * localedata/locales/ur_IN: Likewise.
21976 * localedata/locales/ur_PK: Likewise.
21977 * localedata/locales/uz_UZ: Likewise.
21978 * localedata/locales/uz_UZ@cyrillic: Likewise.
21979 * localedata/locales/ve_ZA: Likewise.
21980 * localedata/locales/vi_VN: Likewise.
21981 * localedata/locales/wa_BE: Likewise.
21982 * localedata/locales/wae_CH: Likewise.
21983 * localedata/locales/wal_ET: Likewise.
21984 * localedata/locales/wo_SN: Likewise.
21985 * localedata/locales/xh_ZA: Likewise.
21986 * localedata/locales/yi_US: Likewise.
21987 * localedata/locales/yo_NG: Likewise.
21988 * localedata/locales/yue_HK: Likewise.
21989 * localedata/locales/yuw_PG: Likewise.
21990 * localedata/locales/zh_CN: Likewise.
21991 * localedata/locales/zh_HK: Likewise.
21992 * localedata/locales/zh_SG: Likewise.
21993 * localedata/locales/zh_TW: Likewise.
21994 * localedata/locales/zu_ZA: Likewise.
21995
21996 2017-11-13 Florian Weimer <fweimer@redhat.com>
21997
21998 * support/next_to_fault.h, support/next_to_fault.c: New files.
21999 * support/Makefile (libsupport-routines): Add next_to_fault.
22000 * resolv/tst-inet_pton.c (struct next_to_fault)
22001 (next_to_fault_allocate, next_to_fault_free): Remove.
22002 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22003
22004 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22005
22006 * elf/dl-support.c: Include <dl-procruntime.c>.
22007 * include/link.h: Include <link_map.h>.
22008 * sysdeps/generic/dl-procruntime.c: New file.
22009 * sysdeps/generic/link_map.h: Likewise.
22010 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22011 the writable ld.so namespace.
22012
22013 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22014
22015 timezone: pacify GCC -Wstringop-truncation
22016 Problem reported by Martin Sebor in:
22017 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22018 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22019
22020 2017-11-12 Florian Weimer <fweimer@redhat.com>
22021
22022 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22023 tst-xreadlink.
22024 (tests): Add tst-xreadlink.
22025 * support/support.h (xstrndup): Declare.
22026 * support/xunistd.h (xunlink, xreadlink): Declare.
22027 * support/temp_file.h (support_create_temp_directory): Declare.
22028 * support/temp_file.c (support_create_temp_directory): New function.
22029 * support/support_chroot.c (support_chroot_create): Use it.
22030 * support/xreadlink.c: New file.
22031 * support/xstrndup.c: Likewise.
22032 * support/xunlink.c: Likewise.
22033 * support/tst-xreadlink.c: Likewise.
22034
22035 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22036
22037 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22038
22039 2017-11-11 Florian Weimer <fweimer@redhat.com>
22040
22041 [BZ #22409]
22042 [BZ #22412]
22043 * resolv/res_comp.c (printable_string, binary_hnok)
22044 (binary_leading_dash): New functions.
22045 (res_hnok): Reimplement using these functions and ns_name_pton.
22046 (res_ownok): Likewise.
22047 (res_mailok): Reimplement using printable_string, ns_name_pton and
22048 binary_hnok.
22049 (res_dnok): Reimplement using printable_string and ns_name_pton.
22050 * resolv/tst-res_hnok.c (tests): Add additional tests.
22051 (LETTERDIGITS, PRINTABLE): Define.
22052 (do_test): Adjust one_char results.
22053
22054 2017-11-11 Florian Weimer <fweimer@redhat.com>
22055
22056 [BZ #22413]
22057 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22058 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22059
22060 2017-11-11 Florian Weimer <fweimer@redhat.com>
22061
22062 * resolv/tst-ns_name_pton.c: New file.
22063 * resolv/Makefile (tests): Add tst-ns_name_pton.
22064 (tst-ns_name_pton): Link against libresolv.
22065
22066 2017-11-11 Florian Weimer <fweimer@redhat.com>
22067
22068 * resolv/tst-res_hnok.c: New file.
22069 * resolv/Makefile (tests): Add tst-res_hnok.
22070 (tst-res_hnok): Link against libresolv.
22071
22072 2017-11-11 Florian Weimer <fweimer@redhat.com>
22073
22074 * resolv/tst-resolv-network.c: Use test framework instead explicit
22075 main function.
22076
22077 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22078
22079 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22080 <jmp_buf-macros.h>.
22081 [!_ISOMAC] (STR_HELPER): New.
22082 [!_ISOMAC] (STR): Likewise.
22083 [!_ISOMAC] (TEST_SIZE): Likewise.
22084 [!_ISOMAC] (TEST_ALIGN): Likewise.
22085 [!_ISOMAC] (TEST_OFFSET): Likewise.
22086 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22087 field offsets of jmp_buf as well as sigjmp_buf.
22088 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22089 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22090 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22091 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22092 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22093 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22094 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22095 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22096 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22097 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22098 Likewise.
22099 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22100 Likewise.
22101 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22103 Likewise.
22104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22105 Likewise.
22106 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22107 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22108 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22109 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22110 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22111 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22112 Likewise.
22113 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22114 Likewise.
22115 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22116 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22117 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22118
22119 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22120
22121 * include/float.h
22122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22123 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22125 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22127 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22129 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22131 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22133 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22135 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22137 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22138 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22139 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22140 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22141 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22142 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22143 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22144 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22145 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22146 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22147 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22148 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22149 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22150 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22151 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22152 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22153 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22154 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22155 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22156 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22157 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22158 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22159 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22160 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22161 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22162 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22163 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22164 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22165 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22166 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22167 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22168 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22169 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22170 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22171 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22172 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22173 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22175 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22177 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22178 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22179 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22180 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22181 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22182 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22183 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22184 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22185 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22186 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22187 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22188 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22189 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22190 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22191 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22192 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22193 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22194 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22195 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22196 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22197 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22198 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22199 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22201 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22203 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22205 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22207 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22209 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22210
22211 * stdlib/tst-strtod.h (F16): New macro.
22212 (F32): Likewise.
22213 (F64): Likewise.
22214 (F32X): Likewise.
22215 (F64X): Likewise.
22216 (F128X): Likewise.
22217 (IF_FLOAT16): Likewise.
22218 (IF_FLOAT32): Likewise.
22219 (IF_FLOAT64): Likewise.
22220 (IF_FLOAT32X): Likewise.
22221 (IF_FLOAT64X): Likewise.
22222 (IF_FLOAT128X): Likewise.
22223 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22224 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22225 (STRTOD_TEST_FOREACH): Likewise.
22226 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22227 (CHOOSE_f64): Likewise.
22228 (CHOOSE_f32x): Likewise.
22229 (CHOOSE_f64x): Likewise.
22230
22231 2017-11-07 Andreas Schwab <schwab@suse.de>
22232
22233 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22234
22235 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22236
22237 [BZ #22403]
22238 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22239 to be escaped.
22240 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22241 to be escaped.
22242
22243 2017-11-07 Claude Paroz <claude@2xlibre.net>
22244
22245 [BZ #22403]
22246 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22247 to be escaped.
22248 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22249 to be escaped.
22250 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22251 to be escaped.
22252
22253 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22254
22255 [BZ #22298]
22256 * nptl/allocatestack.c (allocate_stack): Check if
22257 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22258 __PTHREAD_MUTEX_HAVE_PREV is defined.
22259 * nptl/descr.h (pthread): Likewise.
22260 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22261 Likewise.
22262 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22263 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22264 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22265 * sysdeps/nptl/bits/thread-shared-types.h
22266 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22267 defines.
22268 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22269 of __WORDSIZE for internal layout.
22270 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22271 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22272 instead of __WORDSIZE whether to use an union for __spins and __list
22273 fields.
22274 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22275 case.
22276 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22277 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22278 defines.
22279 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22280 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22281 Likewise.
22282 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22283 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22284 Likewise.
22285 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22286 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22287 Likewise.
22288 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22289 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22290 Likewise.
22291 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22292 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22293 Likewise.
22294 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22295 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22296 Likewise.
22297 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22298 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22299 Likewise.
22300 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22301 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22302 Likewise.
22303 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22304 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22305 Likewise.
22306 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22307 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22308 Likewise.
22309 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22310 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22311 Likewise.
22312 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22313 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22314 Likewise.
22315 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22316 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22317 Likewise.
22318 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22319 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22320 Likewise.
22321
22322 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22323 New macros.
22324 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22325 checks for expected input type size.
22326 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22327 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22328 Likewise.
22329 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22330 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22331 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22332 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22333 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22334 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22335 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22336 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22337 superflous runtime assert check.
22338 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22339 Likewise.
22340 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22341 Likewise.
22342 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22343 Likewise.
22344 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22345 Likewise.
22346 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22347 Likewise.
22348 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22349 Likewise.
22350 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22351 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22352 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22353 Likewise.
22354 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22355 Likewise.
22356 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22357 Likewise.
22358 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22359 Likewise.
22360 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22361 Likewise.
22362 * nptl/pthread_attr_setinheritsched.c
22363 (__pthread_attr_setinheritsched): Likewise.
22364 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22365 Likewise.
22366 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22367 Likewise.
22368 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22369 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22370 __old_pthread_attr_setstack): Likewise.
22371 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22372 Likewise.
22373 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22374 Likewise.
22375 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22376 Likewise.
22377 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22378 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22379 Likewise.
22380 * nptl/tst-typesizes.c: Remove file.
22381
22382 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22383 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22384 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22385 checks for internal pthread_mutex_t offsets.
22386 * sysdeps/aarch64/nptl/pthread-offsets.h
22387 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22388 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22389 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22390 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22391 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22392 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22393 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22394 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22395 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22396 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22397 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22398 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22399 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22400 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22401 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22402 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22403 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22404 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22405
22406 2017-11-07 Florian Weimer <fweimer@redhat.com>
22407
22408 * bits/mman-linux.h: Move ...
22409 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22410 comment.
22411 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22412 outdated comment.
22413
22414 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22415
22416 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22417 Redefine STRNLEN as __strnlen_power8.
22418
22419 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22420
22421 * signal/sighold.c (sighold): Optimize implementation.
22422
22423 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22424 __NR_rt_sigqueueinfo.
22425
22426 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22427 __sigtimedwait.
22428 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22429 assume __NR_rt_sigtimedwait.
22430 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22431 and add LIBC_CANCEL_HANDLED for cancellation marking.
22432 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22433
22434 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22435 (sysdeps_routines): Add memchr_noneon.
22436 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22437 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22438 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22439 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22440 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22441 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22442 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22443
22444 * sysdeps/arm/arm-ifunc.h: New file.
22445 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22446 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22447 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22448 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22449 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22450 (__memcpy_neon): Avoid create hidden alias.
22451 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22452 (__memcpy_vfp): Likewise.
22453 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22454 (sysdep_routines): Add memcpy_arm.
22455 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22456
22457 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22458
22459 [BZ #22362]
22460 * Makerules (make-link-multidir): New.
22461 * config.make.in (multidir): New.
22462 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22463 * configure: Regenerated.
22464 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22465 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22466 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22467 New target.
22468
22469 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22470
22471 [BZ #22402]
22472 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22473 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22474
22475 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22476
22477 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22478 to be escaped.
22479
22480 2017-11-04 Florian Weimer <fweimer@redhat.com>
22481
22482 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22483
22484 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22485
22486 * math/math.h [__HAVE_DISTINCT_FLOAT16
22487 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22488 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22489 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22490 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22491 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22492 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22493 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22494 (__MATH_TG_F32): New macro.
22495 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22496 (__MATH_TG_F64X): Likewise.
22497 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22498 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22499
22500 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22501
22502 * po/de.po: Update translations.
22503 * po/ru.po: Likewise.
22504
22505 2017-11-03 Florian Weimer <fweimer@redhat.com>
22506
22507 * manual/filesys.texi (Hard Links): Document linkat.
22508
22509 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22510
22511 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22512 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22513 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22514 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22515 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22516 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22517 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22518 the same as _Float128.
22519 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22520 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22521 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22522
22523 * stdlib/stdlib.h
22524 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22525 Declare.
22526 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22527 Likewise.
22528 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22529 Likewise.
22530 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22531 (strtof32x): Likewise.
22532 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22533 (strtof64x): Likewise.
22534 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22535 (strtof128x): Likewise.
22536 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22537 (strfromf16): Likewise.
22538 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22539 (strfromf32): Likewise.
22540 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22541 (strfromf64): Likewise.
22542 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22543 (strfromf32x): Likewise.
22544 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22545 (strfromf64x): Likewise.
22546 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22547 (strfromf128x): Likewise.
22548 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22549 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22550 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22551 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22552 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22553 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22554
22555 2017-11-03 Richard Henderson <rth@twiddle.net>
22556
22557 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22558
22559 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22560
22561 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22562
22563 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22564
22565 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22566 DT_TLSDESC_GOT initialization.
22567 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22568 (_dl_tlsdesc_resolve_hold): Likewise.
22569 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22570 (_dl_tlsdesc_resolve_hold): Likewise.
22571 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22572 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22573
22574 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22575
22576 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22577
22578 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22579
22580 [BZ #18572]
22581 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22582 non-lazily for R_ARM_TLS_DESC.
22583
22584 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22585
22586 [BZ #17078]
22587 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22588 R_ARM_TLS_DESC case.
22589 (elf_machine_lazy_rel): Remove the prelink check.
22590
22591 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22592
22593 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22594 DT_TLSDESC_GOT initialization.
22595 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22596 (_dl_tlsdesc_resolve_rela): Likewise.
22597 (_dl_tlsdesc_resolve_hold): Likewise.
22598 (_dl_tlsdesc_undefweak): Remove ldar.
22599 (_dl_tlsdesc_dynamic): Likewise.
22600 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22601 (_dl_tlsdesc_resolve_rela): Likewise.
22602 (_dl_tlsdesc_resolve_hold): Likewise.
22603 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22604 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22605 (_dl_tlsdesc_resolve_rela): Likewise.
22606 (_dl_tlsdesc_resolve_hold): Likewise.
22607
22608 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22609
22610 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22611 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22612
22613 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22614
22615 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22616 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22617
22618 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22619
22620 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22621 Declare.
22622 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22623 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22624 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22625 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22626 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22627 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22628 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22629 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22630 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22631 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22632 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22633
22634 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22635
22636 [BZ #22382]
22637 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22638 * localedata/locales/tpi_PG: Add standard header.
22639
22640 2017-11-02 Florian Weimer <fweimer@redhat.com>
22641
22642 test-errno-linux: quotactl can fail with EPERM in containers.
22643 * sysdeps/unix/sysv/linux/test-errno-linux.c
22644 (LIST, LIST_FORWARD): New macros.
22645 (check_error_in_list): New function.
22646 (test_wrp_rv): Accept list of permitted error codes.
22647 (test_wrp_rv2): Remove.
22648 (test_wrp): Call test_wrp_rv with list of error codes.
22649 (test_wrp2): Accept list of error codes.
22650 (do_test): Adjust. Allow EPERM for quotactl.
22651
22652 2017-11-02 Florian Weimer <fweimer@redhat.com>
22653
22654 * stdio-common/bug16.c (do_test): Use array_length.
22655 * stdio-common/errlist.c (_sys_nerr): Likewise.
22656 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22657 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22658 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22659 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22660 (do_test): Use array_length.
22661 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22662 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22663 * stdio-common/tst-printf-round.c (do_test): Likewise.
22664 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22665 (CHECK): Use array_length.
22666 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22667 * stdio-common/tstscanf.c (main): Likewise.
22668 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22669
22670 2017-11-02 Florian Weimer <fweimer@redhat.com>
22671
22672 Add array_length and array_end macros.
22673 * include/array_length.h: New file.
22674
22675 2017-11-02 Florian Weimer <fweimer@redhat.com>
22676
22677 [BZ #22332]
22678 * posix/tst-glob-tilde.c (do_noescape): New variable.
22679 (one_test): Process it.
22680 (do_test): Set do_noescape. Add unescaping test case.
22681
22682 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22683
22684 * math/complex.h
22685 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22686 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22687 with appropriate macros defined and undefined.
22688 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22689 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22690 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22691 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22692 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22693 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22694 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22695 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22696 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22697 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22698
22699 * math/complex.h
22700 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22701 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22702 that for long double. Do not condition define and undefine of
22703 _Mdouble_complex_ on [__CFLOAT128].
22704
22705 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22706
22707 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22708 of <sysdeps/generic/sysdep.h>.
22709 (ALIGNARG): Removed.
22710 (ASM_SIZE_DIRECTIVE): Likewise.
22711 (ENTRY): Likewise.
22712 (END): Likewise.
22713 (ENTRY_CHK): Likewise.
22714 (END_CHK): Likewise.
22715 (syscall_error): Likewise.
22716 (mcount): Likewise.
22717 (PSEUDO_END): Likewise.
22718 (L): Likewise.
22719 (atom_text_section): Likewise.
22720 * sysdeps/x86/sysdep.h: New file.
22721 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22722 of <sysdeps/generic/sysdep.h>.
22723 (ALIGNARG): Removed.
22724 (ASM_SIZE_DIRECTIVE): Likewise.
22725 (ENTRY): Likewise.
22726 (END): Likewise.
22727 (ENTRY_CHK): Likewise.
22728 (END_CHK): Likewise.
22729 (syscall_error): Likewise.
22730 (mcount): Likewise.
22731 (PSEUDO_END): Likewise.
22732 (L): Likewise.
22733 (atom_text_section): Likewise.
22734
22735 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22736
22737 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22738 category of LC_CTYPE set to "i18n:2012".
22739 * localedata/locales/i18n_ctype: Regenerate.
22740
22741 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22742
22743 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22744 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22745 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22746 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22747
22748 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22749 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22750 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22751 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22752
22753 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22754
22755 * math/complex.h
22756 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22757 New macro.
22758 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22759 Likewise.
22760 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22761 Likewise.
22762 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22763 (CMPLXF32X): Likewise.
22764 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22765 (CMPLXF64X): Likewise.
22766 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22767 (CMPLXF128X): Likewise.
22768
22769 * math/math.h
22770 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22771 (__MATH_EVAL_FMT2): Define to add 0.0f.
22772
22773 2017-10-31 Alan Modra <amodra@gmail.com>
22774
22775 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22776 include sysdep.h.
22777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22791 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22792 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22793 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22794 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22795 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22796 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22797 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22798 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22799 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22800 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22801 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22802 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22803 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22804 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22805 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22806 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22807 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22808 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22809 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22810 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22811 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22812 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22813 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22814 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22815 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22816 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22817 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22818 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22819 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22820 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22821 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22822 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22823 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22824 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22825 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22826 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22827 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22828 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22829 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22830 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22831 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22832 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22833 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22834 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22835 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22836 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22837 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22838 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22839 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22840 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22841 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22842 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22843 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22844 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22845 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22846
22847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22848 include sysdep.h and math_ldbl_opt.h.
22849
22850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22851 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22876
22877 2017-10-31 Alan Modra <amodra@gmail.com>
22878
22879 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22880 string/strncase_l.c, not string/strncase.c.
22881 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22882 (libc_hidden_def): Redefine.
22883
22884 2017-10-31 Alan Modra <amodra@gmail.com>
22885
22886 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22887 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22888 (__strcasecmp): Don't define.
22889
22890 2017-10-31 Alan Modra <amodra@gmail.com>
22891
22892 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22893 IS_IN (libc).
22894 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22895 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22896 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22897
22898 2017-10-31 Alan Modra <amodra@gmail.com>
22899
22900 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22901 USE_AS_STPNCPY.
22902
22903 2017-10-31 Alan Modra <amodra@gmail.com>
22904
22905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22906 Redefine only when SHARED.
22907
22908 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22909
22910 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22911 Include <bits/math-finite.h> with appropriate macros defined and
22912 undefined.
22913 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22914 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22915 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22916 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22917 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22918
22919 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
22920 [!_Mlong_double_] (_Mlong_double_): Likewise.
22921 [!_Mfloat16_] (_Mfloat16_): Likewise.
22922 [!_Mfloat32_] (_Mfloat32_): Likewise.
22923 [!_Mfloat64_] (_Mfloat64_): Likewise.
22924 [!_Mfloat128_] (_Mfloat128_): Likewise.
22925 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
22926 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
22927 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
22928 (_Mdouble_): Define without indirection through those macros.
22929 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
22930 [!_Mfloat128_] (_Mfloat128_): Likewise.
22931 [_Mlong_double_] (_Mlong_double_): Likewise.
22932 (_Mdouble_): Define without indirection through those macros.
22933 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
22934 not add -D_Mlong_double_=double.
22935 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
22936 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
22937
22938 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22939
22940 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
22941
22942 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22943
22944 * sysdeps/x86/libc-start.c: Reformat.
22945
22946 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22947
22948 [BZ #22353]
22949 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
22950 (1): Renamed to ...
22951 (L(Src0)): This.
22952 (L(Src1)): New.
22953 (L(Src2)): Likewise.
22954 (L(1)): Renamed to ...
22955 (L(Src3)): This.
22956
22957 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22958
22959 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
22960 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
22961 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
22962 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
22963 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
22964 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
22965 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
22966 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
22967 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
22968 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
22969 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
22970 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
22971 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
22972 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
22973 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
22974 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
22975 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
22976 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
22977 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
22978 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
22979 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
22980 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
22981 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
22982 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
22983 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
22984 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
22985 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
22986 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
22987 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
22988 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
22989 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
22990 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
22991 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
22992 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
22993 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
22994 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
22995 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
22996 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
22997 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
22998 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
22999 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23000 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23001 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23002 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23003 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23004 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23005 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23006 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23007 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23008 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23009 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23010 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23011 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23012 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23013 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23014 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23015 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23016 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23017 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23018 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23019 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23020 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23021 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23022 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23023 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23024 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23025
23026 2017-10-30 Florian Weimer <fweimer@redhat.com>
23027
23028 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23029 always defined.
23030 * io/tst-mkdirat.c (do_test): Likewise.
23031 * io/tst-mkfifoat.c (do_test): Likewise.
23032 * io/tst-mknodat.c (do_test): Likewise.
23033 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23034 * locale/programs/locale.c (select_dirs): Likewise.
23035 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23036 * posix/bug-glob2.c (my_readdir): Likewise.
23037 * posix/tst-dir.c (main): Likewise.
23038 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23039 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23040
23041 2017-10-30 Florian Weimer <fweimer@redhat.com>
23042
23043 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23044 just __USE_GNU.
23045
23046 2017-10-30 Florian Weimer <fweimer@redhat.com>
23047
23048 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23049 Convert to support/test-driver.c.
23050 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23051 New macro parameters.
23052 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23053 * posix/tst-gnuglob.c: New file.
23054 * posix/tst-gnuglob64.c: Likewise.
23055 * posix/Makefile (tests): Add tst-gnuglob64.
23056
23057 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23058
23059 [BZ #19485]
23060 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23061 and use a better translation for March in “mon”.
23062 * localedata/locales/csb_PL: Use more ASCII to improve the
23063 readability of the source.
23064
23065 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23066
23067 [BZ #13953]
23068 * localedata/locales/km_KH: Use ASCII as much
23069 as possible for better readability of the source and
23070 remove useless comments.
23071 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23072 was commented out and apparently wrong anyway because it was
23073 using Lao characters. If Buddhist era should be used
23074 for km_KH, a native speaker should write the correct formaat
23075 for Khmer.
23076 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23077 (According to CLDR, the first weekday for Cambodia is Sunday).
23078 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23079 (These were using Lao characters which must be wrong. If we get
23080 the correct data from a native speaker, we could add it back, until
23081 then it is better not to have name_mr and name_mrs at all than
23082 having it wrong).
23083
23084 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23085
23086 * locale/loadlocale.c: Correct size of
23087 _nl_value_type_LC_<category> arrays.
23088
23089 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23090
23091 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23092 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23093 with appropriate macros defined and undefined.
23094 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23095 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23096 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23097 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23098 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23099
23100 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23101
23102 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23103 "-O2 -march=i586".
23104
23105 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23106
23107 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23108 with lowercase letters to make it agree with CLDR.
23109
23110 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23111
23112 [BZ #15260]
23113 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23114 first letters of yesstr and nostr in yesexpr and noexpr,
23115 not for the full words.
23116 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23117 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23118 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23119 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23120 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23121 first letters of yesstr and nostr in yesexpr and noexpr,
23122 until now only English was matched in yesexpr and noexpr.
23123 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23124 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23125 fil but not for tl. As tl and fil are very similar, using fil
23126 is probably better than using English.
23127
23128 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23129
23130 [BZ #21706]
23131 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23132 in yesstr and nostr.
23133
23134 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23135
23136 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23137 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23138 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23139 Likewise.
23140 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23141 Likewise.
23142 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23143 Likewise.
23144 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23145 Likewise.
23146 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23147 (SNANF128X): Likewise.
23148
23149 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23150 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23151 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23152 (HUGE_VAL_F32): Likewise.
23153 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23154 (HUGE_VAL_F64): Likewise.
23155 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23156 (HUGE_VAL_F32X): Likewise.
23157 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23158 (HUGE_VAL_F64X): Likewise.
23159 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23160 (HUGE_VAL_F128X): Likewise.
23161
23162 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23163
23164 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23165 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23166 for the br_FR locale.
23167
23168 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23169
23170 [BZ #21706]
23171 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23172
23173 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23174
23175 * locale/programs/record-status.h: Define globals, and function
23176 prototypes. Move function bodies...
23177 * locale/programs/record-status.c: ... to here. New file.
23178 * iconv/Makefile (iconv_prog-modules): Add record-status.
23179 * locale/Makefile (lib-modules): Likewise.
23180 * iconv/iconv_prog.c: Remove verbose.
23181 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23182 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23183 record a warning about ASCII compatibility.
23184 * locale/programs/ld-monetary.c (monetary_finish): If
23185 warn_int_curr_symbol is true then record a warning about the symbol
23186 not being in our ISO 4217 list.
23187 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23188 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23189 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23190 (OPT_NO_WARN): Define.
23191 (OPT_WARN): Define.
23192 (options): Add entry for --no-warnings, and --warnings.
23193 (set_warnings): New function to enable/disable warnings.
23194 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23195 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23196 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23197 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23198 Pass flags to generate_locale.
23199 (generate_locale): Accept new flag argument and pass it to localedef
23200 invocation.
23201 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23202 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23203
23204 * localedata/Makefile (test-input-data): Use full file name.
23205 * localedata/da_DK.in: Rename to...
23206 * localedata/da_DK.ISO-8859-1.in: ...this.
23207 * localedata/de_DE.in: Rename to...
23208 * localedata/de_DE.ISO-8859-1.in: ...this.
23209 * localedata/en_US.in: Rename to...
23210 * localedata/en_US.ISO-8859-1.in: ...this.
23211 * localedata/fr_FR.in: Rename to...
23212 * localedata/fr_FR.UTF-8.in: ... this.
23213 * localedata/hr_HR.in: Rename to...
23214 * localedata/hr_HR.ISO-8859-2.in: ...this.
23215 * localedata/hu_HU.in: Rename to...
23216 * localedata/hu_HU.UTF-8.in: ...this.
23217 * localedata/si_LK.in: Rename to...
23218 * localedata/si_LK.UTF-8.in: ...this.
23219 * localedata/sv_SE.in: Rename to...
23220 * localedata/sv_SE.ISO-8859-1.in: ...this.
23221 * localedata/tr_TR.in: Rename to...
23222 * localedata/tr_TR.UTF-8.in: ...this.
23223 * localedata/uk_UA.in: Rename to...
23224 * localedata/uk_UA.UTF-8.in: ...this.
23225 * localedata/sort-test.sh: Test file is locale name with the
23226 suffix.
23227
23228 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23229 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23230 file.
23231 * localedata/locales/i18n_ctype: Regenerate.
23232 * localedata/locales/tr_TR: Likewise.
23233 * localedata/locales/translit_circle: Likewise.
23234 * localedata/locales/translit_cjk_compat: Likewise.
23235 * localedata/locales/translit_combining: Likewise.
23236 * localedata/locales/translit_compat: Likewise.
23237 * localedata/locales/translit_font: Likewise.
23238 * localedata/locales/translit_fraction: Likewise.
23239
23240 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23241
23242 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23243 lxvd2x/stxvd2x with lvx/stvx.
23244 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23245
23246 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23247
23248 * include/alloc_buffer.h: Replace "if if " with "if " in
23249 comments.
23250 * sysdeps/mips/memcpy.S: Likkewise.
23251 * sysdeps/mips/memset.S: Likewise.
23252 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23253 Likewise.
23254 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23255 Likewise.
23256 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23257 Likewise.
23258
23259 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23260
23261 [BZ #15261]
23262 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23263 yesexpr and noexpr.
23264 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23265 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23266 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23267 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23268 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23269 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23270 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23271
23272 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23273
23274 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23275 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23276 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23277 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23278 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23279 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23280 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23281 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23282 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23283 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23284 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23285 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23286
23287 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23288
23289 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23290 as possible for better readability of the source.
23291 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23292 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23293 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23294 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23295 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23296 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23297 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23298 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23299 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23300 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23301 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23302 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23303 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23304 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23305 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23306 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23307 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23308 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23309 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23310 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23311 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23312 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23313 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23314 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23315 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23316 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23317 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23318 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23319 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23320 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23321 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23322 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23323 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23324 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23325 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23326 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23327 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23328 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23329 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23330 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23331 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23332 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23333 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23334 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23335 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23336 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23337 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23338 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23339 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23340 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23341 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23342 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23343 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23344 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23345 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23346 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23347 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23348 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23349 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23350 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23351 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23352 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23353 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23354 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23355 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23356 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23357 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23358 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23359 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23360 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23361 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23362 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23363 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23364 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23365 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23366 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23367 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23368 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23369 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23370 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23371 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23372 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23373 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23374 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23375 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23376 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23377 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23378 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23379 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23380 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23381 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23382 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23383 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23384 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23385 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23386 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23387 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23388 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23389 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23390 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23391 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23392 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23393 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23394 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23395 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23396 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23397 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23398 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23399 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23400 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23401 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23402 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23403 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23404 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23405 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23406 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23407 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23408 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23409 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23410 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23411 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23412 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23413 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23414 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23415 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23416 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23417 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23418 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23419 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23420 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23421 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23422 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23423 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23424 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23425 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23426 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23427 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23428 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23429 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23430 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23431 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23432 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23433 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23434 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23435 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23436 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23437 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23438 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23439 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23440 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23441 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23442 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23443 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23444 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23445 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23446 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23447 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23448 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23449 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23450 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23451 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23452 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23453 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23454 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23455 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23456 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23457 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23458 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23459 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23460 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23461 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23462 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23463 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23464 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23465
23466 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23467
23468 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23469 (Use first letters of yesstr and nostr correctly instead of using
23470 full words).
23471
23472 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23473
23474 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23475 (Use first letters of yesstr and nostr correctly).
23476
23477 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23478
23479 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23480 also check for the first characters of yesstr and nostr.
23481 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23482 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23483
23484 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23485
23486 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23487 also check for Chinese characters.
23488
23489 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23490
23491 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23492 match also for the contents of yesstr and nostr. As the first letter
23493 of yesstr and nostr is equal, checking only for the first letter
23494 is not enough.
23495
23496 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23497
23498 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23499 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23500
23501 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23502
23503 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23504 of main contributor.
23505
23506 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23507
23508 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23509 instead of using English.
23510
23511 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23512
23513 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23514 by including the first letters of nostr and yesexpr in the regexp.
23515 Also make it more readable by using ASCII where possible.
23516
23517 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23518
23519 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23520 the first letter of nostr in the regexp. It agrees with CLDR now.
23521 Also make it more readable by using ASCII where possible.
23522
23523 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23524
23525 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23526 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23527 these strings contain a U+17D6 (which somewhat looks like a colon)
23528 instead of a real colon to separate the full words for “yes”
23529 and “no” from the single letter responses.
23530
23531 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23532
23533 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23534 it agree with CLDR (include the first letter of yesstr).
23535 Also make it more readable by using ASCII where possible.
23536
23537 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23538
23539 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23540 and improve yesexpr and noexpr. The yesstr and nostr apparently
23541 came from CLDR. And CLDR has a bug there: these strings contain
23542 a U+0903 (which looks like a colon) instead of a real colon
23543 to separate the full words for “yes” and “no” from the single
23544 letter responses.
23545
23546 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23547
23548 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23549 letters of the full yesstr and nostr in yesexpr and noexpr.
23550
23551 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23552
23553 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23554 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23555 * localedata/locales/an_ES: Make source more readable by using ASCII
23556 where possible.
23557
23558 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23559
23560 [BZ #20952]
23561 * localedata/locales/yuw_PG: New file.
23562 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23563 * locale/iso-639.def: Add Yau (Uruwa).
23564
23565 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23566
23567 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23568
23569 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23570
23571 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23572 (__libc_realloc): Likewise.
23573 (_mid_memalign): Likewise.
23574 (__libc_calloc): Likewise.
23575
23576 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23577
23578 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23579 by adding the generic +1 and -0 as in all other locales.
23580 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23581 day names and make it more readable by using ASCII where possible.
23582
23583 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23584
23585 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23586 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23587
23588 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23589
23590 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23591 WNOHANG in waitpid call.
23592
23593 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23594
23595 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23596 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23597
23598 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23599 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23600 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23601 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23602 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23603 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23604 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23605 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23606 variables.
23607
23608 2017-10-23 Michael Collison <michael.collison@arm.com>
23609
23610 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23611 with __builtin_sqrt.
23612 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23613 with __builtin_sqrtf.
23614 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23615 with __builtin_ceil.
23616 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23617 with __builtin_ceilf.
23618 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23619 with __builtin_floor.
23620 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23621 with __builtin_floorf.
23622 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23623 with __builtin_fma.
23624 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23625 with __builtin_fmaf.
23626 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23627 with __builtin_fmax.
23628 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23629 with __builtin_fmaxf.
23630 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23631 with __builtin_fmin.
23632 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23633 with __builtin_fminf.
23634 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23635 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23636 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23637 with builtin_rint and conversion to int.
23638 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23639 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23640 with builtin_llround.
23641 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23642 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23643 with builtin_rint and conversion to long int.
23644 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23645 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23646 with builtin_lround.
23647 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23648 with builtin_lroundf.
23649 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23650 statements with __builtin_nearbyint.
23651 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23652 statements with __builtin_nearbyintf.
23653 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23654 with __builtin_rint.
23655 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23656 with __builtin_rintf.
23657 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23658 with __builtin_round.
23659 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23660 with __builtin_roundf.
23661 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23662 with __builtin_trunc.
23663 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23664 with __builtin_truncf.
23665 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23666 and s_l[l]round[f].c too.
23667
23668 2017-10-23 Alan Modra <amodra@gmail.com>
23669
23670 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23671 Adjust stack after restoring regs. Add missing LR cfi_restore.
23672
23673 2017-10-23 Alan Modra <amodra@gmail.com>
23674
23675 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23676 Move LR save and frame setup/teardown and LR restore to
23677 immediately around memset call. Provide cfi.
23678
23679 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23680
23681 * sysdeps/i386/fpu/e_powf.S: Removed.
23682 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23683 * sysdeps/i386/fpu/w_powf.c: Likewise.
23684 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23685 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23686 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23687 Add e_powf-sse2.
23688 (CFLAGS-e_powf-sse2.c): New.
23689 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23690 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23691
23692 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23693
23694 * sysdeps/i386/fpu/e_log2f.S: Removed.
23695 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23696 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23697 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23698 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23699 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23700 Add e_log2f-sse2.
23701 (CFLAGS-e_log2f-sse2.c): New.
23702 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23703 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23704
23705 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23706
23707 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23708 Add e_powf-fma.
23709 (CFLAGS-e_powf-fma.c): New.
23710 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23711 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23712
23713 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23714
23715 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23716 Add e_log2f-fma.
23717 (CFLAGS-e_log2f-fma.c): New.
23718 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23719 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23720
23721 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23722
23723 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23724 Add e_logf-fma.
23725 (CFLAGS-e_logf-fma.c): New.
23726 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23727 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23728
23729 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23730
23731 * sysdeps/i386/fpu/e_logf.S: Removed.
23732 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23733 * sysdeps/i386/fpu/w_logf.c: Likewise.
23734 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23735 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23736 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23737 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23738 Add e_logf-sse2.
23739 (CFLAGS-e_logf-sse2.c): New.
23740 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23741 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23742
23743 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23744
23745 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23746 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23747 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23748 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23749 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23750 Add e_exp2f-sse2.
23751 (CFLAGS-e_exp2f-sse2.c): New.
23752 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23753 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23754
23755 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23756
23757 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23758 Add e_exp2f-fma.
23759 (CFLAGS-e_exp2f-fma.c): New.
23760 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23761 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23762
23763 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23764
23765 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23766 * sysdeps/i386/fpu/e_expf.S: Likewise.
23767 * sysdeps/i386/fpu/math_errf.c: Likewise.
23768 * sysdeps/i386/fpu/w_expf.c: Likewise.
23769 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23770 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23771 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23772 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23773 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23774 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23775 Remove e_expf-ia32.
23776 (CFLAGS-e_expf-sse2.c): New.
23777 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23778 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23779
23780 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23781
23782 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23783 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23784 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23785 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23786 e_expf.c.
23787 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23788 New.
23789 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23790 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23791 Renamed to ...
23792 (__redirect_expf): This.
23793 (SYMBOL_NAME): Changed to expf.
23794 (__ieee754_expf): Renamed to ...
23795 (__expf): This.
23796 (__GI___expf): This.
23797 (__ieee754_expf): Add strong_alias.
23798 (__expf_finite): Likewise.
23799 (__expf): New.
23800 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23801
23802 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23803
23804 [BZ #22332]
23805 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23806 unescaping.
23807
23808 2017-10-21 Florian Weimer <fweimer@redhat.com>
23809
23810 * posix/Makefile (tests): Add tst-glob-tilde.
23811 (tests-special): Add tst-glob-tilde-mem.out
23812 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23813 (tst-glob-tilde-mem.out): Add mtrace check.
23814 * posix/tst-glob-tilde.c: New file.
23815
23816 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23817
23818 * bits/floatn-common.h: New file.
23819 * math/Makefile (headers): Add bits/floatn-common.h.
23820 * bits/floatn.h: Include <bits/floatn-common.h>.
23821 * sysdeps/ia64/bits/floatn.h: Likewise.
23822 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23823 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23824 * sysdeps/powerpc/bits/floatn.h: Likewise.
23825 * sysdeps/x86/bits/floatn.h: Likewise.
23826
23827 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23828
23829 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23830 indicates whether compiler emits an warning for alias for
23831 functions with incompatible types.
23832
23833 [BZ #22273]
23834 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23835 the auxiliary process is terminated by a signal before calling _exit
23836 or execve.
23837
23838 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23839
23840 [BZ #21265]
23841 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23842 New.
23843 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23844 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23845 and bit_arch_XSAVEC_Usable if needed.
23846 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23847 and bit_arch_Use_dl_runtime_resolve_opt.
23848 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23849 Removed.
23850 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23851 (bit_arch_Prefer_No_AVX512): Updated.
23852 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23853 (bit_arch_XSAVEC_Usable): New.
23854 (STATE_SAVE_OFFSET): Likewise.
23855 (STATE_SAVE_MASK): Likewise.
23856 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23857 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23858 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23859 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23860 (index_arch_XSAVEC_Usable): New.
23861 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23862 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23863 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23864 is enabled.
23865 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23866 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23867 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23868 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23869 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23870 _dl_runtime_resolve_xsavec.
23871 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23872 Removed.
23873 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23874 instead of VEC_SIZE.
23875 (REGISTER_SAVE_BND0): Removed.
23876 (REGISTER_SAVE_BND1): Likewise.
23877 (REGISTER_SAVE_BND3): Likewise.
23878 (REGISTER_SAVE_RAX): Always defined to 0.
23879 (VMOV): Removed.
23880 (_dl_runtime_resolve_avx): Likewise.
23881 (_dl_runtime_resolve_avx_slow): Likewise.
23882 (_dl_runtime_resolve_avx_opt): Likewise.
23883 (_dl_runtime_resolve_avx512): Likewise.
23884 (_dl_runtime_resolve_avx512_opt): Likewise.
23885 (_dl_runtime_resolve_sse): Likewise.
23886 (_dl_runtime_resolve_sse_vex): Likewise.
23887 (USE_FXSAVE): New.
23888 (_dl_runtime_resolve_fxsave): Likewise.
23889 (USE_XSAVE): Likewise.
23890 (_dl_runtime_resolve_xsave): Likewise.
23891 (USE_XSAVEC): Likewise.
23892 (_dl_runtime_resolve_xsavec): Likewise.
23893 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23894 Removed.
23895 (_dl_runtime_resolve_avx512_opt): Likewise.
23896 (_dl_runtime_resolve_avx): Likewise.
23897 (_dl_runtime_resolve_avx_opt): Likewise.
23898 (_dl_runtime_resolve_sse): Likewise.
23899 (_dl_runtime_resolve_sse_vex): Likewise.
23900 (_dl_runtime_resolve_fxsave): New.
23901 (_dl_runtime_resolve_xsave): Likewise.
23902 (_dl_runtime_resolve_xsavec): Likewise.
23903
23904 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23905
23906 [BZ #22320]
23907 CVE-2017-15670
23908 * posix/glob.c (__glob): Fix one-byte overflow.
23909
23910 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23911
23912 * malloc/malloc.c (sysdep-cancel.h): Add include.
23913
23914 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23915
23916 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
23917
23918 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
23919
23920 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
23921 (tests): Remove $(objpfx)ga_test depdendency.
23922 * resolv/ga_test.c: Remove file.
23923
23924 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23925
23926 [BZ #18812]
23927 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
23928 * localedata/locales/kab_DZ: New file.
23929
23930 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23931
23932 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
23933 _dl_relocate_static_pie instead of _dl_start to compute load
23934 address in static PIE.
23935
23936 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23937
23938 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
23939
23940 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23941
23942 [BZ #13605]
23943 * localedata/SUPPORTED: Add shn_MM/UTF-8.
23944 * localedata/locales/shn_MM: New file.
23945
23946 2017-10-20 Florian Weimer <fweimer@redhat.com>
23947
23948 [BZ #22321]
23949 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
23950 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
23951 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
23952 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
23953 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
23954 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
23955
23956 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
23957
23958 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
23959
23960 2017-10-19 Joseph Myers <joseph@codesourcery.com>
23961
23962 * sysdeps/mips/ieee754/bits/floatn.h: New file.
23963
23964 [BZ #22322]
23965 * sysdeps/mips/bits/long-double.h: Move to ....
23966 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
23967
23968 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
23969
23970 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
23971
23972 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
23973 H.J. Lu <hongjiu.lu@intel.com>
23974
23975 [BZ #22299]
23976 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
23977 GLRO(dl_platform) to NULL.
23978 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
23979 (modules-names): Add tst-platformmod-1 and
23980 x86_64/tst-platformmod-2.
23981 (CFLAGS-tst-platform-1.c): New.
23982 (CFLAGS-tst-platformmod-1.c): Likewise.
23983 (CFLAGS-tst-platformmod-2.c): Likewise.
23984 (LDFLAGS-tst-platformmod-2.so): Likewise.
23985 ($(objpfx)tst-platform-1): Likewise.
23986 ($(objpfx)tst-platform-1.out): Likewise.
23987 (tst-platform-1-ENV): Likewise.
23988 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
23989 * sysdeps/x86_64/tst-platform-1.c: New file.
23990 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
23991 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
23992
23993 2017-10-19 Mike FABIAN <mfabian@redhat.com>
23994
23995 [BZ #13994]
23996 * locale/iso-639.def: Add Karbi.
23997 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
23998 * localedata/locales/mjw_IN: New file.
23999
24000 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24001
24002 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24003 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24004 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24005 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24006 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24007 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24008 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24009 <bits/floatn.h>.
24010 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24011 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24012 * manual/math.texi (Mathematics): Document additional architecture
24013 support for _Float128.
24014 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24015 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24016 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24017 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24018 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24019 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24020 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24021 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24022 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24023 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24024 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24025 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24026 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24027 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24029
24030 2017-10-18 Renlin Li <renlin.li@arm.com>
24031
24032 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24033 _DYNAMIC symbol to calculate load address.
24034
24035 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24036
24037 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24038 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24039 summary bits.
24040 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24041 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24042
24043 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24044
24045 [BZ #16777]
24046 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24047 and improve readability by using more ASCII.
24048 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24049 and improve readability by using more ASCII.
24050
24051 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24052
24053 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24054 not all targets support atomics on bool.
24055
24056 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24057
24058 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24059 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24060 __f128.
24061 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24062 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24063 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24064 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24065 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24066 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24067
24068 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24069
24070 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24071 defines.
24072
24073 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24074
24075 [BZ #22159]
24076 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24077 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24078 (do_check_remalloced_chunk): Fix build bug.
24079 (do_check_malloc_state): Add assert that checks arena->top.
24080 (malloc_consolidate): Remove initialization.
24081 (int_mallinfo): Remove call to malloc_consolidate.
24082 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24083
24084 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24085
24086 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24087 (have_fastchunks): Remove.
24088 (clear_fastchunks): Remove.
24089 (set_fastchunks): Remove.
24090 (malloc_state): Add have_fastchunks.
24091 (malloc_init_state): Use have_fastchunks.
24092 (do_check_malloc_state): Remove incorrect invariant checks.
24093 (_int_malloc): Use have_fastchunks.
24094 (_int_free): Likewise.
24095 (malloc_consolidate): Likewise.
24096
24097 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24098
24099 * malloc/malloc.c (tcache_put): Inline.
24100 (tcache_get): Inline.
24101
24102 2017-10-17 Jordi Mallach <jordi@gnu.org>
24103
24104 Aurelien Jarno <aurelien@aurel32.net>
24105 [BZ #2522]
24106 * localedata/locales/ca_ES@valencia: New file.
24107 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24108
24109 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24110
24111 [BZ #22296]
24112 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24113 < 6.x
24114
24115 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24116
24117 * scripts/build-many-glibcs.py (Context.add_all_configs):
24118 Add arm-linux-gnueabihf multiarch extra_glibcs.
24119
24120 * sysdeps/generic/ifunc-init.h: New file.
24121 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24122
24123 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24124
24125 [BZ #22019]
24126 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24127 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24128 * stdlib/tst-strfmon_l.c: adapt test case.
24129
24130 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24131
24132 * sysdeps/generic/float128-abi.h: New file.
24133 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24134 non-__prefixed symbols to ....
24135 * math/Versions: ... here. Include <float128-abi.h>.
24136 * stdlib/Versions ... and here. Include <float128-abi.h>
24137
24138 2017-10-16 Florian Weimer <fweimer@redhat.com>
24139
24140 * version.h (VERSION): Switch to ".9000" as the development
24141 version suffix.
24142
24143 2017-10-16 Florian Weimer <fweimer@redhat.com>
24144
24145 [BZ #22050]
24146 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24147 compat_symbol_reference to access non-default version.
24148
24149 2017-10-16 Florian Weimer <fweimer@redhat.com>
24150
24151 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24152
24153 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24154
24155 * include/shlib-compat.h (compat_symbol_reference): Update
24156 comment.
24157
24158 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24159
24160 * math/Makefile (test-types): Add
24161 $(type-float128-$(float128-alias-fcts)).
24162 * math/test-float128.h (TYPE_STR): Define conditional on
24163 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24164 (ULP_IDX): Likewise.
24165 (ULP_I_IDX): Likewise.
24166
24167 * stdlib/strtold.c: Include <bits/floatn.h>
24168 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24169 and later undefine as macro. Define as weak alias if
24170 [!USE_WIDE_CHAR].
24171 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24172 and later undefine as macro. Define as weak alias if
24173 [USE_WIDE_CHAR].
24174 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24175 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24176 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24177 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24178 Define and later undefine as macro. Define as weak alias if
24179 [USE_WIDE_CHAR].
24180 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24181 <bits/floatn.h>.
24182 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24183 Define and later undefine as macro. Define as weak alias if
24184 [!USE_WIDE_CHAR].
24185 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24186 Define and later undefine as macro. Define as weak alias if
24187 [USE_WIDE_CHAR].
24188
24189 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24190
24191 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24192 record_verbose messages.
24193
24194 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24195
24196 [BZ #22052]
24197 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24198 to silence -O3 -Wall warning with GCC 7.
24199
24200 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24201
24202 * Makeconfig (+link-static-before-libc): Use the first of
24203 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24204 * gmon/Makefile (tests): Add tst-gmon-static.
24205 (tests-static): Likewise.
24206 (CFLAGS-tst-gmon-static.c): New.
24207 (CRT-tst-gmon-static): Likewise.
24208 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24209 (tst-gmon-static-ENV): Likewise.
24210 (tests-special): Likewise.
24211 ($(objpfx)tst-gmon-static.out): Likewise.
24212 (clean-tst-gmon-static-data): Likewise.
24213 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24214 * gmon/tst-gmon-static-gprof.sh: New file.
24215 * gmon/tst-gmon-static.c: Likewise.
24216
24217 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24218
24219 [BZ #22295]
24220 * locale/programs/linereader.c (get_string): Don't warn on
24221 non-symbolic character.
24222
24223 [BZ #22294]
24224 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24225 int_curr_symbol.
24226
24227 [BZ #22292]
24228 * locale/programs/record-status.h: New file
24229 * locale/programs/locale.c: Add comment.
24230 * locale/programs/charmap-dir.c: Don't include error.h.
24231 (charmap_opendir): Use record_error.
24232 * locale/programs/charmap.c: Don't include error.h.
24233 (charmap_read): Use record_error, and record_warning.
24234 (parse_charmap): Likewise.
24235 * locale/programs/ld-address.c: Don't include error.h.
24236 (address_finish): Use record_error, and record_warning.
24237 * locale/programs/ld-collate.c: Don't include error.h.
24238 (collate_finish): Use record_error, and record_error_at_line.
24239 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24240 (ctype_class_new): Likewise.
24241 (ctype_map_new): Likewise.
24242 (set_one_default): Likewise.
24243 (set_class_defaults): Likewise.
24244 (translit_flatten): Likewise.
24245 (allocate_arrays): Use record_error, and record_verbose.
24246 * locale/programs/ld-identification.c: Don't include error.h.
24247 (indentation_finish): Use record_error and record_warning.
24248 * locale/programs/ld-measurement.c: Don't include error.h.
24249 (measurement_finish): Use record_error.
24250 * locale/programs/ld-messages.c
24251 (message_finish): Likewise.
24252 * locale/programs/ld-monetary.c
24253 (monetary_finish): Likewise.
24254 * locale/programs/ld-name.c (name_finish): Use record_error
24255 and record_warning.
24256 * locale/programs/ld-numeric.c
24257 (numeric_finish): Use record_error.
24258 * locale/programs/ld-paper.c: Don't include error.h.
24259 (paper_finish): Use record_error.
24260 * locale/programs/ld-telephone.c: Don't include error.h.
24261 (telephone_finish): Use record_error.
24262 * locale/programs/ld-time.c (time_finish): Likewise.
24263 * locale/programs/linereader.h (lr_error): Make inline func.
24264 * locale/programs/localedef.c: Define recorded_warning_count,
24265 and recorded_error_count.
24266 (main): Use record_error. Use recorded_error_count and
24267 recorded_warning_count to issue correct error returns.
24268 (add_to_readlist): Use record_error.
24269 (find_locale): Likewise.
24270 (load_locale): Likewise.
24271 * locale/programs/localedef.h: Remove be_quiet
24272 and WITH_CUR_LOCALE.
24273 * locale/programs/locarchive.c (compare_from_file): Use
24274 record_error.
24275 * locale/programs/locfile.c (write_locale_data): Use
24276 record_error.
24277 * locale/programs/repertoire.c: Dont include error.h.
24278 (repertoire_complain): Use record_error.
24279 * localedata/tst-fmon.sh: Expect failures from localedef.
24280 * localedata/tst-locale.sh: Likewise.
24281 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24282
24283 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24284 (REPORTS): Likewise.
24285 (check): Likewise.
24286 (i18n): Rename to...
24287 (i18n_ctype): ...this.
24288 (i18n-report): Rename to...
24289 (i18n_ctype-report): ...this.
24290 * localedata/locales/i18n_ctype: Regenerate.
24291 * localedata/locales/i18n: copy i18n_ctype.
24292
24293 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24294
24295 * stdlib/strfroml.c: Include <bits/floatn.h>.
24296 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24297 Define before include of <stdlib.h> and undefine afterwards, then
24298 define as weak alias.
24299
24300 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24301 Undefine and restore default definition. Use
24302 libm_alias_ldouble_other.
24303
24304 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24305
24306 [BZ #22153]
24307 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24308 in coredumps.
24309
24310 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24311
24312 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24313 Assign sym_map to be map for local symbols, as TLS relocations
24314 use sym_map to determine whether the symbol is defined and to
24315 extract the TLS information.
24316 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24317 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24318
24319 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24320
24321 [BZ #22189]
24322 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24323 (math_force_eval): Add powerpc version.
24324
24325 [BZ #22142]
24326 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24327 -DBL_MAX.
24328 (do_test): Likewise.
24329 * stdio-common/tst-printf.sh: Likewise.
24330 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24331 ifdef clause in order to set the carry bit right. Replace r0 by
24332 0 without changing the behavior.
24333
24334 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24335
24336 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24337 <libm-alias-ldouble.h>.
24338 (fabsl): Define using libm_alias_ldouble.
24339 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24340 <libm-alias-ldouble.h>.
24341 (fabsl): Define using libm_alias_ldouble.
24342
24343 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24344 Remove conditional code.
24345
24346 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24347 Rename to __clog10_internal_l.
24348 (__clog10_internal_l): Define aliases using
24349 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24350 with __clog10.
24351
24352 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24353
24354 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24355 * benchtests/sincosf-inputs: New file.
24356 * benchtests/cosf-inputs: New file.
24357 * benchtests/sinf-inputs: New file.
24358
24359 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24360
24361 * posix/tst-spawn.c (do_test): Wait for both children.
24362
24363 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24364
24365 [BZ #22284]
24366 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24367 tests-pie): Add tst-gmon-pie.
24368 (CFLAGS-tst-gmon-pie.c): New.
24369 (CRT-tst-gmon-pie): Likewise.
24370 (tst-gmon-pie-ENV): Likewise.
24371 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24372 ($(objpfx)tst-gmon-pie.out): Likewise.
24373 (clean-tst-gmon-pie-data): Likewise.
24374 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24375 * gmon/gmon.c [PIC]: Include <link.h>.
24376 [PIC] (callback): New function.
24377 (write_hist): Add an argument for load address. Subtract load
24378 address from PCs.
24379 (write_call_graph): Likewise.
24380 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24381 it to write_hist and write_call_graph.
24382 * gmon/tst-gmon-pie.c: New file.
24383
24384 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24385
24386 * math/Makefile (test-types-basic): New variable.
24387 (test-types): Likewise.
24388 (libm-test-support): Use $(test-types) instead of $(types).
24389 (libm-tests-base-normal): Likewise.
24390 (libm-tests-base-finite): Likewise.
24391 (libm-tests-base-inline): Likewise.
24392 (generated): Likewise.
24393 ($(objpfx)libm-test-support-$(t).c): Likewise.
24394 (libm-tests-for-type iterator): Likewise.
24395 (libm-test-support iterator): Likewise.
24396 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24397 (ulp_idx): Use ULP_IDX.
24398 * math/test-ldouble.h: Include <float.h>.
24399 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24400 (ULP_IDX): New macro.
24401 (ULP_I_IDX): Likewise.
24402 * math/test-double.h (ULP_IDX): Likewise.
24403 (ULP_I_IDX): Likewise.
24404 * math/test-float.h (ULP_IDX): Likewise.
24405 (ULP_I_IDX): Likewise.
24406 * math/test-float128.h (ULP_IDX): Likewise.
24407 (ULP_I_IDX): Likewise.
24408
24409 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24410
24411 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24412 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24413 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24414 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24415 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24416 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24417 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24418 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24419 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24420 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24421 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24422 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24423 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24424 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24425 (SINGLE_THREAD_BY_GLOBAL): Define.
24426 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24427 Likewise.
24428 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24429 Likewise.
24430 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24431 Likewise.
24432 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24433 Likewise.
24434 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24435 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24436 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24437 Likewise.
24438
24439 2017-10-11 Andreas Schwab <schwab@suse.de>
24440
24441 * nis/Makefile (aux): Remove.
24442 * nscd/Makefile (aux): Add nscd_hash.
24443 (nscd-modules): Likewise.
24444 ($(objpfx)nscd): Don't depend on libnsl.
24445 * nscd/nscd_hash.c: New file.
24446 * nscd/nscd_hash.h: Likewise.
24447 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24448 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24449 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24450 instead of <nis/rpcsvc/nis.h>.
24451 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24452
24453 2017-10-11 Florian Weimer <fweimer@redhat.com>
24454
24455 [BZ #22078]
24456 Avoid large NSS buffers with many addresses, aliases.
24457 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24458 using dynarrays and struct alloc_buffer.
24459 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24460 (tst-nss-files-hosts-multi): Link with -ldl.
24461 * nss/tst-nss-files-hosts-multi.c: New file.
24462
24463 2017-10-11 Florian Weimer <fweimer@redhat.com>
24464
24465 [BZ #18023]
24466 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24467 scratch_buffer. Eliminate gotos.
24468
24469 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24470
24471 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24472 libm_alias_ldouble_other.
24473 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24474 undefine and redefine.
24475 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24476 (exp10l): Do not define here.
24477 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24478 (weak_alias): Undefine and redefine.
24479 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24480 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24481 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24482 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24483
24484 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24485 [!__fma] (fma): Define using libm_alias_double.
24486 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24487 [!__fmaf] (fmaf): Define using libm_alias_float.
24488 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24489 (fmal): Define using libm_alias_ldouble.
24490
24491 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24492
24493 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24494 New macro.
24495 (libm_alias_double_other): Likewise.
24496 (libm_alias_double_r): Use libm_alias_double_other_r.
24497 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24498 New macro.
24499 (libm_alias_float_other): Likewise.
24500 (libm_alias_float_r): Use libm_alias_float_other_r.
24501 * sysdeps/generic/libm-alias-float128.h
24502 (libm_alias_float128_other_r): New macro.
24503 (libm_alias_float128_other): Likewise.
24504 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24505 * sysdeps/generic/libm-alias-ldouble.h
24506 (libm_alias_ldouble_other_r): New macro.
24507 (libm_alias_ldouble_other): Likewise.
24508 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24509 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24510 (libm_alias_double_other_r): New macro.
24511 (libm_alias_double_other): Likewise.
24512 (libm_alias_double_r): Use libm_alias_double_other_r.
24513 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24514 (libm_alias_ldouble_other_r): New macro.
24515 (libm_alias_ldouble_other): Likewise.
24516 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24517 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24518 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24519 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24520 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24521 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24522 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24523 * math/w_exp2f.c: Use libm_alias_float_other.
24524 * math/w_expf.c: Likewise.
24525 * math/w_log2f.c: Likewise.
24526 * math/w_logf.c: Likewise.
24527 * math/w_powf.c: Likewise.
24528 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24529 [!__exp2f]: Use libm_alias_float_other.
24530 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24531 [!__expf]: Use libm_alias_float_other.
24532 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24533 [!__log2f]: Use libm_alias_float_other.
24534 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24535 [!__logf]: Use libm_alias_float_other.
24536 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24537 [!__powf]: Use libm_alias_float_other.
24538
24539 2017-10-10 Florian Weimer <fweimer@redhat.com>
24540
24541 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24542 function.
24543 (_nss_files_gethostbyname3_r): Call it.
24544
24545 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24546
24547 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24548 error. Remove default definition of declare_mgen_alias.
24549 [!declare_mgen_alias_r]: Likewise.
24550 * sysdeps/generic/math-type-macros-double.h
24551 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24552 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24553 (declare_mgen_alias_r): Likewise.
24554 * sysdeps/generic/math-type-macros-float128.h
24555 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24556 * sysdeps/generic/math-type-macros-ldouble.h
24557 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24558 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24559 macro.
24560 (declare_mgen_alias_r_s): Likewise.
24561 (declare_mgen_alias_r): Likewise.
24562 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24563 (lgamma_r): Define using libm_alias_double_r.
24564 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24565 (lgammaf_r): Define using libm_alias_float_r.
24566 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24567 (lgammal_r): Define using libm_alias_ldouble_r.
24568 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24569 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24570
24571 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24572
24573 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24574 extern declaration.
24575
24576 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24577
24578 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24579
24580 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24581
24582 [BZ #21326]
24583 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24584 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24585 * math/Makefile (test-math-cxx11): New test.
24586 * math/test-math-cxx11.cc: New file.
24587
24588 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24589
24590 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24591
24592 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24593 call to allocate the slave pty file descriptor.
24594
24595 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24596
24597 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24598 [!__fma] (fma): Define using libm_alias_double.
24599 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24600 [!__fma] (fma): Define using libm_alias_double.
24601
24602 * sysdeps/ieee754/float128/float128_private.h: Include
24603 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24604 (libm_alias_ldouble_r): Undefine and redefine.
24605 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24606 <libm-alias-ldouble.h>.
24607 (asinhl): Define using libm_alias_ldouble.
24608 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24609 <libm-alias-ldouble.h>.
24610 (atanl): Define using libm_alias_ldouble.
24611 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24612 <libm-alias-ldouble.h>.
24613 (cbrtl): Define using libm_alias_ldouble.
24614 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24615 <libm-alias-ldouble.h>.
24616 (ceill): Define using libm_alias_ldouble.
24617 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24618 <libm-alias-ldouble.h>.
24619 (copysignl): Define using libm_alias_ldouble.
24620 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24621 <libm-alias-ldouble.h>.
24622 (cosl): Define using libm_alias_ldouble.
24623 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24624 <libm-alias-ldouble.h>.
24625 (erfl): Define using libm_alias_ldouble.
24626 (erfcl): Likewise.
24627 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24628 <libm-alias-ldouble.h>.
24629 (expm1l): Define using libm_alias_ldouble.
24630 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24631 <libm-alias-ldouble.h>.
24632 (fabsl): Define using libm_alias_ldouble.
24633 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24634 <libm-alias-ldouble.h>.
24635 (floorl): Define using libm_alias_ldouble.
24636 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24637 <libm-alias-ldouble.h>.
24638 (fmal): Define using libm_alias_ldouble.
24639 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24640 <libm-alias-ldouble.h>.
24641 (frexpl): Define using libm_alias_ldouble.
24642 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24643 libm_alias_ldouble.
24644 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24645 <libm-alias-ldouble.h>.
24646 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24647 libm_alias_ldouble.
24648 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24649 <libm-alias-ldouble.h>.
24650 (getpayloadl): Define using libm_alias_ldouble.
24651 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24652 <libm-alias-ldouble.h>.
24653 (llrintl): Define using libm_alias_ldouble.
24654 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24655 <libm-alias-ldouble.h>.
24656 (llroundl): Define using libm_alias_ldouble.
24657 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24658 <libm-alias-ldouble.h>.
24659 (logbl): Define using libm_alias_ldouble.
24660 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24661 <libm-alias-ldouble.h>.
24662 (lrintl): Define using libm_alias_ldouble.
24663 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24664 <libm-alias-ldouble.h>.
24665 (lroundl): Define using libm_alias_ldouble.
24666 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24667 <libm-alias-ldouble.h>.
24668 (modfl): Define using libm_alias_ldouble.
24669 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24670 <libm-alias-ldouble.h>.
24671 (nearbyintl): Define using libm_alias_ldouble.
24672 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24673 <libm-alias-ldouble.h>.
24674 (nextafterl): Define using libm_alias_ldouble.
24675 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24676 <libm-alias-ldouble.h>.
24677 (nextupl): Define using libm_alias_ldouble.
24678 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24679 <libm-alias-ldouble.h>.
24680 (remquol): Define using libm_alias_ldouble.
24681 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24682 <libm-alias-ldouble.h>.
24683 (rintl): Define using libm_alias_ldouble.
24684 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24685 <libm-alias-ldouble.h>.
24686 (roundevenl): Define using libm_alias_ldouble.
24687 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24688 <libm-alias-ldouble.h>.
24689 (roundl): Define using libm_alias_ldouble.
24690 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24691 using libm_alias_ldouble.
24692 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24693 <libm-alias-ldouble.h>.
24694 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24695 Define using libm_alias_ldouble.
24696 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24697 <libm-alias-ldouble.h>.
24698 (sincosl): Define using libm_alias_ldouble.
24699 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24700 <libm-alias-ldouble.h>.
24701 (sinl): Define using libm_alias_ldouble.
24702 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24703 <libm-alias-ldouble.h>.
24704 (tanhl): Define using libm_alias_ldouble.
24705 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24706 <libm-alias-ldouble.h>.
24707 (tanl): Define using libm_alias_ldouble.
24708 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24709 <libm-alias-ldouble.h>.
24710 (totalorderl): Define using libm_alias_ldouble.
24711 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24712 <libm-alias-ldouble.h>.
24713 (totalordermagl): Define using libm_alias_ldouble.
24714 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24715 <libm-alias-ldouble.h>.
24716 (truncl): Define using libm_alias_ldouble.
24717 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24718 libm_alias_ldouble.
24719 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24720 libm_alias_ldouble.
24721 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24722 <libm-alias-ldouble.h>.
24723 (weak_alias): Do not undefine and redefine.
24724 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24725 (copysignl): Define with long_double_symbol only if [IS_IN
24726 (libc)].
24727 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24728 <libm-alias-ldouble.h>.
24729 (weak_alias): Do not undefine and redefine.
24730 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24731 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24732 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24733 <libm-alias-ldouble.h>.
24734 (weak_alias): Do not undefine and redefine.
24735 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24736 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24737 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24738 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24739 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24740 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24741 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24742 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24743 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24744 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24745 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24746 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24747 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24748 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24749 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24750 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24751 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24752 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24753 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24754 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24755 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24756 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24757 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24758 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24759 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24760 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24761
24762 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24763
24764 [BZ #22111]
24765 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24766 (tcache_thread_freeres): Set tcache_shutting_down before
24767 freeing the tcache.
24768 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24769 * malloc/tst-malloc-tcache-leak.c: New file.
24770
24771 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24772
24773 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24774 back to powerpc32 file.
24775 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24776 (memrchr): Add __memrchr_power8 to ifunc list.
24777 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24778 extra bytes for unaligned inputs.
24779
24780 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24781
24782 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24783 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24784 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24785 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24786 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24787
24788 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24789
24790 * sysdeps/arm/libm-test-ulps: Update.
24791
24792 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24793 <libm-alias-ldouble.h>.
24794 (asinhl): Define using libm_alias_ldouble.
24795 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24796 <libm-alias-ldouble.h>.
24797 (cbrtl): Define using libm_alias_ldouble.
24798 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24799 <libm-alias-ldouble.h>.
24800 (copysignl): Define using libm_alias_ldouble.
24801 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24802 <libm-alias-ldouble.h>.
24803 (cosl): Define using libm_alias_ldouble.
24804 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24805 <libm-alias-ldouble.h>.
24806 (erfl): Define using libm_alias_ldouble.
24807 (erfcl): Likewise.
24808 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24809 <libm-alias-ldouble.h>.
24810 (fmal): Define using libm_alias_ldouble.
24811 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24812 <libm-alias-ldouble.h>.
24813 (frexpl): Define using libm_alias_ldouble.
24814 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24815 libm_alias_ldouble.
24816 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24817 <libm-alias-ldouble.h>.
24818 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24819 libm_alias_ldouble.
24820 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24821 <libm-alias-ldouble.h>.
24822 (getpayloadl): Define using libm_alias_ldouble.
24823 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24824 <libm-alias-ldouble.h>.
24825 (llrintl): Define using libm_alias_ldouble.
24826 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24827 <libm-alias-ldouble.h>.
24828 (llroundl): Define using libm_alias_ldouble.
24829 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24830 <libm-alias-ldouble.h>.
24831 (lrintl): Define using libm_alias_ldouble.
24832 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24833 <libm-alias-ldouble.h>.
24834 (lroundl): Define using libm_alias_ldouble.
24835 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (modfl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24839 <libm-alias-ldouble.h>.
24840 (nextupl): Define using libm_alias_ldouble.
24841 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24842 <libm-alias-ldouble.h>.
24843 (remquol): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24845 <libm-alias-ldouble.h>.
24846 (roundevenl): Define using libm_alias_ldouble.
24847 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24848 <libm-alias-ldouble.h>.
24849 (roundl): Define using libm_alias_ldouble.
24850 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24851 using libm_alias_ldouble.
24852 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24853 <libm-alias-ldouble.h>.
24854 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24855 <libm-alias-ldouble.h>.
24856 (setpayloadsigl): Define using libm_alias_ldouble.
24857 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24858 <libm-alias-ldouble.h>.
24859 (sincosl): Define using libm_alias_ldouble.
24860 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24861 <libm-alias-ldouble.h>.
24862 (sinl): Define using libm_alias_ldouble.
24863 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24864 <libm-alias-ldouble.h>.
24865 (tanhl): Define using libm_alias_ldouble.
24866 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24867 <libm-alias-ldouble.h>.
24868 (tanl): Define using libm_alias_ldouble.
24869 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24870 <libm-alias-ldouble.h>.
24871 (totalorderl): Define using libm_alias_ldouble.
24872 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24873 <libm-alias-ldouble.h>.
24874 (totalordermagl): Define using libm_alias_ldouble.
24875 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24876 libm_alias_ldouble.
24877 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24878 libm_alias_ldouble.
24879
24880 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24881
24882 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24883 memmove_falkor.
24884 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24885 (__libc_ifunc_impl_list): Likewise.
24886 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24887 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24888
24889 * benchtests/bench-memmove-walk.c: New file.
24890 * benchtests/Makefile (string-benchset): Add it.
24891
24892 * benchtests/bench-memset-walk.c: New file.
24893 * benchtests/Makefile (string-benchset): Add it.
24894
24895 * benchtests/bench-memcpy-walk.c: New file.
24896 * benchtests/Makefile (string-benchset): Add it.
24897
24898 2017-10-05 Florian Weimer <fweimer@redhat.com>
24899
24900 nscd: Eliminate compilation time dependency in the build output.
24901 * nscd/nscd_stat.c (STATDATA_VERSION)
24902 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24903 (STATDATA_VERSION_FULL): New macro definitions.
24904 (compilation): Remove.
24905 (struct statdata): Adjust version member.
24906 (send_stats): Set version from STATDATA_VERSION_FULL.
24907 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24908
24909 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24910
24911 * configure.ac (--enable-add-ons): Remove option.
24912 (machine): Do not mention add-ons in comment.
24913 (LIBC_PRECONFIGURE): Likewise.
24914 (add_ons): Remove variable and sanity checks and logic to locate
24915 add-ons.
24916 (add_ons_automatic): Remove variable.
24917 (configured_add_ons): Likewise.
24918 (add_ons_sfx): Likewise.
24919 (add_ons_pfx): Likewise.
24920 (add_on_subdirs): Likewise.
24921 (sysnames_add_ons): Likewise. Remove loop over add-ons and
24922 consideration of add-ons in Implies handling.
24923 (sysdeps_add_ons): Likewise.
24924 * configure: Regenerated.
24925 * libidn/configure.ac: Remove.
24926 * libidn/configure: Likewise.
24927 * sysdeps/unix/inet/configure.ac: New file.
24928 * sysdeps/unix/inet/configure: New generated file.
24929 * sysdeps/unix/inet/Subdirs: Add libidn.
24930 * Makeconfig (sysdeps-srcdirs): Remove variable.
24931 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
24932 ($(common-objpfx)config.status): Do not depend on add-on files.
24933 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
24934 comment.
24935 (all-subdirs): Do not include $(add-on-subdirs).
24936 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
24937 * config.make.in (add-ons): Remove variable.
24938 (add-on-subdirs): Likewise.
24939 (sysdeps-add-ons): Likewise.
24940 * manual/Makefile (add-chapters): Remove.
24941 ($(objpfx)texis): Do not depend on $(add-chapters).
24942 (nonexamples): Do not handle $(add-chapters).
24943 (examples): Do not handle $(add-ons).
24944 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
24945 libc-texinfo.sh.
24946 * manual/install.texi (Installation): Do not mention add-ons.
24947 (--enable-add-ons): Do not document configure option.
24948 * INSTALL: Regenerated.
24949 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
24950 * manual/maint.texi (Hierarchy Conventions): Do not mention
24951 add-ons.
24952 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
24953 --enable-add-ons.
24954 * scripts/gen-sorted.awk: Do not handle Subdirs files from
24955 add-ons.
24956 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
24957 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
24958
24959 2017-10-05 Andreas Schwab <schwab@suse.de>
24960
24961 [BZ #15142]
24962 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
24963 (_IO_flush_all_lockp): Always lock list_all_lock.
24964 (_IO_flush_all_linebuffered): Likewise.
24965 (_IO_unbuffer_all): Likewise.
24966
24967 2017-10-05 Florian Weimer <fweimer@redhat.com>
24968
24969 [BZ #15436]
24970 Do not flush stdio streams on abort.
24971 * stdlib/abort.c (fflush): Remove macro definition.
24972 (abort): Remove stages related to stdio flushing.
24973
24974 2017-10-05 Florian Weimer <fweimer@redhat.com>
24975
24976 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
24977
24978 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
24979
24980 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
24981
24982 2017-10-05 Florian Weimer <fweimer@redhat.com>
24983
24984 * support/support_format_hostent.c (support_format_hostent): Add
24985 more error information for NETDB_INTERNAL.
24986
24987 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24988
24989 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
24990 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
24991 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
24992 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
24993 AC_DEFINE if multi-arch is enabled.
24994 * sysdeps/i386/configure: Regenerated.
24995
24996 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24997
24998 * Makeconfig (+link-static-before-libc): Use
24999 $(DEFAULT-LDFLAGS-$(@F)).
25000 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25001 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25002 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25003
25004 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25005
25006 * elf/Makefile (tests): Add tst-main1.
25007 (modules-names): Add tst-main1mod.
25008 ($(objpfx)tst-main1): New.
25009 (CRT-tst-main1): Likewise.
25010 (LDFLAGS-tst-main1): Likewise.
25011 (LDLIBS-tst-main1): Likewise.
25012 (tst-main1mod.so-no-z-defs): Likewise.
25013 * elf/tst-main1.c: New file.
25014 * elf/tst-main1mod.c: Likewise.
25015
25016 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25017
25018 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25019
25020 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25021
25022 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25023 (fma): Define using libm_alias_double.
25024 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25025 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25026 <math_ldbl_opt.h>.
25027 (fmal): Do not define as compat symbol here.
25028 * sysdeps/alpha/fpu/s_fma.c: New file.
25029
25030 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25031
25032 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25033
25034 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25035
25036 [BZ #22229]
25037 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25038 <math_ldbl_opt.h>
25039 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25040 and libc.
25041 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25042 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25043 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25044 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25046 Include <math_ldbl_opt.h>
25047 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25048 and libc.
25049 (compat_symbol): Undefine and redefine.
25050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25051 <math_ldbl_opt.h>
25052 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25053 (compat_symbol): Undefine and redefine.
25054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25055 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25056 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25057 GLIBC_2_1 for libm.
25058 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25059 GLIBC_2.0 copysignl symbol.
25060 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25061 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25062
25063 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25064
25065 2017-10-04 Florian Weimer <fweimer@redhat.com>
25066
25067 * scripts/check-local-headers.sh: Ignore nspr4 header file
25068 directory in addition to nspr.
25069
25070 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25071
25072 [BZ #17956]
25073 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25074 * configure: Regenerate.
25075 * crypt/Makefile (nss-cpp-flags): New variable.
25076 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25077 (CPPFLAGS-md5-crypt.c): Use it.
25078 * scripts/check-local-headers.sh: Ignore nspr header file
25079 directory.
25080
25081 2017-10-04 Andreas Schwab <schwab@suse.de>
25082
25083 * nis/Makefile (services): Remove compat.
25084 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25085 ($(objpfx)libnss_compat.so): Remove rule.
25086 * nis/Versions (libnss_compat): Remove.
25087 * nss/Makefile (services): Add compat.
25088 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25089 * nss/Versions (libnss_compat): Define.
25090 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25091 Don't include <rpc/types.h>. Replace bool_t by bool.
25092 * nss/nss_compat/compat-initgroups.c: Likewise.
25093 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25094 instead of <rpcsrv/ypclnt.h>.
25095 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25096 yp_get_default_domain.
25097 * nss/nss_compat/compat-pwd.c: Likewise.
25098 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25099 yp_get_default_domain.
25100 * nss/nss_compat/nisdomain.c: New file.
25101 * nss/nss_compat/nisdomain.h: Likewise.
25102
25103 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25104
25105 [BZ #22244]
25106 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25107 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25108
25109 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25110
25111 [BZ #22243]
25112 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25113 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25114
25115 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25116
25117 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25118 "movl main@GOTOFF(%ebx), %eax".
25119
25120 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25121
25122 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25123 allow undefined _DYNAMIC in PIE libc.a.
25124 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25125 Likewse.
25126
25127 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25128
25129 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25130 check _DYNAMIC.
25131
25132 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25133
25134 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25135 check _DYNAMIC.
25136
25137 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25138
25139 * math/test-math-iscanonical.cc (error): Replace bool with int.
25140
25141 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25142
25143 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25144 (modf): Define using libm_alias_double, only if [!__modf].
25145 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25146 <libm-alias-double.h>.
25147 (modf): Define using libm_alias_double, only if [!__modf].
25148 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25149 compat symbol here.
25150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25151 (weak_alias): Do not undefine and redefine.
25152 (strong_alias): Likewise.
25153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25154 (weak_alias): Likewise.
25155 (strong_alias): Likewise.
25156
25157 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25158 (logb): Define using libm_alias_double, only if [!__logb].
25159 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25160 <libm-alias-double.h>.
25161 (logb): Define using libm_alias_double, only if [!__logb].
25162 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25163 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25164 (weak_alias): Do not undefine and redefine.
25165 (strong_alias): Likewise.
25166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25167 (weak_alias): Likewise.
25168 (strong_alias): Likewise.
25169
25170 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25171
25172 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25173 Check SHARED instead PIC.
25174
25175 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25176
25177 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25178 [!__fmaf] (fmaf): Define using libm_alias_float.
25179
25180 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25181 (frexp): Define using libm_alias_double.
25182 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25183 <libm-alias-double.h>.
25184 (frexp): Define using libm_alias_double.
25185 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25186 compat symbol here.
25187
25188 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25189
25190 [BZ #22235]
25191 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25192 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25193 (CFLAGS-test-math-iscanonical.cc): New variable.
25194 * math/test-math-iscanonical.cc: New file.
25195 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25196 Provide a C++ implementation based on function overloading,
25197 rather than using __MATH_TG, which uses C-only builtins.
25198 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25199 Likewise.
25200 * sysdeps/powerpc/powerpc64le/Makefile
25201 (CFLAGS-test-math-iscanonical.cc): New variable.
25202
25203 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25204
25205 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25206 (ceil): Define using libm_alias_double.
25207 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25208 (floor): Define using libm_alias_double.
25209 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25210 <libm-alias-double.h>.
25211 (llround): Define using libm_alias_double.
25212 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25213 <libm-alias-double.h>.
25214 (lround): Define using libm_alias_double.
25215 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25216 <libm-alias-double.h>.
25217 (nearbyint): Define using libm_alias_double.
25218 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25219 <libm-alias-double.h>.
25220 (remquo): Define using libm_alias_double.
25221 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25222 (rint): Define using libm_alias_double.
25223 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25224 (round): Define using libm_alias_double.
25225 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25226 (trunc): Define using libm_alias_double.
25227 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25228 <libm-alias-double.h>.
25229 (ceil): Define using libm_alias_double.
25230 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25231 <libm-alias-double.h>.
25232 (floor): Define using libm_alias_double.
25233 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25234 <libm-alias-double.h>.
25235 (llround): Define using libm_alias_double.
25236 [_LP64] (lround): Likewise.
25237 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25238 <libm-alias-double.h>.
25239 [!_LP64] (lround): Define using libm_alias_double.
25240 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25241 <libm-alias-double.h>.
25242 (nearbyint): Define using libm_alias_double.
25243 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25244 <libm-alias-double.h>.
25245 (remquo): Define using libm_alias_double.
25246 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25247 <libm-alias-double.h>.
25248 (rint): Define using libm_alias_double.
25249 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25250 <libm-alias-double.h>.
25251 (round): Define using libm_alias_double.
25252 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25253 <libm-alias-double.h>.
25254 (trunc): Define using libm_alias_double.
25255 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25256 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25257 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25258 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25259 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25260 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25261 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25262 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25263 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25264
25265 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25266
25267 * math/w_remainder.c: New file.
25268 * math/w_remainderf.c: New file.
25269 * math/w_remainderl.c: New file.
25270
25271 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25272
25273 * elf/rtld.c (BOOTSTRAP_MAP): New.
25274 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25275 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25276 Likewise.
25277 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25278 Likewise.
25279 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25280 Likewise.
25281
25282 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25283
25284 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25285 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25286 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25287 rtld_hidden_data_ver): Define to empty.
25288 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25289 __assert_perror_fail): Likewise.
25290 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25291 (__rewinddir): Likewise.
25292 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25293 (__profile_frequency): Likewise.
25294 * include/setjmp.h (__sigsetjmp): Likewise.
25295 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25296 __libc_sigaction): Likewise.
25297 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25298 not set hidden attribute.
25299 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25300 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25301 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25302 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25303 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25304 __fxstatat64): Likewise.
25305 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25306 (__uname): Likewise.
25307 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25308 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25309 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25310 (NO_RTLD_HIDDEN): Set.
25311 * sysdeps/mach/hurd/configure: Refresh.
25312 * config.h.in: Refresh.
25313
25314 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25315
25316 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25317 (atan): Define using libm_alias_double.
25318 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25319 (tan): Define using libm_alias_double.
25320 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25321 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25322
25323 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25324 define as weak alias of __atan. Do not define any aliases if
25325 [__atan].
25326 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25327 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25328 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25329 as weak alias of __tan. Do not define any aliases if [__tan].
25330 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25331 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25332 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25333 __atan.
25334 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25335 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25336 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25337 and define as weak alias of __atan.
25338 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25339 __atan.
25340 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25341 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25342 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25343 define as weak alias of __tan.
25344
25345 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25346
25347 * math/w_lgamma.c: New file.
25348 * math/w_lgammaf.c: New file.
25349 * math/w_lgammal.c: New file.
25350
25351 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25352
25353 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25354 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25355 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25356 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25357 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25358 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25359 * sysdeps/i386/fpu/w_log2f.c: New file.
25360 * sysdeps/i386/fpu/w_logf.c: New file.
25361 * sysdeps/i386/fpu/w_powf.c: New file.
25362 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25363 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25364 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25365
25366 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25367 H.J. Lu <hongjiu.lu@intel.com>
25368
25369 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25370 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25371 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25372 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25373 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25374 the new expf code.
25375 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25376 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25377 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25378 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25379 * sysdeps/i386/fpu/w_exp2f.c: New file.
25380 * sysdeps/i386/fpu/w_expf.c: New file.
25381 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25382 * sysdeps/x86_64/fpu/w_expf.c: New file.
25383
25384 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25385
25386 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25387 (log2f): Likewise.
25388 (powf): Likewise.
25389 * math/w_log2f.c: New file.
25390 * math/w_logf.c: New file.
25391 * math/w_powf.c: New file.
25392 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25393 * math/w_logf_compat.c (__logf_compat): Likewise.
25394 * math/w_powf_compat.c (__powf_compat): Likewise.
25395 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25396 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25397 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25398 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25399 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25400 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25401 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25402 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25403 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25404 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25405 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25406 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25407 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25408 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25409 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25411 Likewise.
25412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25413 Likewise.
25414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25415 Likewise.
25416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25417 Likewise.
25418 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25419 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25420 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25421 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25422 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25423 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25424 Likewise.
25425 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25426 Likewise.
25427 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25428 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25429 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25430
25431 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25432
25433 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25434 (sysdep_routines): Add memrchr_power8.
25435 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25436 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25437 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25438 New file.
25439 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25440 (memrchr): Add __memrchr_power8 to ifunc list.
25441 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25442
25443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25444
25445 [BZ #18822]
25446 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25447 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25448 libc_hidden_def.
25449 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25450 (__posix_fallocate64_l64): Likewise.
25451
25452 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25453
25454 [BZ #18822]
25455 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25456 (__sched_setaffinity_new): Add libc_hidden_proto and
25457 libc_hidden_def.
25458
25459 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25460
25461 [BZ #18822]
25462 * include/glob.h (__glob64): Add libc_hidden_proto.
25463 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25464 libc_hidden_def.
25465
25466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25467
25468 [BZ #18822]
25469 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25470 attribute_hidden.
25471
25472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25473
25474 [BZ #18822]
25475 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25476
25477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25478
25479 [BZ #18822]
25480 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25481 libc_hidden_def.
25482
25483 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25484
25485 [BZ #18822]
25486 * csu/version.c (__libc_print_version): Add attribute_hidden.
25487
25488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25489
25490 [BZ #18822]
25491 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25492
25493 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25494
25495 [BZ #18822]
25496 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25497
25498 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25499
25500 [BZ #18822]
25501 * nscd/nscd_helper.c (__nis_hash): New prototype.
25502
25503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25504
25505 [BZ #18822]
25506 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25507 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25508 libc_hidden_def.
25509 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25510 * termios/tcgetattr.c (__tcgetattr): Likewise.
25511
25512 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25513
25514 [BZ #18822]
25515 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25516 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25517 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25518 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25519 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25520
25521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25522
25523 [BZ #18822]
25524 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25525
25526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25527
25528 [BZ #18822]
25529 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25530 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25531
25532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25533
25534 [BZ #18822]
25535 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25536
25537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25538
25539 [BZ #18822]
25540 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25541 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25542
25543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25544
25545 [BZ #18822]
25546 * include/ifreq.h: New file.
25547 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25548 (__ifreq): Likewise.
25549 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25550 (__ifreq): Likewise.
25551
25552 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25553
25554 [BZ #18822]
25555 * include/idna.h: New file.
25556 * inet/getnameinfo.c: Include <idna.h> instead of
25557 <libidn/idna.h>.
25558 (__idna_to_unicode_lzlz): Removed.
25559 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25560 <libidn/idna.h>.
25561 (__idna_to_ascii_lz): Removed.
25562 (__idna_to_unicode_lzlz): Likewise.
25563
25564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25565
25566 [BZ #18822]
25567 * include/plural-exp.h: New file.
25568 * intl/plural-exp.c: Include <plural-exp.h> instead of
25569 "plural-exp.h".
25570
25571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25572
25573 [BZ #18822]
25574 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25575 "getsourcefilter.h".
25576 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25577 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25578 "getsourcefilter.h".
25579 (__get_sol): Removed.
25580
25581 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25582
25583 [BZ #18822]
25584 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25585 to ...
25586 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25587
25588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25589
25590 [BZ #18822]
25591 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25592 attribute_hidden.
25593
25594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25595
25596 [BZ #18822]
25597 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25598
25599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25600
25601 [BZ #18822]
25602 * include/search.h (__tdestroy): Add libc_hidden_proto.
25603 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25604
25605 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25606
25607 [BZ #18822]
25608 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25609
25610 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25611
25612 [BZ #18822]
25613 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25614 attribute_hidden.
25615
25616 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25617
25618 [BZ #18822]
25619 * include/signal.h (__kill): Add libc_hidden_proto.
25620 (__sigblock): Likewise.
25621 (__sigprocmask): Likewise.
25622 (__sigaltstack): Likewise.
25623 * signal/kill.c (__kill): Add libc_hidden_def.
25624 * signal/sigblock.c (__sigblock): Likewise.
25625 * signal/sigprocmask.c (__sigprocmask): Likewise.
25626 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25627 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25628 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25629 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25630 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25631 Likewise.
25632 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25633 Likewise.
25634 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25635 (__sigprocmask): Likewise.
25636 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25637 Likewise.
25638 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25639 (__sigprocmask): Likewise.
25640 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25641 Likewise.
25642
25643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25644
25645 [BZ #18822]
25646 * include/string.h (__strsep): Add libc_hidden_proto.
25647 * string/strsep.c (__strsep): Add libc_hidden_def.
25648
25649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25650
25651 [BZ #18822]
25652 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25653 attribute_hidden.
25654 (__spawni): Likewise.
25655
25656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 [BZ #18822]
25659 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25660 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25661 libc_hidden_def.
25662
25663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25664
25665 [BZ #18822]
25666 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25667
25668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25669
25670 [BZ #18822]
25671 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25672 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25673 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25674 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25675 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25676 Likewise.
25677 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25678 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25679
25680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25681
25682 [BZ #18822]
25683 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25684 (__dcigettext): Likewise.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25690 libc_hidden_proto.
25691 (__get_nprocs): Likewise.
25692 (__get_phys_pages): Likewise.
25693 (__get_avphys_pages): Likewise.
25694 (__get_child_max): Add attribute_hidden.
25695 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25696 (__get_nprocs): Likewise.
25697 (__get_phys_pages): Likewise.
25698 (__get_avphys_pages): Likewise.
25699 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25700 libc_hidden_def.
25701 (__get_nprocs): Likewise.
25702 (__get_phys_pages): Likewise.
25703 (__get_avphys_pages): Likewise.
25704 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25705 libc_hidden_def.
25706 (__get_nprocs_conf): Likewise.
25707 (__get_phys_pages): Likewise.
25708 (__get_avphys_pages): Likewise.
25709
25710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25711
25712 [BZ #18822]
25713 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25714 attribute_hidden.
25715 (__netlink_close): Likewise.
25716 (__netlink_free_handle): Likewise.
25717 (__netlink_request): Likewise.
25718
25719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25720
25721 [BZ #18822]
25722 * include/rpc/rpc.h (__rpc_thread_variables): Add
25723 attribute_hidden.
25724 (__rpc_thread_svc_cleanup): Likewise.
25725 (__rpc_thread_clnt_cleanup): Likewise.
25726 (__rpc_thread_key_cleanup): Likewise.
25727
25728 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25729
25730 [BZ #18822]
25731 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25732 (__writev): Likewise.
25733 * misc/readv.c (__readv): Add libc_hidden_def.
25734 * misc/writev.c (__writev): Likewise.
25735 * sysdeps/posix/readv.c (__readv): Likewise.
25736 * sysdeps/posix/writev.c (__writev): Likewise.
25737 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25738 (__readv): Likewise.
25739 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25740 (__writev): Likewise.
25741
25742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25743
25744 [BZ #18822]
25745 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25746 (__regcomp): Add libc_hidden_proto.
25747 (__regexec): Likewise.
25748 (__regfree): Likewise.
25749 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25750 (__regfree): Likewise.
25751 * posix/regexec.c (__regexec): Likewise.
25752
25753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25754
25755 [BZ #18822]
25756 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25757 (__getutent): Likewise.
25758 (__getutid): Likewise.
25759 (__getutline): Likewise.
25760 (__pututline): Likewise.
25761 (__getutent_r): Likewise.
25762 (__getutid_r): Likewise.
25763 (__getutline_r): Likewise.
25764 (__utmpname): Add attribute_hidden.
25765 (__setutent): Likewise.
25766 (__endutent): Likewise.
25767 * login/getutent.c (__getutent): Add libc_hidden_def.
25768 * login/getutent_r.c (__getutent_r): Likewise.
25769 (__pututline): Likewise.
25770 * login/getutid.c (__getutid): Likewise.
25771 * login/getutid_r.c (__getutid_r): Likewise.
25772 * login/getutline.c (__getutline): Likewise.
25773 * login/getutline_r.c (__getutline_r): Likewise.
25774 * login/updwtmp.c (__updwtmp): Likewise.
25775
25776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 [BZ #18822]
25779 * include/dirent.h (__opendir): Always add attribute_hidden.
25780 (__fdopendir): Likewise.
25781 (__closedir): Likewise.
25782 (__readdir): Likewise.
25783 (__readdir64): Add libc_hidden_proto.
25784 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25785 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25786 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25787 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25788 New alias.
25789
25790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25791
25792 [BZ #18822]
25793 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25794 * include/netdb.h (__gethostbyaddr_r): Likewise.
25795 (__gethostbyname_r): Likewise.
25796 (__gethostbyname2_r): Likewise.
25797 (__getnetbyaddr_r): Likewise.
25798 (__getnetbyname_r): Likewise.
25799 (__getservbyname_r): Likewise.
25800 (__getservbyport_r): Likewise.
25801 (__getprotobyname_r): Likewise.
25802 (__getprotobynumber_r): Likewise.
25803 (__getnetgrent_r): Likewise.
25804 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25805 (__getrpcbynumber_r): Likewise.
25806 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25807
25808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 [BZ #18822]
25811 * include/stdio.h (__fcloseall): Add attribute_hidden.
25812 (__getline): Likewise.
25813 (__path_search): Likewise.
25814 (__gen_tempname): Likewise.
25815 (__libc_message): Likewise.
25816 (__flockfile): Likewise.
25817 (__funlockfile): Likewise.
25818 (__fxprintf): Likewise.
25819 (__fxprintf_nocancel): Likewise.
25820
25821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25822
25823 [BZ #18822]
25824 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25825 (__sgetsgent_r): Likewise.
25826
25827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25828
25829 [BZ #18822]
25830 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25831 (__statfs64): Likewise.
25832 (__fstatfs64): Likewise.
25833 * include/sys/statvfs.h (__statvfs64): Likewise.
25834 (__fstatvfs64): Likewise.
25835 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25836 (__statfs_filesize_max): Likewise.
25837 (__statfs_symlinks): Likewise.
25838 (__statfs_chown_restricted): Likewise.
25839
25840 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25841
25842 [BZ #18822]
25843 * include/time.h (__tzstring): Add attribute_hidden.
25844 (__tzfile_read): Likewise.
25845 (__tzfile_compute): Likewise.
25846 (__tzfile_default): Likewise.
25847 (__tzset_parse_tz): Likewise.
25848 (__offtime): Likewise.
25849 (__asctime_r): Likewise.
25850 (__tzset): Likewise.
25851 (__tz_convert): Likewise.
25852 (__getdate_r): Likewise.
25853 (__getclktck): Likewise.
25854
25855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25856
25857 [BZ #18822]
25858 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25859 (__nscd_unmap): Likewise.
25860 (__nscd_cache_search): Likewise.
25861 (__nscd_get_nl_timestamp): Likewise.
25862 (__nscd_getpwnam_r): Likewise.
25863 (__nscd_getpwuid_r): Likewise.
25864 (__nscd_getgrnam_r): Likewise.
25865 (__nscd_getgrgid_r): Likewise.
25866 (__nscd_gethostbyname_r): Likewise.
25867 (__nscd_gethostbyname2_r): Likewise.
25868 (__nscd_gethostbyaddr_r): Likewise.
25869 (__nscd_getai): Likewise.
25870 (__nscd_getgrouplist): Likewise.
25871 (__nscd_getservbyname_r): Likewise.
25872 (__nscd_getservbyport_r): Likewise.
25873 (__nscd_innetgr): Likewise.
25874 (__nscd_setnetgrent): Likewise.
25875
25876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25877
25878 [BZ #18822]
25879 * include/gmp.h: Declare internal functions only if _ISOMAC is
25880 undefined.
25881 (__mpn_extract_double): Add attribute_hidden.
25882 (__mpn_extract_long_double): Likewise.
25883 (__mpn_extract_float128): Likewise.
25884 (__mpn_construct_float): Likewise.
25885 (__mpn_construct_double): Likewise.
25886 (__mpn_construct_long_double): Likewise.
25887 (__mpn_construct_float128): Likewise.
25888 (mpn_add_1): Likewise.
25889 (mpn_addmul_1): Likewise.
25890 (mpn_add_n): Likewise.
25891 (mpn_cmp): Likewise.
25892 (mpn_divrem): Likewise.
25893 (mpn_lshift): Likewise.
25894 (mpn_mul): Likewise.
25895 (mpn_mul_1): Likewise.
25896 (mpn_rshift): Likewise.
25897 (mpn_sub_1): Likewise.
25898 (mpn_submul_1): Likewise.
25899 (mpn_sub_n): Likewise.
25900
25901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25902
25903 [BZ #18822]
25904 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25905 (__wcscat): Likewise.
25906 (__btowc): Likewise.
25907 (__wcrtomb): Likewise.
25908 (__mbsrtowcs): Likewise.
25909 (__wcsrtombs): Likewise.
25910 (__mbsnrtowcs): Likewise.
25911 (__wcsnrtombs): Likewise.
25912 (__wcsncpy): Likewise.
25913 (__wcpncpy): Likewise.
25914 (__wmemcpy): Likewise.
25915 (__wmempcpy): Likewise.
25916 (__wmemmove): Likewise.
25917 (__wcschrnul): Likewise.
25918 (__vfwscanf): Likewise.
25919 (__vswprintf): Likewise.
25920 (__fwprintf): Likewise.
25921 (__vfwprintf): Likewise.
25922
25923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25924
25925 [BZ #18822]
25926 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
25927 (__getgrgid_r): Likewise.
25928 (__getgrnam_r): Likewise.
25929 * include/pwd.h (__getpwuid_r): Likewise.
25930 (__getpwnam_r): Likewise.
25931 (__fgetpwent_r): Likewise.
25932 * include/shadow.h (__getspnam_r): Likewise.
25933 (__sgetspent_r): Likewise.
25934 (__fgetspent_r): Likewise.
25935
25936 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25937
25938 [BZ #18822]
25939 * include/unistd.h (__access): Add attribute_hidden.
25940 (__lseek64): Likewise.
25941 (__libc_pread64): Likewise.
25942 (__pipe2): Likewise.
25943 (__sleep): Likewise.
25944 (__chdir): Likewise.
25945 (__fchdir): Likewise.
25946 (__getcwd): Likewise.
25947 (__rmdir): Likewise.
25948 (__execvpe): Likewise.
25949 (__execve): Likewise.
25950 (__setsid): Likewise.
25951 (__getuid): Likewise.
25952 (__geteuid): Likewise.
25953 (__getgid): Likewise.
25954 (__getegid): Likewise.
25955 (__getgroups): Likewise.
25956 (__group_member): Likewise.
25957 (__ttyname_r): Likewise.
25958 (__isatty): Likewise.
25959 (__readlink): Likewise.
25960 (__unlink): Likewise.
25961 (__gethostname): Likewise.
25962 (__profil): Likewise.
25963 (__getdtablesize): Likewise.
25964 (__brk): Likewise.
25965 (__ftruncate): Likewise.
25966 (__ftruncate64): Likewise.
25967
25968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 [BZ #18822]
25971 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
25972 * argp/argp-fs-xinl.c: Likewise.
25973 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
25974 * argp/argp-parse.c: Include <argp.h>.
25975 * argp/argp-xinl.c: Likewise.
25976 * include/argp-fmtstream.h: New file.
25977 * include/argp.h (__argp_error): Add attribute_hidden.
25978 (__argp_failure): Likewise.
25979 (__argp_input): Likewise.
25980 (__argp_state_help): Likewise.
25981
25982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25983
25984 [BZ #18822]
25985 * include/wchar.h (____wcstof_l_internal): New prototype.
25986 (____wcstod_l_internal): Likewise.
25987 (____wcstold_l_internal): Likewise.
25988 (____wcstol_l_internal): Likewise.
25989 (____wcstoul_l_internal): Likewise.
25990 (____wcstoll_l_internal): Likewise.
25991 (____wcstoull_l_internal): Likewise.
25992 (____wcstof128_l_internal): Likewise.
25993 * sysdeps/ieee754/float128/wcstof128.c
25994 (____wcstof128_l_internal): Removed.
25995 * sysdeps/ieee754/float128/wcstof128_l.c
25996 (____wcstof128_l_internal): Likewise.
25997 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
25998 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
25999 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26000 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26001 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26002 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26003 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26004 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26005 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26006 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26007
26008 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26009
26010 [BZ #18822]
26011 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26012 instead of <sys/statvfs.h>.
26013 (__internal_statvfs): Removed.
26014 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26015 instead of <sys/statvfs.h>.
26016 (__internal_statvfs64): Removed.
26017 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26018 "internal_statvfs.h" instead of <sys/statvfs.h>.
26019 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26020 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26021 instead of <sys/statvfs.h>.
26022 (__internal_statvfs): Removed.
26023 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26024 instead of <sys/statvfs.h>.
26025 (__internal_statvfs64): Removed.
26026
26027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26028
26029 [BZ #18822]
26030 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26031 (__gconv_close): Likewise.
26032 (__gconv): Likewise.
26033 (__gconv_find_transform): Likewise.
26034 (__gconv_lookup_cache): Likewise.
26035 (__gconv_compare_alias_cache): Likewise.
26036 (__gconv_load_cache): Likewise.
26037 (__gconv_get_path): Likewise.
26038 (__gconv_close_transform): Likewise.
26039 (__gconv_release_cache): Likewise.
26040 (__gconv_find_shlib): Likewise.
26041 (__gconv_release_shlib): Likewise.
26042 (__gconv_get_builtin_trans): Likewise.
26043 (__gconv_compare_alias): Likewise.
26044 * include/dlfcn.h (_dlerror_run): Likewise.
26045 * include/stdio.h (__fortify_fail_abort): Likewise.
26046 * include/time.h (__tz_compute): Likewise.
26047 (__strptime_internal): Likewise.
26048 * intl/gettextP.h (_nl_find_domain): Likewise.
26049 (_nl_load_domain): Likewise.
26050 (_nl_find_msg): Likewise.
26051 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26052 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26053 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26054 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26055 (__gai_find_request): Likewise.
26056 (__gai_remove_request): Likewise.
26057 (__gai_notify): Likewise.
26058 (__gai_notify_only): Likewise.
26059 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26060 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26061 (_dl_non_dynamic_init): Likewise.
26062 (_dl_aux_init): Likewise.
26063 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26064 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26065 Likewise.
26066 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26067 (__wcsmbs_clone_conv): Likewise.
26068 (__wcsmbs_named_conv): Likewise.
26069
26070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26071
26072 [BZ #18822]
26073 * include/stdlib.h (__random): Add attribute_hidden.
26074 (__random_r): Likewise.
26075 (__srandom_r): Likewise.
26076 (__initstate_r): Likewise.
26077 (__setstate_r): Likewise.
26078 (__erand48_r): Likewise.
26079 (__nrand48_r): Likewise.
26080 (__jrand48_r): Likewise.
26081 (__srand48_r): Likewise.
26082 (__seed48_r): Likewise.
26083 (__lcong48_r): Likewise.
26084 (__drand48_iterate): Likewise.
26085 (__setenv): Likewise.
26086 (__unsetenv): Likewise.
26087 (__clearenv): Likewise.
26088 (__ptsname_r): Likewise.
26089 (__posix_openpt): Likewise.
26090 (__add_to_environ): Likewise.
26091 (__realpath): Add libc_hidden_proto.
26092 (__ecvt_r): Likewise.
26093 (__fcvt_r): Likewise.
26094 (__qecvt_r): Likewise.
26095 (__qfcvt_r): Likewise.
26096 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26097 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26098
26099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26100
26101 [BZ #18822]
26102 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26103 * include/time.h (__mktime_internal): Likewise.
26104 * libio/iolibio.h (__fopen_internal): Likewise.
26105
26106 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26107
26108 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26109 pointer in frame.
26110 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26111 Correct offset used to restore PIC register.
26112
26113 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26114
26115 [BZ libc/22165]
26116 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26117 code to load address of __getcontext_ret when generating PIC code.
26118
26119 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26120
26121 * elf/Makefile (tests-static-internal): Add
26122 tst-tls1-static-non-pie.
26123 (LDFLAGS-tst-tls1-static-non-pie): New.
26124 * elf/tst-tls1-static-non-pie.c: New file.
26125
26126 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26127
26128 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26129 (asinh): Define using libm_alias_double.
26130 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26131 (cbrt): Define using libm_alias_double.
26132 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26133 <libm-alias-double.h>.
26134 (copysign): Define using libm_alias_double.
26135 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26136 (erf): Define using libm_alias_double.
26137 (erfc): Likewise.
26138 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26139 (expm1): Define using libm_alias_double.
26140 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26141 (fabs): Define using libm_alias_double.
26142 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26143 libm_alias_double.
26144 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26145 <libm-alias-double.h>.
26146 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26147 libm_alias_double.
26148 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26149 <libm-alias-double.h>.
26150 (getpayload): Define using libm_alias_double.
26151 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26152 <libm-alias-double.h>.
26153 (llrint): Define using libm_alias_double.
26154 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26155 (lrint): Define using libm_alias_double.
26156 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26157 <libm-alias-double.h>.
26158 (nextup): Define using libm_alias_double.
26159 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26160 <libm-alias-double.h>.
26161 (roundeven): Define using libm_alias_double.
26162 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26163 libm_alias_double.
26164 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26165 <libm-alias-double.h>.
26166 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26167 using libm_alias_double.
26168 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26169 (cos): Define using libm_alias_double.
26170 (sin): Likewise.
26171 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26172 <libm-alias-double.h>.
26173 (sincos): Define using libm_alias_double.
26174 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26175 (tanh): Define using libm_alias_double.
26176 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26177 <libm-alias-double.h>.
26178 (totalorder): Define using libm_alias_double.
26179 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26180 <libm-alias-double.h>.
26181 (totalordermag): Define using libm_alias_double.
26182 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26183 libm_alias_double.
26184 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26185 libm_alias_double.
26186 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26187 <libm-alias-double.h>.
26188 (getpayload): Define using libm_alias_double.
26189 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26190 <libm-alias-double.h>.
26191 (roundeven): Define using libm_alias_double.
26192 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26193 <libm-alias-double.h>.
26194 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26195 <libm-alias-double.h>.
26196 (totalorder): Define using libm_alias_double.
26197 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26198 <libm-alias-double.h>.
26199 (totalordermag): Define using libm_alias_double.
26200 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26201 libc compat symbol here.
26202 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26203 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26204 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26205 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26206 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26207 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26208 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26209 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26210 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26211 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26212
26213 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26214
26215 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26216 _dl_relocate_static_pie instead of _dl_start to compute load
26217 address in static PIE. Return 0 if _DYNAMIC is undefined for
26218 static executable.
26219
26220 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26223 _DYNAMIC is undefined for static executable.
26224
26225 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26226
26227 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26228
26229 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26230
26231 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26232
26233 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26234
26235 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26236 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26237 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26238 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26239 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26240 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26241 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26242 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26243 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26244 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26245 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26246 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26247 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26248 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26249 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26250 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26251 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26252
26253 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26254
26255 * math/bits/cmathcalls.h (cimag): Remove inline.
26256 (creal): Remove inline.
26257 (conj): Remove inline.
26258
26259 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26260
26261 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26262 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26263 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26264 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26265 (issignalingf_inline): Likewise.
26266 (POWF_LOG2_TABLE_BITS): Likewise.
26267 (POWF_LOG2_POLY_ORDER): Likewise.
26268 (POWF_SCALE_BITS): Likewise.
26269 (POWF_SCALE): Likewise.
26270 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26271 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26272 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26273
26274 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26275
26276 * math/Makefile (type-float-routines): Add e_log2f_data.
26277 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26278 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26279 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26280 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26281 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26282 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26283 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26284
26285 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26286
26287 * math/Makefile (type-float-routines): Add e_logf_data.
26288 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26289 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26290 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26291 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26292 * sysdeps/i386/fpu/e_logf_data.c: New file.
26293 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26294 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26295
26296 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26297
26298 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26299 undefined _DYNAMIC in PIE libc.a.
26300 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26301 Likewse.
26302
26303 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26304
26305 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26306 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26307 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26308 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26309 (__signbit): Remove.
26310 (__signbitl): Remove.
26311 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26312 (__signbit): Remove.
26313 (__signbitl): Remove.
26314 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26315 (__signbit): Remove.
26316 (__signbitl): Remove.
26317 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26318 (__signbit): Remove.
26319 (__signbitl): Remove.
26320 * sysdeps/tile/bits/mathinline.h: Delete file.
26321 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26322 (__signbit): Remove.
26323 (__signbitl): Remove.
26324
26325 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26326
26327 * math/math.h: Improve handling of C99 isgreater macros.
26328 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26329 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26330 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26331 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26332 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26333
26334 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26335
26336 * sysdeps/aarch64/libm-test-ulps: Update.
26337
26338 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26339
26340 [BZ #22225]
26341 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26342 math_opt_barrier on argument when doing arithmetic on it.
26343 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26344 Likewise. Use math_force_eval not math_opt_barrier after
26345 arithmetic.
26346 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26347 math_opt_barrier on argument when doing arithmetic on it.
26348 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26349 Likewise.
26350
26351 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26354 libc_hidden_def.
26355 (__freeifaddrs): Likewise.
26356
26357 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26358
26359 * include/dirent.h (__dirfd): New declaration.
26360 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26361 alias.
26362 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26363 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26364 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26365 * include/unistd.h (__revoke): New declaration.
26366 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26367 alias.
26368 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26369 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26370 revoke.
26371 * include/dirent.h (__seekdir): New declaration.
26372 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26373 redefine as weak alias.
26374 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26375 of seekdir.
26376 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26377 and use libc_hidden_def on them.
26378 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26379 them.
26380 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26381 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26382 instead of getifaddrs and freeifaddrs.
26383
26384 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26385
26386 [BZ #18822]
26387 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26388 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26389 (__dso_handle): Remove declaration.
26390 * dlfcn/tstatexit.c (__dso_handle): Removed.
26391 (main): Don't check __dso_handle.
26392 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26393 (main): Don't check __dso_handle.
26394 * include/dso_handle.h: New file.
26395 * malloc/mtrace.c: Include <dso_handle.h>.
26396 (mtrace): Pass __dso_handle directly.
26397 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26398 (__dso_handle): Remove declaration.
26399 (__pthread_atfork): Pass __dso_handle directly.
26400 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26401 (__dso_handle): Removed.
26402 * posix/wordexp-test.c: Include <dso_handle.h>.
26403 (__dso_handle): Remove declaration.
26404 (__app_register_atfork): Pass __dso_handle directly.
26405 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26406 (__dso_handle): Remove declaration.
26407 (at_quick_exit): Pass __dso_handle directly.
26408 * stdlib/atexit.c: Include <dso_handle.h>.
26409 (__dso_handle): Remove declaration.
26410 (atexit): Pass __dso_handle directly.
26411 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26412 (__dso_handle): Removed.
26413
26414 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26415
26416 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26417 using VDSO.
26418
26419 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26420
26421 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26422 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26423 values to correct default value for given type.
26424
26425 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26426
26427 [BZ #22101]
26428 * elf/Makefile (tests): Add tst-debug1.
26429 ($(objpfx)tst-debug1): New.
26430 ($(objpfx)tst-debug1.out): Likewise.
26431 ($(objpfx)tst-debug1mod1.so): Likewise.
26432 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26433 with p_filesz == 0.
26434 * elf/tst-debug1.c: New file.
26435
26436 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26437
26438 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26439 Define using __ifunc.
26440
26441 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26442
26443 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26444 exp2f() values.
26445
26446 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26447
26448 [BZ #22156]
26449 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26450
26451 2017-09-26 Florian Weimer <fweimer@redhat.com>
26452
26453 * resolv/Makefile (tests-internal): Fix typo in comment.
26454
26455 2017-09-26 Florian Weimer <fweimer@redhat.com>
26456
26457 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26458
26459 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26460
26461 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26462 Use an union instead of a max_align_t array for __space,
26463 so that __space is the same size on all platforms.
26464 * malloc/scratch_buffer_grow_preserve.c
26465 (__libc_scratch_buffer_grow_preserve): Likewise.
26466
26467 [BZ #22183]
26468 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26469 version to 2.
26470 * posix/Makefile (routines): Add glob-lstat-compat and
26471 glob64-lstat-compat.
26472 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26473 * posix/glob-lstat-compat.c: New file.
26474 * posix/glob64-lstat-compat.c: Likewise.
26475 * posix/tst-glob_lstat_compat.c: Likewise.
26476 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26477 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26478 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26479 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26480 Likewise.
26481 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26482 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26483 * posix/glob.c (glob_lstat): New function.
26484 (glob): Rename to __glob and add versioned symbol to 2.27.
26485 (glob_in_dir): Use glob_lstat.
26486 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26487 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26488 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26489 2.27.
26490 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26491 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26492 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26493 gl_lstat on glob call.
26494 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26495 and glob64 symbols.
26496 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26497 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26498 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26499 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26500 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26501 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26502 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26503 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26504 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26505 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26506 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26507 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26509 Likewise.
26510 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26512 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26513 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26514 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26515 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26516 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26517 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26518 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26519 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26520 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26521 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26522
26523 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26524
26525 * configure.ac (AS): Require binutils 2.25 or later.
26526 * configure: Regenerated.
26527
26528 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26529
26530 [BZ #22207]
26531 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26532 VM size.
26533
26534 2017-09-25 DJ Delorie <dj@redhat.com>
26535
26536 [BZ #22161]
26537 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26538 resetting timeout.
26539
26540 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26541
26542 * sysdeps/ieee754/dbl-64/sincos32.h
26543 [SINCCOS32_H]: Remove define.
26544 [SINCOS32_H]: Define.
26545
26546 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26547
26548 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26549 (exp2f): Likewise.
26550 * math/w_exp2f.c: New file.
26551 * math/w_expf.c: New file.
26552 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26553 * math/w_expf_compat.c (__expf_compat): Likewise.
26554 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26555 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26556 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26557 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26558 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26559 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26560 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26561 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26562 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26563 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26564 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26565 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26566 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26567 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26569 Likewise.
26570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26571 Likewise.
26572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26573 Likewise.
26574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26575 Likewise.
26576 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26577 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26578 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26579 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26580 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26581 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26582 Likewise.
26583 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26584 Likewise.
26585 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26586 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26587 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26588
26589 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26590
26591 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26592 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26593 (roundtoint, converttoint): Likewise.
26594 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26595 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26596 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26597 * sysdeps/ieee754/flt-32/math_config.h: New file.
26598 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26599 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26600 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26601 * sysdeps/i386/fpu/math_errf.c: New file.
26602 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26603 * sysdeps/ia64/fpu/math_errf.c: New file.
26604 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26605 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26606
26607 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26608
26609 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26610 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26611 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26612 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26613 to make sure that these symbols are defined.
26614 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26615 of <limits.h>
26616 (__need_NULL): Do not define.
26617 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26618 alignment.
26619 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26620 CMGROUP_MAX, cmsgcred): Do not define.
26621 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26622 NULL.
26623 * bits/socket.h: Likewise.
26624 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26625 __gettimeofday instead of gettimeofday.
26626 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26627 instead of settimeofday.
26628
26629 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26630
26631 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26632 (asinhf): Define using libm_alias_float.
26633 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26634 (atanf): Define using libm_alias_float.
26635 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26636 (cbrtf): Define using libm_alias_float.
26637 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26638 (ceilf): Define using libm_alias_float.
26639 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26640 <libm-alias-float.h>.
26641 (copysignf): Define using libm_alias_float.
26642 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26643 (cosf): Define using libm_alias_float.
26644 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26645 (erff): Define using libm_alias_float.
26646 (erfcf): Likewise.
26647 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26648 (expm1f): Define using libm_alias_float.
26649 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26650 (fabsf): Define using libm_alias_float.
26651 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26652 (floorf): Define using libm_alias_float.
26653 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26654 (frexpf): Define using libm_alias_float.
26655 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26656 libm_alias_float.
26657 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26658 <libm-alias-float.h>.
26659 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26660 libm_alias_float.
26661 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26662 <libm-alias-float.h>.
26663 (getpayloadf): Define using libm_alias_float.
26664 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26665 <libm-alias-float.h>.
26666 (llrintf): Define using libm_alias_float.
26667 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26668 <libm-alias-float.h>.
26669 (llroundf): Define using libm_alias_float.
26670 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26671 (logbf): Define using libm_alias_float.
26672 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26673 (lrintf): Define using libm_alias_float.
26674 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26675 (lroundf): Define using libm_alias_float.
26676 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26677 (modff): Define using libm_alias_float.
26678 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26679 <libm-alias-float.h>.
26680 (nearbyintf): Define using libm_alias_float.
26681 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26682 <libm-alias-float.h>.
26683 (nextafterf): Define using libm_alias_float.
26684 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26685 <libm-alias-float.h>.
26686 (nextupf): Define using libm_alias_float.
26687 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26688 <libm-alias-float.h>.
26689 (remquof): Define using libm_alias_float.
26690 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26691 (rintf): Define using libm_alias_float.
26692 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26693 <libm-alias-float.h>.
26694 (roundevenf): Define using libm_alias_float.
26695 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26696 (roundf): Define using libm_alias_float.
26697 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26698 using libm_alias_float.
26699 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26700 <libm-alias-float.h>.
26701 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26702 Define using libm_alias_float.
26703 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26704 <libm-alias-float.h>.
26705 (sincosf): Define using libm_alias_float.
26706 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26707 (sinf): Define using libm_alias_float.
26708 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26709 (tanf): Define using libm_alias_float.
26710 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26711 (tanhf): Define using libm_alias_float.
26712 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26713 <libm-alias-float.h>.
26714 (totalorderf): Define using libm_alias_float.
26715 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26716 <libm-alias-float.h>.
26717 (totalordermagf): Define using libm_alias_float.
26718 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26719 (truncf): Define using libm_alias_float.
26720 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26721 libm_alias_float.
26722 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26723 libm_alias_float.
26724
26725 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26726
26727 [BZ #22146]
26728 math/math.h: Let fpclassify use the builtin in C++ mode, even
26729 when optimazing for size.
26730
26731 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26732
26733 * csu/Makefile (generated): Do not add version-info.h.
26734 (before-compile): Likewise.
26735 (all-Banner-files): Remove variable.
26736 ($(objpfx)version-info.h): Remove rule.
26737 * csu/version.c (banner): Do not include "version-info.h".
26738 * libidn/Banner: Remove.
26739 * manual/contrib.texi (Simon Josefsson): New entry.
26740
26741 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26742
26743 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26744 Remove conditionals on LDBL_MANT_DIG.
26745 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26746 (__ieee754_lgammal_r): Likewise.
26747
26748 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26749
26750 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26751 _Float128 and L().
26752 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26753 _Float128 and L(). Replace _Float128 with long double and L(x)
26754 with xL, throughout the file.
26755 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26756 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26757 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26758 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26759
26760 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26761
26762 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26763 sysdeps/ieee754/ldbl-128ibm.
26764 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26765 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26766 of including it. Keep _Float128 and L() intact. These will be
26767 reviewed by a separate patch.
26768 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26769 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26770 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26771 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26772
26773 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26774
26775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26776 (__finitef128): Define to __redirect___finitef128.
26777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26778 (__isinff128): Define to __redirect___isinff128.
26779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26780 (__isnanf128): Define to __redirect___isnanf128.
26781
26782 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26783
26784 * sysdeps/powerpc/powerpc64le/Makefile
26785 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26786 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26787
26788 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26789 Carlos O'Donell <carlos@redhat.com>
26790
26791 [BZ #22180]
26792 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26793 * stdlib/test-dlclose-exit-race.c: New file.
26794 * stdlib/test-dlclose-exit-race-helper.c: New file.
26795 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26796
26797 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26798
26799 * crypt/Banner: Remove file.
26800 * nptl/Banner: Likewise.
26801 * resolv/Banner: Likewise.
26802 * soft-fp/Banner: Likewise.
26803 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26804 ($(objpfx)version.d): Remove dependency on banner.h.
26805 ($(objpfx)version.os): Likewise.
26806 * nptl/version.c (banner): Do not include banner.h.
26807 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26808 Jelinek and BIND code.
26809
26810 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26811 Carlos O'Donell <carlos@redhat.com>
26812
26813 * support/xdlfcn.h: New file.
26814 * support/xdlfcn.c: New file.
26815 * support/Makefile (libsupport-routines): Add xdlfcn.
26816 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26817
26818 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26819
26820 [BZ #20142]
26821 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26822 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26823 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26824 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26825 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26826 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26827 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26828 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26829
26830 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26831 Ricky Zhou <rickyz@google.com>
26832 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26833
26834 [BZ #14333]
26835 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26836 Remove atomics.
26837 (__new_exitfn): Fail registration when we finished at_exit processing.
26838 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26839 * stdlib/on_exit.c (__on_exit): Likewise.
26840 * stdlib/exit.c (__exit_funcs_done): New variable.
26841 (__run_exit_handlers): Use __exit_funcs_lock.
26842 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26843 declarations.
26844 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26845 (test-cxa_atexit-race, test-on_exit-race): New tests.
26846 * stdlib/test-atexit-race-common.c: New file.
26847 * stdlib/test-atexit-race.c: New file.
26848 * stdlib/test-at_quick_exit-race.c: New file.
26849 * stdlib/test-cxa_atexit-race.c: New file.
26850 * stdlib/test-on_exit-race.c: New file.
26851
26852 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26853
26854 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26855 * benchtests/exp2f-inputs: Copy of expf-inputs.
26856 * benchtests/log2f-inputs: Copy of logf-inputs.
26857
26858 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26859
26860 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26861 Explicitly take address of first element of array arguments in
26862 call to INLINE_SYSCALL.
26863
26864 2017-09-19 Andreas Schwab <schwab@suse.de>
26865
26866 [BZ #22134]
26867 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26868 execveat first.
26869 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26870 unimplemented.
26871 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26872 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26873 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26874 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26875 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26876 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26877 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26878 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26879 * posix/Makefile (tests): Add tst-fexecve.
26880 * posix/tst-fexecve.c: New file.
26881
26882 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26883
26884 * benchtests/Makefile: Add logf benchmark.
26885 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26886
26887 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26888
26889 * benchtests/Makefile: Add expf benchmark.
26890 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26891
26892 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26893
26894 * csu/Makefile: Add -funwind-tables to libc-start.c.
26895 * debug/Makefile: Add -funwind-tables to backtrace.c.
26896 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26897 * sysdeps/arm/Makefile: Likewise.
26898 * sysdeps/i386/Makefile: Likewise.
26899 * sysdeps/m68k/Makefile: Likewise.
26900 * sysdeps/mips/Makefile: Likewise.
26901 * sysdeps/nios2/Makefile: Likewise.
26902 * sysdeps/sh/Makefile: Likewise.
26903 * sysdeps/sparc/Makefile: Likewise.
26904
26905 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26906
26907 * benchtests/Makefile (bench-math): Add trunc and truncf.
26908 (CFLAGS-bench-trunc.c): New variable.
26909 (CFLAGS-bench-truncf.c): Likewise.
26910 * benchtests/trunc-inputs: New file.
26911 * benchtests/truncf-inputs: Likewise.
26912
26913 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26914
26915 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
26916
26917 2017-09-18 Joseph Myers <joseph@codesourcery.com>
26918
26919 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
26920 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
26921 redefine.
26922 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26923 (exp10l): Define as weak alias.
26924 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
26925 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
26926 and redefine.
26927 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
26928 (remainderl): Define as weak alias.
26929
26930 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
26931 (fmal): Define using libm_alias_ldouble.
26932 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
26933 (acoshl): Define using libm_alias_ldouble.
26934 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
26935 (acosl): Define using libm_alias_ldouble.
26936 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
26937 (asinl): Define using libm_alias_ldouble.
26938 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
26939 (atan2l): Define using libm_alias_ldouble.
26940 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
26941 (atanhl): Define using libm_alias_ldouble.
26942 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
26943 (coshl): Define using libm_alias_ldouble.
26944 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
26945 (exp10l): Define using libm_alias_ldouble.
26946 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
26947 (exp2l): Define using libm_alias_ldouble.
26948 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
26949 (expl): Define using libm_alias_ldouble.
26950 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
26951 (fmodl): Define using libm_alias_ldouble.
26952 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
26953 (hypotl): Define using libm_alias_ldouble.
26954 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
26955 (j0l): Define using libm_alias_ldouble.
26956 (y0l): Likewise.
26957 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
26958 (j1l): Define using libm_alias_ldouble.
26959 (y1l): Likewise.
26960 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
26961 (jnl): Define using libm_alias_ldouble.
26962 (ynl): Likewise.
26963 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
26964 (log10l): Define using libm_alias_ldouble.
26965 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
26966 (log2l): Define using libm_alias_ldouble.
26967 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
26968 (logl): Define using libm_alias_ldouble.
26969 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
26970 (powl): Define using libm_alias_ldouble.
26971 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
26972 (remainderl): Define using libm_alias_ldouble.
26973 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
26974 (sinhl): Define using libm_alias_ldouble.
26975 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
26976 (sqrtl): Define using libm_alias_ldouble.
26977 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
26978 (tgammal): Define using libm_alias_ldouble.
26979 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
26980 (exp10l): Do not use long_double_symbol here.
26981 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26982 [LIBM_SVID_COMPAT] (remainderl): Likewise.
26983 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
26984 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
26985 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
26986 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
26987 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
26988 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
26989 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
26990 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
26991 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
26992 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
26993 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
26994 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
26995 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
26996 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
26997 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
26998 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
26999 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27000 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27001 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27002 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27003
27004 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27005
27006 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27007 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27008
27009 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27010
27011 * io/read.c (read): Add libc_hidden_weak.
27012 * sysdeps/mach/hurd/read.c (read): Likewise.
27013 * io/write.c (write): Likewise.
27014 * sysdeps/mach/hurd/write.c (write): Likewise.
27015 * io/pread64.c (__pread64): Likewise.
27016 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27017 * posix/pread64.c (__pread64): Add libc_hidden_def.
27018
27019 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27020
27021 * benchtests/scripts/compare_strings.py: New option -g.
27022 (draw_graph): Print a message that a graph is being generated.
27023 (process_results): Generate graph only if -g is passed.
27024 (main): Process option -g.
27025
27026 * benchtests/scripts/compare_strings.py (process_results):
27027 Better spacing for output.
27028
27029 * benchtests/scripts/compare_strings.py: Use argparse.
27030 * benchtests/README: Document existence of compare_strings.py.
27031
27032 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27033
27034 * math/s_fma.c: Include <libm-alias-double.h>.
27035 (fma): Define using libm_alias_double.
27036 * math/s_nextafter.c: Include <libm-alias-double.h>.
27037 (nextafter): Define using libm_alias_double.
27038 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27039 (acos): Define using libm_alias_double.
27040 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27041 (aocsh): Define using libm_alias_double.
27042 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27043 (asin): Define using libm_alias_double.
27044 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27045 (atan2): Define using libm_alias_double.
27046 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27047 (atanh): Define using libm_alias_double.
27048 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27049 (cosh): Define using libm_alias_double.
27050 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27051 (exp10): Define using libm_alias_double.
27052 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27053 (exp2): Define using libm_alias_double.
27054 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27055 (exp): Define using libm_alias_double.
27056 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27057 (fmod): Define using libm_alias_double.
27058 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27059 (hypot): Define using libm_alias_double.
27060 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27061 (j0): Define using libm_alias_double.
27062 (y0): Likewise.
27063 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27064 (j1): Define using libm_alias_double.
27065 (y1): Likewise.
27066 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27067 (jn): Define using libm_alias_double.
27068 (yn): Likewise.
27069 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27070 (log10): Define using libm_alias_double.
27071 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27072 (log2): Define using libm_alias_double.
27073 * math/w_log_compat.c: Include <libm-alias-double.h>.
27074 (log): Define using libm_alias_double.
27075 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27076 (pow): Define using libm_alias_double.
27077 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27078 (remainder): Define using libm_alias_double.
27079 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27080 (sinh): Define using libm_alias_double.
27081 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27082 (sqrt): Define using libm_alias_double.
27083 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27084 (tgamma): Define using libm_alias_double.
27085 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27086 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27087 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27088 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27089 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27090 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27091 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27092 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27093 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27094 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27095 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27096 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27097 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27098 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27099 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27100 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27101 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27102 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27103 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27104 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27105 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27106 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27107 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27108 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27109 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27110
27111 * math/e_acoshl.c: Remove.
27112 * math/e_acosl.c: Likewise.
27113 * math/e_asinl.c: Likewise.
27114 * math/e_atan2l.c: Likewise.
27115 * math/e_atanhl.c: Likewise.
27116 * math/e_coshl.c: Likewise.
27117 * math/e_expl.c: Likewise.
27118 * math/e_fmodl.c: Likewise.
27119 * math/e_gammal_r.c: Likewise.
27120 * math/e_hypotl.c: Likewise.
27121 * math/e_j0l.c: Likewise.
27122 * math/e_j1l.c: Likewise.
27123 * math/e_jnl.c: Likewise.
27124 * math/e_lgammal_r.c: Likewise.
27125 * math/e_log10l.c: Likewise.
27126 * math/e_log2l.c: Likewise.
27127 * math/e_logl.c: Likewise.
27128 * math/e_powl.c: Likewise.
27129 * math/e_rem_pio2l.c: Likewise.
27130 * math/e_sinhl.c: Likewise.
27131 * math/e_sqrtf128.c: Likewise.
27132 * math/e_sqrtl.c: Likewise.
27133 * math/k_cosl.c: Likewise.
27134 * math/k_sinl.c: Likewise.
27135 * math/k_tanl.c: Likewise.
27136 * math/s_asinhl.c: Likewise.
27137 * math/s_atanl.c: Likewise.
27138 * math/s_cbrtl.c: Likewise.
27139 * math/s_erfl.c: Likewise.
27140 * math/s_expm1l.c: Likewise.
27141 * math/s_log1pl.c: Likewise.
27142 * math/s_tanhl.c: Likewise.
27143
27144 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27145
27146 [BZ #21745]
27147 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27148 [$(subdir) = math] (sysdep_calls): New variable. Has the
27149 previous contents of sysdep_routines, but re-sorted..
27150 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27151 sysdep_calls.
27152 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27153 defined in sysdep_calls and replace by the respective m_* names.
27154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27155 (compat_symbol): Undefine to avoid duplicated compat symbols in
27156 libc.
27157
27158 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27159
27160 * math/s_fmaf.c: Include <libm-alias-float.h>.
27161 (fmaf): Define using libm_alias_float.
27162 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27163 (acosf): Define using libm_alias_float.
27164 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27165 (acoshf): Define using libm_alias_float.
27166 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27167 (asinf): Define using libm_alias_float.
27168 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27169 (atan2f): Define using libm_alias_float.
27170 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27171 (atanhf): Define using libm_alias_float.
27172 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27173 (coshf): Define using libm_alias_float.
27174 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27175 (exp10f): Define using libm_alias_float.
27176 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27177 (fmodf): Define using libm_alias_float.
27178 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27179 (hypotf): Define using libm_alias_float.
27180 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27181 (j0f): Define using libm_alias_float.
27182 (y0f): Likewise.
27183 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27184 (j1f): Define using libm_alias_float.
27185 (y1f): Likewise.
27186 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27187 (jnf): Define using libm_alias_float.
27188 (ynf): Likewise.
27189 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27190 (log10f): Define using libm_alias_float.
27191 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27192 (log2f): Define using libm_alias_float.
27193 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27194 (logf): Define using libm_alias_float.
27195 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27196 (powf): Define using libm_alias_float.
27197 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27198 (remainderf): Define using libm_alias_float.
27199 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27200 (sinhf): Define using libm_alias_float.
27201 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27202 (sqrtf): Define using libm_alias_float.
27203 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27204 (tgammaf): Define using libm_alias_float.
27205
27206 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27207
27208 * include/math.h (roundeven): Change hidden_proto call to
27209 __roundeven.
27210 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27211 alias.
27212 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27213 (y0): Rename to __y0 and define as weak alias.
27214 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27215 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27216 alias.
27217 (y0f): Rename to __y0f and define as weak alias.
27218 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27219 alias.
27220 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27221 (y1): Rename to __y1 and define as weak alias.
27222 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27223 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27224 alias.
27225 (y1f): Rename to __y1f and define as weak alias.
27226 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27227 alias.
27228 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27229 (yn): Rename to __yn and define as weak alias.
27230 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27231 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27232 alias.
27233 (ynf): Rename to __ynf and define as weak alias.
27234 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27235 (fromfp): Define as weak alias.
27236 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27237 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27238 (fromfpx): Define as weak alias.
27239 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27240 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27241 __getpayload and define as weak alias.
27242 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27243 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27244 __roundeven and define as weak alias.
27245 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27246 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27247 __setpayload.
27248 (setpayload): Define as weak alias.
27249 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27250 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27251 __setpayloadsig.
27252 (setpayloadsig): Define as weak alias.
27253 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27254 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27255 __totalorder and define as weak alias.
27256 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27257 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27258 to __totalordermag and define as weak alias.
27259 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27260 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27261 (ufromfp): Define as weak alias.
27262 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27263 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27264 __ufromfpx.
27265 (ufromfpx): Define as weak alias.
27266 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27267 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27268 Rename to __getpayload and define as weak alias.
27269 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27270 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27271 Rename to __roundeven and define as weak alias.
27272 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27273 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27274 Rename to __totalorder and define as weak alias.
27275 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27276 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27277 (totalordermag): Rename to __totalordermag and define as weak
27278 alias.
27279 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27280 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27281 macro.
27282 (__roundevenl): Likewise.
27283 (__totalorderl): Likewise.
27284 (__totalordermagl): Likewise
27285 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27286 __fromfpf128.
27287 (fromfpf128): Define as weak alias.
27288 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27289 __fromfpxf128.
27290 (fromfpxf128): Define as weak alias.
27291 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27292 __setpayloadf128.
27293 (setpayloadf128): Define as weak alias.
27294 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27295 __setpayloadsigf128.
27296 (setpayloadsigf128): Define as weak alias.
27297 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27298 __ufromfpf128.
27299 (ufromfpf128): Define as weak alias.
27300 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27301 __ufromfpxf128.
27302 (ufromfpxf128): Define as weak alias.
27303 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27304 (fromfpf): Define as weak alias.
27305 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27306 __fromfpxf.
27307 (fromfpxf): Define as weak alias.
27308 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27309 __getpayloadf and define as weak alias.
27310 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27311 __roundevenf and define as weak alias.
27312 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27313 __setpayloadf.
27314 (setpayloadf): Define as weak alias.
27315 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27316 __setpayloadsigf.
27317 (setpayloadsigf): Define as weak alias.
27318 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27319 __totalorderf and define as weak alias.
27320 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27321 Rename to __totalordermagf and define as weak alias.
27322 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27323 __ufromfpf.
27324 (ufromfpf): Define as weak alias.
27325 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27326 __ufromfpxf.
27327 (ufromfpxf): Define as weak alias.
27328 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27329 __fromfpl.
27330 (fromfpl): Define as weak alias.
27331 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27332 __fromfpxl.
27333 (fromfpxl): Define as weak alias.
27334 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27335 to __getpayloadl and define as weak alias.
27336 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27337 __roundevenl and define as weak alias.
27338 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27339 __setpayloadl.
27340 (setpayloadl): Define as weak alias.
27341 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27342 __setpayloadsigl.
27343 (setpayloadsigl): Define as weak alias.
27344 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27345 to __totalorderl and define as weak alias.
27346 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27347 Rename to __totalordermagl and define as weak alias.
27348 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27349 __ufromfpl.
27350 (ufromfpl): Define as weak alias.
27351 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27352 __ufromfpxl.
27353 (ufromfpxl): Define as weak alias.
27354 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27355 __fromfpl.
27356 (fromfpl): Define as weak alias.
27357 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27358 __fromfpxl.
27359 (fromfpxl): Define as weak alias.
27360 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27361 Rename to __getpayloadl and define as weak alias.
27362 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27363 to __roundevenl and define as weak alias. Call __roundeven
27364 instead of roundeven.
27365 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27366 __setpayloadl.
27367 (setpayloadl): Define as weak alias.
27368 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27369 __setpayloadsigl.
27370 (setpayloadsigl): Define as weak alias.
27371 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27372 Rename to __totalorderl and define as weak alias.
27373 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27374 Rename to __totalordermagl and define as weak alias.
27375 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27376 __ufromfpl.
27377 (ufromfpl): Define as weak alias.
27378 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27379 __ufromfpxl.
27380 (ufromfpxl): Define as weak alias.
27381 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27382 __fromfpl.
27383 (fromfpl): Define as weak alias.
27384 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27385 __fromfpxl.
27386 (fromfpxl): Define as weak alias.
27387 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27388 __getpayloadl and define as weak alias.
27389 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27390 __roundevenl and define as weak alias.
27391 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27392 __setpayloadl.
27393 (setpayloadl): Define as weak alias.
27394 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27395 __setpayloadsigl.
27396 (setpayloadsigl): Define as weak alias.
27397 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27398 __totalorderl and define as weak alias.
27399 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27400 Rename to __totalordermagl and define as weak alias.
27401 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27402 __ufromfpl.
27403 (ufromfpl): Define as weak alias.
27404 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27405 __ufromfpxl.
27406 (ufromfpxl): Define as weak alias.
27407
27408 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27409
27410 * benchtests/bench-string.h (realloc_bufs): New function.
27411 (test_init): Call it.
27412 * benchtests/bench-memset-large.c (do_test): Likewise.
27413 * benchtests/bench-memset.c (do_test): Likewise.
27414
27415 * benchtests/bench-memset-large.c: Print output in JSON
27416 format.
27417 * benchtests/bench-memset.c: Likewise.
27418
27419 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27420
27421 [BZ #21084]
27422 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27423 * iconvdata/Makefile: Add IBM858.
27424 * iconvdata/gconv-modules: Likewise.
27425 * iconvdata/tst-tables.sh: Likewise.
27426 * iconvdata/ibm858.c: New file.
27427 * localedata/charmaps/IBM858: Likewise.
27428
27429 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27430
27431 [BZ #22023]
27432 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27433 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27434
27435 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27436
27437 [BZ #22112]
27438 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27439 and add tel_int_fmt.
27440
27441 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27442
27443 * sysdeps/generic/libm-alias-float128.h: New file.
27444 * sysdeps/generic/math-type-macros-float128.h: Include
27445 <libm-alias-float128.h>.
27446 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27447
27448 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27449
27450 * sysdeps/generic/libm-alias-ldouble.h: New file.
27451 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27452 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27453 * sysdeps/generic/math-type-macros-ldouble.h: Include
27454 <libm-alias-ldouble.h>.
27455 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27456 libm_alias_ldouble.
27457
27458 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27459
27460 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27461 * math/w_exp_compat.c: ... here.
27462 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27463 * math/w_expf_compat.c: ... here.
27464 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27465 * math/w_expl_compat.c: ... here.
27466 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27467 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27468 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27469 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27470
27471 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27472
27473 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27474 redefine.
27475 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27476 macro.
27477 (ldexpl): Only define as compat symbol for libc, not libm.
27478 (scalbnl): Define as compat symbol for libc here.
27479 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27480 define for [IS_IN (libc)].
27481 (__ldexpl_2): Remove alias.
27482 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27483 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27484 name in long_double_symbol call.
27485 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27486 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27487 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27488 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27489 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27490 Remove macro.
27491 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27492 Define as compat symbol.
27493
27494 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27495
27496 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27497 * sysdeps/unix/sysv/linux/alpha/Makefile
27498 [$(subdir) = csu] (sysdep_routines): Remove rule.
27499
27500 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27501
27502 * sysdeps/generic/libm-alias-double.h: New file.
27503 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27504 * sysdeps/generic/math-type-macros-double.h: Include
27505 <libm-alias-double.h>.
27506 [declare_mgen_alias] (declare_mgen_alias): Define to use
27507 libm_alias_double.
27508 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27509 (M_LIBM_NEED_COMPAT): Remove macro.
27510 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27511 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27512 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27513 code.
27514 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27515 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27516 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27517 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27518 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27519 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27520 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27521 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27522 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27523 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27524 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27525 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27526 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27527 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27528 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27529 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27530 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27531 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27532 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27533 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27534 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27535 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27536 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27537 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27538 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27539 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27540 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27541 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27542 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27543 macro.
27544 (declare_mgen_alias): New macro.
27545 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27546 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27548 (M_LIBM_NEED_COMPAT): Remove macro.
27549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27550 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27551 <first-versions.h>.
27552 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27553 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27554
27555 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27556
27557 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27558 (declare_mgen_alias_2): Remove.
27559 * sysdeps/generic/math-type-macros-double.h
27560 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27561 Likewise.
27562 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27563 alias.
27564 (ldexp): Define with declare_mgen_alias.
27565 (scalbn): Likewise.
27566
27567 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27568
27569 * grp/initgroups.c: Include config.h.
27570 (DEFAULT_CONFIG): New macro.
27571 (internal_getgrouplist): Use DEFAULT_CONFIG.
27572 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27573 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27574 (DEFAULT_DEFCONFIG): New macro.
27575 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27576 * nss/grp-lookup.c: Include config.h
27577 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27578 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27579 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27580 * manual/nss.texi: Update default values section.
27581
27582 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27583
27584 [BZ #21967]
27585 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27586 New.
27587 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27588 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27589 Handle MathVec_Prefer_No_AVX512.
27590 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27591 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27592 is set.
27593
27594 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27595
27596 * posix/sched_primax.c (__sched_get_priority_max): Add
27597 libc_hidden_def.
27598 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27599 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27600 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27601 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27602 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27603 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27604 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27605 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27606 Add aliases.
27607
27608 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27609
27610 * sysdeps/generic/libm-alias-float.h: New file.
27611 * sysdeps/generic/math-type-macros-float.h: Include
27612 <libm-alias-float.h>.
27613 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27614
27615 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27616
27617 [BZ #22093]
27618 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27619 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27620 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27621 (HWCAP_IMPORTANT): Likewise.
27622 (HWCAP_X86_64): New enum.
27623 (HWCAP_X86_AVX512_1): Updated.
27624 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27625 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27626 (modules-names): Add x86_64/tst-x86_64mod-1.
27627 (LDFLAGS-tst-x86_64mod-1.so): New.
27628 ($(objpfx)tst-x86_64-1): Likewise.
27629 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27630 (tst-x86_64-1-clean): Likewise.
27631 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27632 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27633
27634 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27635
27636 * po/sv.po: Update translations.
27637 * po/fr.po: Likewise.
27638
27639 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27640
27641 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27642 seconds.
27643 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27644 seconds.
27645 * elf/rtld-Rules: Fix $(error) use.
27646
27647 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27648
27649 [BZ #14925]
27650 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27651 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27652 * localedata/locales/bn_BD: “Bengali” was still used in some
27653 comments. Change it to “Bangla”.
27654
27655 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27656
27657 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27658
27659 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27660
27661 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27662 thunderx2t99p1 to list of cpu names.
27663 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27664 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27665
27666 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27667
27668 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27669 Use strcmp instead of tunable_is_name.
27670
27671 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27672
27673 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27674 (F_GET_RW_HINT): New macro.
27675 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27676 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27677 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27678 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27679 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27680 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27681 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27682 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27683 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27684
27685 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27686 (F_ADD_SEALS): New macro.
27687 [__USE_GNU] (F_GET_SEALS): Likewise.
27688 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27689 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27690 [__USE_GNU] (F_SEAL_GROW): Likewise.
27691 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27692
27693 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27694
27695 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27696 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27697 * posix/glob_internal.h (__glob_pattern_type):
27698 * posix/glob.c (glob):
27699 * posix/glob_pattern_p.c (__glob_pattern_p):
27700 Use them.
27701
27702 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27703 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27704 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27705 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27706 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27708 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27709 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27710 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27711 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27712 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27713 * sysdeps/wordsize-64/glob.c: Likewise.
27714 * sysdeps/wordsize-64/glob64.c: Likewise.
27715 * sysdeps/wordsize-64/globfree.c: Likewise.
27716 * sysdeps/wordsize-64/globfree64.c: Likewise.
27717 * sysdeps/unix/sysv/linux/glob.c: New file.
27718 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27719 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27720 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27721 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27722 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27723 adds !GLOB_NO_OLD_VERSION as an extra condition.
27724 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27725 using relative path instead of absolute one.
27726 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27727 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27728 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27729 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27730 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27731 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27732
27733 [BZ #1062]
27734 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27735 (glob): Use the same scratch buffer for both getlogin_r and
27736 getpwnam_r. Don’t require preallocation of the login name. This
27737 simplifies storage allocation, and corrects the handling of
27738 long login names.
27739
27740 [BZ #1062]
27741 * posix/glob.c (glob): Port recent patches to platforms
27742 lacking getpwnam_r.
27743 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27744 returns an error number rather than setting errno.
27745
27746 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27747 instead of GCC extension.
27748 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27749 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27750 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27751
27752 [BZ #866]
27753 [BZ #1062]
27754 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27755 * posix/bug-glob1.c: Remove file.
27756 * posix/tst-glob_symlinks.c: New file.
27757 * posix/glob.c (__lstat64): New macro.
27758 (is_dir): New function.
27759 (glob, glob_in_dir): Match symlinks even if they are dangling.
27760 (link_stat, link_exists_p): Remove. All uses removed.
27761
27762 [BZ #1062]
27763 [BZ #19971]
27764 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27765 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27766 All uses removed.
27767
27768 [BZ #1062]
27769 CVE-2017-15671
27770 * posix/Makefile (routines): Add globfree, globfree64, and
27771 glob_pattern_p.
27772 * posix/flexmember.h: New file.
27773 * posix/glob_internal.h: Likewise.
27774 * posix/glob_pattern_p.c: Likewise.
27775 * posix/globfree.c: Likewise.
27776 * posix/globfree64.c: Likewise.
27777 * sysdeps/gnu/globfree64.c: Likewise.
27778 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27779 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27780 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27781 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27782 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27783 * sysdeps/wordsize-64/globfree.c: Likewise.
27784 * sysdeps/wordsize-64/globfree64.c: Likewise.
27785 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27786 [NDEBUG): Remove comments.
27787 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27788 (dirent_type): New type. Use uint_fast8_t not
27789 uint8_t, as C99 does not require uint8_t.
27790 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27791 (struct readdir_result): Use dirent_type. Do not define skip_entry
27792 unless it is needed; this saves a byte on platforms lacking d_ino.
27793 (readdir_result_type, readdir_result_skip_entry):
27794 New functions, replacing ...
27795 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27796 these functions, which were removed. This makes the callers
27797 easier to read. All callers changed.
27798 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27799 (size_add_wrapv, glob_use_alloca): New static functions.
27800 (glob, glob_in_dir): Check for size_t overflow in several places,
27801 and fix some size_t checks that were not quite right.
27802 Remove old code using SHELL since Bash no longer
27803 uses this.
27804 (glob, prefix_array): Separate MS code better.
27805 (glob_in_dir): Remove old Amiga and VMS code.
27806 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27807 separate files.
27808 (glob_in_dir): Do not rely on undefined behavior in accessing
27809 struct members beyond their bounds. Use a flexible array member
27810 instead
27811 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27812 0/1. Caller changed.
27813 (glob): Fix memory leaks.
27814 * posix/glob64 (globfree64): Move to separate file.
27815 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27816 (globfree64): Remove hidden alias.
27817 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27818 oldglob.
27819 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27820 separate file.
27821 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27822 define.
27823 Move compat code to separate file.
27824 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27825 separate file.
27826
27827 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27828
27829 * resolv/tst-resolv-qtypes.c (domain): Changed to
27830 "const char domain[] =".
27831
27832 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27833
27834 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27835 version to 3.1.6.
27836
27837 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27838 (TCP_MD5SIG_EXT): Likewise.
27839 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27840 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27841 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27842
27843 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27844
27845 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27846
27847 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27848
27849 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27850
27851 [BZ #22100]
27852 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27853
27854 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27855
27856 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27857 before assuming that the file is empty. Avoid testing buffer content
27858 when nread == 0.
27859
27860 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27861
27862 [BZ #18858]
27863 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27864 Remove define.
27865 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27866 Likewise.
27867 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27868 Likewise.
27869 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27870 Likewise.
27871 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27872 Likewise.
27873 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27874 Likewise.
27875 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27876 Likewise.
27877
27878 2017-09-06 Florian Weimer <fweimer@redhat.com>
27879
27880 * malloc/dynarray_emplace_enlarge.c
27881 (__libc_dynarray_emplace_enlarge): Add missing else.
27882
27883 2017-09-06 Florian Weimer <fweimer@redhat.com>
27884
27885 [BZ #22096]
27886 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27887 case of failure to obtain the global conf object.
27888
27889 2017-09-06 Florian Weimer <fweimer@redhat.com>
27890
27891 [BZ #22095]
27892 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27893 dynarray allocation failure.
27894
27895 2017-09-06 Florian Weimer <fweimer@redhat.com>
27896
27897 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27898 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27899 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27900 New functions.
27901 (response): Call them. Add 'p', '6' flag processing.
27902 (test_reverse): New function.
27903 (test_get2_any): Call it.
27904 (test_no_inet6): Add 'p' test.
27905 (test_inet6): Likewise.
27906
27907 2017-09-06 Florian Weimer <fweimer@redhat.com>
27908
27909 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27910 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27911 the QNAME.
27912 (test_gai): Adjust query names. Add additional tests.
27913 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
27914 test_get2. Adjust query names. Add additional tests.
27915 (test_no_inet6): New function, extracted from threadfunc.
27916 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
27917 Add additional tests.
27918
27919 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27920
27921 [BZ #22070]
27922 * localedata/unicode-gen/utf8_gen.py: Set the width for
27923 characters with Prepended_Concatenation_Mark property to 1
27924 * localedata/charmaps/UTF-8: Updated using the improved script.
27925
27926 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27927
27928 [BZ #21750]
27929 * localedata/unicode-gen/utf8_gen.py: Improve the script to
27930 use the range notation for all ranges of neighbouring characters
27931 with the same width.
27932
27933 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27934
27935 * sysdeps/generic/math-type-macros-double.h: Include
27936 <math-svid-compat.h>.
27937 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27938 * sysdeps/generic/math-type-macros-float.h: Include
27939 <math-svid-compat.h>.
27940 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27941 * sysdeps/generic/math-type-macros-ldouble.h: Include
27942 <math-svid-compat.h>.
27943 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27944 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
27945 condition.
27946 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
27947 * math/w_acosf_compat.c: Likewise.
27948 * math/w_acosh_compat.c: Likewise.
27949 * math/w_acoshf_compat.c: Likewise.
27950 * math/w_acoshl_compat.c: Likewise.
27951 * math/w_acosl_compat.c: Likewise.
27952 * math/w_asin_compat.c: Likewise.
27953 * math/w_asinf_compat.c: Likewise.
27954 * math/w_asinl_compat.c: Likewise.
27955 * math/w_atan2_compat.c: Likewise.
27956 * math/w_atan2f_compat.c: Likewise.
27957 * math/w_atan2l_compat.c: Likewise.
27958 * math/w_atanh_compat.c: Likewise.
27959 * math/w_atanhf_compat.c: Likewise.
27960 * math/w_atanhl_compat.c: Likewise.
27961 * math/w_cosh_compat.c: Likewise.
27962 * math/w_coshf_compat.c: Likewise.
27963 * math/w_coshl_compat.c: Likewise.
27964 * math/w_exp10_compat.c: Likewise.
27965 * math/w_exp10f_compat.c: Likewise.
27966 * math/w_exp10l_compat.c: Likewise.
27967 * math/w_exp2_compat.c: Likewise.
27968 * math/w_exp2f_compat.c: Likewise.
27969 * math/w_exp2l_compat.c: Likewise.
27970 * math/w_fmod_compat.c: Likewise.
27971 * math/w_fmodf_compat.c: Likewise.
27972 * math/w_fmodl_compat.c: Likewise.
27973 * math/w_hypot_compat.c: Likewise.
27974 * math/w_hypotf_compat.c: Likewise.
27975 * math/w_hypotl_compat.c: Likewise.
27976 * math/w_j0_compat.c: Likewise.
27977 * math/w_j0f_compat.c: Likewise.
27978 * math/w_j0l_compat.c: Likewise.
27979 * math/w_j1_compat.c: Likewise.
27980 * math/w_j1f_compat.c: Likewise.
27981 * math/w_j1l_compat.c: Likewise.
27982 * math/w_jn_compat.c: Likewise.
27983 * math/w_jnf_compat.c: Likewise.
27984 * math/w_jnl_compat.c: Likewise.
27985 * math/w_lgamma_r_compat.c: Likewise.
27986 * math/w_lgammaf_r_compat.c: Likewise.
27987 * math/w_lgammal_r_compat.c: Likewise.
27988 * math/w_log10_compat.c: Likewise.
27989 * math/w_log10f_compat.c: Likewise.
27990 * math/w_log10l_compat.c: Likewise.
27991 * math/w_log2_compat.c: Likewise.
27992 * math/w_log2f_compat.c: Likewise.
27993 * math/w_log2l_compat.c: Likewise.
27994 * math/w_log_compat.c: Likewise.
27995 * math/w_logf_compat.c: Likewise.
27996 * math/w_logl_compat.c: Likewise.
27997 * math/w_pow_compat.c: Likewise.
27998 * math/w_powf_compat.c: Likewise.
27999 * math/w_powl_compat.c: Likewise.
28000 * math/w_remainder_compat.c: Likewise.
28001 * math/w_remainderf_compat.c: Likewise.
28002 * math/w_remainderl_compat.c: Likewise.
28003 * math/w_sinh_compat.c: Likewise.
28004 * math/w_sinhf_compat.c: Likewise.
28005 * math/w_sinhl_compat.c: Likewise.
28006 * math/w_sqrt_compat.c: Likewise.
28007 * math/w_sqrtf_compat.c: Likewise.
28008 * math/w_sqrtl_compat.c: Likewise.
28009 * math/w_tgamma_compat.c: Likewise.
28010 * math/w_tgammaf_compat.c: Likewise.
28011 * math/w_tgammal_compat.c: Likewise.
28012 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28013 [LIBM_SVID_COMPAT].
28014 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28015 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28016 [LIBM_SVID_COMPAT].
28017 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28018 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28019 [LIBM_SVID_COMPAT].
28020 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28021 * sysdeps/i386/fpu/w_sqrt.c: New file.
28022 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28023 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28024 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28025 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28026 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28027 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28028 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28029 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28030 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28031 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28032 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28033 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28034 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28035 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28036 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28037 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28038 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28039 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28040 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28041 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28042 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28043 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28044 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28045 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28046 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28047 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28048 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28049 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28050 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28051 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28052 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28053 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28054 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28055 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28056 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28057 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28058 * sysdeps/ia64/fpu/w_log.c: Likewise.
28059 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28060 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28061 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28062 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28063 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28064 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28065 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28066 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28067 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28068 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28069 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28070 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28071 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28072 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28073 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28074 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28075 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28076 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28077 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28078 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28079 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28080 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28081 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28082 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28083 [LIBM_SVID_COMPAT].
28084 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28085 * sysdeps/ieee754/k_standard.c: Likewise.
28086 * sysdeps/ieee754/k_standardf.c: Likewise.
28087 * sysdeps/ieee754/k_standardl.c: Likewise.
28088 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28089 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28090 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28091 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28092 long_double_symbol call on [LIBM_SVID_COMPAT].
28093 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28094 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28095 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28096 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28097 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28098 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28099 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28100 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28101 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28102 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28103 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28104 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28105 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28106 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28107 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28108 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28109 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28110 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28111 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28112 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28113 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28114 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28115
28116 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28117
28118 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28119 * malloc/tst-mallocstate.c: Convert from test-skeleton
28120 to test-driver. Ifdef code using TEST_COMPAT macro.
28121 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28122 * math/test-matherr.c: Likewise.
28123
28124 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28125
28126 [BZ #22086]
28127 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28128 comparing word with byte-swapped constant.
28129
28130 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28131
28132 [BZ #20498]
28133 * locale/iso-639.def: add Miskito.
28134 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28135 * localedata/locales/miq_NI: New file.
28136
28137 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28138
28139 [BZ #18822]
28140 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28141 (__mkdir): Likewise.
28142 * io/chmod.c (__chmod): Add libc_hidden_def.
28143 * io/mkdir.c (__mkdir): Likewise.
28144 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28145 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28146 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28147 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28148
28149 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28150
28151 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28152 version to 4.13.
28153
28154 [BZ #22082]
28155 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28156 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28157
28158 2017-09-04 Florian Weimer <fweimer@redhat.com>
28159
28160 * math/math.h: Issue warning if log is defined.
28161
28162 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28163
28164 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28165 kernel version to 4.13.
28166
28167 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28168
28169 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28170 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28171 parameter.
28172 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28173 just <bits/types.h>.
28174 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28175 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28176 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28177 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28178 * misc/preadv2.c: Include <errno.h>.
28179 * misc/preadv64v2.c: Include <errno.h>.
28180 * misc/pwritev2.c: Include <errno.h>.
28181 * misc/pwritev64v2.c: Include <errno.h>.
28182 * sysdeps/posix/preadv2.c: Include <errno.h>.
28183 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28184 Fix <unistd.h> inclusion.
28185 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28186 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28187 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28188 __strtoul_internal): New functions.
28189 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28190 * sysdeps/posix/system.c: Include <sigsetops.h>.
28191 * sysdeps/mach/hurd/i386/Makefile
28192 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28193 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28194 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28195 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28196 __feraiseexcept_renamed to feraiseexcept instead of
28197 __GI_feraiseexcept.
28198 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28199 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28200 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28201 RWF_NOWAIT): Define to 0 if undefined already.
28202 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28203 boils down to 0.
28204 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28205 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28206
28207 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28208
28209 * manual/math.texi (pow10): Do not document.
28210 (pow10f): Likewise.
28211 (pow10l): Likewise.
28212 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28213 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28214 * math/libm-test-exp10.inc (pow10_test): Remove.
28215 (do_test): Do not call pow10.
28216 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28217 [NO_LONG_DOUBLE] (pow10l): Likewise.
28218 * math/w_exp10f_compat.c (pow10f): Likewise.
28219 * math/w_exp10l_compat.c (pow10l): Likewise.
28220 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28221 (pow10): Make into compat symbol.
28222 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28223 (pow10f): Make into compat symbol.
28224 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28225 (pow10l): Make into compat symbol.
28226 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28227 pow10.
28228 (CFLAGS-nldbl-pow10.c): Remove variable..
28229 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28230 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28231 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28232 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28233 Undefine and redefine.
28234 (pow10l): Make into compat symbol.
28235 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28236 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28237 * sysdeps/arm/libm-test-ulps: Likewise.
28238 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28239 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28241 * sysdeps/microblaze/libm-test-ulps: Likewise.
28242 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28243 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28244 * sysdeps/nios2/libm-test-ulps: Likewise.
28245 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28246 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28247 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28248 * sysdeps/sh/libm-test-ulps: Likewise.
28249 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28250 * sysdeps/tile/libm-test-ulps: Likewise.
28251 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28252
28253 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28254
28255 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28256
28257 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28258
28259 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28260 "../ChangeLog.old/ChangeLog.8".
28261 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28262 "../ChangeLog.old/ChangeLog.14".
28263
28264 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28265
28266 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28267 Threads Library.
28268
28269 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28270
28271 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28272
28273 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28274
28275 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28276 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28277
28278 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28279
28280 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28281 32 atexit handlers.
28282
28283 2017-09-01 Zack Weinberg <zackw@panix.com>
28284
28285 * math/math.h (HUGE_VAL): Improve commentary.
28286
28287 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28288 Andreas Schwab <schwab@suse.de>
28289
28290 [BZ #21530]
28291 * include/stdio.h (__gen_tempfd): New function.
28292 * stdio-common/Makefile (routines): Add gentempfd.
28293 * stdio-common/gentempfd.c: New file.
28294 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28295 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28296 unnamed file first.
28297
28298 2017-09-01 Florian Weimer <fweimer@redhat.com>
28299
28300 [BZ #21915]
28301 [BZ #21922]
28302 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28303 result to determine success or failure, not the errno value.
28304 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28305 (tst-nss-files-hosts-erange): Link with -ldl.
28306 * nss/tst-nss-files-hosts-erange.c: New file.
28307 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28308 (do_test): Add NO_DATA tests.
28309 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28310 (do_test): Call it.
28311
28312 2017-09-01 Florian Weimer <fweimer@redhat.com>
28313
28314 [BZ #21922]
28315 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28316 coming from gethostbyname2_r.
28317
28318 2017-09-01 Florian Weimer <fweimer@redhat.com>
28319
28320 * support/namespace.h (struct support_chroot_configuration): Add
28321 hosts, host_conf.
28322 (struct support_chroot): Add path_hosts, path_host_conf.
28323 * support/support_chroot.c (write_file): New function.
28324 (support_chroot_create): Call it to process /etc/resolv.conf,
28325 /etc/hosts, /etc/host.conf.
28326 (support_chroot_free): Update.
28327
28328 2017-09-01 Florian Weimer <fweimer@redhat.com>
28329
28330 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28331 status indicates it is set.
28332
28333 2017-09-01 Florian Weimer <fweimer@redhat.com>
28334
28335 [BZ #20532]
28336 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28337 function lookup failures more reliable.
28338
28339 2017-09-01 Florian Weimer <fweimer@redhat.com>
28340
28341 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28342 (getcanonname): Likewise.
28343 (gaih_inet): Likewise.
28344
28345 2017-09-01 Florian Weimer <fweimer@redhat.com>
28346
28347 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28348 (getcanonname): Likewise.
28349 (gaih_inet): Likewise.
28350
28351 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28352 Richard Henderson <rth@twiddle.net>
28353
28354 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28355 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28356 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28357 (IREG_SIZE, OREG_SIZE): New macros.
28358 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28359 (IREG_SIZE, OREG_SIZE): New macros.
28360 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28361 (IREG_SIZE): New macro.
28362 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28363 (IREG_SIZE): New macro.
28364 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28365 New includes.
28366 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28367 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28368 (__CONCATX): Handle exceptions correctly on large values that may
28369 set FE_INVALID.
28370 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28371 Initialize if not already set.
28372 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28373
28374 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28375
28376 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28377 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28378 Likewise.
28379 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28380 Likewise.
28381 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28382 Likewise.
28383 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28384 Likewise.
28385 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28386 Likewise.
28387 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28388 Likewise.
28389 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28390 Likewise.
28391 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28392 (NO_CANCELLATION): Likewise.
28393 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28394 Likewise.
28395 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28396 Likewise.
28397 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28398 Likewise.
28399 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28400 (NO_CANCELLATION): Likewise.
28401 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28402 (NO_CANCELLATION): Likewise.
28403 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28404 Likewise
28405 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28406 Likewise.
28407 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28408 Likewise.
28409 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28410 Likewise.
28411 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28412 hidden prototype.
28413 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28414 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28415
28416 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28417
28418 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28419 in resolver call.
28420
28421 2017-08-31 Florian Weimer <fweimer@redhat.com>
28422
28423 * include/libc-symbols.h (internal_function): Remove.
28424
28425 2017-08-31 Florian Weimer <fweimer@redhat.com>
28426
28427 * stdlib/fmtmsg.c (internal_addseverity): Remove
28428 internal_function.
28429
28430 2017-08-31 Florian Weimer <fweimer@redhat.com>
28431
28432 * stdio-common/printf_fp.c (group_number): Remove
28433 internal_function.
28434 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28435
28436 2017-08-31 Florian Weimer <fweimer@redhat.com>
28437
28438 * posix/fnmatch.c (internal_function): Remove definition.
28439 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28440 * posix/regcomp.c (peek_token, init_word_char)
28441 (duplicate_node_closure, fetch_token, peek_token)
28442 (peek_token_bracket, build_range_exp, build_collating_symbol):
28443 Likewise.
28444 * posix/regex_internal.c (re_string_construct_common)
28445 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28446 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28447 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28448 (re_string_translate_buffer, re_string_reconstruct)
28449 (re_string_peek_byte_case, re_string_fetch_byte_case)
28450 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28451 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28452 (re_node_set_add_intersect, re_node_set_init_union)
28453 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28454 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28455 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28456 (re_acquire_state_context): Likewise.
28457 * posix/regex_internal.h (internal_function): Remove definition.
28458 (re_string_realloc_buffers, build_wcs_buffer)
28459 (build_wcs_upper_buffer, build_upper_buffer)
28460 (re_string_translate_buffer, re_string_context_at)
28461 (re_string_char_size_at, re_string_wchar_at)
28462 (re_string_elem_size_at): Likewise.
28463 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28464 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28465 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28466 (re_search_internal, re_search_2_stub, re_search_stub)
28467 (re_copy_regs, prune_impossible_nodes, check_matching)
28468 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28469 (free_fail_stack_return, sift_states_iter_mb)
28470 (sift_states_backward, build_sifted_states)
28471 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28472 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28473 (check_subexp_limits, sift_states_bkref, merge_state_array)
28474 (find_recover_state, transit_state, merge_state_with_log)
28475 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28476 (transit_state_mb, transit_state_bkref, get_subexp)
28477 (get_subexp_sub, find_subexp_node, check_arrival)
28478 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28479 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28480 (check_node_accept_bytes, find_collation_sequence_value)
28481 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28482 (acquire_init_state_context, check_halt_node_context)
28483 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28484 (sub_epsilon_src_nodes): Likewise.
28485 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28486 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28487 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28488 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28489 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28490 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28491 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28492 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28493 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28494 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28495 (PREADV): Likewise.
28496 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28497 (PREADV): Likewise.
28498 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28499 (PWRITEV): Likewise.
28500 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28501 (PWRITEV): Likewise.
28502 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28503 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28504
28505 2017-08-31 Florian Weimer <fweimer@redhat.com>
28506
28507 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28508 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28509 Remove internal_function.
28510 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28511 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28512 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28513 (__deallocate_stack, __libc_pthread_init)
28514 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28515 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28516 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28517 Likewise.
28518 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28519 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28520 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28521 Likewise.
28522 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28523 (__pthread_mutex_unlock_usercnt): Likewise.
28524
28525 2017-08-31 Florian Weimer <fweimer@redhat.com>
28526
28527 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28528 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28529 (fts_safe_changedir): Remove internal_function.
28530 * io/ftw.c (internal_function): Remove definition.
28531 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28532
28533 2017-08-31 Florian Weimer <fweimer@redhat.com>
28534
28535 * inet/deadline.c (__deadline_current_time)
28536 (__deadline_from_timeval, __deadline_to_ms): Remove
28537 internal_function.
28538 * inet/getnameinfo.c (nrl_domainname): Likewise.
28539 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28540 * inet/inet6_option.c (add_pad): Likewise.
28541 * inet/net-internal.h (__deadline_current_time)
28542 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28543 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28544 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28545 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28546
28547 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28548
28549 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28550 include <bits/nan.h>.
28551 * math/Makefile (headers): Remove bits/nan.h.
28552 * bits/nan.h: Remove.
28553 * sysdeps/ieee754/bits/nan.h: Likewise.
28554 * sysdeps/mips/bits/nan.h: Likewise.
28555
28556 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28557 not include <bits/inf.h>.
28558 * math/Makefile (headers): Remove bits/inf.h.
28559 * bits/inf.h: Remove.
28560 * sysdeps/ieee754/bits/inf.h: Likewise.
28561
28562 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28563 bits/huge_vall.h or bits/huge_val_flt128.h.
28564 (HUGE_VAL): Define directly here.
28565 [__USE_ISOC99] (HUGE_VALF): Likewise.
28566 [__USE_ISOC99] (HUGE_VALL): Likewise.
28567 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28568 (HUGE_VAL_F128): Likewise.
28569 * math/Makefile (headers): Remove bits/huge_val.h,
28570 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28571 * bits/huge_val.h: Remove.
28572 * bits/huge_val_flt128.h: Likewise.
28573 * bits/huge_valf.h: Likewise.
28574 * bits/huge_vall.h: Likewise.
28575 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28576 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28577 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28578 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28579 * sysdeps/sh/bits/huge_val.h: Likewise.
28580 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28581 * sysdeps/x86/bits/huge_vall.h: Likewise.
28582
28583 2017-08-31 Florian Weimer <fweimer@redhat.com>
28584
28585 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28586 internal_function.
28587 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28588 Likewise.
28589 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28590 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28591 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28592 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28593 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28594 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28595 * elf/dl-libc.c (dlerror_run): Likewise.
28596 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28597 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28598 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28599 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28600 Likewise.
28601 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28602 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28603 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28604 * elf/dl-profile.c (_dl_start_profile): Likewise.
28605 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28606 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28607 Likewise.
28608 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28609 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28610 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28611 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28612 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28613 (_dl_allocate_tls_storage): Likewise.
28614 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28615 (_dl_check_all_versions): Likewise.
28616 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28617 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28618 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28619 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28620 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28621 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28622 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28623 internal_function from __dl_start.
28624 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28625 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28626 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28627 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28628 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28629 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28630 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28631 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28632 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28633 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28634 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28635 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28636 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28637 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28638 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28639 Likewise.
28640 (struct rtld_global_ro): Remove internal_function from the
28641 _dl_lookup_symbol_x member.
28642 (_dl_symbol_value): Remove. No longer defined anywhere.
28643 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28644 internal_function.
28645 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28646 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28647 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28648 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28649 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28650 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28651 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28652 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28653 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28654 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28655 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28656 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28657
28658 2017-08-31 Florian Weimer <fweimer@redhat.com>
28659
28660 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28661 Remove internal_function.
28662 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28663 Likewise.
28664 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28665 Likewise.
28666
28667 2017-08-31 Florian Weimer <fweimer@redhat.com>
28668
28669 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28670 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28671 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28672
28673 2017-08-31 Florian Weimer <fweimer@redhat.com>
28674
28675 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28676 (__gai_enqueue_request): Remove internal_function.
28677 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28678 (__gai_remove_request, __gai_notify, __gai_notify_only)
28679 (__gai_sigqueue): Likewise.
28680 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28681 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28682 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28683 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28684 Likewise.
28685
28686 2017-08-31 Florian Weimer <fweimer@redhat.com>
28687
28688 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28689 * include/dirent.h (__opendirat, __getdents, __getdents64)
28690 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28691 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28692 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28693 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28694 Likewise.
28695 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28696
28697 2017-08-31 Florian Weimer <fweimer@redhat.com>
28698
28699 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28700 internal_function.
28701 (GETCWD_RETURN_TYPE): Likewise.
28702
28703 2017-08-31 Florian Weimer <fweimer@redhat.com>
28704
28705 * include/time.h (__tz_compute, __strptime_internal): Remove
28706 internal_function.
28707 * time/strptime_l.c (__strptime_internal): Likewise.
28708 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28709
28710 2017-08-31 Florian Weimer <fweimer@redhat.com>
28711
28712 * iconv/gconv.c (__gconv): Remove internal_function.
28713 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28714 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28715 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28716 (__gconv_release_cache): Likewise.
28717 * iconv/gconv_close.c (__gconv_close): Likewise.
28718 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28719 (read_conf_file, __gconv_get_path): Likewise.
28720 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28721 (__gconv_release_step, gen_steps, increment_counter)
28722 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28723 (__gconv_close_transform, free_modules_db): Likewise.
28724 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28725 Likewise.
28726 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28727 (__gconv_find_transform, __gconv_lookup_cache)
28728 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28729 (__gconv_close_transform, __gconv_release_cache)
28730 (__gconv_loaded_object, __gconv_release_shlib)
28731 (__gconv_compare_alias): Likewise.
28732 * iconv/gconv_open.c (__gconv_open): Likewise.
28733 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28734 * iconv/iconvconfig.c (add_module): Likewise.
28735 * intl/dcigettext.c (plural_lookup, guess_category_value)
28736 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28737 * intl/eval-plural.h (plural_eval): Likewise.
28738 * intl/finddomain.c (_nl_find_domain): Likewise.
28739 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28740 (_nl_load_domain, _nl_find_msg): Likewise.
28741 (internal_function): Remove definition.
28742 * intl/loadinfo.h (internal_function): Likewise.
28743 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28744 internal_function.
28745 * intl/localealias.c (internal_function): Remove definition.
28746 (read_alias_file): Remove internal_function.
28747 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28748 * intl/plural-exp.h (internal_function): Remove definition.
28749 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28750 internal_function.
28751 * intl/plural.c: Regenerate.
28752 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28753 * locale/coll-lookup.c (__collidx_table_lookup)
28754 (__collseq_table_lookup): Likewise.
28755 * locale/coll-lookup.h (__collidx_table_lookup)
28756 (__collseq_table_lookup): Likewise.
28757 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28758 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28759 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28760 (_nl_unload_locale): Likewise.
28761 * locale/localeinfo.h (struct __locale_data): Remove
28762 internal_function from cleanup member.
28763 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28764 (_nl_remove_locale, _nl_load_locale_from_archive)
28765 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28766 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28767 (_nl_cleanup_time): Remove internal_function.
28768 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28769 (_nl_parse_alt_digit): Likewise.
28770 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28771 (_nl_select_era_entry): Likewise.
28772 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28773 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28774 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28775 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28776 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28777
28778 2017-08-31 Florian Weimer <fweimer@redhat.com>
28779
28780 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28781 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28782 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28783 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28784 Likewise.
28785 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28786 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28787 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28788 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28789 Likewise.
28790 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28791
28792 2017-08-31 Florian Weimer <fweimer@redhat.com>
28793
28794 * misc/getttyent.c (skip, value): Remove internal_function.
28795 * misc/syslog.c (openlog_internal): Likewise.
28796 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28797
28798 2017-08-31 Florian Weimer <fweimer@redhat.com>
28799
28800 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28801 (__nss_rewrite_field): Remove internal_function.
28802 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28803 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28804 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28805 * nss/nsswitch.c (nss_parse_file, nss_getline)
28806 (nss_parse_service_list, nss_new_service): Likewise.
28807 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28808 * nss/valid_field.c (__nss_valid_field): Likewise.
28809 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28810
28811 2017-08-31 Florian Weimer <fweimer@redhat.com>
28812
28813 * malloc/arena.c (__malloc_fork_lock_parent)
28814 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28815 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28816 internal_function from defintions.
28817 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28818 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28819 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28820 internal_function from declarations.
28821 * malloc/malloc.c (internal_function): Do not define.
28822 (mem2mem_check): Remove internal_function from declaration.
28823 (munmap_chunk, mremap_chunk): Remove internal_function.
28824 * malloc/mtrace.c (tr_where): Likewise.
28825
28826 2017-08-31 Florian Weimer <fweimer@redhat.com>
28827
28828 * include/rpc/pmap_clnt.h (__get_socket): Remove
28829 internal_function.
28830 * sunrpc/auth_des.c (synchronize): Likewise.
28831 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28832 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28833 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28834 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28835 (key_call): Likewise.
28836 * sunrpc/pm_getport.c (__get_socket): Likewise.
28837 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28838 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28839 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28840 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28841 (invalidate): Likewise.
28842 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28843 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28844 (set_input_fragment, get_input_bytes): Likewise.
28845
28846 2017-08-31 Florian Weimer <fweimer@redhat.com>
28847
28848 * malloc/malloc.c (_int_free): Remove locked variable and related
28849 asserts.
28850
28851 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28852
28853 [BZ #22051]
28854 * Makerules (build-module-helper-objlist): Filter out
28855 $(elf-objpfx)sofini.os.
28856 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28857 needed.
28858
28859 2017-08-31 Florian Weimer <fweimer@redhat.com>
28860
28861 * libio/fcloseall.c: Assume weak_alias is defined.
28862 * libio/feof.c: Likewise.
28863 * libio/fileno.c: Likewise.
28864 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28865 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28866 definitions.
28867 (_IO_file_open): Call __open directly.
28868 (_IO_new_file_sync): Assume ESPIPE is defined.
28869 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28870 (_IO_new_file_write): Call __write directly.
28871 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28872 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28873 * libio/genops.c: Assume _LIBC is defined.
28874 (save_for_backup): Remove internal_function.
28875 * libio/getc.c: Assume weak_alias is defined.
28876 * libio/getwc.c: Likewise.
28877 * libio/iofclose.c: Assume _LIBC is defined.
28878 * libio/iofdopen.c: Likewise.
28879 (_IO_fcntl): Remove macro definition.
28880 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28881 Call __fcntl directly.
28882 * libio/iofflush.c: Assume weak_alias is defined.
28883 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28884 defined.
28885 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28886 * libio/iofgets.c: Likewise.
28887 * libio/iofopen.c: Assume _LIBC is defined.
28888 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28889 * libio/iofputs.c: Assume weak_alias is defined.
28890 * libio/iofread.c: Likewise.
28891 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28892 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28893 * libio/ioftell.c: Assume weak_alias is defined.
28894 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28895 * libio/iofwide.c: Assume _LIBC is defined.
28896 (_IO_fwide): Drop SHARED conditional because it is implied by
28897 SHLIB_COMPAT.
28898 * libio/iofwrite.c: Assume weak_alias is defined.
28899 * libio/iogetdelim.c: Likewise.
28900 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28901 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28902 (_IO_getwline): Call __wmemcpy directly.
28903 * libio/iopopen.c: Assume _LIBC is defined.
28904 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28905 (_IO_close): Remove macro definitions.
28906 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28907 _exit directly.
28908 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28909 directly.
28910 * libio/ioputs.c: Assume weak_alias is defined.
28911 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
28912 * libio/iosetbuffer.c: Assume weak_alias is defined.
28913 * libio/iosetvbuf.c: Likewise.
28914 * libio/ioungetc.c: Likewise.
28915 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
28916 libc_hidden_def, libc_hidden_weak, NULL are defined.
28917 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
28918 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
28919 defined.
28920 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28921 definitions.
28922 (_IO_old_file_init_internal): Drop SHARED conditional because it
28923 is implied by SHLIB_COMPAT.
28924 (_IO_old_file_fopen): Call __open directly.
28925 (_IO_old_file_sync): Assume ESPIPE is defined.
28926 (_IO_old_file_write): Call __write directly.
28927 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
28928 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
28929 Call __fcntl directly.
28930 * libio/oldiofgetpos.c: Assume weak_alias is defined.
28931 (_IO_old_fgetpos): Assume EIO is defined.
28932 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
28933 (_IO_old_fgetpos64): Assume EIO is defined.
28934 * libio/oldiofsetpos.c: Assume weak_alias is defined.
28935 (_IO_old_fsetpos): Assume EIO is defined.
28936 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
28937 (_IO_old_fsetpos64): Assume EIO is defined.
28938 * libio/oldiopopen.c: Assume _LIBC is defined.
28939 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28940 (_IO_close): Remove macro definitions.
28941 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
28942 directly.
28943 (_IO_old_proc_close): Call __close, __waitpid directly.
28944 * libio/put.c: Assume weak_alias is defined.
28945 * libio/stdfiles.c: Assume _LIBC is defined.
28946 * libio/stdio.c: Likewise.
28947 * libio/wfileops.c: Likewise.
28948 (_IO_wfile_sync): Assume ESPIPE is defined.
28949 * libio/wgenops.c: Assume _LIBC is defined.
28950 (save_for_wbackup): Remove internal_function.
28951
28952 2017-08-31 Florian Weimer <fweimer@redhat.com>
28953
28954 * malloc/malloc.c (top_check): Change return type to void. Remove
28955 internal_function.
28956 * malloc/hooks.c (top_check): Likewise.
28957 (malloc_check, realloc_check, memalign_check): Adjust.
28958
28959 2017-08-30 Joseph Myers <joseph@codesourcery.com>
28960
28961 [BZ #21457]
28962 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28963 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
28964 sigcontext and namespace requirements.
28965 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28966 * sysdeps/m68k/sys/ucontext.h: Likewise.
28967 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
28968 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
28969 <bits/sigcontext.h>.
28970 (__ctx): Define earlier.
28971 (mcontext_t): Define structure contents rather than using struct
28972 sigcontext.
28973 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
28974 __glibc_reserved1 instead of __reserved.
28975 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
28976 <bits/sigcontext.h>.
28977 (__ctx): Define earlier.
28978 (mcontext_t): Define structure contents rather than using struct
28979 sigcontext.
28980 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
28981 mcontext_t instead of struct sigcontext.
28982 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
28983 <bits/sigcontext.h>.
28984 (__ctx): Define earlier.
28985 (mcontext_t): Define structure contents rather than using struct
28986 sigcontext.
28987 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
28988 <bits/sigcontext.h>.
28989 (__ctx): Define earlier.
28990 (mcontext_t): Define structure contents rather than using struct
28991 sigcontext.
28992 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
28993 mcontext_t instead of struct sigcontext.
28994 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
28995 mcontext_t instead of struct sigcontext.
28996 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
28997 <bits/sigcontext.h>.
28998 (__ctx): New macro.
28999 (struct __ia64_fpreg_mcontext): New type.
29000 (mcontext_t): Define structure contents rather than using struct
29001 sigcontext.
29002 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29003 (uc_sigmask): Define using __ctx.
29004 (uc_stack): Likewise.
29005 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29006 <bits/sigcontext.h>.
29007 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29008 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29009 <bits/sigcontext.h>.
29010 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29011 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29012 <bits/sigcontext.h>.
29013 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29014 <bits/sigcontext.h>.
29015 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29016 <bits/sigcontext.h>.
29017 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29018 <bits/sigcontext.h>.
29019 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29020 <bits/sigcontext.h>.
29021 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29022 <bits/sigcontext.h>.
29023 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29024 <bits/sigcontext.h>.
29025 (__ctx): Define earlier.
29026 (mcontext_t): Define structure contents rather than using struct
29027 sigcontext.
29028 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29029 <bits/sigcontext.h>. Include <bits/types.h>.
29030 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29031 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29032 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29033 (test-xfail-UNIX98/signal.h/conform): Likewise.
29034 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29035 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29036 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29037 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29038 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29039 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29040 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29041 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29042 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29043
29044 2017-08-30 Florian Weimer <fweimer@redhat.com>
29045
29046 * malloc/dynarray_emplace_enlarge.c
29047 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29048 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29049 * malloc/tst-dynarray.c (test_long_overflow): New function.
29050 (do_test): Call it.
29051
29052 2017-08-30 Florian Weimer <fweimer@redhat.com>
29053
29054 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29055 (set_arena_corrupt): Remove definitions.
29056 (mtrim): Do not check for corrupt arena.
29057 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29058 Likewise.
29059
29060 2017-08-30 Florian Weimer <fweimer@redhat.com>
29061
29062 [BZ #21754]
29063 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29064 check_action.
29065 (ptmalloc_init): Do not set or use check_action.
29066 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29067 call to malloc_printerr. Remove return statement.
29068 (free_check): Likewise. Remove arena unlock.
29069 (top_check): Update comment. Adjust call to malloc_printerr.
29070 Remove heap repair code.
29071 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29072 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29073 (sysmalloc): Adjust call to malloc_printerr.
29074 (munmap_chunk, __libc_realloc): Likewise. Remove return
29075 statement.
29076 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29077 Remove errout label and corresponding gotos.
29078 (_int_free): Likewise. Remove arena unlock.
29079 (do_set_mallopt_check): Do not set check_action.
29080 (malloc_printerr): Adjust parameter list. Do not mark arena as
29081 corrupt.
29082 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29083 comment.
29084 * manual/probes.texi (Memory Allocation Probes): Remove
29085 memory_mallopt_check_action.
29086
29087 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29088
29089 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29090 Use pointer to uint64_t instead of long int for sp.
29091
29092 2017-08-30 Florian Weimer <fweimer@redhat.com>
29093
29094 [BZ #21754]
29095 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29096 without printing a backtrace. Do not leak any information in the
29097 error message.
29098 * manual/memory.texi (Heap Consistency Checking): Update.
29099 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29100
29101 2017-08-30 Florian Weimer <fweimer@redhat.com>
29102
29103 Do not scale NPTL tests with available number of CPUs.
29104 * nptl/tst-cond16.c (count): Set to constant value of 8.
29105 * nptl/tst-cond18.c (count): Likewise.
29106
29107 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29108
29109 [BZ #22035]
29110 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29111 Define to take a second argument that is a macro that
29112 concatentates a suffix, not the suffix itself.
29113 (__CONCAT_d): New macro.
29114 (__CONCAT_f): Likewise.
29115 (__CONCAT_l): Likewise.
29116
29117 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29118
29119 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29120 by child.
29121
29122 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29123 Aurelien Jarno <aurelien@aurel32.net>
29124 Maciej W. Rozycki <macro@imgtec.com>
29125
29126 [BZ #21956]
29127 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29128 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29129 `mips16-syscall6' and `mips16-syscall7'.
29130 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29131 (CFLAGS-mips16-syscall7.c): Remove.
29132 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29133 Remove `__mips16_syscall5', `__mips16_syscall6' and
29134 `__mips16_syscall7'.
29135 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29136 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29137 `__mips_syscall_return'.
29138 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29139 (__mips16_syscall1): Likewise.
29140 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29141 (__mips16_syscall2): Likewise.
29142 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29143 (__mips16_syscall3): Likewise.
29144 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29145 (__mips16_syscall4): Likewise.
29146 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29147 Remove.
29148 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29149 Remove.
29150 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29151 Remove.
29152 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29153 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29154 `__mips16_syscall5'. Remove prototype.
29155 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29156 `__mips16_syscall6'. Remove prototype.
29157 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29158 `__mips16_syscall7'. Remove prototype.
29159 (__nomips16, __mips16_syscall_return): Move to...
29160 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29161 (__nomips16, __mips_syscall_return): ... here.
29162 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29163 `__mips16_syscall_return' to `__mips_syscall_return'.
29164 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29165 `internal_syscall##nr'.
29166 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29167 `internal_syscall##nr'.
29168 (FORCE_FRAME_POINTER): Remove.
29169 (__mips_syscall5): New prototype.
29170 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29171 (__mips_syscall6): New prototype.
29172 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29173 (__mips_syscall7): New prototype.
29174 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29175 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29176 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29177 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29178 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29179 (sysdep_routines): Add libc-do-syscall.
29180 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29181 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29182
29183 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29184
29185 [BZ #21672]
29186 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29187 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29188 (advise_stack_range): New function.
29189 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29190 stack non required to advise_stack_range at allocatestack.c
29191
29192 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29193
29194 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29195
29196 2017-08-29 Florian Weimer <fweimer@redhat.com>
29197
29198 [BZ #22026]
29199 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29200 __end_fct. Mangle __end_fct after setting it to NULL.
29201 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29202 (modules-names, modules-names-tests): Add
29203 tst-gconv-init-failure-mod.
29204 (gconv-modules): New target.
29205 (tst-gconv-init-failure-mod.so): Link against libsupport.
29206 (tst-gconv-init-failure): Depend on gconv-modules,
29207 tst-gconv-init-failure-mod.so.
29208 * iconv/tst-gconv-init-failure-mod.c: New file.
29209 * iconv/tst-gconv-init-failure.c: Likewise.
29210 * iconv/test-gconv-modules: Likewise.
29211
29212 2017-08-29 Florian Weimer <fweimer@redhat.com>
29213
29214 [BZ #22025]
29215 * iconv/gconv_db.c (free_derivation): Remove redundant
29216 parentheses.
29217 (gen_steps): Unconditionally mangle __btowc_fct after
29218 initialization.
29219 (increment_counter): Likewise. Do not call init_fct for internal
29220 modules.
29221
29222 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29223
29224 [BZ #22028]
29225 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29226 (_MSUF_): Remove macro.
29227 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29228 Likewise.
29229 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29230 (__REDIRFROM_X): New macro.
29231 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29232 Likewise.
29233 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29234 (__REDIRTO_X): Likewise.
29235 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29236 arguments.
29237 (__MATH_REDIRCALL_2): Likewise.
29238 (__MATH_REDIRCALL_INTERNAL): Likewise.
29239 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29240 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29241 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29242 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29243 * math/test-finite-macros.c: New file.
29244 * math/Makefile (tests): Add test-finite-macros.
29245 (CFLAGS-test-finite-macros.c): New variable.
29246
29247 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29248 Jeff Law <law@redhat.com>
29249
29250 [BZ #22025]
29251 Mangle NULL pointers in iconv/gconv.
29252 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29253 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29254 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29255 is non-NULL before demangling the end_fct. Check for NULL
29256 end_fct after demangling.
29257 (__gconv_release_step): Demangle the end_fct before checking
29258 it for NULL. Remove assert on __shlibc_handle != NULL.
29259 (gen_steps): Don't check btowc_fct for NULL before mangling.
29260 Demangle init_fct before checking for NULL.
29261 (increment_counter): Likewise.
29262 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29263 end_fct for NULL before mangling.
29264 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29265 for NULL.
29266
29267 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29268
29269 [BZ #21971]
29270 * locale/iso-639.def: add Morisyen.
29271
29272 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29273
29274 [BZ #21930]
29275 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29276 (iszero): New C++ implementation that does not use
29277 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29278 signaling nans are enabled, since __builtin_types_compatible_p
29279 is a C-only feature.
29280 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29281 defined, include ieee754_float128.h for access to the union and
29282 member ieee854_float128.ieee.
29283 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29284 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29285 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29286 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29287 options of test-math-zero on powerpc64le.
29288
29289 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29290
29291 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29292 Change double to float.
29293
29294 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29295
29296 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29297 unconditional.
29298 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29299 conditional code; define contents only for [LIBM_SVID_COMPAT].
29300
29301 2017-08-28 Florian Weimer <fweimer@redhat.com>
29302
29303 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29304 (abi-lp64_be-options): Remove.
29305 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29306 (abi-hard-options): Likewise.
29307 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29308 (abi-o32_hard-options, abi-o32_soft_2008-options)
29309 (abi-o32_hard_2008-options, abi-n32_soft-options)
29310 (abi-n32_hard-options, abi-n32_soft_2008-options)
29311 (abi-n32_hard_2008-options, abi-n64_soft-options)
29312 (abi-n64_hard-options, abi-n64_soft_2008-options)
29313 (abi-n64_hard_2008-options): Likewise.
29314 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29315 (abi-64-v1-options, abi-64-v2-options): Likewise.
29316 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29317 (abi-64-options): Likewise.
29318 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29319 (abi-64-options): Likewise.
29320 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29321 (abi-64-options): Likewise.
29322 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29323 (abi-64-options, abi-x32-options): Likewise.
29324
29325 2017-08-28 Florian Weimer <fweimer@redhat.com>
29326
29327 Store supported list of SYS_* system calls in the source tree.
29328 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29329 (bits/syscall.h): Generate from list file.
29330 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29331 [$(subdir) = misc] (tests): Add tst-syscall-list.
29332 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29333 [$(subdir) = misc] (tst-syscall-list-macros.list)
29334 [$(subdir) = misc] (tst-syscall-list-nr.list)
29335 (tst-syscall-list-sys.list): Helper targets for new
29336 tst-syscall-list test.
29337 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29338 tst-syscall-list.sh.
29339 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29340 target. Do not include bits/syscall.d.
29341 [$(subdir) = misc] (generated): Do not update.
29342 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29343 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29344 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29345 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29346
29347 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29348
29349 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29350 (tst-cxa_atexit, tst-on_exit): Likewise.
29351 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29352 tst-cxa_atexit, and tst-on_exit.
29353 * stdlib/tst-atexit-common.c: New file.
29354 * stdlib/tst-atexit.c: New file.
29355 * stdlib/tst-at_quick_exit.c: New file.
29356 * stdlib/tst-cxa_atexit.c: New file.
29357 * stdlib/tst-on_exit.c: New file.
29358
29359 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29360
29361 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29362 * mach/stack_chk_fail_local.c: New file.
29363 * hurd/stack_chk_fail_local.c: New file.
29364 * mach/Machrules ($(interface-library)-routines): Add
29365 stack_chk_fail_local.
29366 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29367 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29368 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29369 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29370 * hurd/Makefile (CFLAGS-hurdstartup.o,
29371 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29372
29373 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29374
29375 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29376 (index_cpu_*, index_arch_*): Removed.
29377
29378 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29379
29380 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29381 Use uint64_t instead of unsigned long.
29382
29383 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29384
29385 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29386 [__HAVE_DISTINCT_FLOAT128].
29387
29388 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29389 of <bits/math-finite.h>.
29390 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29391 inclusion of <bits/math-finite.h>.
29392 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29393 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29394 __NO_LONG_DOUBLE_MATH].
29395 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29396 (__MATH_REDIRCALL_2): Likewise.
29397 (__MATH_REDIRCALL_INTERNAL): Likewise.
29398 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29399 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29400 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29401
29402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29403 Remove file.
29404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29405 Likewise.
29406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29407 Likewise.
29408 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29409 Likewise.
29410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29411 Likewise.
29412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29413 Likewise.
29414 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29415 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29416 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29417 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29419 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29420 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29421 w_sqrtf_compat-ppc32.
29422
29423 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29424
29425 * math/math.h [defined __cplusplus] (issignaling): In the long
29426 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29427 is not defined. Call __issignaling, otherwise.
29428
29429 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29430
29431 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29432 syscall definitions and replace __builtin_expect with __glibc_likely.
29433 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29434 syscall.
29435 (SYSCALL_CANCELLABLE): Removedefinition
29436 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29437 definition.
29438 (PSEUDO_END): Likewise.
29439 [IS_IN (libpthread)] (CENABLE): Likewise.
29440 [IS_IN (libpthread)] (CDISABLE): Likewise.
29441 [IS_IN (libc)] (CENABLE): Likewise.
29442 [IS_IN (libc)] (CENABLE): Likewise.
29443 [IS_IN (librt)] (CDISABLE): Likewise.
29444 [IS_IN (librt)] (CDISABLE): Likewise.
29445 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29446 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29447 definition.
29448 (PSEUDO_END): Likewise.
29449 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29450 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29451 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29452 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29453 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29454 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29455 (CENABLE): Likewise.
29456 (CDISABLE): Likewise.
29457 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29458 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29459 defintion.
29460 (PSEUDO_END): Likewise.
29461 [IS_IN (libpthread)] (CENABLE): Likewise.
29462 [IS_IN (libpthread)] (CDISABLE): Likewise.
29463 [IS_IN (libc)] (CENABLE): Likewise.
29464 [IS_IN (libc)] (CENABLE): Likewise.
29465 [IS_IN (librt)] (CDISABLE): Likewise.
29466 [IS_IN (librt)] (CDISABLE): Likewise.
29467 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29468 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29469 definition.
29470 (PSEUDO_END): Likewise.
29471 [IS_IN (libpthread)] (CENABLE): Likewise.
29472 [IS_IN (libpthread)] (CDISABLE): Likewise.
29473 [IS_IN (libc)] (CENABLE): Likewise.
29474 [IS_IN (libc)] (CENABLE): Likewise.
29475 [IS_IN (librt)] (CDISABLE): Likewise.
29476 [IS_IN (librt)] (CDISABLE): Likewise.
29477 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29478 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29479 definition.
29480 (PSEUDO_END): Likewise.
29481 [IS_IN (libpthread)] (CENABLE): Likewise.
29482 [IS_IN (libpthread)] (CDISABLE): Likewise.
29483 [IS_IN (libc)] (CENABLE): Likewise.
29484 [IS_IN (libc)] (CENABLE): Likewise.
29485 [IS_IN (librt)] (CDISABLE): Likewise.
29486 [IS_IN (librt)] (CDISABLE): Likewise.
29487 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29488 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29489 definition.
29490 (PSEUDO_END): Likewise.
29491 [IS_IN (libpthread)] (CENABLE): Likewise.
29492 [IS_IN (libpthread)] (CDISABLE): Likewise.
29493 [IS_IN (libc)] (CENABLE): Likewise.
29494 [IS_IN (libc)] (CENABLE): Likewise.
29495 [IS_IN (librt)] (CDISABLE): Likewise.
29496 [IS_IN (librt)] (CDISABLE): Likewise.
29497 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29498 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29499 definition.
29500 (PSEUDO_END): Likewise.
29501 [IS_IN (libpthread)] (CENABLE): Likewise.
29502 [IS_IN (libpthread)] (CDISABLE): Likewise.
29503 [IS_IN (libc)] (CENABLE): Likewise.
29504 [IS_IN (libc)] (CENABLE): Likewise.
29505 [IS_IN (librt)] (CDISABLE): Likewise.
29506 [IS_IN (librt)] (CDISABLE): Likewise.
29507 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29508 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29509 definition.
29510 (PSEUDO_END): Likewise.
29511 [IS_IN (libpthread)] (CENABLE): Likewise.
29512 [IS_IN (libpthread)] (CDISABLE): Likewise.
29513 [IS_IN (libc)] (CENABLE): Likewise.
29514 [IS_IN (libc)] (CENABLE): Likewise.
29515 [IS_IN (librt)] (CDISABLE): Likewise.
29516 [IS_IN (librt)] (CDISABLE): Likewise.
29517 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29518 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29519 Remove definition.
29520 (PSEUDO_END): Likewise.
29521 [IS_IN (libpthread)] (CENABLE): Likewise.
29522 [IS_IN (libpthread)] (CDISABLE): Likewise.
29523 [IS_IN (libc)] (CENABLE): Likewise.
29524 [IS_IN (libc)] (CENABLE): Likewise.
29525 [IS_IN (librt)] (CDISABLE): Likewise.
29526 [IS_IN (librt)] (CDISABLE): Likewise.
29527 (SINGLE_THREAD_P): Likewise.
29528 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29529 definition.
29530 (PSEUDO_END): Likewise.
29531 [IS_IN (libpthread)] (CENABLE): Likewise.
29532 [IS_IN (libpthread)] (CDISABLE): Likewise.
29533 [IS_IN (libc)] (CENABLE): Likewise.
29534 [IS_IN (libc)] (CENABLE): Likewise.
29535 [IS_IN (librt)] (CDISABLE): Likewise.
29536 [IS_IN (librt)] (CDISABLE): Likewise.
29537 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29538 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29539 definition.
29540 (PSEUDO_END): Likewise.
29541 [IS_IN (libpthread)] (CENABLE): Likewise.
29542 [IS_IN (libpthread)] (CDISABLE): Likewise.
29543 [IS_IN (libc)] (CENABLE): Likewise.
29544 [IS_IN (libc)] (CENABLE): Likewise.
29545 [IS_IN (librt)] (CDISABLE): Likewise.
29546 [IS_IN (librt)] (CDISABLE): Likewise.
29547 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29548 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29549 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29550 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29551 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29552 definition.
29553 (PSEUDO_END): Likewise.
29554 [IS_IN (libpthread)] (CENABLE): Likewise.
29555 [IS_IN (libpthread)] (CDISABLE): Likewise.
29556 [IS_IN (libc)] (CENABLE): Likewise.
29557 [IS_IN (libc)] (CENABLE): Likewise.
29558 [IS_IN (librt)] (CDISABLE): Likewise.
29559 [IS_IN (librt)] (CDISABLE): Likewise.
29560 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29561 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29562 definition.
29563 (PSEUDO_END): Likewise.
29564 [IS_IN (libpthread)] (CENABLE): Likewise.
29565 [IS_IN (libpthread)] (CDISABLE): Likewise.
29566 [IS_IN (libc)] (CENABLE): Likewise.
29567 [IS_IN (libc)] (CENABLE): Likewise.
29568 [IS_IN (librt)] (CDISABLE): Likewise.
29569 [IS_IN (librt)] (CDISABLE): Likewise.
29570 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29571 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29572 definition.
29573 (PSEUDO_END): Likewise.
29574 [IS_IN (libpthread)] (CENABLE): Likewise.
29575 [IS_IN (libpthread)] (CDISABLE): Likewise.
29576 [IS_IN (libc)] (CENABLE): Likewise.
29577 [IS_IN (libc)] (CENABLE): Likewise.
29578 [IS_IN (librt)] (CDISABLE): Likewise.
29579 [IS_IN (librt)] (CDISABLE): Likewise.
29580 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29581 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29582 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29583 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29584 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29585 definition.
29586 (PSEUDO_END): Likewise.
29587 [IS_IN (libpthread)] (CENABLE): Likewise.
29588 [IS_IN (libpthread)] (CDISABLE): Likewise.
29589 [IS_IN (libc)] (CENABLE): Likewise.
29590 [IS_IN (libc)] (CENABLE): Likewise.
29591 [IS_IN (librt)] (CDISABLE): Likewise.
29592 [IS_IN (librt)] (CDISABLE): Likewise.
29593 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29594 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29595 definition.
29596 (PSEUDO_END): Likewise.
29597 [IS_IN (libpthread)] (CENABLE): Likewise.
29598 [IS_IN (libpthread)] (CDISABLE): Likewise.
29599 [IS_IN (libc)] (CENABLE): Likewise.
29600 [IS_IN (libc)] (CENABLE): Likewise.
29601 [IS_IN (librt)] (CDISABLE): Likewise.
29602 [IS_IN (librt)] (CDISABLE): Likewise.
29603 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29604
29605 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29606
29607 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29608
29609 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29610
29611 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29612
29613 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29614
29615 [BZ #21982]
29616 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29617 middle and outer with size_t instead of int. Repleace %d and
29618 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29619 "MAX (outer, nchars - 64)" to support unsigned outer and
29620 nchars. Also exit loop when outer == 0.
29621
29622 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29623
29624 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29625 * include/signal.h (__sigsuspend_nocancel): Likewise.
29626 * include/time.h (__nanosleep_nocancel): Likewise.
29627 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29628 * login/utmp_file.c: Include non cancellable syscall header.
29629 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29630 prototype.
29631
29632 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29633
29634 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29635 .byte sequences with AVX512F instructions.
29636 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29637 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29638 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29639 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29640 Likewise.
29641 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29642 Likewise.
29643
29644 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29645 Steve Ellcey <sellcey@cavium.com>
29646
29647 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29648 Use PTR_REG macro in cmp instruction.
29649
29650 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29651
29652 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29653 Change the return type of the ifunc resolver to match the return
29654 type of the target function.
29655
29656 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29657
29658 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29659 (preadv64): Likewise.
29660 (pwrite64(: Likewise.
29661 (pwritev64): Likewise.
29662
29663 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29664 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29665 (LOAD_ARGS_0): Likewise.
29666 (LOAD_ARGS_1): Likewise.
29667 (LOAD_ARGS_2): Likewise.
29668 (LOAD_ARGS_3): Likewise.
29669 (LOAD_ARGS_4): Likewise.
29670 (LOAD_ARGS_5): Likewise.
29671 (LOAD_ARGS_6): Likewise.
29672 (LOAD_REGS_0): Likewise.
29673 (LOAD_REGS_1): Likewise.
29674 (LOAD_REGS_2): Likewise.
29675 (LOAD_REGS_3): Likewise.
29676 (LOAD_REGS_4): Likewise.
29677 (LOAD_REGS_5): Likewise.
29678 (LOAD_REGS_6): Likewise.
29679 (ASM_ARGS_0): Likewise.
29680 (ASM_ARGS_1): Likewise.
29681 (ASM_ARGS_2): Likewise.
29682 (ASM_ARGS_3): Likewise.
29683 (ASM_ARGS_4): Likewise.
29684 (ASM_ARGS_5): Likewise.
29685 (ASM_ARGS_6): Likewise.
29686 (LOAD_ARGS_TYPES_1): Likewise.
29687 (LOAD_ARGS_TYPES_2): Likewise.
29688 (LOAD_ARGS_TYPES_3): Likewise.
29689 (LOAD_ARGS_TYPES_4): Likewise.
29690 (LOAD_ARGS_TYPES_5): Likewise.
29691 (LOAD_ARGS_TYPES_6): Likewise.
29692 (LOAD_REGS_TYPES_1): Likewise.
29693 (LOAD_REGS_TYPES_2): Likewise.
29694 (LOAD_REGS_TYPES_3): Likewise.
29695 (LOAD_REGS_TYPES_4): Likewise.
29696 (LOAD_REGS_TYPES_5): Likewise.
29697 (LOAD_REGS_TYPES_6): Likewise.
29698 (TYPEFY): New define.
29699 (ARGIFY): Likewise.
29700 (internal_syscall0): Likewise.
29701 (internal_syscall1): Likewise.
29702 (internal_syscall2): Likewise.
29703 (internal_syscall3): Likewise.
29704 (internal_syscall4): Likewise.
29705 (internal_syscall5): Likewise.
29706 (internal_syscall6): Likewise.
29707 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29708 (INTERNAL_SYSCALL_NCS): Remove define.
29709 (internal_syscall1): Add define.
29710
29711 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29712
29713 * math/w_remainder_compat.c: Remove duplicate inclusion of
29714 math-svid-compat.h.
29715 * math/w_remainderf_compat.c: Likewise.
29716 * math/w_remainderl_compat.c: Likewise.
29717
29718 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29719
29720 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29721
29722 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29723
29724 [BZ #21684]
29725 * math/tgmath.h (__floating_type): Simplify definitions.
29726 (__real_integer_type): New macro.
29727 (__complex_integer_type): Likewise.
29728 (__expr_is_real): Likewise.
29729 (__tgmath_real_type_sub): Update comment to describe handling of
29730 complex types.
29731 (__tgmath_complex_type_sub): New macro.
29732 (__tgmath_complex_type): Likewise.
29733 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29734 (__TGMATH_CF128): Use __expr_is_real.
29735 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29736 __expr_is_real.
29737 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29738 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29739 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29740 integer types.
29741
29742 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29743
29744 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29745 macro.
29746 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29747 alias.
29748 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29749 Likewise.
29750
29751 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29752 nanosleep_not_cancel with __nanosleep_nocancel.
29753 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29754 (__nanosleep_nocancel): New macro.
29755 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29756 function.
29757 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29758 macro.
29759 (__nanosleep_nocancel): New prototype.
29760
29761 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29762 pause_not_cancel with __pause_nocancel.
29763 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29764 (__pause_nocancel): New macro.
29765 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29766 macro.
29767 (__pause_nocancel): New prototype.
29768 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29769
29770 2017-08-22 Martin Sebor <msebor@redhat.com>
29771
29772 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29773 to return a pointer to the same type as the target function.
29774
29775 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29776
29777 [BZ #18822]
29778 [BZ #21986]
29779 * include/printf.h (__printf_fphex): Add attribute_hidden.
29780 (__guess_grouping): New prototype.
29781 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29782 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29783 libc_hidden_proto and libc_hidden_def.
29784 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29785 (__vstrfmon_l): Remove the third argument passed to
29786 __guess_grouping.
29787
29788 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29789
29790 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29791 definition for issignaling that does not rely on __MATH_TG,
29792 since __MATH_TG uses __builtin_types_compatible_p, which is only
29793 available in C mode.
29794 (CFLAGS-test-math-issignaling.cc): New variable.
29795 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29796 * math/test-math-issignaling.cc: New test for C++ implementation
29797 of type-generic issignaling.
29798 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29799 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29800 options of test-math-issignaling on powerpc64le.
29801
29802 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29803
29804 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29805 building libc.a.
29806 (hidden_proto): Likewise.
29807 (hidden_tls_proto): Likewise.
29808 (__hidden_proto): Likewise.
29809
29810 2017-08-22 Florian Weimer <fweimer@redhat.com>
29811
29812 math: Statically link tests of internal functionality.
29813 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29814 atest-exp2.
29815 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29816 (gmp-objs): Remove assignment.
29817 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29818
29819 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29820
29821 [BZ #21987]
29822 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29823 and copy to ...
29824 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29825 ... here.
29826 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29827 ... and here.
29828
29829 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29830 variable definitions above inclusion of ../Rules.
29831
29832 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29833
29834 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29835 case calling __builtin_unreachable.
29836
29837 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29838
29839 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29840 __waitpid_nocancel.
29841 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29842 (__waitpid_nocancel): New macro.
29843 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29844 macro.
29845 (__waitpid_nocancel): Replace macro with a function.
29846 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29847 function.
29848
29849 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29850 __fcntl_nocancel.
29851 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29852 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29853
29854 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29855 __writev_nocancel_nostatus.
29856 (write_call_graph): Likewise.
29857 (write_bb_counts): Likewise.
29858 * resolv/herror.c (herror): Likewise.
29859 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29860 macro.
29861 (__writev_nocancel_nostatus): New macro.
29862 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29863 Remove macro.
29864 (__writev_nocancel_nostatus): New function.
29865
29866 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29867
29868 Revert:
29869 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29870
29871 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29872 building libc.a.
29873 (hidden_proto): Likewise.
29874 (hidden_tls_proto): Likewise.
29875 (__hidden_proto): Likewise.
29876
29877 [BZ #21973]
29878 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29879 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29881 Likewise.
29882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29883 Likewise.
29884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29885 Likewise.
29886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29887 Likewise.
29888 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29889 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29890 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29891 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29892 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29893 GLIBC_2.0 sqrtl symbol.
29894
29895 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29896 [__USE_MISC] (_LIB_VERSION): Likewise.
29897 [__USE_MISC] (struct exception): Likewise.
29898 [__USE_MISC] (matherr): Likewise.
29899 [__USE_MISC] (DOMAIN): Likewise.
29900 [__USE_MISC] (SING): Likewise.
29901 [__USE_MISC] (OVERFLOW): Likewise.
29902 [__USE_MISC] (UNDERFLOW): Likewise.
29903 [__USE_MISC] (TLOSS): Likewise.
29904 [__USE_MISC] (PLOSS): Likewise.
29905 [__USE_MISC] (HUGE): Likewise.
29906 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29907 * math/math-svid-compat.h: New file.
29908 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29909 and matherrl.
29910 * include/math.h [!_ISOMAC] (__matherr): Remove.
29911 * manual/arith.texi (FP Exceptions): Do not document matherr.
29912 * math/Makefile (tests): Change test-matherr to test-matherr-3.
29913 (tests-internal): New variable.
29914 (install-lib): Do not add libieee.a.
29915 (non-lib.a): Likewise.
29916 (extra-objs): Do not add libieee.a and ieee-math.o.
29917 (CPPFLAGS-s_lib_version.c): Remove variable.
29918 ($(objpfx)libieee.a): Remove rule.
29919 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
29920 * math/ieee-math.c: Remove.
29921 * math/libm-test-support.c (matherr): Remove.
29922 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
29923 and license notices. Include <math-svid-compat.h> and
29924 <shlib-compat.h>.
29925 (matherr): Undefine as macro. Use compat_symbol_reference.
29926 (_LIB_VERSION): Likewise.
29927 * math/test-matherr-2.c: New file.
29928 * math/test-matherr-3.c: Likewise.
29929 * sysdeps/generic/math_private.h (__kernel_standard): Remove
29930 declaration.
29931 (__kernel_standard_f): Likewise.
29932 (__kernel_standard_l): Likewise.
29933 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
29934 <math_private.h>. Include <math-svid-compat.h>.
29935 (_LIB_VERSION): Undefine as macro.
29936 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
29937 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
29938 [LIBM_SVID_COMPAT], use compat_symbol.
29939 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
29940 <math_private.h>. Include <math-svid-compat.h>.
29941 (matherr): Undefine as macro.
29942 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
29943 compat_symbol.
29944 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
29945 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
29946 compat_symbol_reference.
29947 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
29948 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
29949 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
29950 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
29951 (MATHERR_D): Remove declaration.
29952 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
29953 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
29954 [LIBM_BUILD] (pmatherrf): Likewise.
29955 [LIBM_BUILD] (pmatherr): Likewise.
29956 [LIBM_BUILD] (pmatherrl): Likewise.
29957 (DOMAIN): Likewise.
29958 (SING): Likewise.
29959 (OVERFLOW): Likewise.
29960 (UNDERFLOW): Likewise.
29961 (TLOSS): Likewise.
29962 (PLOSS): Likewise.
29963 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
29964 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
29965 compat_symbol.
29966 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
29967 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
29968 compat_symbol.
29969 * math/lgamma-compat.h: Include <math-svid-compat.h>.
29970 * math/w_acos_compat.c: Likewise.
29971 * math/w_acosf_compat.c: Likewise.
29972 * math/w_acosh_compat.c: Likewise.
29973 * math/w_acoshf_compat.c: Likewise.
29974 * math/w_acoshl_compat.c: Likewise.
29975 * math/w_acosl_compat.c: Likewise.
29976 * math/w_asin_compat.c: Likewise.
29977 * math/w_asinf_compat.c: Likewise.
29978 * math/w_asinl_compat.c: Likewise.
29979 * math/w_atan2_compat.c: Likewise.
29980 * math/w_atan2f_compat.c: Likewise.
29981 * math/w_atan2l_compat.c: Likewise.
29982 * math/w_atanh_compat.c: Likewise.
29983 * math/w_atanhf_compat.c: Likewise.
29984 * math/w_atanhl_compat.c: Likewise.
29985 * math/w_cosh_compat.c: Likewise.
29986 * math/w_coshf_compat.c: Likewise.
29987 * math/w_coshl_compat.c: Likewise.
29988 * math/w_exp10_compat.c: Likewise.
29989 * math/w_exp10f_compat.c: Likewise.
29990 * math/w_exp10l_compat.c: Likewise.
29991 * math/w_exp2_compat.c: Likewise.
29992 * math/w_exp2f_compat.c: Likewise.
29993 * math/w_exp2l_compat.c: Likewise.
29994 * math/w_fmod_compat.c: Likewise.
29995 * math/w_fmodf_compat.c: Likewise.
29996 * math/w_fmodl_compat.c: Likewise.
29997 * math/w_hypot_compat.c: Likewise.
29998 * math/w_hypotf_compat.c: Likewise.
29999 * math/w_hypotl_compat.c: Likewise.
30000 * math/w_j0_compat.c: Likewise.
30001 * math/w_j0f_compat.c: Likewise.
30002 * math/w_j0l_compat.c: Likewise.
30003 * math/w_j1_compat.c: Likewise.
30004 * math/w_j1f_compat.c: Likewise.
30005 * math/w_j1l_compat.c: Likewise.
30006 * math/w_jn_compat.c: Likewise.
30007 * math/w_jnf_compat.c: Likewise.
30008 * math/w_jnl_compat.c: Likewise.
30009 * math/w_lgamma_main.c: Likewise.
30010 * math/w_lgamma_r_compat.c: Likewise.
30011 * math/w_lgammaf_main.c: Likewise.
30012 * math/w_lgammaf_r_compat.c: Likewise.
30013 * math/w_lgammal_main.c: Likewise.
30014 * math/w_lgammal_r_compat.c: Likewise.
30015 * math/w_log10_compat.c: Likewise.
30016 * math/w_log10f_compat.c: Likewise.
30017 * math/w_log10l_compat.c: Likewise.
30018 * math/w_log2_compat.c: Likewise.
30019 * math/w_log2f_compat.c: Likewise.
30020 * math/w_log2l_compat.c: Likewise.
30021 * math/w_log_compat.c: Likewise.
30022 * math/w_logf_compat.c: Likewise.
30023 * math/w_logl_compat.c: Likewise.
30024 * math/w_pow_compat.c: Likewise.
30025 * math/w_powf_compat.c: Likewise.
30026 * math/w_powl_compat.c: Likewise.
30027 * math/w_remainder_compat.c: Likewise.
30028 * math/w_remainderf_compat.c: Likewise.
30029 * math/w_remainderl_compat.c: Likewise.
30030 * math/w_scalb_compat.c: Likewise.
30031 * math/w_scalbf_compat.c: Likewise.
30032 * math/w_scalbl_compat.c: Likewise.
30033 * math/w_sinh_compat.c: Likewise.
30034 * math/w_sinhf_compat.c: Likewise.
30035 * math/w_sinhl_compat.c: Likewise.
30036 * math/w_sqrt_compat.c: Likewise.
30037 * math/w_sqrtf_compat.c: Likewise.
30038 * math/w_sqrtl_compat.c: Likewise.
30039 * math/w_tgamma_compat.c: Likewise.
30040 * math/w_tgammaf_compat.c: Likewise.
30041 * math/w_tgammal_compat.c: Likewise.
30042 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30043 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30044 * sysdeps/ieee754/k_standard.c: Likewise.
30045 * sysdeps/ieee754/k_standardf.c: Likewise.
30046 * sysdeps/ieee754/k_standardl.c: Likewise.
30047 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30048 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30049 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30050 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30051 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30052 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30053 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30054 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30055 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30056 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30057 Likewise.
30058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30059 Likewise.
30060 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30061 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30062 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30063 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30064
30065 2017-08-21 Florian Weimer <fweimer@redhat.com>
30066
30067 [BZ #21864]
30068 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30069 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30070 Move before inclusion of ../Rules.
30071
30072 2017-08-21 Florian Weimer <fweimer@redhat.com>
30073
30074 [BZ #21972]
30075 * assert/assert.h (assert): Use static_cast (bool) for C++.
30076 Use the ternary operator in the warning branch for GNU C.
30077 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30078 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30079 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30080 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30081 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30082
30083 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30084
30085 [BZ #18822]
30086 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30087 (__syscall_clock_gettime): Add attribute_hidden.
30088 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30089 (__start_context): Likewise.
30090
30091 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30092
30093 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30094 building libc.a.
30095 (hidden_proto): Likewise.
30096 (hidden_tls_proto): Likewise.
30097 (__hidden_proto): Likewise.
30098
30099 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30100
30101 * include/libc-symbols.h (attribute_hidden): Enable hidden
30102 visibility in libc.a compiled with PIE.
30103
30104 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30105
30106 [BZ #18822]
30107 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30108 Add attribute_hidden.
30109
30110 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30111
30112 [BZ #21864]
30113 * Makerules (all-nonlib): Add $(others-extras).
30114 * catgets/Makefile (others-extras): New.
30115 * elf/Makefile (others-extras): Likewise.
30116 * nss/Makefile (others-extras): Likewise.
30117
30118 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30119
30120 [BZ #18822]
30121 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30122 * elf/dl-open.c: Include <libc-internal.h>.
30123 (__libc_multiple_libcs): Removed.
30124 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30125 <hp-timing.h>.
30126 * include/libc-internal.h (__libc_multiple_libcs): New.
30127 * misc/sbrk.c: Include <libc-internal.h>.
30128 (__libc_multiple_libcs): Removed.
30129
30130 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30131
30132 [BZ #18822]
30133 * grp/initgroups.c (__nss_group_database): Removed.
30134 (__nss_initgroups_database): Likewise.
30135 * nscd/gai.c (__nss_hosts_database): Likewise.
30136 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30137 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30138 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30139 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30140 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30141 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30142 attribute_hidden.
30143 * nss/nsswitch.c (__nss_database_custom): Define only if
30144 USE_NSCD is defined.
30145 (__nss_configure_lookup): Use __nss_database_custom only if
30146 USE_NSCD is defined.
30147 * nss/nsswitch.h (__nss_database_custom): Declare only if
30148 USE_NSCD is defined. Add attribute_hidden.
30149 (__nss_setent): Add attribute_hidden.
30150 (__nss_endent): Likewise.
30151 (__nss_getent_r): Likewise.
30152 (__nss_getent): Likewise.
30153 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30154
30155 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30156
30157 [BZ #18822]
30158 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30159 libc_hidden_proto and libc_hidden_def.
30160
30161 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30162
30163 [BZ #18822]
30164 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30165 Add libc_hidden_proto.
30166 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30167 Add libc_hidden_def.
30168
30169 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30170
30171 [BZ #21974]
30172 * gmon/Makefile (routines): Remove bb_init_func and
30173 bb_exit_func.
30174 (elide-routines.os): Removed.
30175 * gmon/bb_exit_func.c: Likewise.
30176 * gmon/bb_init_func.c: Likewise.
30177 * include/sys/gmon.h (__bb): Likewise.
30178 (__bb_init_func): Likewise.
30179 (__bb_exit_func): Likewise.
30180 * sysdeps/alpha/bb_init_func.S: Likewise.
30181
30182 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30183
30184 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30185 * include/setjmp.h (____longjmp_chk): Here. Add
30186 attribute_hidden.
30187
30188 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30189
30190 [BZ #18822]
30191 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30192 attribute_hidden.
30193 (__strspn_sse2): Likewise.
30194
30195 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30196
30197 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30198 (close_not_cancel_no_status): Likewise.
30199 (__close_nocancel): New macro.
30200 (__close_nocancel_nostatus): Likewise.
30201 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30202 macro.
30203 (close_not_cancel): Likewise.
30204 (close_not_cancel_no_status): Likewise.
30205 (__close_nocancel): New prototype.
30206 (__close_nocancel_nostatus): New function.
30207 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30208 * catgets/open_catalog.c (__open_catalog): Replace
30209 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30210 * gmon/gmon.c (write_gmon): Likewise.
30211 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30212 * intl/loadmsgcat.c (close): Likewise.
30213 * io/ftw.c (open_dir_stream): Likewise.
30214 (ftw_startup): Likewise.
30215 * libio/fileops.c (_IO_file_open): Likewise.
30216 (_IO_file_close_mmap): Likewise.
30217 (_IO_file_close): Likewise.
30218 * libio/iopopen.c (_IO_dup2): Likewise.
30219 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30220 * locale/loadlocale.c (_nl_load_locale): Likewise.
30221 * login/utmp_file.c (pututline_file): Likewise.
30222 (endutent_file): Likewise.
30223 * misc/daemon.c (daemon): Likewise.
30224 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30225 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30226 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30227 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30228 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30229 * nscd/nscd_helper.c (open_socket): Likewise.
30230 (__nscd_open_socket): Likewise.
30231 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30232 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30233 (__nscd_innetgr): Likewise.
30234 * nss/nss_db/db-open.c (internal_setent): Likewise.
30235 * resolv/res-close.c (__res_iclose): Likewise.
30236 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30237 * sysdeps/posix/closedir.c (__closedir): Likewise.
30238 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30239 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30240 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30241 (opendir_tail): Likewise.
30242 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30243 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30244 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30245 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30246 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30247 (gethostid): Likewise.
30248 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30249 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30250 Likewise.
30251 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30252 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30253 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30254 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30255 Likewise.
30256 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30257 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30258 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30259 Likewise.
30260 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30261 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30262 Likewise.
30263 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30264 Likewise.
30265 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30266 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30267 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30268 __close_nocancel.
30269
30270 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30271 (openat_not_cancel_3): Likewise.
30272 (openat64_not_cancel_3): Likewise).
30273 (openat_not_cancel_3): Likewise).
30274 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30275 macro.
30276 (openat_not_cancel_3): Likewise.
30277 (openat64_not_cancel): Likewise.
30278 (openat64_not_cancel_3): Likewise.
30279 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30280 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30281 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30282 __open{64}_nocancel.
30283 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30284 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30285 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30286
30287 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30288
30289 [BZ #18822]
30290 * include/argz.h (__argz_create_sep): New function prototype.
30291 (__argz_append): Likewise.
30292 (__argz_add): Likewise.
30293 (__argz_add_sep): Likewise.
30294 (__argz_delete): Likewise.
30295 (__argz_insert): Likewise.
30296 (__argz_replace): Likewise.
30297 * string/argz.h (__argz_create_sep): Removed.
30298 (__argz_append): Likewise.
30299 (__argz_add): Likewise.
30300 (__argz_add_sep): Likewise.
30301 (__argz_delete): Likewise.
30302 (__argz_insert): Likewise.
30303 (__argz_replace): Likewise.
30304
30305 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30306
30307 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30308 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30309 (GNU_PROPERTY_STACK_SIZE): Likewie.
30310 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30311 (GNU_PROPERTY_LOPROC): Likewise.
30312 (GNU_PROPERTY_HIPROC): Likewise.
30313 (GNU_PROPERTY_LOUSER): Likewise.
30314 (GNU_PROPERTY_HIUSER): Likewise.
30315 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30316 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30317 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30318 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30319 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30320 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30321 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30322 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30323 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30324 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30325 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30326 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30327 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30328 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30329 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30330 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30331 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30332 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30333 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30334 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30335 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30336 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30337 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30338
30339 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30340
30341 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30342 in C++ mode.
30343
30344 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30345
30346 [BZ #21930]
30347 * math/math.h (isinf): Check if in C or C++ mode before using
30348 __builtin_types_compatible_p, since this is a C mode feature.
30349
30350 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30351
30352 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30353 (__write_nocancel): New macro.
30354 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30355 Rewrite as a function prototype.
30356 (write_not_cancel): Remove macro.
30357 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30358 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30359 (write_gmon): Likewise.
30360 * libio/fileops.c (_IO_new_file_write): Likewise.
30361 * login/utmp_file.c (pututline_file): Likewise.
30362 (updwtmp_file): Likewise.
30363 * stdio-common/psiginfo.c (psiginfo): Likewise.
30364 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30365 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30366 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30367 Likewise.
30368 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30369 Likewise.
30370
30371 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30372 (__read_nocancel): New macro.
30373 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30374 __read_nocancel.
30375 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30376 macro.
30377 (__read_nocancel): New prototype.
30378 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30379 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30380 with __read_nocancel.
30381 * intl/loadmsgcat.c (read): Likewise.
30382 * libio/fileops.c (_IO_file_read): Likewise.
30383 * locale/loadlocale.c (_nl_load_locale): Likewise.
30384 * login/utmp_file.c (getutent_r_file): Likewise.
30385 (internal_getut_r): Likewise.
30386 (getutline_r_file): Likewise.
30387 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30388 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30389 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30390 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30391 Likewise.
30392 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30393 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30394 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30395 Likewise.
30396 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30397 Likewise.
30398 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30399 Likewise.
30400 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30401 Likewise.
30402 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30403
30404 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30405
30406 [BZ #21966]
30407 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30408 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30409 usable.
30410
30411 2017-08-17 DJ Delorie <dj@redhat.com>
30412
30413 * bug17079.c: Update to new test harness.
30414 * test-digits-dots.c: Likewise.
30415 * test-netdb.c: Likewise.
30416 * tst-field.c: Likewise.
30417 * tst-nss-getpwent.c: Likewise.
30418 * tst-nss-static.c: Likewise.
30419 * tst-nss-test1.c: Likewise.
30420 * tst-nss-test2.c: Likewise.
30421 * tst-nss-test3.c: Likewise.
30422 * tst-nss-test4.c: Likewise.
30423 * tst-nss-test5.c: Likewise.
30424
30425 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30426
30427 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30428 (open_not_cancel_2): Likewise.
30429 (open_nocancel): New macro.
30430 (open64_nocancel): Likewise.
30431 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30432 (open_not_cancel_2): Likewise.
30433 (__open_nocancel): New prototype.
30434 (__open64_nocancel): Likewise.
30435 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30436 __open_nocancel.
30437 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30438 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30439 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30440 with __open_nocancel.
30441 * csu/check_fds.c (check_one_fd): Likewise.
30442 * gmon/gmon.c (write_gmon): Likewise.
30443 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30444 * intl/loadmsgcat.c (open): Likewise.
30445 * libio/fileops.c (_IO_file_open): Likewise.
30446 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30447 * locale/loadlocale.c (_nl_load_locale): Likewise.
30448 * login/utmp_file.c (setutent_file): Likewise.
30449 * misc/daemon.c (daemon): Likewise.
30450 * nss/nss_db/db-open.c (internal_setent): Likewise.
30451 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30452 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30453 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30454 (__opendir): Likewise.
30455 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30456 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30457 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30458 (gethostid): Likewise.
30459 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30460 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30461 Likewise.
30462 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30463 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30464 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30465 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30466 Likewise.
30467 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30468 Likewise.
30469 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30470 Likewise.
30471 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30472 Likewise.
30473 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30474 Likewise.
30475 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30476 Likewise.
30477 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30478 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30479
30480 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30481
30482 * benchtests/bench-skeleton.c (main): Add support for
30483 latency benchmarking.
30484 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30485
30486 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30487
30488 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30489 the startup object.
30490
30491 2017-08-17 Florian Weimer <fweimer@redhat.com>
30492
30493 * include/sys/socket.h (__opensock): Remove internal_function.
30494 * socket/opensock.c (__opensock): Likewise.
30495 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30496
30497 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30498
30499 [BZ #21944]
30500 * signal/bits/types/__sigval_t.h: New file.
30501 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30502 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30503 and define sigval_t using __sigval_t.
30504 * include/bits/types/__sigval_t.h: New file.
30505 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30506 instead of <bits/types/__sigval_t.h>.
30507 (struct sigevent): Use __sigval_t instead of sigval_t.
30508 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30509 instead of <bits/types/__sigval_t.h>.
30510 (siginfo_t): Use __sigval_t instead of sigval_t.
30511 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30512 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30513 (struct sigevent): Use __sigval_t instead of sigval_t.
30514 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30515 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30516 (siginfo_t): Use __sigval_t instead of sigval_t.
30517 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30518
30519 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30520
30521 * NEWS: Remove "[Add new features here]" for 2.27.
30522
30523 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30524
30525 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30526 libc.so.
30527
30528 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30529
30530 * NEWS: Mention x86-64 FMA optimization.
30531
30532 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30533
30534 [BZ #21912]
30535 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30536 Add e_expf-fma.
30537 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30538 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30539 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30540
30541 2017-08-16 Andreas Schwab <schwab@suse.de>
30542
30543 [BZ #16750]
30544 CVE-2009-5064
30545 * elf/ldd.bash.in: Never run file directly.
30546
30547 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30548
30549 [BZ #21955]
30550 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30551 (L(SP_INF_0)): Likewise.
30552
30553 2017-08-15 Florian Weimer <fweimer@redhat.com>
30554
30555 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30556 run-built-tests.
30557
30558 2017-08-15 Florian Weimer <fweimer@redhat.com>
30559
30560 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30561 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30562 BROKEN_THREAD_SIGNALS code.
30563 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30564 request_list): Remove caller_pid member used for
30565 BROKEN_THREAD_SIGNALS.
30566 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30567 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30568 Remove BROKEN_THREAD_SIGNALS support.
30569 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30570 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30571
30572 2017-08-15 Florian Weimer <fweimer@redhat.com>
30573
30574 * gmon/Makefile (tests): Add tst-gmon.
30575 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30576 Set.
30577 (tests-special): Add tst-gmon-prof.out.
30578 (tst-gmon.out): Depend on clean-tst-gmon-data.
30579 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30580 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30581 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30582 startup object.
30583 * aclocal.m4 (GPROF): Set and substitute.
30584 * config.amke.in (GPROF): Set.
30585 * configure: Regenerate.
30586
30587 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30588
30589 * elf/elf.h A (NT_PPC_TAR): New macro.
30590 (NT_PPC_PPR): Likewise.
30591 (NT_PPC_DSCR): Likewise.
30592 (NT_PPC_EBB): Likewise.
30593 (NT_PPC_PMU): Likewise.
30594 (NT_PPC_TM_CGPR): Likewise.
30595 (NT_PPC_TM_CFPR): Likewise.
30596 (NT_PPC_TM_CVMX): Likewise.
30597 (NT_PPC_TM_CVSX): Likewise.
30598 (NT_PPC_TM_SPR): Likewise.
30599 (NT_PPC_TM_CTAR): Likewise.
30600 (NT_PPC_TM_CPPR): Likewise.
30601 (NT_PPC_TM_CDSCR): Likewise.
30602
30603 2017-08-15 Florian Weimer <fweimer@redhat.com>
30604
30605 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30606 regparm (2) instead of internal_function.
30607 (_MCOUNT_DECL): Adjust.
30608
30609 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30610
30611 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30612 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30613
30614 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30615
30616 * conform/data/sys/wait.h-data (si_value): Do not expect for
30617 XPG42.
30618
30619 2017-08-14 Florian Weimer <fweimer@redhat.com>
30620
30621 [BZ #21962]
30622 NSS: Create stubs for accidentally exported lookup functions.
30623 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30624 Remove declaration.
30625 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30626 (ether_hostton): Call __nss_ethers_lookup2 instead.
30627 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30628 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30629 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30630 (setup): Call __nss_netgroup_lookup2 instead.
30631 * nss/Makefile (routines): Add compat-lookup.
30632 * nss/Versions (GLIBC_2.27): Add symbol version.
30633 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30634 (DB_COMPAT_FCT): Remove.
30635 * nss/compat-lookup.c: New file.
30636 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30637 from databases.def.
30638 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30639 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30640 (netname2user): Call __nss_publickey_lookup2 instead.
30641 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30642 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30643 instead.
30644
30645 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30646 Sergei Trofimovich <slyfox@inbox.ru>
30647
30648 [BZ #21908]
30649 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30650 Rename to MMAP2_PAGE_UNIT.
30651 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30652 __OFF_T_MATCHES_OFF64_T is not defined.
30653 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30654 uint64_t.
30655 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30656 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30657
30658 2017-08-14 Florian Weimer <fweimer@redhat.com>
30659
30660 i386: Do not set internal_function.
30661 * config.h.in (USE_REGPARMS, internal_function): Remove.
30662 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30663 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30664
30665 2017-08-14 Florian Weimer <fweimer@redhat.com>
30666
30667 * elf/dl-init.c (_dl_init): Remove internal_function.
30668 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30669 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30670
30671 2017-08-14 Florian Weimer <fweimer@redhat.com>
30672
30673 * elf/rtld.c (_dl_start): Remove internal_function.
30674 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30675 _dl_start.
30676
30677 2017-08-14 Florian Weimer <fweimer@redhat.com>
30678
30679 * elf/dl-fini.c (_dl_fini): Remove internal_function
30680 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30681
30682 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30683
30684 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30685 (bit_cpu_SHSTK): Likewise.
30686 (index_cpu_IBT): Likewise.
30687 (index_cpu_SHSTK): Likewise.
30688 (reg_IBT): Likewise.
30689 (reg_SHSTK): Likewise.
30690 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30691 Handle index_cpu_IBT and index_cpu_SHSTK.
30692
30693 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30694
30695 [BZ #19982]
30696 * po/fr.po: Fix spelling mistake.
30697
30698 2017-08-13 Florian Weimer <fweimer@redhat.com>
30699
30700 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30701 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30702 (_dl_catch_error, _dl_receive_error): Likewise.
30703 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30704 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30705 (_dl_deallocate_tls): Likewise.
30706 * include/dlfcn.h (_dl_addr): Likewise.
30707 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30708 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30709 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30710 Likewise.
30711
30712 2017-08-13 Florian Weimer <fweimer@redhat.com>
30713
30714 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30715 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30716 internal_function.
30717 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30718
30719 2017-08-13 Florian Weimer <fweimer@redhat.com>
30720
30721 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30722 internal_function.
30723 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30724 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30725 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30726 internal_function from _dl_make_stack_executable_hook member.
30727 (_dl_make_stack_executable): Remove internal_function.
30728 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30729 Likewise.
30730 * sysdeps/unix/sysv/linux/dl-execstack.c
30731 (_dl_make_stack_executable): Likewise.
30732
30733 2017-08-13 Florian Weimer <fweimer@redhat.com>
30734
30735 * sysdeps/unix/sysv/linux/netlinkaccess.h
30736 (__netlink_assert_response): Remove internal_function.
30737 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30738 (__netlink_assert_response): Likewise.
30739
30740 2017-08-13 Florian Weimer <fweimer@redhat.com>
30741
30742 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30743 internal_function.
30744 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30745
30746 2017-08-13 Florian Weimer <fweimer@redhat.com>
30747
30748 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30749 internal_function.
30750 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30751 * inet/netgroup.h (__internal_setnetgrent)
30752 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30753 * inet/getnetgrent_r.c (__internal_setnetgrent)
30754 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30755 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30756 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30757 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30758 * nss/nsswitch.h (db_lookup_function): Likewise.
30759
30760 2017-08-13 Florian Weimer <fweimer@redhat.com>
30761
30762 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30763 Remove internal_function.
30764 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30765 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30766 message argument on the stack.
30767 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30768 Likeweise.
30769
30770 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30771
30772 Adapt test case data to the changes in the thousands
30773 separators.
30774
30775 [BZ #20756]
30776 * localedata/tst-langinfo.sh: Adapt test case data.
30777 * stdlib/tst-strfmon_l.c: Likewise.
30778 * stdlib/tst-strtod4.c: Likewise.
30779 * stdlib/tst-strtod5i.c: Likewise.
30780
30781 2017-08-11 Florian Weimer <fweimer@redhat.com>
30782
30783 [BZ #21242]
30784 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30785 Suppress pedantic warning resulting from statement expression.
30786 (__ASSERT_FUNCTION): Add missing __extension__.
30787
30788 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30789
30790 * benchtests/bench-memmove-large.c: Print output in JSON
30791 format.
30792 * benchtests/bench-memmove.c: Likewise.
30793
30794 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30795 * benchtests/bench-memchr.c (do_one_test): Likewise.
30796 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30797 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30798 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30799 * benchtests/bench-memmove.c (do_one_test): Likewise.
30800 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30801 * benchtests/bench-memset.c (do_one_test): Likewise.
30802 * benchtests/bench-string.h (test_init): Remove memsets.
30803
30804 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30805
30806 * manual/lang.texi
30807 (Computing the Width of an Integer Data Type): Rename section to
30808 "Width of an Integer Type". Remove inaccurate statement regarding
30809 lack of C language facilities for determining width of integer
30810 types, and reorder content to improve flow and context of
30811 discussion.
30812
30813 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30814
30815 * lang.texi (va_copy): Change standard from ISO to C99.
30816 (__va_copy): Add standard and header annotation.
30817 Update description for clarity of origins and current use.
30818
30819 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30820
30821 [BZ #21941]
30822 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30823 xssqrtqp requires operands to be in Vector Registers
30824 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30825 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30826 (__ieee754_sqrtf128): Likewise.
30827
30828 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30829
30830 * sysdeps/aarch64/memcmp.S (memcmp):
30831 Rewrite of optimized memcmp.
30832
30833 2017-08-10 Florian Weimer <fweimer@redhat.com>
30834
30835 Introduce ld.so exceptions.
30836 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30837 (_dl_exception_create, _dl_exception_create_format)
30838 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30839 (_dl_catch_exception): Declare.
30840 (_dl_catch_error): Update comment.
30841 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30842 errstring, malloced members with exception member.
30843 (_dl_out_of_memory): Remove.
30844 (fatal_error): New function, extracted from _dl_signal_error.
30845 (_dl_signal_exception, _dl_signal_cexception): New functions.
30846 (_dl_signal_error): Call _dl_exception_create to allocate an
30847 exception object.
30848 (_dl_catch_exception): New function, based on _dl_catch_error.
30849 (_dl_catch_error): Implement using _dl_catch_exception.
30850 * elf/dl-exception.c: New file.
30851 * elf/Makefile (dl-routines): Add dl-exception.
30852 (elide-routines.os): Likewise.
30853 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30854 _dl_exception_create_format, _dl_exception_free.
30855 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30856 _dl_signal_exception.
30857 * elf/dl-lookup.c (make_string): Remove.
30858 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30859 _dl_signal_cexception, _dl_exception_free.
30860 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30861 _dl_signal_exception.
30862 * elf/dl-sym.c (do_sym): Likewise.
30863 * elf/dl-version.c (make_string): Remove.
30864 (match_symbol): Use _dl_exception_create_format,
30865 _dl_signal_cexception, _dl_exception_free.
30866 (_dl_check_map_versions): Likewise.
30867 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30868 _dl_catch_exception.
30869 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30870 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30871 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30872 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30873 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30874 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30875 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30876 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30877 Likewise.
30878 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30880 (ld.so): Likewise.
30881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30882 (ld.so): Likewise.
30883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30884 Likewise.
30885 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30886 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30887 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30888 Likewise.
30889 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30890 Likewise.
30891 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30892
30893 2017-08-10 Florian Weimer <fweimer@redhat.com>
30894
30895 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30896 attribute_hidden, internal_function.
30897 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30898 internal_function.
30899
30900 2017-08-10 Florian Weimer <fweimer@redhat.com>
30901
30902 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30903 function which calls __builtin_unreachable.
30904
30905 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30906
30907 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30908 Indian monetary formatting
30909 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30910 test cases.
30911
30912 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
30913
30914 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
30915 Fix typo in comment.
30916
30917 [BZ #21928]
30918 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
30919 PTRACE_SEIZE_DEVEL): Remove.
30920 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
30921 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30922 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30923 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30924 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30925
30926 2017-08-09 Joseph Myers <joseph@codesourcery.com>
30927
30928 * posix/bits/types.h (__qaddr_t): Remove.
30929
30930 [BZ #21457]
30931 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
30932 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30933 __glibc_reserved1.
30934 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
30935 (ucontext_t): Use __ctx with uc_flags.
30936 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
30937 (__ctxt): Likewise.
30938 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30939 __glibc_reserved1.
30940 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
30941 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30942 __glibc_reserved1.
30943 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
30944 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30945 __glibc_reserved1.
30946 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
30947 macro.
30948 (ucontext_t): Use __ctx with uc_flags.
30949 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
30950 (ucontext_t): Use __ctx with uc_flags.
30951 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
30952 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
30953 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
30954 (ucontext_t): Use __ctx with uc_flags.
30955 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
30956 undefine further down.
30957 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30958 __glibc_reserved1.
30959 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
30960 undefine further down.
30961 (ucontext_t): Use __ctx with uc_flags.
30962 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
30963 undefine further down.
30964 (ucontext_t): Use __ctx with uc_flags.
30965 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
30966 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
30967 Rename uc_pad to __glibc_reserved1.
30968 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
30969 undefine further down.
30970 (ucontext_t): Use __ctx with uc_flags.
30971 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
30972 further down.
30973 (ucontext_t): Use __ctx with uc_flags.
30974 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
30975 __ctx with uc_flags.
30976 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
30977 (ucontext_t): Use __ctx with uc_flags.
30978 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
30979 __ctx with uc_flags.
30980
30981 2017-08-09 Florian Weimer <fweimer@redhat.com>
30982
30983 [BZ #21932]
30984 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
30985 before early return.
30986
30987 2017-08-09 Andreas Schwab <schwab@suse.de>
30988
30989 [BZ #21041]
30990 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
30991 renamed alias.
30992
30993 [BZ #21041]
30994 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
30995 tst-compat-forwarder.
30996 (modules-names): Add tst-compat-forwarder-mod.
30997 ($(objpfx)tst-compat-forwarder): Depend on
30998 $(objpfx)tst-compat-forwarder-mod.so.
30999 * nptl/tst-compat-forwarder.c: New file.
31000 * nptl/tst-compat-forwarder-mod.c: New file.
31001
31002 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31003
31004 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31005 comments.
31006
31007 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31008 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31009 memcpy_falkor.
31010 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31011 Bump.
31012 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31013 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31014 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31015 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31016 Add falkor.
31017 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31018 New macro.
31019
31020 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31021
31022 [BZ #759]
31023 * manual/setjmp.texi (getcontex): Document uc_stack value
31024 compatibility differences.
31025
31026 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31027
31028 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31029 (old_malloc_hook): Likewise.
31030 (old_memalign_hook): Likewise.
31031 (old_realloc_hook): Likewise.
31032 (struct hdr): Likewise.
31033 (flood): Likewise.
31034 (freehook): Likewise.
31035 (mallochook): Likewise.
31036 (memalignhook): Likewise.
31037 (reallochook): Likewise.
31038 (mprobe): Likewise.
31039 * malloc/mtrace.c (mallwatch): Likewise.
31040 (tr_old_free_hook): Likewise.
31041 (tr_old_malloc_hook): Likewise.
31042 (tr_old_realloc_hook): Likewise.
31043 (tr_old_memalign_hook): Likewise.
31044 (tr_where): Likewise.
31045 (lock_and_info): Likewise.
31046 (tr_freehook): Likewise.
31047 (tr_mallochook): Likewise.
31048 (tr_reallochook): Likewise.
31049 (tr_memalignhook): Likewise.
31050 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31051 * misc/mmap.c (__mmap): Likewise.
31052 * misc/mmap64.c (__mmap64): Likewise.
31053 * misc/mprotect.c (__mprotect): Likewise.
31054 * misc/msync.c (msync): Likewise.
31055 * misc/munmap.c (__munmap): Likewise.
31056 * posix/posix_madvise.c (posix_madvise): Likewise.
31057 * socket/send.c (__send): Likewise.
31058 * socket/sendto.c (__sendto): Likewise.
31059 * socket/setsockopt.c (__setsockopt): Likewise.
31060 * string/memcmp.c (__ptr_t): Remove macro.
31061 (MEMCMP): Use void * instead of ptr_t.
31062 * string/memrchr.c (__ptr_t): Remove macro.
31063 (__memrchr): Use void * instead of ptr_t.
31064 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31065 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31066 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31067 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31068 * sysdeps/mach/msync.c (msync): Likewise.
31069 * sysdeps/mach/munmap.c (__munmap): Likewise.
31070 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31071 Likewise.
31072 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31073 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31074 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31075 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31076 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31077 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31078 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31079 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31080 Likewise.
31081 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31082 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31083 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31084 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31085 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31086 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31087 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31088 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31089 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31090 Likewise.
31091 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31092 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31093 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31094 (MEMCMP): Use void * instead of ptr_t.
31095 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31096 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31097
31098 2017-08-08 Florian Weimer <fweimer@redhat.com>
31099
31100 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31101 return statement.
31102
31103 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31104
31105 [BZ #21913]
31106 * csu/libc-tls.c: Include <startup.h> first.
31107 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31108 * elf/dl-tunables.c: Include <startup.h> first.
31109 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31110 * sysdeps/generic/startup.h: New file.
31111 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31112 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31113 (I386_USE_SYSENTER): New. Defined to 0.
31114
31115 2017-08-08 Andreas Schwab <schwab@suse.de>
31116
31117 [BZ #21041]
31118 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31119 * nptl/pt-system.c (system): Likewise.
31120
31121 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31122
31123 [BZ #21780]
31124 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31125 EOPNOTSUPP.
31126 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31127 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31128 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31129 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31130 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31131 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31132 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31133
31134 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31135
31136 [BZ #21899]
31137 * bits/sigaction.h (struct sigaction): Define sa_handler and
31138 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31139 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31140 [__USE_XOPEN_EXTENDED].
31141 (SA_RESTART): Likewise.
31142 (SA_NODEFER): Likewise.
31143 (SA_RESETHAND): Likewise.
31144 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31145 (struct sigaction): Define sa_handler and sa_sigaction using union
31146 also for [__USE_XOPEN_EXTENDED].
31147 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31148 [__USE_XOPEN_EXTENDED].
31149 (SA_RESTART): Likewise.
31150 (SA_NODEFER): Likewise.
31151 (SA_RESETHAND): Likewise.
31152 * sysdeps/unix/sysv/linux/bits/sigaction.h
31153 (struct sigaction): Define sa_handler and sa_sigaction using union
31154 also for [__USE_XOPEN_EXTENDED].
31155 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31156 [__USE_XOPEN_EXTENDED].
31157 (SA_RESTART): Likewise.
31158 (SA_NODEFER): Likewise.
31159 (SA_RESETHAND): Likewise.
31160 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31161 (struct sigaction): Define sa_handler and sa_sigaction using union
31162 also for [__USE_XOPEN_EXTENDED].
31163 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31164 [__USE_XOPEN_EXTENDED].
31165 (SA_RESTART): Likewise.
31166 (SA_NODEFER): Likewise.
31167 (SA_RESETHAND): Likewise.
31168 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31169 (struct sigaction): Define sa_handler and sa_sigaction using union
31170 also for [__USE_XOPEN_EXTENDED].
31171 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31172 [__USE_XOPEN_EXTENDED].
31173 (SA_RESTART): Likewise.
31174 (SA_NODEFER): Likewise.
31175 (SA_RESETHAND): Likewise.
31176 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31177 (struct sigaction): Define sa_handler and sa_sigaction using union
31178 also for [__USE_XOPEN_EXTENDED].
31179 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31180 [__USE_XOPEN_EXTENDED].
31181 (SA_RESTART): Likewise.
31182 (SA_NODEFER): Likewise.
31183 (SA_RESETHAND): Likewise.
31184 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31185 (struct sigaction): Define sa_handler and sa_sigaction using union
31186 also for [__USE_XOPEN_EXTENDED].
31187 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31188 [__USE_XOPEN_EXTENDED].
31189 (SA_RESTART): Likewise.
31190 (SA_NODEFER): Likewise.
31191 (SA_RESETHAND): Likewise.
31192 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31193 (struct sigaction): Define sa_handler and sa_sigaction using union
31194 also for [__USE_XOPEN_EXTENDED].
31195 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31196 [__USE_XOPEN_EXTENDED].
31197 (SA_RESTART): Likewise.
31198 (SA_NODEFER): Likewise. Define directly rather than as alias.
31199 (SA_RESETHAND): Likewise.
31200 (SA_INTERRUPT): Define only for [__USE_MISC].
31201 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31202 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31203 [__USE_MISC].
31204 (SA_STACK): Define only for [__USE_MISC].
31205 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31206 (struct sigaction): Define sa_handler and sa_sigaction using union
31207 also for [__USE_XOPEN_EXTENDED].
31208 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31209 [__USE_XOPEN_EXTENDED].
31210 (SA_RESTART): Likewise.
31211 (SA_NODEFER): Likewise.
31212 (SA_RESETHAND): Likewise.
31213 (SA_NOPTRACE): Define only for [__USE_MISC].
31214
31215 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31216 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31217 (struct catalog_info): Likewise.
31218 * inet/htontest.c (lo): Likewise.
31219 (foo): Likewise.
31220 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31221 * inet/inet_net.c (inet_network): Likewise.
31222 * inet/inet_netof.c (inet_netof): Likewise.
31223 * inet/rcmd.c (__ivaliduser): Likewise.
31224 (iruserok): Likewise.
31225 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31226 * locale/programs/locale-spec.c (locale_special): Likewise.
31227 * nis/nis_findserv.c (struct findserv_req): Likewise.
31228 (__nis_findfastest_with_timeout): Likewise.
31229 * nss/test-netdb.c (test_network): Likewise.
31230 * resolv/inet_neta.c (inet_neta): Likewise.
31231 * resolv/ns_date.c (ns_datetosecs): Likewise.
31232 (SECS_PER_DAY): Likewise.
31233 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31234 Likewise.
31235 * resolv/res_comp.c (__putlong): Likewise.
31236 (__putshort): Likewise.
31237 (_getlong): Likewise.
31238 (_getshort): Likewise.
31239 * resolv/res_debug.c (p_time): Likewise.
31240 (precsize_ntoa): Likewise.
31241 (precsize_aton): Likewise.
31242 (latlon2ul): Likewise.
31243 (loc_aton): Likewise.
31244 (loc_ntoa): Likewise.
31245 * resolv/res_hconf.c (struct netaddr): Likewise.
31246 (_res_hconf_reorder_addrs): Likewise.
31247 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31248 (clnttcp_control): Likewise.
31249 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31250 (clntudp_control): Likewise.
31251 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31252 (clntunix_control): Likewise.
31253 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31254 * sunrpc/rpc/auth.h (union des_block): Likewise.
31255 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31256 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31257 (xdrrec_create): Likewise.
31258 (xdrrec_endofrecord): Likewise.
31259 (flush_out): Likewise.
31260 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31261 (xdrstdio_putlong): Likewise.
31262 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31263 Likewise.
31264
31265 * misc/sys/cdefs.h (__long_double_t): Remove.
31266 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31267 instead of __long_double_t,
31268 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31269
31270 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31271
31272 * benchtests/scripts/compare_strings.py: Avoid display error when
31273 running on a text terminal.
31274
31275 * benchtests/scripts/compare_strings.py (main): Add an
31276 optional -base option.
31277 (process_results): New argument base_func.
31278
31279 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31280 hardcoding memcpy.
31281 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31282 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31283
31284 2017-08-07 Andreas Schwab <schwab@suse.de>
31285
31286 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31287 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31288 * intl/Makefile ($(objpfx)tst-gettext.out)
31289 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31290 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31291 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31292 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31293 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31294 * posix/Makefile ($(objpfx)globtest.out)
31295 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31296 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31297 ($(objpfx)tst-printf.out): Likewise.
31298 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31299 ($(objpfx)tst-setcontext3.out): Likewise.
31300
31301 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31302
31303 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31304 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31305 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31306 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31307 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31308 and mptan-fma.
31309 (CFLAGS-doasin-fma.c): New.
31310 (CFLAGS-dosincos-fma.c): Likewise.
31311 (CFLAGS-e_asin-fma.c): Likewise.
31312 (CFLAGS-e_atan2-fma.c): Likewise.
31313 (CFLAGS-e_exp-fma.c): Likewise.
31314 (CFLAGS-e_log-fma.c): Likewise.
31315 (CFLAGS-e_pow-fma.c): Likewise.
31316 (CFLAGS-halfulp-fma.c): Likewise.
31317 (CFLAGS-mpa-fma.c): Likewise.
31318 (CFLAGS-mpatan-fma.c): Likewise.
31319 (CFLAGS-mpatan2-fma.c): Likewise.
31320 (CFLAGS-mpexp-fma.c): Likewise.
31321 (CFLAGS-mplog-fma.c): Likewise.
31322 (CFLAGS-mpsqrt-fma.c): Likewise.
31323 (CFLAGS-mptan-fma.c): Likewise.
31324 (CFLAGS-s_atan-fma.c): Likewise.
31325 (CFLAGS-sincos32-fma.c): Likewise.
31326 (CFLAGS-slowexp-fma.c): Likewise.
31327 (CFLAGS-slowpow-fma.c): Likewise.
31328 (CFLAGS-s_sin-fma.c): Likewise.
31329 (CFLAGS-s_tan-fma.c): Likewise.
31330 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31331 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31332 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31333 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31334 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31335 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31336 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31337 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31338 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31339 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31340 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31341 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31342 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31343 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31344 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31345 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31346 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31347 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31348 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31349 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31350 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31351 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31352 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31353 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31354 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31355 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31356 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31357 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31358 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31359 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31360 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31361
31362 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31363
31364 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31365 (min_of_type_f): New macro.
31366 (min_of_type_): Likewise.
31367 (min_of_type_l): Likewise.
31368 (min_of_type_f128): Likewise.
31369 (min_of_type): Define using __MATH_TG and taking an expression
31370 argument.
31371 (math_check_force_underflow): Pass expression instead of type to
31372 min_of_type.
31373 (math_check_force_underflow_nonneg): Likewise.
31374
31375 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31376
31377 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31378 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31379 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31380
31381 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31382
31383 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31384 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31385 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31386 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31387 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31388 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31389 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31390 memmove_chk-nonshared and memset_chk-nonshared
31391 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31392 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31393 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31394 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31395 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31396 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31397 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31398 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31399 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31400 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31401 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31402 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31403 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31404 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31405 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31406 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31407 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31408 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31409 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31410 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31411 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31412 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31413 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31414 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31415 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31416 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31417 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31418 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31419 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31420 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31421 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31422 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31423 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31424 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31425 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31426 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31427 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31428 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31429 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31430 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31431 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31432 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31433 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31434 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31435 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31436 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31437 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31438 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31439 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31440 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31441 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31442 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31443 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31444 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31445 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31446 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31447 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31448 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31449 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31450 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31451 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31452 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31453 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31454 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31455 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31456 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31457 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31458 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31459 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31460 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31461 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31462 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31463 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31464 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31465 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31466 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31467 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31468 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31469 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31470 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31471 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31472 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31473 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31474 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31475 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31476 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31477 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31478 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31479 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31480 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31481 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31482 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31483 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31484 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31485 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31486 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31487 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31488 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31489 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31490 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31491 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31492 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31493 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31494 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31496 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31497 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31498 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31499
31500 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31501
31502 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31503 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31504 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31505 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31506 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31507 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31508 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31509 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31510 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31511 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31512 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31513 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31514 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31515 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31516 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31517 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31518 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31519 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31520 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31521 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31522 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31523 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31524 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31525 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31526 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31527 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31528 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31529 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31530 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31531 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31532 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31533 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31534 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31535 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31536 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31537 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31538 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31540 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31542 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31559 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31561 ...
31562 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31563 Don't include <sysdep.h> nor <init-arch.h>.
31564 (_ZGVbN2v_cos): Removed.
31565 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31566 ...
31567 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31568 Don't include <sysdep.h> nor <init-arch.h>.
31569 (_ZGVdN4v_cos): Removed.
31570 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31571 ...
31572 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31573 Don't include <sysdep.h> nor <init-arch.h>.
31574 (_ZGVeN8v_cos): Removed.
31575 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31576 ...
31577 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31578 Don't include <sysdep.h> nor <init-arch.h>.
31579 (_ZGVbN2v_exp): Removed.
31580 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31581 ...
31582 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31583 Don't include <sysdep.h> nor <init-arch.h>.
31584 (_ZGVdN4v_exp): Removed.
31585 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31586 ...
31587 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31588 Don't include <sysdep.h> nor <init-arch.h>.
31589 (_ZGVeN8v_exp): Removed.
31590 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31591 ...
31592 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31593 Don't include <sysdep.h> nor <init-arch.h>.
31594 (_ZGVbN2v_log): Removed.
31595 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31596 ...
31597 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31598 Don't include <sysdep.h> nor <init-arch.h>.
31599 (_ZGVdN4v_log): Removed.
31600 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31601 ...
31602 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31603 Don't include <sysdep.h> nor <init-arch.h>.
31604 (_ZGVeN8v_log): Removed.
31605 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31606 ...
31607 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31608 Don't include <sysdep.h> nor <init-arch.h>.
31609 (_ZGVbN2vv_pow): Removed.
31610 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31611 ...
31612 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31613 Don't include <sysdep.h> nor <init-arch.h>.
31614 (_ZGVdN4vv_pow): Removed.
31615 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31616 ...
31617 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31618 Don't include <sysdep.h> nor <init-arch.h>.
31619 (_ZGVeN8vv_pow): Removed.
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31621 ...
31622 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31623 Don't include <sysdep.h> nor <init-arch.h>.
31624 (_ZGVbN2v_sin): Removed.
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31626 ...
31627 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31628 Don't include <sysdep.h> nor <init-arch.h>.
31629 (_ZGVbN4v_sin): Removed.
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31631 ...
31632 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31633 Don't include <sysdep.h> nor <init-arch.h>.
31634 (_ZGVbN8v_sin): Removed.
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31636 ...
31637 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31638 Don't include <sysdep.h> nor <init-arch.h>.
31639 (_ZGVbN2vvv_sincos): Removed.
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31641 ...
31642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31643 Don't include <sysdep.h> nor <init-arch.h>.
31644 (_ZGVdN4vvv_sincos): Removed.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31646 ...
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31648 Don't include <sysdep.h> nor <init-arch.h>.
31649 (_ZGVeN8vvv_sincos): Removed.
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31651 ...
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31653 Don't include <sysdep.h> nor <init-arch.h>.
31654 (_ZGVeN16v_cosf): Removed.
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31656 ...
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31658 Don't include <sysdep.h> nor <init-arch.h>.
31659 (_ZGVbN4v_cosf): Removed.
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31661 ...
31662 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31663 Don't include <sysdep.h> nor <init-arch.h>.
31664 (_ZGVdN8v_cosf): Removed.
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31666 ...
31667 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31668 Don't include <sysdep.h> nor <init-arch.h>.
31669 (_ZGVeN16v_expf): Removed.
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31671 ...
31672 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31673 Don't include <sysdep.h> nor <init-arch.h>.
31674 (_ZGVbN4v_expf): Removed.
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31676 ...
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31678 Don't include <sysdep.h> nor <init-arch.h>.
31679 (_ZGVdN8v_expf): Removed.
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31681 ...
31682 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31683 Don't include <sysdep.h> nor <init-arch.h>.
31684 (_ZGVeN16v_logf): Removed.
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31686 ...
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31688 Don't include <sysdep.h> nor <init-arch.h>.
31689 (_ZGVbN4v_logf): Removed.
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31691 ...
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31693 Don't include <sysdep.h> nor <init-arch.h>.
31694 (_ZGVdN8v_logf): Removed.
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31696 ...
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31698 Don't include <sysdep.h> nor <init-arch.h>.
31699 (_ZGVeN16vv_powf): Removed.
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31701 ...
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31703 Don't include <sysdep.h> nor <init-arch.h>.
31704 (_ZGVbN4vv_powf): Removed.
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31706 ...
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31708 Don't include <sysdep.h> nor <init-arch.h>.
31709 (_ZGVdN8vv_powf): Removed.
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31711 ...
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31713 Don't include <sysdep.h> nor <init-arch.h>.
31714 (_ZGVeN16vvv_sincosf): Removed.
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31716 ...
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31718 Don't include <sysdep.h> nor <init-arch.h>.
31719 (_ZGVbN4vvv_sincosf): Removed.
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31721 ...
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31723 Don't include <sysdep.h> nor <init-arch.h>.
31724 (_ZGVdN8vvv_sincosf): Removed.
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31726 ...
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31728 Don't include <sysdep.h> nor <init-arch.h>.
31729 (_ZGVeN16v_sinf): Removed.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31731 ...
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31733 Don't include <sysdep.h> nor <init-arch.h>.
31734 (_ZGVbN4v_sinf): Removed.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31736 ...
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31738 Don't include <sysdep.h> nor <init-arch.h>.
31739 (_ZGVdN8v_sinf): Removed.
31740
31741 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31742
31743 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31744 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31745 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31746 s_rint-sse4_1 and s_rintf-sse4_1.
31747 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31748 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31756 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31757 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31758 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31759 (__ceil): Removed.
31760 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31761 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31762 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31763 (__ceilf): Removed.
31764 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31765 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31766 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31767 (__floor): Removed.
31768 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31769 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31770 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31771 (__floorf): Removed.
31772 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31773 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31774 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31775 (__nearbyint): Removed.
31776 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31777 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31778 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31779 (__nearbyintf): Removed.
31780 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31781 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31782 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31783 (__rint): Removed.
31784 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31785 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31786 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31787 (__rintf): Removed.
31788
31789 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31790
31791 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31792 SHARED. Avoid dynamic relocation against main in static PIE.
31793
31794 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31795
31796 [BZ #21815]
31797 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31798 (LDFLAGS-tst-prelink): Likewise.
31799
31800 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31801
31802 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31803 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31804 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31805 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31806 (INTERNAL_SYSCALL_NCS): Likewise.
31807 (LOADARGS_1): Likewise.
31808 (LOADARGS_5): Likewise.
31809 (RESTOREARGS_1): Likewise.
31810 (RESTOREARGS_5): Likewise.
31811
31812 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31813
31814 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31815 (MEMPCPY_SYMBOL): Likewise.
31816 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31817 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31818 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31819 in libc.a.
31820 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31821 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31822 Likewise.
31823 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31824 (__hidden_ver1): Don't use in libc.a.
31825 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31826 (__mempcpy): Don't create a weak alias in libc.a.
31827 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31828 libc.a.
31829 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31830 (__hidden_ver1): Don't use in libc.a.
31831
31832 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31833
31834 * config.make.in (have-insert): New.
31835 * configure.ac (libc_cv_insert): New. Set to yes if linker
31836 supports INSERT in linker script.
31837 (AC_SUBST(libc_cv_insert): New.
31838 * configure: Regenerated.
31839 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31840 if $(have-insert) == yes.
31841
31842 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31843
31844 * elf/Makefile (tests): Add vismain only if
31845 $(have-protected-data) == yes.
31846 (tests-pie): Likewise.
31847
31848 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31849
31850 [BZ #21871]
31851 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31852 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31853
31854 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31855
31856 [BZ #21790]
31857 * sysdeps/i386/i586/memset.S
31858 (__memset_zero_constant_len_parameter): Removed.
31859 * sysdeps/i386/i686/memset.S
31860 (__memset_zero_constant_len_parameter): Likewise.
31861 * sysdeps/i386/i686/multiarch/memset_chk.S
31862 (__memset_zero_constant_len_parameter): Likewise.
31863 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31864 Likewise.
31865
31866 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31867
31868 * stdlib/getentropy.c (getentropy): Change return type to int.
31869
31870 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31871
31872 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31873
31874 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31875
31876 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31877 u_intN_t.
31878 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31879 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31880 Likewise.
31881 (ieee_float_shape_type): Likewise.
31882 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31883 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31884 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31885 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31886 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31887 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31888 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31889 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31890 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31891 Likewise.
31892 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31893 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31894 (__ieee754_yn): Likewise.
31895 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31896 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31897 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31898 Likewise.
31899 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31900 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31901 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31902 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31903 (__erfc): Likewise.
31904 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31905 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31906 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31907 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31908 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31909 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31910 Likewise.
31911 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
31912 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
31913 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
31914 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
31915 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
31916 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
31917 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
31918 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
31919 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
31920 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
31921 (__issignaling): Likewise.
31922 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
31923 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
31924 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
31925 Likewise.
31926 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31927 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31928 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
31929 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
31930 Likewise.
31931 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
31932 Likewise.
31933 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
31934 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
31935 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
31936 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
31937 (__erfcf): Likewise.
31938 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
31939 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
31940 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
31941 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
31942 Likewise.
31943 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
31944 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
31945 Likewise.
31946 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
31947 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
31948 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
31949 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
31950 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
31951 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
31952 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
31953 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
31954 Likewise.
31955 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
31956 Likewise.
31957 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
31958 Likewise.
31959 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
31960 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
31961 Likewise.
31962 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
31963 Likewise.
31964 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
31965 (__ieee754_ynl): Likewise.
31966 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
31967 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
31968 Likewise.
31969 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
31970 Likewise.
31971 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
31972 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
31973 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
31974 Likewise.
31975 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
31976 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
31977 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
31978 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
31979 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
31980 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
31981 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
31982 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
31983 Likewise.
31984 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
31985 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
31986 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
31987 Likewise.
31988 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
31989 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
31990 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
31991 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
31992 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
31993 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
31994 Likewise.
31995 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
31996 Likewise.
31997 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
31998 Likewise.
31999 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32000 Likewise.
32001 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32002 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32003 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32004 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32005 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32006 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32007 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32008 Likewise.
32009 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32010 Likewise.
32011 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32012 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32013 Likewise.
32014 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32015 (__ieee754_remainderl): Likewise.
32016 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32017 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32018 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32019 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32020 Likewise.
32021 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32022 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32023 Likewise.
32024 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32025 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32026 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32027 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32028 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32029 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32030 Likewise.
32031 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32032 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32033 (__ieee754_y0l): Likewise.
32034 (pzero): Likewise.
32035 (qzero): Likewise.
32036 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32037 (__ieee754_y1l): Likewise.
32038 (pone): Likewise.
32039 (qone): Likewise.
32040 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32041 (__ieee754_ynl): Likewise.
32042 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32043 (__ieee754_lgammal_r): Likewise.
32044 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32045 Likewise.
32046 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32047 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32048 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32049 (__erfcl): Likewise.
32050 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32051 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32052 Likewise.
32053 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32054 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32055 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32056 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32057 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32058 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32059 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32060 Likewise.
32061 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32062 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32063 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32064 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32065 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32066 Likewise.
32067 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32068 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32069 Likewise.
32070 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32071 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32072 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32073 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32074 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32075
32076 2017-08-03 Florian Weimer <fweimer@redhat.com>
32077
32078 [BZ #21885]
32079 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32080 on memory allocation failure.
32081
32082 2017-08-03 Alan Modra <amodra@gmail.com>
32083
32084 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32085 tst-tlsopt-powerpc.c with function name change and no test harness.
32086 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32087 Call tls_get_addr_opt_test.
32088 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32089 (modules-names): Add mod-tlsopt-powerpc.
32090 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32091 (tst-tlsopt-powerpc): Depend on .so.
32092 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32093 define. Expand use in TLS_GD and TLS_LD.
32094
32095 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32096
32097 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32098 function.
32099 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32100
32101 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32102
32103 [BZ #21686]
32104 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32105 comparing size with that of double.
32106 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32107 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32108 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32109 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32110 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32111 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32112 unsigned __int128 types.
32113
32114 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32115
32116 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32117 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32118 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32119 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32120 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32121
32122 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32123
32124 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32125
32126 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32127
32128 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32129 of SHARED.
32130 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32131 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32132 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32133 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32134 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32135 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32136 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32137
32138 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32139
32140 [BZ #21685]
32141 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32142 bit-field expressions passed to sizeof or typeof.
32143 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32144 (__TGMATH_F128): Likewise.
32145 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32146 (__TGMATH_CF128): Likewise.
32147 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32148 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32149 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32150 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32151 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32152 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32153 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32154 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32155 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32156 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32157 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32158 (__TGMATH_UNARY_IMAG): Likewise.
32159 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32160 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32161 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32162 type.
32163 (define_vars_for_type): Handle bit_field type specially.
32164 (Tests.__init__): Declare structure with bit-field element.
32165
32166 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32167
32168 [BZ #21791]
32169 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32170 (MEMCPY_CHK): Define only if SHARED is defined.
32171 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32172 Likewise.
32173 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32174 Likewise.
32175
32176 See ChangeLog.18 for earlier changes.